]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Add missing header wrappers under include/
[thirdparty/glibc.git] / ChangeLog
1 2019-02-15 Florian Weimer <fweimer@redhat.com>
2
3 Add missing header wrappers under include/.
4 * include/ar.h: New file.
5 * include/bits/mqueue2.h: Likewise.
6 * include/bits/stdio.h: Likewise.
7 * include/bits/stdio2.h: Likewise.
8 * include/fstab.h: Likewise.
9 * include/fts.h: Likewise.
10 * include/lastlog.h: Likewise.
11 * include/netinet/icmp6.h: Likewise.
12 * include/netinet/igmp.h: Likewise.
13 * include/netinet/ip6.h: Likewise.
14 * include/re_comp.h: Likewise.
15 * include/regexp.h: Likewise.
16 * include/rpcsvc/bootparam.h: Likewise.
17 * include/rpcsvc/yp_prot.h: Likewise.
18 * include/sys/random.h: Likewise.
19 * include/sys/stropts.h: Likewise.
20 * include/sys/ttychars.h: Likewise.
21 * include/sys/vfs.h: Likewise.
22 * include/wait.h: Likewise.
23
24 2019-02-15 Florian Weimer <fweimer@redhat.com>
25
26 * nptl_db/proc_service.h: Move to ...
27 * sysdeps/nptl/proc_service.h: ... here.
28 * nptl_db/thread_db.h: Move to ...
29 * sysdeps/nptl/thread_db.h: ... here.
30 * nptl/descr.h: Include <thread_db.h>.
31
32 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33
34 * io/Makefile (tests): Add tst-lockf.
35 * io/lockf.c (lockf): Use __fcntl and only define for
36 !__OFF_T_MATCHES_OFF64_T.
37 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
38 __OFF_T_MATCHES_OFF64_T case.
39 * io/tst-lockf.c: New file.
40 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
41 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
42 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
43 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
44 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
45 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
46 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
47 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
48 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
49
50 2019-02-15 Florian Weimer <fweimer@redhat.com>
51
52 [BZ #24211]
53 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
54 pd->result after the thread descriptor has been freed.
55
56 2019-02-15 Joseph Myers <joseph@codesourcery.com>
57
58 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
59 from function return type.
60
61 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
62
63 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
64
65 * scripts/test_printers_common.py: Set TERM to a known harmless
66 value.
67
68 2019-02-14 Joseph Myers <joseph@codesourcery.com>
69
70 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
71 (xdr_u_int): Likewise.
72 (xdr_enum): Likewise.
73 (xdr_bytes): Reword fall-through comment.
74 (xdr_string): Likewise.
75
76 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
77
78 [BZ #2421]
79 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
80 (tests): Add tst-join8 tst-join9.
81 * nptl/lll_timedwait_tid.c: Remove file.
82 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
83 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
84 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
85 * nptl/pthread_join_common.c (timedwait_tid): New function.
86 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
87 is set.
88 * nptl/tst-join5.c (thread_join): New function.
89 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
90 check.
91 * nptl/tst-join8.c: New file.
92 * nptl/tst-join9.c: Likewise.
93 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
94 lll_futex_timed_wait_cancel): Add generic macros.
95 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
96 Remove definitions.
97 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
98 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
99 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
100 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
101 Remove function.
102 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
103 Likewise.
104 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
105 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
106 (lll_futex_timed_wait_cancel): New macro.
107
108 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
109
110 * benchtests/Makefile: Add malloc-simple benchmark.
111 * benchtests/bench-malloc-simple.c: New benchmark.
112
113 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
114
115 * benchtests/bench-memmove.c (do_one_test): Remove unused
116 ORIG_SRC.
117 (do_test): Adjust.
118 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
119 ORIG_SRC.
120 (do_test): Adjust.
121
122 2019-01-13 Jim Wilson <jimw@sifive.com>
123
124 [BZ #24040]
125 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
126 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
127 (func): New.
128 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
129 call func directly.
130 * nptl/Makefile (tests): Add tst-unwind-thread.
131 (CFLAGS-tst-unwind-thread.c): Define.
132 * nptl/tst-unwind-thread.c: New file.
133 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
134 as undefined.
135
136 2019-02-13 Joseph Myers <joseph@codesourcery.com>
137
138 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
139 comment wording.
140 * nis/nis_call.c (__do_niscall3): Likewise.
141
142 * catgets/gencat.c (normalize_line): Use braces around empty
143 'else' body.
144 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
145 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
146 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
147 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
148 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
149 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
150 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
151 definition.
152
153 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
154 execlp returns.
155
156 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
157
158 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
159 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
160 * benchtests/bench-strchr.c (stupid_strchr): Remove.
161 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
162 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
163 * benchtests/bench-strlen.c (builtin_strlen): Remove.
164 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
165 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
166 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
167 * benchtests/bench-strspn.c (stupid_strspn): Remove.
168 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
169 * benchtests/bench-bcopy.c: Delete file.
170 * benchtests/bench-bzero.c: Likewise.
171 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
172 (simple_memccpy): Remove.
173 (generic_memccpy): Add function.
174 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
175 * benchtests/bench-memmove.c (simple_bcopy): Remove.
176 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
177 (generic_mempcpy): Add new function.
178 * benchtests/bench-memset.c (simple_bzero): Remove.
179 (builtin_bzero): Remove.
180 (builtin_memset): Remove.
181 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
182 (generic_rawmemchr): Add new function.
183
184 2019-02-12 Florian Weimer <fweimer@redhat.com>
185
186 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
187
188 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
189
190 [BZ #24122]
191 * elf/Makefile (tests): Add tst-audit13.
192 (modules-names): Add tst-audit13mod1.
193 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
194 rule.
195 * elf/tst-audit13.c: New file.
196 * elf/tst-audit13mod1.c: Likewise.
197
198 2019-02-12 Florian Weimer <fweimer@redhat.com>
199
200 [BZ #24122]
201 * elf/rtld.c (unload_audit_module): New function.
202 (report_audit_module_load_error): Likewise.
203 (load_audit_module): Likewise. Extracted from dl_main. Call
204 _dl_close if the laversion symbol cannot be found. Use early
205 returns for error handling. Add malloc error check. Check for a
206 zero return value from la_version. Remove spurious comment about
207 static TLS initialization. Remove useless casts.
208 (notify_audit_modules_of_loaded_object): New function. Extracted
209 from dl_main.
210 (load_audit_module): Likewise.
211 (dl_main): Call load_audit_modules.
212
213 2019-02-12 Joseph Myers <joseph@codesourcery.com>
214
215 * elf/dl-exception.c (_dl_exception_create_format): Add
216 fall-through comments.
217 * elf/ldconfig.c (parse_conf_include): Likewise.
218 * elf/rtld.c (print_statistics): Likewise.
219 * locale/programs/charmap.c (parse_charmap): Likewise.
220 * misc/mntent_r.c (__getmntent_r): Likewise.
221 * posix/wordexp.c (parse_arith): Likewise.
222 (parse_backtick): Likewise.
223 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
224 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
225 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
226
227 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
228
229 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
230 Use float instead of double.
231
232 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
233
234 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
235
236 2019-02-08 Joseph Myers <joseph@codesourcery.com>
237
238 * sysdeps/powerpc/bits/mathinline.h: Remove.
239
240 2019-02-08 Florian Weimer <fweimer@redhat.com>
241
242 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
243 * math/bits/math-finite.h: Move to ...
244 * bits/math-finite.h: ... here.
245
246 2019-02-08 Florian Weimer <fweimer@redhat.com>
247
248 * sysdeps/generic/bits/unistd_ext.h: Move to ...
249 * bits/unistd_ext.h: here.
250
251 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
252
253 [BZ #21915]
254 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
255 * nss/tst-nss-files-hosts-long.c: New file.
256 * nss/tst-nss-files-hosts-long.root: New directory.
257 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
258 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
259
260 2019-02-08 Florian Weimer <fweimer@redhat.com>
261
262 * include/bits/unistd_ext.h: Remove file.
263 * posix/bits/unistd_ext.h: Move to ...
264 * sysdeps/generic/bits/unistd_ext.h: ... here.
265
266 2019-02-08 Florian Weimer <fweimer@redhat.com>
267
268 * include/bits/unistd_ext.h: New file.
269
270 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
271
272 * time/tst-strftime2.c: Use array_length macros instead of magic
273 numbers.
274
275 2019-02-08 Florian Weimer <fweimer@redhat.com>
276
277 [BZ #24161]
278 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
279 argument.
280 * nptl/register-atfork.c (__run_fork_handlers): Only perform
281 locking if the new do_locking argument is true.
282 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
283 __run_fork_handlers.
284
285 2019-02-08 Florian Weimer <fweimer@redhat.com>
286
287 [BZ #6399]
288 Linux: Add gettid system call wrapper.
289 * posix/Makefile (headers): Add bits/unistd_ext.h.
290 * posix/bits/unistd_ext.h: New file.
291 * posix/unistd.h: Include it.
292 * manual/process.texi (Process Identification): Document gettid.
293 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
294 tst-gettid, tst-gettid-kill.
295 (tst-gettid): Link with $(shared-thread-library).
296 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
297 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
298 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
299 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
300 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
301 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
302 Add gettid.
303 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
304 Likewise.
305 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
306 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
307 Likewise.
308 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
309 Likewise.
310 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
311 Likewise.
312 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
313 Likewise.
314 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
315 Likewise.
316 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
317 Likewise.
318 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
319 Likewise.
320 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
321 (GLIBC_2.30): Likewise.
322 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
323 (GLIBC_2.30): Likewise.
324 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
325 (GLIBC_2.30): Likewise.
326 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
327 (GLIBC_2.30): Likewise.
328 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
329 Likewise.
330 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
331 (GLIBC_2.30): Likewise.
332 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
333 (GLIBC_2.30): Likewise.
334 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
335 (GLIBC_2.30): Likewise.
336 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
337 (GLIBC_2.30): Likewise.
338 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
339 Likewise.
340 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
341 Likewise.
342 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
343 Likewise.
344 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
345 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
346 Likewise.
347 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
348 Likewise.
349 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
350 Likewise.
351 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
352 Likewise.
353 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
354
355 2019-02-07 Florian Weimer <fweimer@redhat.com>
356
357 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
358 compatibility symbols.
359
360 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
361
362 [BZ #24180]
363 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
364 Add compiler barriers and comments.
365
366 2019-02-07 Florian Weimer <fweimer@redhat.com>
367
368 * include/array_length.h (array_length): Do not use a statement
369 expression and _Static_assert, so that array_length can be used at
370 file scope and as a constant expression.
371
372 2019-02-07 Florian Weimer <fweimer@redhat.com>
373
374 * support/xdlfcn.h (xdlmopen): Declare.
375 * support/xdlmopen.c: New file.
376 * support/Makefile (libsupport-routines): Add xdlmopen.
377
378 2019-02-06 Joseph Myers <joseph@codesourcery.com>
379
380 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
381 before return type, without separate inline.
382 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
383 * elf/dl-tunables.h (tunable_is_name): Likewise.
384 * malloc/malloc.c (do_set_trim_threshold): Likewise.
385 (do_set_top_pad): Likewise.
386 (do_set_mmap_threshold): Likewise.
387 (do_set_mmaps_max): Likewise.
388 (do_set_mallopt_check): Likewise.
389 (do_set_perturb_byte): Likewise.
390 (do_set_arena_test): Likewise.
391 (do_set_arena_max): Likewise.
392 (do_set_tcache_max): Likewise.
393 (do_set_tcache_count): Likewise.
394 (do_set_tcache_unsorted_limit): Likewise.
395 * nis/nis_subr.c (count_dots): Likewise.
396 * nptl/allocatestack.c (advise_stack_range): Likewise.
397 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
398 (do_sin): Likewise.
399 (reduce_sincos): Likewise.
400 (do_sincos): Likewise.
401 * sysdeps/unix/sysv/linux/x86/elision-conf.c
402 (do_set_elision_enable): Likewise.
403 (TUNABLE_CALLBACK_FNDECL): Likewise.
404
405 2019-02-06 Florian Weimer <fweimer@redhat.com>
406
407 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
408 (xdlsym): Use dlerror to detect a NULL symbol.
409
410 2019-02-06 Florian Weimer <fweimer@redhat.com>
411
412 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
413 <stap-probe.h>.
414 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
415
416 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
417
418 * libio/tst-bz24153.c (wide): Use wide char format specifier.
419
420 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
421
422 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
423 __wmemcmp and weak alias to wmemcmp.
424
425 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
426
427 [BZ #23403]
428 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
429 TLS_TCB_AT_TP tls variant.
430 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
431 Add alignment checks.
432 * support/Makefile (libsupport-routines): Add xposix_memalign and
433 xpthread_setstack.
434 * support/support.h: Add xposix_memalign.
435 * support/xthread.h: Add xpthread_attr_setstack.
436 * support/xposix_memalign.c: New File.
437 * support/xpthread_attr_setstack.c: Likewise.
438
439 2019-02-05 Florian Weimer <fweimer@redhat.com>
440
441 [BZ #24164]
442 arm: Use "nr" constraint for Systemtap probes, to avoid the
443 compiler using memory operands for constants, due to the "o"
444 alternative in the default "nor" constraint.
445 * include/stap-probe.h [USE_STAP_PROBE]: Include
446 <stap-probe-machine.h>
447 * sysdeps/generic/stap-probe-machine.h: New file.
448 * sysdeps/arm/stap-probe-machine.h: Likewise.
449
450 2019-02-04 Joseph Myers <joseph@codesourcery.com>
451
452 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
453 with 0, not tcache->entries[tc_idx].
454
455 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
456 once.
457
458 2019-02-04 Andreas Schwab <schwab@suse.de>
459
460 [BZ #16976]
461 [BZ #17396]
462 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
463 looking up collating elements match against (wide) character
464 sequence instead of name. Correct alignment adjustment.
465 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
466 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
467 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
468 (LOCALES): Add cs_CZ.ISO-8859-2.
469 * posix/tst-fnmatch4.c: New file.
470 * posix/tst-fnmatch5.c: New file.
471 * include/wchar.h (__wmemcmp): Declare.
472 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
473 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
474 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
475 * sysdeps/s390/wmemcmp.c: Likewise.
476
477 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
478
479 [BZ #24155]
480 CVE-2019-7309
481 * NEWS: Updated for CVE-2019-7309.
482 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
483 upper 32 bits of RDX register for x32. Use unsigned Jcc
484 instructions, instead of signed.
485 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
486 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
487
488 2019-02-04 Florian Weimer <fweimer@redhat.com>
489
490 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
491 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
492 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
493 Likewise.
494 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
495 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
496 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
497 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
498 Likewise.
499 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
500 Likewise.
501 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
502 Likewise.
503 (posix_spawn_file_actions_addopen): Likewise.
504 (posix_spawn_file_actions_addclose): Likewise.
505 (posix_spawn_file_actions_adddup2): Likewise.
506 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
507 qualifiers.
508 (posix_spawn_file_actions_addfchdir_np): Likewise.
509
510 2019-02-04 David Newall <glibc@davidnewall.com>
511
512 elf: Implement --preload option for the dynamic linker.
513 * elf/rtld.c (preloadarg): New variable.
514 (handle_preload_list): Pass through “where” argument to
515 do_preload.
516 (dl_main): Handle "--preload" and add second call to
517 handle_preload_list.
518 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
519 (tst-rtld-preload-OBJS): Set variable.
520 (tst-rtld-preload.out): New target.
521 * elf/tst-rtld-preload.sh: New file.
522
523 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
524
525 * Makefile (testrun.sh): Exit in case of incorrect argument.
526
527 2019-02-04 Florian Weimer <fweimer@redhat.com>
528
529 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
530 alignment gaps.
531
532 2019-02-03 Florian Weimer <fweimer@redhat.com>
533
534 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
535 implicit overflow checks.
536
537 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
538
539 * stdlib/isomac.c: Include <unistd.h>.
540
541 2019-02-03 Florian Weimer <fweimer@redhat.com>
542
543 * include/time.h (__tzfile_default): Use int, not long int, for
544 the GMT offsets.
545 * time/tzfile.c (struct ttinfo): Change type of the offset member
546 to int.
547 (__tzfile_read): Remove useless cast.
548 (__tzfile_default): Adjust prototype.
549 * time/tzset.c (tz_rule): Change type of the offset member to int.
550 (parse_offset): Change the type of the sign variable to int.
551
552 2019-02-03 Florian Weimer <fweimer@redhat.com>
553
554 [BZ #24153]
555 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
556 * libio/getchar.c (getchar): Likewise.
557 * libio/getchar_u.c (getchar_unlocked): Likewise.
558 * libio/getwchar.c (getwchar): Likewise.
559 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
560 * libio/iogets.c (_IO_gets): Likewise.
561 * libio/vscanf.c (_IO_vscanf): Likewise.
562 * libio/vwscanf.c (__vwscanf): Likewise.
563 * libio/tst-bz24153.c: New file.
564 * libio/Makefile (tests): Add it.
565
566 2019-02-02 Florian Weimer <fweimer@redhat.com>
567
568 [BZ #14829]
569 * manual/resource.texi (Basic Scheduling Functions): Add
570 portability note. Change process to task throughout the section.
571 Remove incorrect comment about sched_yield as it affects
572 tasks/threads, not entire processes.
573 * sysdeps/unix/sysv/linux/bits/posix_opt.h
574 (_POSIX_PRIORITY_SCHEDULING): Update comment.
575
576 2019-02-01 Joseph Myers <joseph@codesourcery.com>
577
578 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
579 * configure: Regenerated.
580 * manual/install.texi (Tools for Compilation): Update minimum GCC
581 version.
582 * INSTALL: Regenerated.
583
584 2019-02-01 Florian Weimer <fweimer@redhat.com>
585
586 * support/support_test_compare_string.c
587 (support_test_compare_string): Use "string" in error message.
588 * support/tst-test_compare_string.c (do_test): Adjust.
589
590 2019-02-01 Florian Weimer <fweimer@redhat.com>
591
592 * support/support_format_address_family.c
593 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
594
595 2019-02-01 Florian Weimer <fweimer@redhat.com>
596
597 * manual/socket.texi (Internet Address Formats): Clarify the byte
598 order of struct sockaddr_in, struct sockaddr_in6. Document
599 sin6_flowinfo and sin6_scope_id.
600
601 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
602
603 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
604 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
605 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
606 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
607 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
608 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
609
610 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
611
612 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
613 [!MEMCHR](MEMCHR): Set to __memchr.
614 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
615 Add memchr_generic and memchr_nosimd.
616 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
617 (__libc_ifunc_impl_list): Add memchr ifuncs.
618 * sysdeps/aarch64/multiarch/memchr.c: New file.
619 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
620 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
621
622 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
623
624 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
625 Add memset_emag.
626 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
627 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
628 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
629 Add IS_EMAG check for ifunc dispatch.
630 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
631 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
632
633 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
634
635 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
636 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
637 Add emag.
638 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
639 New macro.
640
641 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
642
643 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
644
645 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
646
647 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
648 syscall-template file.
649
650 2019-01-31 Carlos O'Donell <carlos@redhat.com>
651 Torvald Riegel <triegel@redhat.com>
652 Rik Prohaska <prohaska7@gmail.com>
653
654 [BZ# 23844]
655 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
656 tst-rwlock-trywrlock-stall.
657 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
658 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
659 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
660 Set __wrphase_fute to 1 only if we started the write phase.
661 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
662 * nptl/tst-rwlock-trywrlock-stall.c: New file.
663 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
664 * support/xpthread_rwlock_destroy.c: New file.
665 * support/xthread.h: Declare xpthread_rwlock_destroy.
666
667 2019-02-01 Joseph Myers <joseph@codesourcery.com>
668
669 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
670 version to 4.0.2.
671
672 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
673
674 [BZ #24051]
675 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
676 * libio/fileops.c (_IO_new_file_underflow): Likewise
677 * libio/wfileops.c (_IO_wfile_underflow): Likewise
678 * libio/putchar.c (putchar): Likewise.
679 * libio/putchar_u.c (putchar_unlocked): Likewise.
680 * libio/putwchar.c (putchar): Likewise.
681 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
682 * libio/tst-bz24051.c: New test.
683 * libio/Makefile (tests): Add tst-bz24051
684
685 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
686
687 regex: fix read overrun [BZ #24114]
688 Problem found by AddressSanitizer, reported by Hongxu Chen in:
689 https://debbugs.gnu.org/34140
690 * posix/regexec.c (proceed_next_node):
691 Do not read past end of input buffer.
692
693 2019-01-31 Florian Weimer <fweimer@redhat.com>
694
695 [BZ #24059]
696 * nss/nss_files/files-alias.c (get_next_alias): Handle
697 continuation line without newline at the end.
698 * nss/tst-nss-files-alias-truncated.c: New file.
699 * nss/Makefile [$(build-shared)] (tests): Add
700 tst-nss-files-alias-truncated.
701 (tst-nss-files-alias-truncated): Link with libnss_files.so.
702 * support/namespace.h (struct support_chroot_configuration): Add
703 aliases member.
704 (struct support_chroot): Add path_aliases member.
705 * support/support_chroot.c (support_chroot_create): Handle
706 aliases.
707 (support_chroot_free): Free path_aliases.
708
709 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
710
711 * version.h (RELEASE): Set to "development".
712 (VERSION): Set to "2.29.9000".
713 * NEWS: Add section for 2.30.
714
715 * version.h (RELEASE): Set to "stable".
716 (VERSION): Set to "2.29".
717 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
718
719 * NEWS: Add the list of bugs fixed in 2.29.
720 * manual/contrib.texi: Update contributors list with some more
721 names.
722 * manual/install.texi: Update latest versions of packages
723 tested.
724 * INSTALL: Regenerated.
725
726 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
727
728 * po/be.po: Update translations.
729 * po/bg.po: Likewise.
730 * po/ca.po: Likewise.
731 * po/cs.po: Likewise.
732 * po/da.po: Likewise.
733 * po/de.po: Likewise.
734 * po/el.po: Likewise.
735 * po/eo.po: Likewise.
736 * po/es.po: Likewise.
737 * po/fi.po: Likewise.
738 * po/fr.po: Likewise.
739 * po/gl.po: Likewise.
740 * po/hr.po: Likewise.
741 * po/hu.po: Likewise.
742 * po/ia.po: Likewise.
743 * po/id.po: Likewise.
744 * po/it.po: Likewise.
745 * po/ja.po: Likewise.
746 * po/ko.po: Likewise.
747 * po/lt.po: Likewise.
748 * po/nb.po: Likewise.
749 * po/nl.po: Likewise.
750 * po/pl.po: Likewise.
751 * po/pt_BR.po: Likewise.
752 * po/ru.po: Likewise.
753 * po/rw.po: Likewise.
754 * po/sk.po: Likewise.
755 * po/sl.po: Likewise.
756 * po/sv.po: Likewise.
757 * po/tr.po: Likewise.
758 * po/uk.po: Likewise.
759 * po/vi.po: Likewise.
760 * po/zh_CN.po: Likewise.
761 * po/zh_TW.po: Likewise.
762
763 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
764
765 [BZ #24130]
766 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
767 of $f3 register on $y_is_neg path.
768
769 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
770
771 [BZ #24110]
772 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
773 sigaltstack.ss_flags.
774
775 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
776
777 [BZ #23758]
778 * manual/time.texi (strftime): Document "%Ey".
779 * time/strftime_l.c (__strftime_internal): Set the default width
780 padding with zero of "%Ey" to 2.
781
782 [BZ #24096]
783 * manual/time.texi (strftime): Document "%EC" and "%EY".
784 * time/Makefile (tests): Add tst-strftime2.
785 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
786 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
787 override padding for "%Ey".
788 If an optional flag ('_' or '-') is specified to "%EY", interpret the
789 "%Ey" in the subformat as if decorated with that flag.
790 * time/tst-strftime2.c: New file.
791
792 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
793
794 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
795 are not defined.
796
797 [BZ #24122]
798 * elf/Makefile (tests): Add tst-audit13.
799 (modules-names): Add tst-audit13mod1.
800 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
801 rule.
802 * elf/rtld.c (dl_main): Handle invalid audit module version.
803 * elf/tst-audit13.c: New file.
804 * elf/tst-audit13mod1.c: Likewise.
805
806 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
807
808 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
809 returned by __hurd_at_flags.
810 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
811 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
812 directly instead of __hurd_file_name_lookup.
813
814 2019-01-21 Joseph Myers <joseph@codesourcery.com>
815
816 * scripts/build-many-glibcs.py (Context.checkout): Default
817 binutils version to 2.32 branch.
818
819 2019-01-21 Florian Weimer <fweimer@redhat.com>
820
821 [BZ #20018]
822 CVE-2016-10739
823 resolv: Reject trailing characters in host names
824 * include/arpa/inet.h (__inet_aton_exact): Declare.
825 (inet_aton): Remove hidden prototype. No longer used internally.
826 * nscd/gai.c (__inet_aton): Do not define.
827 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
828 * nss/digits_dots.c (__inet_aton): Likewise.
829 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
830 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
831 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
832 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
833 (tst-resolv-trailing): Likewise.
834 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
835 libc.
836 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
837 Make static. Add endp parameter.
838 (__inet_aton_exact): New function.
839 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
840 (__inet_addr): Call inet_aton_end.
841 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
842 not just IPv6. Call __inet_aton_exact.
843 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
844 (tests): Make const. Add additional test cases with trailing
845 characters.
846 (do_test): Use array_length.
847 * resolv/tst-inet_aton_exact.c: New file.
848 * resolv/tst-resolv-trailing.c: Likewise.
849 * resolv/tst-resolv-nondecimal.c: Likewise.
850 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
851
852 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
853
854 [BZ# 24097]
855 CVE-2019-6488
856 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
857 Clear the upper 32 bits of RSI register.
858 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
859 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
860 and tst-size_t-wcsnlen.
861 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
862 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
863
864 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
865
866 [BZ# 24097]
867 CVE-2019-6488
868 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
869 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
870 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
871 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
872 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
873
874 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
875
876 [BZ# 24097]
877 CVE-2019-6488
878 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
879 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
880 * sysdeps/x86_64/strcmp.S: Likewise.
881 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
882 tst-size_t-strncmp and tst-size_t-wcsncmp.
883 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
884 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
885 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
886
887 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
888
889 [BZ# 24097]
890 CVE-2019-6488
891 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
892 RDX_LP for length. Clear the upper 32 bits of RDX register.
893 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
894 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
895 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
896 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
897
898 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
899
900 [BZ# 24097]
901 CVE-2019-6488
902 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
903 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
904 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
905 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
906
907 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
908
909 [BZ# 24097]
910 CVE-2019-6488
911 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
912 length. Clear the upper 32 bits of RDX register.
913 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
914 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
915 Likewise.
916 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
917 Likewise.
918 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
919 tst-size_t-wmemchr.
920 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
921
922 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
923
924 [BZ# 24097]
925 CVE-2019-6488
926 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
927 length. Clear the upper 32 bits of RDX register.
928 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
929 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
930 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
931 tst-size_t-wmemcmp.
932 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
933 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
934
935 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
936
937 [BZ# 24097]
938 CVE-2019-6488
939 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
940 upper 32 bits of RDX register.
941 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
942 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
943 tst-size_t-wmemchr.
944 * sysdeps/x86_64/x32/test-size_t.h: New file.
945 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
946 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
947
948 2019-01-18 Florian Weimer <fweimer@redhat.com>
949
950 [BZ #24112]
951 resolv: Do not send queries for non-host-names in nss_dns.
952 * resolv/nss_dns/dns-host.c (check_name): New function.
953 (_nss_dns_gethostbyname2_r): Use it.
954 (_nss_dns_gethostbyname_r): Likewise.
955 (_nss_dns_gethostbyname4_r): Likewise.
956
957 2019-01-21 Florian Weimer <fweimer@redhat.com>
958
959 * resolv/inet_addr.c: Reformat to GNU style.
960 (__inet_addr, __inet_aton): Update comment.
961
962 2019-01-18 Florian Weimer <fweimer@redhat.com>
963
964 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
965 ("malloc: Use current (C11-style) atomics for fastbin access").
966 This commit introduces a substantial performance regression on
967 POWER and Aarch64.
968 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
969 (REMOVE_FB): Define.
970 (_int_malloc): Use it and reindent.
971 (_int_free): Use CAS loop with
972 catomic_compare_and_exchange_val_rel.
973 (malloc_consolidate): Use atomic_exchange_acq.
974
975
976 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
977
978 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
979 -Wl,-z,now.
980 (LDFLAGS-tst-minsigstksz-2): Likewise.
981 (LDFLAGS-tst-minsigstksz-3): Likewise.
982 (LDFLAGS-tst-minsigstksz-3a): Likewise.
983 (LDFLAGS-tst-minsigstksz-4): Likewise.
984
985 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
986
987 * manual/time.texi (strftime): Fix the wording to "alternative" rather
988 than "alternate".
989
990 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
991
992 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
993
994 2019-01-16 Zack Weinberg <zackw@panix.com>
995
996 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
997 (xget_sigstack_location): New test support functions.
998 * support/xsigstack.c: New file, implementing them.
999 * support/tst-xsigstack.c: New test for them.
1000 * support/Makefile: Update.
1001
1002 * signal/tst-minsigstksz-1.c
1003 * signal/tst-minsigstksz-2.c
1004 * signal/tst-minsigstksz-3.c
1005 * signal/tst-minsigstksz-3a.c
1006 * signal/tst-minsigstksz-4.c: New tests.
1007 * signal/Makefile: Run them.
1008
1009 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
1010
1011 * po/libc.pot: Regenerate.
1012
1013 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1014
1015 * math/libm-test-fma.inc (fma_test_data): Set
1016 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
1017
1018 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1019
1020 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
1021 (do_test): Changed __vector __int128_t to __vector unsigned int.
1022
1023 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1024
1025 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1026 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1027 stpcpy-avx2 and stpncpy-avx2.
1028 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1029 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1030 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1031 and __stpncpy_avx2.
1032 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1033 ifunc-strcpy.h}: rename header for a more generic name.
1034 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1035 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1036 AVX unaligned load is fast and vzeroupper is preferred.
1037 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1038 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1039 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1040 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1041 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1042 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1043
1044 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1045
1046 * argp/argp-help.c: Fix typo in comment.
1047 * misc/sys/cdefs.h: Likewise.
1048 * posix/regexec.c (sift_states_iter_mb): Likewise.
1049 * socket/sockatmark.c: Likewise.
1050 * socket/sys/socket.h: Likewise.
1051 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1052 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1053 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1054 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1055 * sysdeps/unix/sockatmark.c: Likewise.
1056 * time/strptime_l.c: Likewise.
1057
1058 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1059
1060 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1061 missing space after the cast of "_NL_CURRENT".
1062
1063 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1064
1065 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1066 ifdef to fix read of VSCR.
1067 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1068 tst-ucontext-ppc64-vscr.c to test list.
1069 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1070
1071 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1072
1073 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1074 fall-through.
1075
1076 2019-01-09 Jim Wilson <jimw@sifive.com>
1077
1078 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1079
1080 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1081
1082 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1083 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1084 __memcpy_falkor for ares.
1085 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1086 Add new define.
1087 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1088 Add ares cpu.
1089
1090 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1091
1092 [BZ #24066]
1093 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1094 4_FP_W_TYPEs are used for IEEE quad precision.
1095 * soft-fp/extendhftf2.c: Likewise.
1096 * soft-fp/extendsftf2.c: Likewise.
1097 * soft-fp/extendxftf2.c: Likewise.
1098 * soft-fp/trunctfdf2.c: Likewise.
1099 * soft-fp/trunctfhf2.c: Likewise.
1100 * soft-fp/trunctfsf2.c: Likewise.
1101 * soft-fp/trunctfxf2.c: Likewise.
1102 * sysdeps/alpha/ots_cvttx.c: Likewise.
1103 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1104 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1105 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1106 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1107 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1108 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1109 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1110 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1111 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1112 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1113 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1114 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1115 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1116 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1117 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1118 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1119 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1120
1121 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1122
1123 [BZ #24024]
1124 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1125 code with -fmath-errno.
1126 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1127 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1128 * string/test-strerror-errno.c: New file.
1129
1130 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1131
1132 [BZ #24046]
1133 * localedata/locales/en_US (date_fmt): Add, set to
1134 "%a %d %b %Y %r %Z".
1135
1136 2019-01-07 Florian Weimer <fweimer@redhat.com>
1137
1138 [BZ #24063]
1139 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1140 instead of @var{errno}.
1141 (Parsing of Integers): Likewise.
1142 (Parsing of Floats): Likewise.
1143 * manual/filesys.texi (Working with Directory Trees): Likewise.
1144 (Temporary Files): Likewise.
1145 * manual/job.texi (Terminal Access Functions): Likewise.
1146 * manual/llio.texi (Synchronizing I/O): Likewise.
1147 * manual/math.texi (SVID Random): Likewise.
1148 * manual/message.texi (The catgets Functions): Likewise.
1149 (Translation with gettext): Likewise.
1150 (Locating gettext catalog): Likewise.
1151 (Charset conversion in gettext): Likewise.
1152 * manual/nss.texi (NSS Module Function Internals): Likewise.
1153 * manual/search.texi (Hash Search Function): Likewise.
1154 * manual/setjmp.texi (System V contexts): Likewise.
1155 * manual/time.texi (Sleeping): Likewise.
1156 * manual/users.texi (Lookup User): Likewise.
1157 (Lookup Group): Likewise.
1158
1159 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1160
1161 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1162 fix typo.
1163
1164 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1165
1166 [BZ #19444]
1167 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1168 __builtin_unreachable for default case in switch.
1169 (__ieee754_yn): Likewise.
1170 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1171 (__ieee754_ynl): Likewise.
1172 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1173 (__ieee754_ynl): Likewise.
1174 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1175 (__ieee754_ynl): Likewise.
1176
1177 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1178
1179 * manual/maint.texi: Use @{ and @}.
1180
1181 2019-01-04 Florian Weimer <fweimer@redhat.com>
1182
1183 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1184 function.
1185 (do_in_chroot_1): Call it.
1186 (run_chroot_tests):
1187 Improve error reporting in case it is not possible to create a
1188 collision for the PTY name required by the test.
1189
1190 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1191
1192 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1193 lll_wait_tid with timeout.
1194 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1195 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1196 futex_reltimed_wait_cancelable for cancelabla mode.
1197 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1198 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1199 macros.
1200 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1201 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1202 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1203 SYSCALL_CANCEL_NCS): New macro.
1204 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1205 (lll_timedwait_tid): Remove macro.
1206 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1207 Likewise.
1208 (lll_timedwait_tid): Likewise.
1209 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1210 Likewise.
1211 (lll_timedwait_tid): Likewise.
1212 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1213 Likewise.
1214 (lll_timedwait_tid): Likewise.
1215 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1216 Use INTERNAL_SYSCALL_CANCEL.
1217 * sysdeps/unix/sysv/linux/futex-internal.h
1218 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1219 instead of __pthread_{enable,disable}_asynccancel.
1220 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1221 (lll_futex_wait_cancel): New macro.
1222
1223 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1224 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1225
1226 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1227 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1228
1229 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1230 in backtrace analysis.
1231 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1232 side-effects.
1233 (tf_send): Likewise.
1234
1235 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1236 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1237 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1238 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1239 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1240 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1241 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1242 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1243 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1244 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1245 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1246 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1247 Likewise.
1248 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1249 tst-cancel-wrappers.sh.
1250 (generated): Remove tst-cancel-wrappers.out.
1251 (tst-cancel-wrappers.out): Remove rule.
1252 * nptl/tst-cancel-wrappers.sh: Remove file.
1253
1254 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1255
1256 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1257 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1258 Update.
1259
1260 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1261
1262 [BZ #23640]
1263 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1264 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1265 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1266 close-on-exec reset for adddup2 file action.
1267 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1268
1269 2019-01-03 Zack Weinberg <zackw@panix.com>
1270
1271 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1272 parameter. Only use deprecated scanf when __USE_GNU is defined
1273 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1274 than 201103L, whichever is relevant for the language being compiled.
1275
1276 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1277 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1278 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1279 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1280 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1281
1282 * libio/iovsscanf.c
1283 * libio/fwscanf.c
1284 * libio/iovswscanf.c
1285 * libio/swscanf.c
1286 * libio/vscanf.c
1287 * libio/vwscanf.c
1288 * libio/wscanf.c
1289 * stdio-common/fscanf.c
1290 * stdio-common/scanf.c
1291 * stdio-common/vfscanf.c
1292 * stdio-common/vfwscanf.c
1293 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1294 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1295 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1296 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1297 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1298 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1299 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1300 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1301 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1302 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1303 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1304 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1305 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1306 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1307 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1308
1309 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1310 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1311 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1312 not sscanf.
1313 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1314 with a preprocessor macro.
1315
1316 * stdio-common/bug21.c, stdio-common/scanf14.c:
1317 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1318 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1319 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1320 to xscanf, xfscanf, xsscanf.
1321
1322 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1323 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1324 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1325 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1326 xfscanf, xsscanf.
1327 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1328 override feature selection macros or provide definitions of u_char etc.
1329 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1330 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1331 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1332 with -std=gnu89.
1333
1334 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1335
1336 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1337 bits/termios-misc.h.
1338 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1339 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1340 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1341 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1342 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1343 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1344
1345 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
1346 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1347 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
1348 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
1349 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
1350 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
1351 termios-misc.h.
1352 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
1353 (sysdep_headers): Add termios-misc.h.
1354
1355 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1356 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1357 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1358
1359 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1360 termios-tcflow.h.
1361 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1362 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1363 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1364 TCSAFLUSH): Move to termios-tcflow.h.
1365 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1366 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1367 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1368 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1369
1370 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1371 termios-c_lflag.h.
1372 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
1373 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
1374 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
1375 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
1376 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
1377 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
1378 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
1379 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
1380 Likewise.
1381 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1382 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1383 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1384 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1385
1386 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1387 termios-c_cflag.h.
1388 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
1389 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
1390 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
1391 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
1392 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
1393 termios-c_cflag.h.
1394 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1395 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1396 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1397 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1398
1399 [BZ #23783]
1400 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1401 termios-baud.h.
1402 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
1403 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
1404 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
1405 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
1406 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
1407 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
1408 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
1409 __MAX_BAUD): Move to termios-baud.h.
1410 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
1411 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
1412 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1413 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1414 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1415
1416 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
1417 termios-c_oflag.h.
1418 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
1419 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
1420 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
1421 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
1422 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
1423 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
1424 termios-c_oflag.h.
1425 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
1426 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
1427 FFR1): Likewise.
1428 [USE_MISC] (XTABS): Likewise.
1429 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1430 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1431 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1432 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
1433
1434 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1435 termios-c_iflag.h.
1436 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
1437 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
1438 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
1439 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
1440 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
1441 IUTF8): Move to termios-c_iflag.h.
1442 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1443 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1444 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1445 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1446
1447 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1448 termios-cc.h.
1449 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
1450 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
1451 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
1452 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
1453 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
1454 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
1455 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
1456 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
1457 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1458 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1459 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1460 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1461
1462 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
1463 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
1464 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
1465 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
1466 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1467 termios-struct.h.
1468 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
1469 termios-struct.h.
1470 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
1471 Likewise.
1472 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
1473 Likewise.
1474 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
1475 Likewise.
1476 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
1477 Likewise.
1478 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
1479 _HAVE_C_OSPEED): Define.
1480 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
1481 _HAVE_C_OSPEED): Likewise.
1482 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
1483 _HAVE_C_OSPEED): Likewise.
1484 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
1485 (cfsetospeed): Check for define value instead of existence.
1486 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
1487 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1488 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
1489 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1490 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
1491
1492 [BZ #17783]
1493 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
1494 Define.
1495 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1496 (TIOCSER_TEMT): Likewise.
1497 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
1498 (TEOCSER_TEMT): Likewise.
1499
1500 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
1501
1502 [BZ #24011]
1503 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
1504
1505 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1506
1507 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1508
1509 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1510
1511 * sysdeps/htl/pt-barrierattr-setpshared.c
1512 (pthread_barrierattr_setpshared): Add stub warning.
1513 * sysdeps/htl/pt-condattr-setpshared.c
1514 (pthread_condattr_setpshared): Likewise.
1515 * sysdeps/htl/pt-mutexattr-setpshared.c
1516 (pthread_mutexattr_setpshared): Likewise.
1517 * sysdeps/htl/pt-rwlockattr-setpshared.c
1518 (pthread_rwlockattr_setpshared): Likewise.
1519 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
1520 (pthread_mutexattr_setpshared): Likewise.
1521
1522 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1523
1524 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
1525 constants to match with Linux 4.20.
1526
1527 * sysdeps/mips/mips32/libm-test-ulps: Update.
1528 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
1529
1530 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
1531
1532 [BZ #24034]
1533 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
1534 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
1535 than __typeof (...) for the a_ptr variable.
1536
1537 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1538
1539 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
1540 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
1541 * libio/Makefile (tests): Add tst-sprintf-ub and
1542 tst-sprintf-chk-ub.
1543 (CFLAGS-tst-sprintf-ub.c): New variable.
1544 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
1545 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
1546 destination buffer and check for overflows in fortified mode.
1547 * libio/libioP.h (PRINTF_CHK): New macro.
1548 * libio/tst-sprintf-chk-ub.c: New file.
1549 * libio/tst-sprintf-ub.c: Likewise.
1550
1551 2019-01-02 Florian Weimer <fweimer@redhat.com>
1552
1553 [BZ #24018]
1554 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
1555 failure.
1556
1557 2019-01-02 Florian Weimer <fweimer@redhat.com>
1558
1559 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
1560
1561 2019-01-01 Joseph Myers <joseph@codesourcery.com>
1562
1563 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
1564 macro.
1565
1566 * sysdeps/unix/sysv/linux/netpacket/packet.h
1567 (PACKET_IGNORE_OUTGOING): New macro.
1568
1569 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
1570 macro.
1571
1572 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1573 version to 4.20.
1574 (riscv_flush_icache): New syscall.
1575
1576 * manual/texinfo.tex: Update to version 2018-12-28.17 with
1577 trailing whitespace removed.
1578 * scripts/config.guess: Update to version 2019-01-01.
1579 * scripts/config.sub: Update to version 2019-01-01.
1580 * scripts/move-if-change: Update from gnulib.
1581
1582 * NEWS: Update copyright dates.
1583 * catgets/gencat.c (print_version): Likewise.
1584 * csu/version.c (banner): Likewise.
1585 * debug/catchsegv.sh: Likewise.
1586 * debug/pcprofiledump.c (print_version): Likewise.
1587 * debug/xtrace.sh (do_version): Likewise.
1588 * elf/ldconfig.c (print_version): Likewise.
1589 * elf/ldd.bash.in: Likewise.
1590 * elf/pldd.c (print_version): Likewise.
1591 * elf/sotruss.sh: Likewise.
1592 * elf/sprof.c (print_version): Likewise.
1593 * iconv/iconv_prog.c (print_version): Likewise.
1594 * iconv/iconvconfig.c (print_version): Likewise.
1595 * locale/programs/locale.c (print_version): Likewise.
1596 * locale/programs/localedef.c (print_version): Likewise.
1597 * login/programs/pt_chown.c (print_version): Likewise.
1598 * malloc/memusage.sh (do_version): Likewise.
1599 * malloc/memusagestat.c (print_version): Likewise.
1600 * malloc/mtrace.pl: Likewise.
1601 * manual/libc.texinfo: Likewise.
1602 * nptl/version.c (banner): Likewise.
1603 * nscd/nscd.c (print_version): Likewise.
1604 * nss/getent.c (print_version): Likewise.
1605 * nss/makedb.c (print_version): Likewise.
1606 * posix/getconf.c (main): Likewise.
1607 * scripts/test-installation.pl: Likewise.
1608 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1609
1610 * All files with FSF copyright notices: Update copyright dates
1611 using scripts/update-copyrights.
1612 * locale/programs/charmap-kw.h: Regenerated.
1613 * locale/programs/locfile-kw.h: Likewise.
1614
1615 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1616
1617 * timezone/zdump.c: Update from tzcode 2018i.
1618 * timezone/zic.c: Likewise.
1619
1620 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
1621
1622 regex: improve Gnulib port to AIX
1623 From the glibc point of view, this removes duplicate macro
1624 definitions and is obviously safe.
1625 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
1626 * posix/regex_internal.h:
1627 (__attribute__, __attribute_warn_unused_result__):
1628 Remove; already defined elsewhere.
1629
1630 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
1631
1632 [BZ #24027]
1633 * malloc/malloc.c (_int_realloc): Always call memcpy for the
1634 copying operation. (ncopies had the wrong type, resulting in an
1635 integer wraparound and too few elements being copied.)
1636
1637 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
1638
1639 [BZ #24022]
1640 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
1641 <asm/syscalls.h> exists with __has_include__ before including it.
1642
1643 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1644
1645 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1646 version to 4.20.
1647
1648 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
1649
1650 * hurd/lookup-retry: Include <unistd.h>.
1651 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
1652 Release it on return. Handle "pid" magical lookup retry.
1653
1654 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1655
1656 [BZ #10496]
1657 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
1658 (t_fmt_ampm): Likewise.
1659 * localedata/locales/aa_ER (t_fmt): Likewise.
1660 (t_fmt_ampm): Likewise.
1661 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
1662 (t_fmt_ampm): Likewise.
1663 * localedata/locales/aa_ET (t_fmt): Likewise.
1664 (t_fmt_ampm): Likewise.
1665 * localedata/locales/am_ET (t_fmt): Likewise.
1666 (t_fmt_ampm): Likewise.
1667 * localedata/locales/byn_ER (t_fmt): Likewise.
1668 (t_fmt_ampm): Likewise.
1669 * localedata/locales/om_ET (t_fmt): Likewise.
1670 (t_fmt_ampm): Likewise.
1671 * localedata/locales/sid_ET (t_fmt): Likewise.
1672 (t_fmt_ampm): Likewise.
1673 * localedata/locales/so_DJ (t_fmt): Likewise.
1674 (t_fmt_ampm): Likewise.
1675 * localedata/locales/so_ET (t_fmt): Likewise.
1676 (t_fmt_ampm): Likewise.
1677 * localedata/locales/so_SO (t_fmt): Likewise.
1678 (t_fmt_ampm): Likewise.
1679 * localedata/locales/ti_ER (t_fmt): Likewise.
1680 (t_fmt_ampm): Likewise.
1681 * localedata/locales/ti_ET (t_fmt): Likewise.
1682 (t_fmt_ampm): Likewise.
1683 * localedata/locales/tig_ER (t_fmt): Likewise.
1684 (t_fmt_ampm): Likewise.
1685 * localedata/locales/wal_ET (t_fmt): Likewise.
1686 (t_fmt_ampm): Likewise.
1687
1688 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
1689 * localedata/locales/ar_IN (t_fmt): Likewise.
1690 * localedata/locales/bhb_IN (t_fmt): Likewise.
1691 * localedata/locales/bho_IN (t_fmt): Likewise.
1692 * localedata/locales/bi_VU (t_fmt): Likewise.
1693 * localedata/locales/bn_BD (t_fmt): Likewise.
1694 * localedata/locales/bn_IN (t_fmt): Likewise.
1695 * localedata/locales/brx_IN (t_fmt): Likewise.
1696 * localedata/locales/doi_IN (t_fmt): Likewise.
1697 * localedata/locales/en_HK (t_fmt): Likewise.
1698 (t_fmt_ampm): Likewise.
1699 * localedata/locales/en_IN (t_fmt): Likewise.
1700 * localedata/locales/en_PH (t_fmt): Likewise.
1701 * localedata/locales/gu_IN (t_fmt): Likewise.
1702 * localedata/locales/hi_IN (t_fmt): Likewise.
1703 * localedata/locales/hif_FJ (t_fmt): Likewise.
1704 * localedata/locales/hne_IN (t_fmt): Likewise.
1705 * localedata/locales/kn_IN (t_fmt): Likewise.
1706 * localedata/locales/kok_IN (t_fmt): Likewise.
1707 * localedata/locales/ks_IN (t_fmt): Likewise.
1708 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
1709 * localedata/locales/mag_IN (t_fmt): Likewise.
1710 * localedata/locales/mai_IN (t_fmt): Likewise.
1711 * localedata/locales/mjw_IN (t_fmt): Likewise.
1712 * localedata/locales/ml_IN (t_fmt): Likewise.
1713 * localedata/locales/mni_IN (t_fmt): Likewise.
1714 * localedata/locales/mr_IN (t_fmt): Likewise.
1715 * localedata/locales/ms_MY (t_fmt): Likewise.
1716 * localedata/locales/pa_IN (t_fmt): Likewise.
1717 * localedata/locales/raj_IN (t_fmt): Likewise.
1718 * localedata/locales/sa_IN (t_fmt): Likewise.
1719 * localedata/locales/sat_IN (t_fmt): Likewise.
1720 * localedata/locales/sd_IN (t_fmt): Likewise.
1721 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
1722 * localedata/locales/tcy_IN (t_fmt): Likewise.
1723 * localedata/locales/the_NP (t_fmt): Likewise.
1724 * localedata/locales/to_TO (t_fmt): Likewise.
1725 * localedata/locales/ur_IN (t_fmt): Likewise.
1726
1727 * localedata/locales/hif_FJ (d_t_fmt): Set to
1728 "%A %d %b %Y %I:%M:%S %p".
1729 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
1730
1731 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
1732 * localedata/locales/ar_BH (t_fmt): Likewise.
1733 * localedata/locales/ar_DZ (t_fmt): Likewise.
1734 * localedata/locales/ar_EG (t_fmt): Likewise.
1735 * localedata/locales/ar_IQ (t_fmt): Likewise.
1736 * localedata/locales/ar_JO (t_fmt): Likewise.
1737 * localedata/locales/ar_KW (t_fmt): Likewise.
1738 * localedata/locales/ar_LB (t_fmt): Likewise.
1739 * localedata/locales/ar_LY (t_fmt): Likewise.
1740 * localedata/locales/ar_OM (t_fmt): Likewise.
1741 * localedata/locales/ar_QA (t_fmt): Likewise.
1742 * localedata/locales/ar_SD (t_fmt): Likewise.
1743 * localedata/locales/ar_SS (t_fmt): Likewise.
1744 * localedata/locales/ar_SY (t_fmt): Likewise.
1745 * localedata/locales/ar_TN (t_fmt): Likewise.
1746 * localedata/locales/ar_YE (t_fmt): Likewise.
1747
1748 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
1749 (t_fmt_ampm): Likewise.
1750 * localedata/locales/gez_ET (t_fmt): Likewise.
1751 (t_fmt_ampm): Likewise.
1752
1753 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
1754 (t_fmt_ampm): Likewise.
1755 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
1756
1757 * localedata/locales/zh_HK (t_fmt):
1758 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
1759
1760 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
1761 because this locale does not use the 12-hour clock.
1762 (t_fmt): Set to "%Z %H:%M:%S".
1763 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
1764
1765 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
1766 because this locale does not use the 12-hour clock.
1767 (t_fmt): Set to "%H:%M:%S %Z".
1768 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
1769
1770 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
1771 because this locale does not use the 12-hour clock.
1772 (t_fmt): Set to "%T".
1773 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
1774 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
1775
1776 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
1777 because this locale does not use the 12-hour clock.
1778 (t_fmt): Set to "%H:%M:%S %Z".
1779 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
1780
1781 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
1782 because this locale does not use the 12-hour clock.
1783 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
1784 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
1785
1786 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1787
1788 [BZ #10496]
1789 [BZ #23724]
1790 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
1791 (t_fmt_ampm): Likewise.
1792 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
1793 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
1794 (d_fmt): Set to "%-d.%-m.%y".
1795
1796 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1797
1798 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
1799 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
1800 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
1801 Likewise.
1802 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
1803 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
1804 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
1805 function.
1806 * support/blob_repeat.c (check_mul_overflow_size_t,
1807 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
1808
1809 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
1810
1811 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
1812
1813 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
1814
1815 regex: simplify Gnulib port
1816 This simplifies the code, by removing stuff intended for porting
1817 to Gnulib but no longer needed there.
1818 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
1819 uses of libc_hidden_def, weak_alias.
1820 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
1821 _Restrict_ except for public-facing headers.
1822 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
1823 Remove; already defined elsewhere.
1824 * posix/regex.c, posix/regex_internal.h:
1825 Use __GNUC_PREREQ instead of rolling our own.
1826 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
1827
1828 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
1829
1830 * benchtests/bench-strlen.c (generic_strlen): New function.
1831 (memchr_strlen): New function.
1832
1833 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1834
1835 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
1836 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
1837 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
1838
1839 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1840
1841 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1842
1843 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1844
1845 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
1846 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
1847 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
1848 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
1849 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
1850 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
1851 <sysdeps/ieee754/flt-32/s_sincosf.c>.
1852
1853 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1854
1855 [BZ #24023]
1856 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
1857 PLT reference in libc.so.
1858 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
1859 _Q_lltoq and _Q_qtod PLT references in libc.so.
1860
1861 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
1862
1863 * benchtests/bench-memchr.c: Cleanup defines.
1864 * benchtests/bench-memcmp.c: Likewise.
1865 * benchtests/bench-memset.c: Likewise.
1866 * benchtests/bench-memset-large.c: Likewise.
1867 * benchtests/bench-memset-walk.c: Likewise.
1868 * benchtests/bench-stpcpy.c: Likewise.
1869 * benchtests/bench-stpncpy.c: Likewise.
1870 * benchtests/bench-strcat.c: Likewise.
1871 * benchtests/bench-strchr.c: Likewise.
1872 * benchtests/bench-strcmp.c: Likewise.
1873 * benchtests/bench-strcpy.c: Likewise.
1874 * benchtests/bench-strcspn.c: Likewise.
1875 * benchtests/bench-string.h: Likewise.
1876 * benchtests/bench-strlen.c: Likewise.
1877 * benchtests/bench-strncat.c: Likewise.
1878 * benchtests/bench-strncmp.c: Likewise.
1879 * benchtests/bench-strncpy.c: Likewise.
1880 * benchtests/bench-strnlen.c: Likewise.
1881 * benchtests/bench-strpbrk.c: Likewise.
1882 * benchtests/bench-strrchr.c: Likewise.
1883 * benchtests/bench-strspn.c: Likewise.
1884
1885 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1886
1887 * stdlib/longlong.h: Update from GCC.
1888
1889 [BZ #23993]
1890 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
1891 * configure: Regenerated.
1892 * manual/install.texi (Tools for Compilation): Update minimum GCC
1893 version.
1894 * INSTALL: Regenerated.
1895
1896 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
1897
1898 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
1899
1900 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
1901
1902 * malloc/malloc.c (mremap_chunk): Additional checks.
1903
1904 2018-12-21 Mao Han <han_mao@c-sky.com>
1905
1906 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
1907 * scripts/build-many-glibcs.py: Add C-SKY targets.
1908 * sysdeps/csky/Implies: New file.
1909 * sysdeps/csky/Makefile: Likewise.
1910 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
1911 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
1912 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
1913 * sysdeps/csky/abiv2/memcmp.S: Likewise.
1914 * sysdeps/csky/abiv2/memcpy.S: Likewise.
1915 * sysdeps/csky/abiv2/memmove.S: Likewise.
1916 * sysdeps/csky/abiv2/memset.S: Likewise.
1917 * sysdeps/csky/abiv2/setjmp.S: Likewise.
1918 * sysdeps/csky/abiv2/start.S: Likewise.
1919 * sysdeps/csky/abiv2/strcmp.S: Likewise.
1920 * sysdeps/csky/abiv2/strcpy.S: Likewise.
1921 * sysdeps/csky/abiv2/strlen.S: Likewise.
1922 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
1923 * sysdeps/csky/abort-instr.h: Likewise.
1924 * sysdeps/csky/atomic-machine.h: Likewise.
1925 * sysdeps/csky/bits/endian.h: Likewise.
1926 * sysdeps/csky/bits/fenv.h: Likewise.
1927 * sysdeps/csky/bits/link.h: Likewise.
1928 * sysdeps/csky/bits/setjmp.h: Likewise.
1929 * sysdeps/csky/bsd-_setjmp.S: Likewise.
1930 * sysdeps/csky/bsd-setjmp.S: Likewise.
1931 * sysdeps/csky/configure: Likewise.
1932 * sysdeps/csky/configure.ac: Likewise.
1933 * sysdeps/csky/dl-machine.h: Likewise.
1934 * sysdeps/csky/dl-procinfo.c: Likewise.
1935 * sysdeps/csky/dl-procinfo.h: Likewise.
1936 * sysdeps/csky/dl-sysdep.h: Likewise.
1937 * sysdeps/csky/dl-tls.h: Likewise.
1938 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
1939 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
1940 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
1941 * sysdeps/csky/fpu/fegetenv.c: Likewise.
1942 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
1943 * sysdeps/csky/fpu/fegetmode.c: Likewise.
1944 * sysdeps/csky/fpu/fegetround.c: Likewise.
1945 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
1946 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
1947 * sysdeps/csky/fpu/fenv_private.h: Likewise.
1948 * sysdeps/csky/fpu/fesetenv.c: Likewise.
1949 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
1950 * sysdeps/csky/fpu/fesetmode.c: Likewise.
1951 * sysdeps/csky/fpu/fesetround.c: Likewise.
1952 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
1953 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
1954 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
1955 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
1956 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
1957 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
1958 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
1959 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
1960 * sysdeps/csky/fpu_control.h: Likewise.
1961 * sysdeps/csky/gccframe.h: Likewise.
1962 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
1963 * sysdeps/csky/ldsodefs.h: Likewise.
1964 * sysdeps/csky/libc-tls.c: Likewise.
1965 * sysdeps/csky/linkmap.h: Likewise.
1966 * sysdeps/csky/machine-gmon.h: Likewise.
1967 * sysdeps/csky/memusage.h: Likewise.
1968 * sysdeps/csky/nofpu/Implies: Likewise.
1969 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
1970 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
1971 * sysdeps/csky/nptl/Makefile: Likewise.
1972 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
1973 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
1974 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
1975 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
1976 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
1977 * sysdeps/csky/nptl/tls.h: Likewise.
1978 * sysdeps/csky/preconfigure: Likewise.
1979 * sysdeps/csky/sfp-machine.h: Likewise.
1980 * sysdeps/csky/sotruss-lib.c: Likewise.
1981 * sysdeps/csky/stackinfo.h: Likewise.
1982 * sysdeps/csky/sysdep.h: Likewise.
1983 * sysdeps/csky/tininess.h: Likewise.
1984 * sysdeps/csky/tst-audit.h: Likewise.
1985 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
1986 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
1987 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
1988 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
1989 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
1990 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
1991 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
1992 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
1993 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
1994 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
1995 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
1996 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
1997 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
1998 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
1999 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2000 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2001 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2002 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2003 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2004 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2005 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2006 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2007 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2008 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2009 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2010 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2011 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2012 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2013 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2014 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
2015 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
2016 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
2017 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
2018 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
2019 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
2020 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2021 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
2022 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2023 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2024 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2025 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2026 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2027 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2028 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2029
2030 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2031
2032 * include/time.h (__difftime64): Add.
2033 * time/difftime.c (subtract): convert to 64-bit time.
2034 * time/difftime.c (__difftime64): Add.
2035 * time/difftime.c (__difftime): Wrap around __difftime64.
2036
2037 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2038
2039 * manual/examples/add.c: Remove redundant "if not".
2040 * manual/examples/argp-ex1.c: Likewise.
2041 * manual/examples/argp-ex2.c: Likewise.
2042 * manual/examples/argp-ex3.c: Likewise.
2043 * manual/examples/argp-ex4.c: Likewise.
2044 * manual/examples/atexit.c: Likewise.
2045 * manual/examples/db.c: Likewise.
2046 * manual/examples/dir.c: Likewise.
2047 * manual/examples/dir2.c: Likewise.
2048 * manual/examples/execinfo.c: Likewise.
2049 * manual/examples/filecli.c: Likewise.
2050 * manual/examples/filesrv.c: Likewise.
2051 * manual/examples/fmtmsgexpl.c: Likewise.
2052 * manual/examples/genpass.c: Likewise.
2053 * manual/examples/inetcli.c: Likewise.
2054 * manual/examples/inetsrv.c: Likewise.
2055 * manual/examples/isockad.c: Likewise.
2056 * manual/examples/longopt.c: Likewise.
2057 * manual/examples/memopen.c: Likewise.
2058 * manual/examples/memstrm.c: Likewise.
2059 * manual/examples/mkdirent.c: Likewise.
2060 * manual/examples/mkfsock.c: Likewise.
2061 * manual/examples/mkisock.c: Likewise.
2062 * manual/examples/mygetpass.c: Likewise.
2063 * manual/examples/pipe.c: Likewise.
2064 * manual/examples/popen.c: Likewise.
2065 * manual/examples/rprintf.c: Likewise.
2066 * manual/examples/search.c: Likewise.
2067 * manual/examples/select.c: Likewise.
2068 * manual/examples/setjmp.c: Likewise.
2069 * manual/examples/sigh1.c: Likewise.
2070 * manual/examples/sigusr.c: Likewise.
2071 * manual/examples/stpcpy.c: Likewise.
2072 * manual/examples/strdupa.c: Likewise.
2073 * manual/examples/strftim.c: Likewise.
2074 * manual/examples/subopt.c: Likewise.
2075 * manual/examples/swapcontext.c: Likewise.
2076 * manual/examples/termios.c: Likewise.
2077 * manual/examples/testopt.c: Likewise.
2078 * manual/examples/testpass.c: Likewise.
2079 * manual/examples/timeval_subtract.c: Likewise.
2080
2081 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2082
2083 * sysdeps/x86/fpu/math_private.h: New file.
2084 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2085
2086 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2087 definition.
2088 (cosh): Likewise.
2089 (tanh): Likewise.
2090
2091 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2092
2093 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2094 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2095 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2096 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2097 fields.
2098 (_dl_show_auxv): Give a special treatment to
2099 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2100 and AT_L3_CACHEGEOMETRY.
2101 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2102 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2103 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2104 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2105
2106 2018-12-19 Andreas Schwab <schwab@suse.de>
2107
2108 * nscd/connections.c (check_use): Don't abort on invalid len.
2109
2110 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2111
2112 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2113 values in the 64bit value cases.
2114
2115 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2116
2117 * include/time.h
2118 (__ctime64_r): Add.
2119 * time/ctime_r.c
2120 (__ctime64_r): Add.
2121 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2122
2123 * include/time.h
2124 (__ctime64): Add.
2125 * time/gmtime.c
2126 (__ctime64): Add.
2127 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2128
2129 * include/time.h
2130 (__gmtime64_r): Add.
2131 * time/gmtime.c
2132 (__gmtime64_r): Add.
2133 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2134
2135 * include/time.h
2136 (__gmtime64): Add.
2137 * time/gmtime.c
2138 (__gmtime64): Add.
2139 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2140
2141 * include/time.h
2142 (__localtime64_r): Add.
2143 * time/localtime.c
2144 (__localtime64_r): Add.
2145 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2146
2147 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2148
2149 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2150 kernel_sigction definition.
2151
2152 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2153
2154 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2155
2156 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2157 __syscall_rt_sigaction.
2158 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2159 (kernel_sigaction): Use Linux generic defintion.
2160 (STUB): Define.
2161 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2162 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2163 (__syscall_rt_sigaction): Remove implementation.
2164 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2165 hidden.
2166 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2167 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2168 INTERNAL_SYSCALL): Remove definitions.
2169 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2170 action and signal set size.
2171 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2172 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2173
2174 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2175 James Clarke <jrtc27@jrtc27.com>
2176
2177 [BZ #23967]
2178 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2179 Define if SA_RESTORER is defined.
2180 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2181 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2182 already defined.
2183 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2184 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2185 definitions.
2186 (HAS_SA_RESTORER): Define.
2187 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2188 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2189 (HAS_SA_RESTORER): Define.
2190 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2191 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2192 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2193 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2194 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2195
2196 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2197
2198 * sysdeps/unix/sysv/linux/kernel-features.h
2199 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2200 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2201 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2202 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2203 (__ASSUME_ST_INO_64_BIT): Likewise.
2204 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2205 <kernel-features.h>.
2206 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2207 Remove conditional code.
2208 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2209 <kernel-features.h>.
2210 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2211 Remove conditional code.
2212 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2213 <kernel-features.h>.
2214 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2215 Remove conditional code.
2216 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2217 <kernel-features.h>.
2218 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2219 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2220
2221 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2222
2223 * sysdeps/s390/multiarch/ifunc-resolve.h
2224 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2225 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2226 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2227 Delete macro definition.
2228 (s390_libc_ifunc_init): Rename to
2229 s390_libc_ifunc_expr_stfle_init.
2230 * sysdeps/s390/bzero: Use
2231 s390_libc_ifunc_expr_stfle_init instead of
2232 s390_libc_ifunc_init.
2233 * sysdeps/s390/memcmp.c: Likewise.
2234 * sysdeps/s390/memcpy.c: Likewise.
2235 * sysdeps/s390/mempcpy.c: Likewise.
2236 * sysdeps/s390/memset.c: Likewise.
2237
2238 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2239
2240 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2241 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2242
2243 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2244
2245 * sysdeps/s390/multiarch/Makefile
2246 (sysdep_routines): Remove wmemcmp variants.
2247 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2248 * sysdeps/s390/multiarch/ifunc-impl-list.c
2249 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2250 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2251 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2252 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2253 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2254 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2255 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2256 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2257
2258 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2259
2260 * sysdeps/s390/multiarch/Makefile
2261 (sysdep_routines): Remove wmemset variants.
2262 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2263 * sysdeps/s390/multiarch/ifunc-impl-list.c
2264 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2265 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2266 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2267 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2268 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2269 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2270 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2271 * sysdeps/s390/ifunc-wmemset.h: New file.
2272
2273 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2274
2275 * sysdeps/s390/multiarch/Makefile
2276 (sysdep_routines): Remove wmemchr variants.
2277 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2278 * sysdeps/s390/multiarch/ifunc-impl-list.c
2279 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2280 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2281 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2282 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2283 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2284 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2285 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2286 * sysdeps/s390/ifunc-wmemchr.h: New file.
2287
2288 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2289
2290 * sysdeps/s390/multiarch/Makefile
2291 (sysdep_routines): Remove wcscspn variants.
2292 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2293 * sysdeps/s390/multiarch/ifunc-impl-list.c
2294 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2295 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2296 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2297 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2298 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2299 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2300 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2301 * sysdeps/s390/ifunc-wcscspn.h: New file.
2302
2303 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2304
2305 * sysdeps/s390/multiarch/Makefile
2306 (sysdep_routines): Remove wcspbrk variants.
2307 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2308 * sysdeps/s390/multiarch/ifunc-impl-list.c
2309 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2310 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2311 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2312 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2313 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2314 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2315 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2316 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2317
2318 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2319
2320 * sysdeps/s390/multiarch/Makefile
2321 (sysdep_routines): Remove wcsspn variants.
2322 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2323 * sysdeps/s390/multiarch/ifunc-impl-list.c
2324 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2325 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2326 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2327 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2328 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2329 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2330 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2331 * sysdeps/s390/ifunc-wcsspn.h: New file.
2332
2333 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2334
2335 * sysdeps/s390/multiarch/Makefile
2336 (sysdep_routines): Remove wcsrchr variants.
2337 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2338 * sysdeps/s390/multiarch/ifunc-impl-list.c
2339 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2340 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2341 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2342 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2343 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2344 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2345 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
2346 * sysdeps/s390/ifunc-wcsrchr.h: New file.
2347
2348 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2349
2350 * sysdeps/s390/multiarch/Makefile
2351 (sysdep_routines): Remove wcschrnul variants.
2352 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
2353 * sysdeps/s390/multiarch/ifunc-impl-list.c
2354 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2355 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2356 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2357 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2358 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2359 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2360 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2361 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2362
2363 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2364
2365 * sysdeps/s390/multiarch/Makefile
2366 (sysdep_routines): Remove wcschr variants.
2367 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2368 * sysdeps/s390/multiarch/ifunc-impl-list.c
2369 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
2370 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
2371 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
2372 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
2373 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
2374 * sysdeps/s390/multiarch/wcschr.c: Move to ...
2375 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
2376 * sysdeps/s390/ifunc-wcschr.h: New file.
2377
2378 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2379
2380 * sysdeps/s390/multiarch/Makefile
2381 (sysdep_routines): Remove wcsncmp variants.
2382 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
2383 * sysdeps/s390/multiarch/ifunc-impl-list.c
2384 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
2385 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
2386 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
2387 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
2388 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
2389 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
2390 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
2391 * sysdeps/s390/ifunc-wcsncmp.h: New file.
2392
2393 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2394
2395 * sysdeps/s390/multiarch/Makefile
2396 (sysdep_routines): Remove wcscmp variants.
2397 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
2398 * sysdeps/s390/multiarch/ifunc-impl-list.c
2399 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
2400 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
2401 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
2402 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
2403 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
2404 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
2405 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
2406 * sysdeps/s390/ifunc-wcscmp.h: New file.
2407
2408 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2409
2410 * sysdeps/s390/multiarch/Makefile
2411 (sysdep_routines): Remove wcsncat variants.
2412 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
2413 * sysdeps/s390/multiarch/ifunc-impl-list.c
2414 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
2415 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
2416 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
2417 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
2418 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
2419 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
2420 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
2421 * sysdeps/s390/ifunc-wcsncat.h: New file.
2422
2423 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2424
2425 * sysdeps/s390/multiarch/Makefile
2426 (sysdep_routines): Remove wcscat variants.
2427 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
2428 * sysdeps/s390/multiarch/ifunc-impl-list.c
2429 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
2430 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
2431 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
2432 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
2433 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
2434 * sysdeps/s390/multiarch/wcscat.c: Move to ...
2435 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
2436 * sysdeps/s390/ifunc-wcscat.h: New file.
2437
2438 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2439
2440 * sysdeps/s390/multiarch/Makefile
2441 (sysdep_routines): Remove wcpncpy variants.
2442 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
2443 * sysdeps/s390/multiarch/ifunc-impl-list.c
2444 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
2445 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
2446 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
2447 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
2448 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
2449 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
2450 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
2451 * sysdeps/s390/ifunc-wcpncpy.h: New file.
2452
2453 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2454
2455 * sysdeps/s390/multiarch/Makefile
2456 (sysdep_routines): Remove wcsncpy variants.
2457 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
2458 * sysdeps/s390/multiarch/ifunc-impl-list.c
2459 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
2460 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
2461 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
2462 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
2463 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
2464 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
2465 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
2466 * sysdeps/s390/ifunc-wcsncpy.h: New file.
2467
2468 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2469
2470 * sysdeps/s390/multiarch/Makefile
2471 (sysdep_routines): Remove wcpcpy variants.
2472 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
2473 * sysdeps/s390/multiarch/ifunc-impl-list.c
2474 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
2475 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
2476 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
2477 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
2478 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
2479 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
2480 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
2481 * sysdeps/s390/ifunc-wcpcpy.h: New file.
2482
2483 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2484
2485 * sysdeps/s390/multiarch/Makefile
2486 (sysdep_routines): Remove wcscpy variants.
2487 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
2488 * sysdeps/s390/multiarch/ifunc-impl-list.c
2489 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
2490 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
2491 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
2492 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
2493 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
2494 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
2495 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
2496 * sysdeps/s390/ifunc-wcscpy.h: New file.
2497
2498 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2499
2500 * sysdeps/s390/multiarch/Makefile
2501 (sysdep_routines): Remove wcsnlen variants.
2502 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
2503 * sysdeps/s390/multiarch/ifunc-impl-list.c
2504 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
2505 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
2506 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
2507 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
2508 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
2509 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
2510 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
2511 * sysdeps/s390/ifunc-wcsnlen.h: New file.
2512
2513 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2514
2515 * sysdeps/s390/multiarch/Makefile
2516 (sysdep_routines): Remove wcslen variants.
2517 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
2518 * sysdeps/s390/multiarch/ifunc-impl-list.c
2519 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
2520 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
2521 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
2522 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
2523 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
2524 * sysdeps/s390/multiarch/wcslen.c: Move to ...
2525 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
2526 * sysdeps/s390/ifunc-wcslen.h: New file.
2527
2528 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2529
2530 * sysdeps/s390/multiarch/Makefile
2531 (sysdep_routines): Remove memrchr variants.
2532 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
2533 * sysdeps/s390/multiarch/ifunc-impl-list.c
2534 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
2535 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
2536 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
2537 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
2538 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
2539 * sysdeps/s390/multiarch/memrchr.c: Move to ...
2540 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
2541 * sysdeps/s390/ifunc-memrchr.h: New file.
2542
2543 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2544
2545 * sysdeps/s390/multiarch/Makefile
2546 (sysdep_routines): Remove memccpy variants.
2547 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
2548 * sysdeps/s390/multiarch/ifunc-impl-list.c
2549 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
2550 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
2551 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
2552 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
2553 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
2554 * sysdeps/s390/multiarch/memccpy.c: Move to ...
2555 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
2556 * sysdeps/s390/ifunc-memccpy.h: New file.
2557
2558 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2559
2560 * sysdeps/s390/multiarch/Makefile
2561 (sysdep_routines): Remove rawmemchr variants.
2562 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
2563 * sysdeps/s390/multiarch/ifunc-impl-list.c
2564 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
2565 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
2566 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
2567 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
2568 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
2569 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
2570 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
2571 * sysdeps/s390/ifunc-rawmemchr.h: New file.
2572
2573 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2574
2575 * sysdeps/s390/multiarch/Makefile
2576 (sysdep_routines): Remove memchr variants.
2577 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
2578 * sysdeps/s390/multiarch/ifunc-impl-list.c
2579 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
2580 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
2581 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
2582 * sysdeps/s390/multiarch/memchr.c: Move to ...
2583 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
2584 * sysdeps/s390/ifunc-memchr.h: New file.
2585 * sysdeps/s390/s390-64/memchr.S: Move to ...
2586 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
2587 for 31/64bit and ifunc handling.
2588 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
2589 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
2590 * sysdeps/s390/s390-32/memchr.S: Likewise.
2591
2592 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2593
2594 * sysdeps/s390/multiarch/Makefile
2595 (sysdep_routines): Remove strcspn variants.
2596 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
2597 * sysdeps/s390/multiarch/ifunc-impl-list.c
2598 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
2599 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
2600 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
2601 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
2602 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
2603 * sysdeps/s390/multiarch/strcspn.c: Move to ...
2604 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
2605 * sysdeps/s390/ifunc-strcspn.h: New file.
2606
2607 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2608
2609 * sysdeps/s390/multiarch/Makefile
2610 (sysdep_routines): Remove strpbrk variants.
2611 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
2612 * sysdeps/s390/multiarch/ifunc-impl-list.c
2613 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
2614 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
2615 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
2616 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
2617 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
2618 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
2619 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
2620 * sysdeps/s390/ifunc-strpbrk.h: New file.
2621
2622 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2623
2624 * sysdeps/s390/multiarch/Makefile
2625 (sysdep_routines): Remove strspn variants.
2626 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
2627 * sysdeps/s390/multiarch/ifunc-impl-list.c
2628 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
2629 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
2630 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
2631 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
2632 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
2633 * sysdeps/s390/multiarch/strspn.c: Move to ...
2634 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
2635 * sysdeps/s390/ifunc-strspn.h: New file.
2636
2637 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2638
2639 * sysdeps/s390/multiarch/Makefile
2640 (sysdep_routines): Remove strrchr variants.
2641 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
2642 * sysdeps/s390/multiarch/ifunc-impl-list.c
2643 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
2644 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
2645 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
2646 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
2647 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
2648 * sysdeps/s390/multiarch/strrchr.c: Move to ...
2649 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
2650 * sysdeps/s390/ifunc-strrchr.h: New file.
2651
2652 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2653
2654 * sysdeps/s390/multiarch/Makefile
2655 (sysdep_routines): Remove strchrnul variants.
2656 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
2657 * sysdeps/s390/multiarch/ifunc-impl-list.c
2658 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
2659 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
2660 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
2661 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
2662 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
2663 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
2664 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
2665 * sysdeps/s390/ifunc-strchrnul.h: New file.
2666
2667 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2668
2669 * sysdeps/s390/multiarch/Makefile
2670 (sysdep_routines): Remove strchr variants.
2671 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
2672 * sysdeps/s390/multiarch/ifunc-impl-list.c
2673 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
2674 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
2675 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
2676 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
2677 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
2678 * sysdeps/s390/multiarch/strchr.c: Move to ...
2679 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
2680 * sysdeps/s390/ifunc-strchr.h: New file.
2681
2682 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2683
2684 * sysdeps/s390/multiarch/Makefile
2685 (sysdep_routines): Remove strncmp variants.
2686 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
2687 * sysdeps/s390/multiarch/ifunc-impl-list.c
2688 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
2689 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
2690 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
2691 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
2692 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
2693 * sysdeps/s390/multiarch/strncmp.c: Move to ...
2694 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
2695 * sysdeps/s390/ifunc-strncmp.h: New file.
2696
2697 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2698
2699 * sysdeps/s390/multiarch/Makefile
2700 (sysdep_routines): Remove strcmp variants.
2701 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
2702 * sysdeps/s390/multiarch/ifunc-impl-list.c
2703 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
2704 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
2705 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
2706 * sysdeps/s390/multiarch/strcmp.c: Move to ...
2707 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
2708 * sysdeps/s390/ifunc-strcmp.h: New file.
2709 * sysdeps/s390/s390-64/strcmp.S: Move to ...
2710 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
2711 for 31/64bit and ifunc handling.
2712 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
2713 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
2714 * sysdeps/s390/s390-32/strcmp.S: Likewise.
2715
2716 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2717
2718 * sysdeps/s390/multiarch/Makefile
2719 (sysdep_routines): Remove strncat variants.
2720 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
2721 * sysdeps/s390/multiarch/ifunc-impl-list.c
2722 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
2723 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
2724 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
2725 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
2726 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
2727 * sysdeps/s390/multiarch/strncat.c: Move to ...
2728 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
2729 * sysdeps/s390/ifunc-strncat.h: New file.
2730
2731 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2732
2733 * sysdeps/s390/multiarch/Makefile
2734 (sysdep_routines): Remove strcat variants.
2735 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
2736 * sysdeps/s390/multiarch/ifunc-impl-list.c
2737 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
2738 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
2739 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
2740 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
2741 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
2742 * sysdeps/s390/multiarch/strcat.c: Move to ...
2743 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
2744 * sysdeps/s390/ifunc-strcat.h: New file.
2745
2746 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2747
2748 * sysdeps/s390/multiarch/Makefile
2749 (sysdep_routines): Remove stpncpy variants.
2750 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
2751 * sysdeps/s390/multiarch/ifunc-impl-list.c
2752 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
2753 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
2754 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
2755 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
2756 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
2757 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
2758 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
2759 * sysdeps/s390/ifunc-stpncpy.h: New file.
2760
2761 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2762
2763 * sysdeps/s390/multiarch/Makefile
2764 (sysdep_routines): Remove strncpy variants.
2765 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
2766 * sysdeps/s390/multiarch/ifunc-impl-list.c
2767 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
2768 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
2769 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
2770 * sysdeps/s390/multiarch/strncpy.c: Move to ...
2771 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
2772 * sysdeps/s390/ifunc-strncpy.h: New file.
2773 * sysdeps/s390/s390-64/strncpy.S: Move to ...
2774 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
2775 and adjust ifunc handling.
2776 * sysdeps/s390/s390-32/strncpy.S: Move to ...
2777 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
2778 and adjust ifunc handling.
2779 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
2780 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
2781
2782 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2783
2784 * sysdeps/s390/multiarch/Makefile
2785 (sysdep_routines): Remove stpcpy variants.
2786 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
2787 * sysdeps/s390/multiarch/ifunc-impl-list.c
2788 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
2789 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
2790 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
2791 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
2792 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
2793 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
2794 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
2795 * sysdeps/s390/ifunc-stpcpy.h: New file.
2796
2797 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2798
2799 * sysdeps/s390/multiarch/Makefile
2800 (sysdep_routines): Remove strcpy variants.
2801 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
2802 * sysdeps/s390/multiarch/ifunc-impl-list.c
2803 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
2804 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
2805 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
2806 * sysdeps/s390/multiarch/strcpy.c: Move to ...
2807 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
2808 * sysdeps/s390/ifunc-strcpy.h: New file.
2809 * sysdeps/s390/s390-64/strcpy.S: Move to ...
2810 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
2811 for 31/64bit and ifunc handling.
2812 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
2813 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
2814 * sysdeps/s390/s390-32/strcpy.S: Likewise.
2815
2816 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2817
2818 * sysdeps/s390/multiarch/Makefile
2819 (sysdep_routines): Remove strnlen variants.
2820 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
2821 * sysdeps/s390/multiarch/ifunc-impl-list.c
2822 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
2823 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
2824 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
2825 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
2826 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
2827 * sysdeps/s390/multiarch/strnlen.c: Move to ...
2828 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
2829 * sysdeps/s390/ifunc-strnlen.h: New file.
2830
2831 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2832
2833 * sysdeps/s390/multiarch/Makefile
2834 (sysdep_routines): Remove strlen variants.
2835 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
2836 * sysdeps/s390/multiarch/ifunc-impl-list.c
2837 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
2838 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
2839 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
2840 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
2841 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
2842 * sysdeps/s390/multiarch/strlen.c: Move to ...
2843 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
2844 * sysdeps/s390/ifunc-strlen.h: New file.
2845
2846 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2847
2848 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
2849 * sysdeps/s390/multiarch/ifunc-impl-list.c
2850 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
2851 * sysdeps/s390/ifunc-memmem.h: New file.
2852 * sysdeps/s390/memmem.c: Likewise.
2853 * sysdeps/s390/memmem-c.c: Likewise.
2854 * sysdeps/s390/memmem-vx.c: Likewise.
2855
2856 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2857
2858 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
2859 * sysdeps/s390/multiarch/ifunc-impl-list.c
2860 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
2861 * sysdeps/s390/ifunc-strstr.h: New file.
2862 * sysdeps/s390/strstr.c: Likewise.
2863 * sysdeps/s390/strstr-c.c: Likewise.
2864 * sysdeps/s390/strstr-vx.c: Likewise.
2865
2866 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2867
2868 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
2869 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
2870 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
2871 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
2872 New defines.
2873 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
2874 * sysdeps/s390/memmove-c.c: New file.
2875 * sysdeps/s390/memmove.c: Likewise.
2876 * sysdeps/s390/multiarch/ifunc-impl-list.c
2877 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
2878
2879 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2880
2881 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
2882 * sysdeps/s390/configure.ac: Add check for z13 support.
2883 * sysdeps/s390/configure: Regenerated.
2884
2885 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2886
2887 * sysdeps/s390/memcopy.h: New file.
2888
2889 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2890
2891 * sysdeps/s390/s390-32/bcopy.S: Remove.
2892 * sysdeps/s390/s390-64/bcopy.S: Likewise.
2893
2894 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2895
2896 * sysdeps/s390/ifunc-memcpy.h: New File.
2897 * sysdeps/s390/memcpy.S: Move to ...
2898 * sysdeps/s390/memcpy-z900.S ... here.
2899 Move implementations from memcpy-s390x.s to here.
2900 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
2901 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2902 Remove memcpy/mempcpy variants.
2903 * sysdeps/s390/Makefile (sysdep_routines):
2904 Add memcpy/mempcpy variants.
2905 * sysdeps/s390/multiarch/ifunc-impl-list.c
2906 (__libc_ifunc_impl_list): Adjust ifunc variants for
2907 memcpy and mempcpy.
2908 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
2909 to ...
2910 * sysdeps/s390/memcpy.c: ... here.
2911 Adjust ifunc variants for memcpy.
2912 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
2913 * sysdeps/s390/mempcpy.c: ... here.
2914 Adjust ifunc variants for mempcpy.
2915 * sysdeps/s390/mempcpy.S: Delete file.
2916
2917 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2918
2919 * sysdeps/s390/s390-64/memcpy.S: Move to ...
2920 * sysdeps/s390/memcpy.S: ... here.
2921 Adjust to be usable for 31/64bit.
2922 * sysdeps/s390/s390-32/memcpy.S: Delete File.
2923 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
2924 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
2925 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2926 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
2927 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
2928 Adjust to be usable for 31/64bit.
2929 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
2930 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
2931 * sysdeps/s390/multiarch/memcpy.c: ... here.
2932 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
2933
2934 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2935
2936 * sysdeps/s390/ifunc-memcmp.h: New File.
2937 * sysdeps/s390/memcmp.S: Move to ...
2938 * sysdeps/s390/memcmp-z900.S ... here.
2939 Move implementations from memcmp-s390x.s to here.
2940 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
2941 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2942 Remove memcmp variants.
2943 * sysdeps/s390/Makefile (sysdep_routines):
2944 Add memcmp variants.
2945 * sysdeps/s390/multiarch/ifunc-impl-list.c
2946 (__libc_ifunc_impl_list): Adjust ifunc variants for
2947 memcmp.
2948 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
2949 to ...
2950 * sysdeps/s390/memcmp.c: ... here.
2951 Adjust ifunc variants for memcmp.
2952
2953 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2954
2955 * sysdeps/s390/s390-64/memcmp.S: Move to ...
2956 * sysdeps/s390/memcmp.S: ... here.
2957 Adjust to be usable for 31/64bit.
2958 * sysdeps/s390/s390-32/memcmp.S: Delete File.
2959 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
2960 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
2961 Remove memcmp.
2962 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2963 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
2964 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
2965 Adjust to be usable for 31/64bit.
2966 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
2967 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
2968 * sysdeps/s390/multiarch/memcmp.c: ... here.
2969 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
2970
2971 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2972
2973 * sysdeps/s390/s390-32/bzero.S: Delete file.
2974 * sysdeps/s390/s390-64/bzero.S: Likewise.
2975 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
2976 * sysdeps/s390/bzero.c: New file.
2977 * sysdeps/s390/memset-z900.S: Add bzero entry points.
2978 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
2979 * sysdeps/s390/multiarch/ifunc-impl-list.c
2980 (__libc_ifunc_impl_list): Add bzero ifunc variants.
2981
2982 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2983
2984 * sysdeps/s390/ifunc-memset.h: New File.
2985 * sysdeps/s390/memset.S: Move to ...
2986 * sysdeps/s390/memset-z900.S ... here.
2987 Move implementations from memset-s390x.s to here.
2988 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
2989 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2990 Remove memset variants.
2991 * sysdeps/s390/Makefile (sysdep_routines):
2992 Add memset variants.
2993 * sysdeps/s390/multiarch/ifunc-impl-list.c
2994 (__libc_ifunc_impl_list): Adjust ifunc variants for
2995 memset.
2996 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
2997 to ...
2998 * sysdeps/s390/memset.c: ... here.
2999 Adjust ifunc variants for memset.
3000
3001 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3002
3003 * sysdeps/s390/s390-64/memset.S: Move to ...
3004 * sysdeps/s390/memset.S: ... here.
3005 Adjust to be usable for 31/64bit.
3006 * sysdeps/s390/s390-32/memset.S: Delete File.
3007 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3008 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3009 Remove memset.
3010 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3011 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3012 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3013 Adjust to be usable for 31/64bit.
3014 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
3015 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
3016 * sysdeps/s390/multiarch/memset.c: ... here.
3017 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
3018
3019 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3020
3021 * sysdeps/s390/multiarch/ifunc-resolve.h
3022 (s390_libc_ifunc_init, s390_libc_ifunc,
3023 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3024
3025 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3026
3027 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3028 * sysdeps/s390/configure.ac: Add check for z10 support.
3029 * sysdeps/s390/configure: Regenerated.
3030
3031 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3032
3033 * sysdeps/i386/atomic-machine.h: Merged with ...
3034 * sysdeps/x86_64/atomic-machine.h: To ...
3035 * sysdeps/x86/atomic-machine.h: This. New file.
3036
3037 2018-12-18 Florian Weimer <fweimer@redhat.com>
3038
3039 Rewrite locale/gen-translit.pl in Python.
3040 * locale/Makefile (generated): Add C-translit.h.
3041 (before-compile): Add $(objpfx)C-translit.h.
3042 (C-translit.h): Move to $(objpfx). Create target directory.
3043 Build using Python script.
3044 * locale/gen-translit.py: New file.
3045 * locale/gen-translit.pl: Remove file.
3046 * locale/C-translit.h.in: Change comment character to '#' for
3047 easier parsing without a C preprocessor.
3048 * locale/C-translit.h: Remove generated file.
3049 * manual/install.texi (Tools for Compilation): Do not mention
3050 C-translit.h.
3051 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3052 Remove locale/C-translit.h.
3053 * scripts/update-copyrights: Likewise.
3054 * INSTALL: Regenerate.
3055
3056 2018-12-18 Florian Weimer <fweimer@redhat.com>
3057
3058 [BZ #23995]
3059 * localedata/locales/bi_VU: Remove executable bit from file.
3060
3061 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3062
3063 * include/time.h
3064 (__localtime64): Add.
3065 * manual/maint.texi: Document Y2038 symbol handling.
3066 * time/localtime.c
3067 (__localtime64): Add.
3068 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3069
3070 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3071
3072 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3073 Do not clobber r12.
3074
3075 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3076 to allow extra macros from first or second sources.
3077 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3078 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3079 (tests-special): Add $(objpfx)tst-mman-consts.out.
3080 ($(objpfx)tst-mman-consts.out): New makefile target.
3081
3082 2018-12-17 Mao Han <han_mao@c-sky.com>
3083
3084 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3085 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3086 without stat64 system call support.
3087 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3088 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3089 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3090 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3091 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3092 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3093 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3094 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3095 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3096 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3097 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3098
3099 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3100
3101 regex: fix storage-exhaustion error
3102 [BZ #18040]
3103 * posix/regexec.c (get_subexp):
3104 Do not continue if storage is exhausted.
3105
3106 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3107
3108 regex: fix heap-use-after-free error
3109 [BZ #18040]
3110 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3111 https://debbugs.gnu.org/32592
3112 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3113 call extend_buffers which reallocates the re_string_t internal buffer.
3114 Local variable 'buf' was not updated in such case, resulting in
3115 use-after-free.
3116 * posix/regexec.c (get_subexp): Update 'buf' after call to
3117 get_subexp_sub.
3118
3119 2018-12-15 Florian Weimer <fweimer@redhat.com>
3120
3121 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3122 (minimum_stride_size): Use it.
3123 (support_blob_repeat_allocate): Likewise.
3124
3125 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3126
3127 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3128 definition.
3129 (acosh): Likewise.
3130 (atanh): Likewise.
3131
3132 2018-12-14 Florian Weimer <fweimer@redhat.com>
3133
3134 * manual/process.texi (Process Creation Concepts): Remove
3135 documentation of process (ID) lifetime. List more process
3136 creation functions. Reference Process Identification section.
3137 (Process Identification): Add information about process ID
3138 lifetime. Describe Linux thread/task IDs.
3139 * manual/signal.texi (Signaling Another Process): Mention that the
3140 signal is always sent to the process.
3141
3142 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3143
3144 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3145 and tst-ldbl-efgcvt.
3146 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3147 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3148 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3149 (fcvt_tests, output_error, output_r_error, do_test): Use the
3150 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3151 select the type of floating-point variables and arguments; to
3152 produce extra tests for double and conversion specifiers for
3153 printf; and to set the names of called functions.
3154 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3155 in tst-efgcvt-template.c.
3156 * misc/tst-ldbl-efgcvt.c: Likewise.
3157
3158 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3159
3160 * nss/Makefile (tst-nss-test3.out): New rule.
3161
3162 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3163
3164 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3165 clobber sp.
3166
3167 2018-12-13 fanjinke <fanjinke@hygon.cn>
3168
3169 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3170 "HygonGenuine".
3171
3172 2018-12-13 Andreas Schwab <schwab@suse.de>
3173
3174 [BZ #23861]
3175 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3176 (__pthread_rwlock_rdlock_full): Update expected value for
3177 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3178 * nptl/tst-rwlock-pwn.c: New file.
3179 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3180
3181 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3182
3183 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3184 definition.
3185
3186 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3187
3188 * benchtests/scripts/compare_bench.py (do_compare): write to
3189 stderr in casestat is not present.
3190 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3191 stderr in case timings field is not present. Also string showing
3192 the output filename goes into the stderr.
3193
3194 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3195
3196 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3197 and ZeroDivisorError exceptions.
3198 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3199 argument to loop through user provided statistics.
3200 * benchtests/scripts/compare_bench.py (main): Include the --stats
3201 argument.
3202
3203 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3204
3205 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3206 instead of return.
3207
3208 2018-12-12 Florian Weimer <fweimer@redhat.com>
3209
3210 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3211 clause to copyright header.
3212
3213 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3214
3215 [BZ #23614]
3216 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3217 registers saved in the stack frame.
3218 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3219 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3220
3221 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3222
3223 * include/bits/monetary-ldbl.h: New file.
3224 * include/bits/printf-ldbl.h: Likewise.
3225 * include/bits/stdio-ldbl.h: Likewise.
3226 * include/bits/stdlib-ldbl.h: Likewise.
3227 * include/bits/syslog-ldbl.h: Likewise.
3228 * include/bits/wchar-ldbl.h: Likewise.
3229
3230 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3231
3232 * libio/libio.h: Remove redirection for _IO_vfprintf.
3233
3234 2018-12-11 Andreas Schwab <schwab@suse.de>
3235
3236 * Makerules: Remove all references to abilist-pattern.
3237 (update-all-abi): Simplify find expression.
3238
3239 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3240
3241 [BZ #23961]
3242 * math/auto-libm-test-in: Add new test case.
3243 * math/auto-libm-test-out-pow: Regenerated.
3244 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3245
3246 2018-12-10 DJ Delorie <dj@redhat.com>
3247
3248 [BZ #23948]
3249 * support/test-container.c: Move postclean step to before we
3250 change namespaces.
3251
3252 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3253
3254 * scripts/gen-as-const.py (main): Handle --python option.
3255 * scripts/gen-py-const.awk: Remove.
3256 * Makerules (py-const-script): Use gen-as-const.py.
3257 ($(py-const)): Likewise.
3258 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3259 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3260 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3261 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3262 ~PTHREAD_MUTEX_NO_ELISION_NP.
3263 * manual/README.pretty-printers: Update reference to
3264 gen-py-const.awk.
3265
3266 * scripts/glibcextract.py: New file.
3267 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3268 or tempfile. Import glibcexctract.
3269 (compute_c_consts): Remove. Moved to glibcextract.py.
3270 (gen_test): Update reference to compute_c_consts.
3271 (main): Likewise.
3272 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3273 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3274 * sysdeps/unix/sysv/linux/Makefile
3275 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3276 Redirect stderr as well as stdout.
3277
3278 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3279
3280 [BZ #19767]
3281 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3282 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3283 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3284 ALWAYS_USE_VSYSCALL.
3285 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3286 ALWAYS_USE_VSYSCALL.
3287 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3288 ALWAYS_USE_VSYSCALL.
3289
3290 2018-12-10 Florian Weimer <fweimer@redhat.com>
3291
3292 [BZ #23972]
3293 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3294 offset instead of count for clarity. Fix typo in comment.
3295 (__old_getdents64): Keep track of previous offset. Use it to call
3296 handle_overflow.
3297 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3298 that d_off is never zero.
3299
3300 2018-12-10 Andreas Schwab <schwab@suse.de>
3301
3302 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3303 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3304 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3305 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3306 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3307
3308 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3309
3310 * timezone/private.h: Update from tzcode 2018g.
3311 * timezone/tzfile.h: Likewise.
3312 * timezone/tzselect.ksh: Likewise.
3313 * timezone/zdump.c: Likewise.
3314 * timezone/zic.c: Likewise.
3315
3316 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3317
3318 [BZ #23490]
3319 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3320 (do_test): Adjust buffer size and fix format.
3321
3322 2018-12-07 DJ Delorie <dj@redhat.com>
3323
3324 [BZ #23907]
3325 * malloc/tst-tcfree3.c: New.
3326 * malloc/Makefile: Add it.
3327
3328 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3329
3330 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3331
3332 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3333
3334 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3335 used as a mask for the mode argument of __vfscanf_internal and
3336 __vfwscanf_internal.
3337 * stdio-common/vfscanf-internal.c
3338 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3339 (__strtof128_internal): Define to __wcstof128_internal.
3340 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3341 __strtof128_internal or __wcstof128_internal when the format of
3342 long double is the same as _Float128.
3343
3344 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3345
3346 * include/unistd.h (__confstr): Add prototype and hidden prototype.
3347 * posix/confstr.c (confstr): Rename to __confstr.
3348 (__confstr): Add hidden def.
3349 (confstr): Add weak alias for __confstr.
3350 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
3351 confstr.
3352
3353 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3354
3355 * NEWS: Mention getcpu.
3356 * include/sched.h (__getcpu): New libc_hidden_proto.
3357 * manual/resource.texi: Document getcpu.
3358 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3359 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3360 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3361 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3362 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3363 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3364 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3365 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3366 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3367 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3368 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3369 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3370 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3371 Likewise.
3372 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3373 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3374 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3375 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3376 Likewise.
3377 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3378 Likewise.
3379 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3380 Likewise.
3381 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3382 Likewise.
3383 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3384 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3385 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3386 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3387 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3388 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3389 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3390 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3391 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
3392 * sysdeps/unix/sysv/linux/getcpu.c: New file.
3393 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
3394 Also check getcpu.
3395
3396 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3397
3398 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
3399 functions.
3400 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
3401
3402 2018-12-07 Florian Weimer <fweimer@redhat.com>
3403
3404 [BZ #17405]
3405 * posix/Makefile (routines): Add spawn_faction_addfchdir.
3406 * posix/Versions (GLIBC_2.29): Export
3407 posix_spawn_file_actions_addfchdir_np.
3408 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
3409 * posix/spawn_faction_destroy.c
3410 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
3411 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
3412 and the field action.fchdir_action.
3413 * posix/tst-spawn-chdir.c (add_chdir): New function.
3414 (do_test): Add do_fchdir loop. Call add_chdir.
3415 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
3416 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3417 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
3418 posix_spawn_file_actions_addfchdir_np.
3419 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
3420 Likewise.
3421 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
3422 Likewise.
3423 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
3424 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
3425 Likewise.
3426 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
3427 Likewise.
3428 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
3429 Likewise.
3430 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
3431 Likewise.
3432 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
3433 Likewise.
3434 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
3435 Likewise.
3436 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3437 (GLIBC_2.29): Likewise.
3438 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3439 (GLIBC_2.29): Likewise.
3440 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3441 (GLIBC_2.29): Likewise.
3442 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3443 (GLIBC_2.29): Likewise.
3444 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
3445 Likewise.
3446 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3447 (GLIBC_2.29): Likewise.
3448 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3449 (GLIBC_2.29): Likewise.
3450 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
3451 (GLIBC_2.29): Likewise.
3452 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
3453 (GLIBC_2.29): Likewise.
3454 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
3455 Likewise.
3456 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
3457 Likewise.
3458 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
3459 Likewise.
3460 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
3461 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
3462 Likewise.
3463 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
3464 Likewise.
3465 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
3466 Likewise.
3467 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
3468 Likewise.
3469
3470 2018-12-06 Joseph Myers <joseph@codesourcery.com>
3471
3472 * manual/texinfo.tex: Update to version 2018-09-21.20 with
3473 trailing whitespace removed.
3474 * scripts/config.guess: Update to version 2018-11-28.
3475 * scripts/config.sub: Update to version 2018-11-28.
3476 * scripts/install-sh: Update to version 2018-03-11.20.
3477 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
3478 * scripts/move-if-change: Update to version 2018-03-07 03:47.
3479
3480 2018-12-07 Florian Weimer <fweimer@redhat.com>
3481
3482 [BZ #23927]
3483 CVE-2018-19591
3484 * inet/tst-if_index-long.c: New file.
3485 * inet/Makefile (tests): Add tst-if_index-long.
3486
3487 2018-12-07 Florian Weimer <fweimer@redhat.com>
3488
3489 * support/check.h (support_record_failure_is_failed): Declare.
3490 * support/descriptors.h: New file.
3491 * support/support_descriptors.c: Likewise.
3492 * support/tst-support_descriptors.c: Likewise.
3493 * support/support_record_failure.c
3494 (support_record_failure_is_failed): New function.
3495 * support/Makefile (libsupport-routines): Add support_descriptors.
3496 (tests): Add tst-support_descriptors.
3497
3498 2018-12-05 Zack Weinberg <zackw@panix.com>
3499 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3500
3501 * stdio-common/vfprintf-internal.c
3502 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
3503 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
3504 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
3505 and __no_long_double.
3506 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
3507 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
3508 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
3509 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
3510 and __nldbl_*syslog* functions.
3511 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
3512 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
3513 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
3514 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
3515 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
3516 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
3517 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
3518 (__nldbl_vwprintf, __nldbl_wprintf):
3519 Directly call the appropriate __v*printf_internal routine, passing
3520 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
3521 variable names.
3522 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
3523 (__nldbl___printf_chk, __nldbl___snprintf_chk)
3524 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
3525 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
3526 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
3527 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3528 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
3529 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
3530 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
3531 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
3532 Likewise, and also pass PRINTF_FORTIFY when appropriate.
3533 (__nldbl_syslog, __nldbl_vsyslog):
3534 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
3535 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3536 appropriate.
3537 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3538 appropriate.
3539
3540 2018-12-05 Zack Weinberg <zackw@panix.com>
3541 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3542
3543 [BZ #11319]
3544 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
3545 Moved here from debug/vsprintf_chk.c.
3546 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
3547 and completion logic for the strfile to match exactly what
3548 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
3549 _IO_str_init_static_internal instead of maxlen-1.
3550 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3551 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
3552 __vsprintf_internal.
3553
3554 * debug/vsprintf_chk.c (__vsprintf_chk)
3555 * debug/sprintf_chk.c (__sprintf_chk):
3556 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
3557 'flags' argument is positive, and slen as maxlen. No need to lock
3558 the FILE and/or construct a temporary FILE. Minimize and normalize
3559 header inclusions and variable names. Do not libc_hidden_def anything.
3560
3561 * debug/asprintf_chk.c (__asprintf_chk)
3562 * debug/dprintf_chk.c (__dprintf_chk)
3563 * debug/fprintf_chk.c (__fprintf_chk)
3564 * debug/fwprintf_chk.c (__fwprintf_chk)
3565 * debug/printf_chk.c (__printf_chk)
3566 * debug/snprintf_chk.c (__snprintf_chk)
3567 * debug/swprintf_chk.c (__swprintf_chk)
3568 * debug/vasprintf_chk.c (__vasprintf_chk)
3569 * debug/vdprintf_chk.c (__vdprintf_chk)
3570 * debug/vfprintf_chk.c (__vfprintf_chk)
3571 * debug/vfwprintf_chk.c (__vfwprintf_chk)
3572 * debug/vprintf_chk.c (__vprintf_chk)
3573 * debug/vsnprintf_chk.c (__vsnprintf_chk)
3574 * debug/vswprintf_chk.c (__vswprintf_chk)
3575 * debug/vwprintf_chk.c (__vwprintf_chk)
3576 * debug/wprintf_chk.c (__wprintf_chk):
3577 Directly call the corresponding vxxprintf_internal function, passing
3578 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
3579 the FILE and/or construct a temporary FILE. Minimize and normalize
3580 header inclusions and variable names. Do not libc_hidden_def anything.
3581
3582 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
3583 __obstack_vprintf_internal.
3584 (__obstack_vprintf_chk): Convert into a wrapper that calls
3585 __obstack_vprintf_internal (these two functions already had the
3586 same code) and move to new file...
3587 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
3588 file.
3589 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
3590 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
3591 * debug/Makefile (routines): Add vobprintf_chk.
3592
3593 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3594 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3595 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
3596 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3597 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
3598 (__nldbl___obstack_vfprintf_chk):
3599 Directly call the corresponding vxxprintf_internal function,
3600 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
3601 duplicate comparison of slen with 0 or maxlen from the corresponding
3602 non-__nldbl function.
3603
3604 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
3605 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
3606 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
3607 Remove libc_hidden_proto.
3608
3609 * stdio-common/vfprintf-internal.c
3610 (__vfprintf_internal, __vfwprintf_internal):
3611 Do not check _IO_FLAGS2_FORTIFY.
3612 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
3613 * libio/libioP.h: Update prototype of __vsprintf_internal and add
3614 a comment explaining why it has the maxlen argument.
3615 (_IO_acquire_lock_clear_flags2_fct): Remove.
3616 (_IO_acquire_lock_clear_flags2): Remove.
3617 (_IO_release_lock): Remove conditional statement which will
3618 now never execute.
3619 (_IO_acquire_lock): Remove variable which is now unused.
3620 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3621 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3622
3623 * stdio-common/Makefile (tests): Add tst-bz11319 and
3624 tst-bz11319-fortify2.
3625 (CFLAGS-tst-bz11319-fortify2.c): New macro.
3626 * stdio-common/tst-bz11319-fortify2.c: New file.
3627 * stdio-common/tst-bz11319.c: Likewise.
3628
3629 2018-12-05 Zack Weinberg <zackw@panix.com>
3630 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3631
3632 * misc/syslog.c: Include libioP.h, not iolibio.h.
3633 (__vsyslog_internal): New function with the former body of
3634 __vsyslog_chk; takes mode_flags argument same as
3635 __v*printf_internal. Call __vfprintf_internal directly.
3636
3637 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
3638 Remove libc_hidden_def.
3639 (__syslog, __syslog_chk): Use __vsyslog_internal.
3640 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
3641
3642 * include/sys/syslog.h: Add multiple inclusion guard.
3643 Add prototype for __vsyslog_internal.
3644 Remove declaration and libc_hidden_proto for __vsyslog_chk.
3645
3646 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
3647 Use __vsyslog_internal.
3648
3649 2018-12-05 Zack Weinberg <zackw@panix.com>
3650 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3651
3652 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
3653 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
3654 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
3655 New functions.
3656 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
3657 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
3658
3659 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
3660 Include wctype.h here if COMPILE_WPRINTF is defined.
3661 Define __vfprintf_internal or __vfwprintf_internal, depending
3662 on COMPILE_WPRINTF.
3663 Temporarily, on entry to this function, update mode_flags
3664 according to the environmental settings corresponding to
3665 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
3666 Throughout, check mode_flags instead of __ldbl_is_dbl and
3667 _IO_FLAGS2_FORTIFY on the destination FILE.
3668 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
3669 Include vfprintf-internal.c. Don't include wctype.h.
3670 * stdio-common/vfprintf.c: New file. Just define __vfprintf
3671 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
3672 and vfprintf.
3673 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
3674 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
3675 and vfwprintf.
3676 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
3677
3678 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
3679 and add mode_flags argument; use __vfprintf_internal.
3680 (__vdprintf): New function. Alias vdprintf to this.
3681 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
3682 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
3683 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
3684 (__obstack_printf): Use __obstack_printf_internal.
3685 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
3686 public aliases __vsnprintf and vsnprintf.
3687 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
3688 called internally.
3689 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
3690 public aliases _IO_vsprintf and vsprintf.
3691 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
3692 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
3693 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
3694 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
3695 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
3696
3697 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
3698 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
3699 * stdio-common/fprintf.c, stdio-common/fxprintf.c
3700 * stdio-common/printf.c: Use __vfprintf_internal.
3701
3702 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
3703 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
3704 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
3705
3706 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
3707 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
3708 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
3709 __vfwprintf_internal.
3710
3711 * libio/libio.h: Remove libc_hidden_proto and declaration for
3712 _IO_vfprintf.
3713 Remove declaration of _IO_vfwprintf.
3714 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
3715 _IO_vsprintf.
3716 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
3717 _IO_obstack_printf.
3718 * include/stdio.h: Add prototype for __vasprintf.
3719 (__vsnprintf): Remove declaration, because there are no more
3720 internal calls.
3721 * include/wchar.h (__vfwprintf, __vswprintf): Remove
3722 declaration, because there are no more internal calls.
3723
3724 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
3725 __vsnprintf_internal, instead of _IO_vsnprintf.
3726 * argp/argp-help.c (__argp_error, __argp_failure): Use
3727 __vasprintf_internal, instead of _IO_vasprintf.
3728 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
3729 redefine, because there are no more internal calls.
3730
3731 2018-12-05 Zack Weinberg <zackw@panix.com>
3732 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3733
3734 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
3735 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
3736 Include libio/strfile.h instead of libioP.h.
3737 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
3738 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
3739 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
3740 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
3741 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
3742 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
3743 necessary. Do not set __no_long_double. Normalize variable names.
3744 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
3745 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
3746 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
3747 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
3748 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
3749 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
3750 Call __vfscanf_internal / __vfwscanf_internal directly, passing
3751 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
3752 Do not set __no_long_double. Normalize variable names.
3753
3754 2018-12-05 Zack Weinberg <zackw@panix.com>
3755 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3756
3757 * stdio-common/isoc99_scanf.c
3758 * stdio-common/isoc99_fscanf.c
3759 * stdio-common/isoc99_sscanf.c
3760 * stdio-common/isoc99_vscanf.c
3761 * stdio-common/isoc99_vfscanf.c
3762 * stdio-common/isoc99_vsscanf.c
3763 * wcsmbs/isoc99_wscanf.c
3764 * wcsmbs/isoc99_fwscanf.c
3765 * wcsmbs/isoc99_swscanf.c
3766 * wcsmbs/isoc99_vwscanf.c
3767 * wcsmbs/isoc99_vfwscanf.c
3768 * wcsmbs/isoc99_vswscanf.c:
3769 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
3770 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
3771 No need to lock and unlock the FILE passed to that function.
3772
3773 * stdio-common/vfscanf-internal.c
3774 (__vfscanf_internal, __vfwscanf_internal):
3775 Don't look at _IO_FLAGS2_SCANF_STD.
3776 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
3777 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
3778 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
3779
3780 2018-12-05 Zack Weinberg <zackw@panix.com>
3781 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3782
3783 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
3784 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
3785 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
3786 * libio/strfile.h: Add multiple inclusion guard.
3787 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
3788
3789 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
3790 consistency with the other version of this file.
3791 (ldbl_compat_symbol): New macro.
3792 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
3793 New macro.
3794
3795 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
3796 Define __vfscanf_internal or __vfwscanf_internal, depending on
3797 COMPILE_WSCANF; don't define any other public symbols.
3798 Remove errval and code to set errp.
3799 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
3800 as the mode_flags argument.
3801 (encode_error, conv_error, input_error): Don't set errval.
3802 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
3803 Include vfscanf-internal.c.
3804 * stdio-common/vfscanf.c: New file defining the public entry
3805 point vfscanf, which calls __vfscanf_internal.
3806 * stdio-common/vfwscanf.c: New file defining the public entry
3807 point vfwscanf, which calls __vfwscanf_internal.
3808
3809 * stdio-common/iovfscanf.c: New file.
3810 * stdio-common/iovfwscanf.c: Likewise.
3811
3812 * stdio-common/Makefile (routines): Add vfscanf-internal,
3813 vfwscanf-internal, iovfscanf, iovfwscanf.
3814 * stdio-common/Versions: Mention GLIBC_2.29, so that
3815 it can be used in SHLIB_COMPAT expressions.
3816 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
3817 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
3818 Call __vfscanf_internal, instead of _IO_vfscanf.
3819 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
3820 _IO_vfscanf.
3821 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
3822 _IO_vfwscanf.
3823
3824 * libio/iovsscanf.c: Clean up includes, when possible. Use
3825 _IO_strfile_read or _IO_strfile_readw, when needed. Call
3826 __vfscanf_internal or __vfwscanf_internal directly.
3827 * libio/iovswscanf.c: Likewise.
3828 * libio/swscanf.c: Likewise.
3829 * libio/vscanf.c: Likewise.
3830 * libio/vwscanf.c: Likewise.
3831 * libio/wscanf.c: Likewise.
3832 * stdio-common/isoc99_fscanf.c: Likewise.
3833 * stdio-common/isoc99_scanf.c: Likewise.
3834 * stdio-common/isoc99_sscanf.c: Likewise.
3835 * stdio-common/isoc99_vfscanf.c: Likewise.
3836 * stdio-common/isoc99_vscanf.c: Likewise.
3837 * stdio-common/isoc99_vsscanf.c: Likewise.
3838 * stdio-common/scanf.c: Likewise.
3839 * stdio-common/sscanf.c: Likewise.
3840 * wcsmbs/isoc99_fwscanf.c: Likewise.
3841 * wcsmbs/isoc99_swscanf.c: Likewise.
3842 * wcsmbs/isoc99_vfwscanf.c: Likewise.
3843 * wcsmbs/isoc99_vswscanf.c: Likewise.
3844 * wcsmbs/isoc99_vwscanf.c: Likewise.
3845 * wcsmbs/isoc99_wscanf.c: Likewise.
3846
3847 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
3848
3849 * include/time.h
3850 (__tz_compute): Replace time_t with __time64_t.
3851 (__tz_convert): Replace time_t* with __time64_t.
3852 (__offtime): Replace time_t* with __time64_t.
3853 * time/gmtime.c
3854 (__gmtime_r): Adjust call to __tz_convert.
3855 (gmtime): Likewise.
3856 * time/localtime.c
3857 (__localtime_r): Likewise.
3858 (localtime): Likewise.
3859 * time/offtime.c: Replace time_t with __time64_t.
3860 * time/tzset.c: Likewise.
3861
3862 2018-12-04 Joseph Myers <joseph@codesourcery.com>
3863
3864 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
3865 dynamic linker unless [$(run-built-tests) = yes].
3866
3867 2018-12-03 DJ Delorie <dj@delorie.com>
3868
3869 * support/test-container.c (check_for_unshare_hints): New.
3870 (main): Call it if unshare fails. Add support for "su" scriptlet
3871 command.
3872
3873 2018-12-03 Joseph Myers <joseph@codesourcery.com>
3874
3875 * scripts/gen-as-const.py (compute_c_consts): Take an argument
3876 'START' to indicate that start text should be output.
3877 (gen_test): Likewise.
3878 (main): Generate 'START' for first symbol or '--' line, or at end
3879 of input if not previously generated.
3880
3881 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
3882
3883 [BZ #19767]
3884 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
3885 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
3886 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
3887 ALWAYS_USE_VSYSCALL.
3888
3889 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3890
3891 [BZ #23913]
3892 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
3893 new_argv by one.
3894
3895 2018-12-03 Carlos O'Donell <carlos@redhat.com>
3896
3897 [BZ #23923]
3898 * locale/programs/localedef.c: Declare boolean hard_links default true.
3899 (options): Add --no-hard-links option.
3900 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
3901 * locale/programs/localedef.h: Declare prototype for hard_links.
3902 * locale/programs/locfile.c (write_locale_data): Don't use hard
3903 links if hard_links is false.
3904
3905 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
3906
3907 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
3908 cpu_features_basic.
3909 (__cache_sysconf): Likewise.
3910 (init_cacheinfo): Likewise.
3911 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
3912 populate COMMON_CPUID_INDEX_80000007 and
3913 COMMON_CPUID_INDEX_80000008.
3914 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
3915 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
3916 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
3917 (init_cpu_features): Use _Static_assert on
3918 index_arch_Fast_Unaligned_Load.
3919 __get_cpuid_registers and __get_arch_feature. Updated for
3920 cpu_features_basic. Set stepping in cpu_features.
3921 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
3922 (FEATURE_INDEX_2): New.
3923 (FEATURE_INDEX_MAX): Changed to enum.
3924 (COMMON_CPUID_INDEX_D_ECX_1): New.
3925 (COMMON_CPUID_INDEX_80000007): Likewise.
3926 (COMMON_CPUID_INDEX_80000008): Likewise.
3927 (cpuid_registers): Likewise.
3928 (cpu_features_basic): Likewise.
3929 (CPU_FEATURE_USABLE): Likewise.
3930 (bit_arch_XXX_Usable): Likewise.
3931 (cpu_features): Use cpuid_registers and cpu_features_basic.
3932 (bit_arch_XXX): Reweritten.
3933 (bit_cpu_XXX): Likewise.
3934 (index_cpu_XXX): Likewise.
3935 (reg_XXX): Likewise.
3936 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
3937 <support/check.h>.
3938 (CHECK_CPU_FEATURE): New.
3939 (CHECK_CPU_FEATURE_USABLE): Likewise.
3940 (cpu_kinds): Likewise.
3941 (do_test): Print vendor, family, model and stepping. Check
3942 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
3943 (TEST_FUNCTION): Removed.
3944 Include <support/test-driver.c> instead of
3945 "../../test-skeleton.c".
3946 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
3947 Check POPCNT instead of POPCOUNT.
3948 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
3949
3950 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3951
3952 * scripts/gen-as-const.py (main): Avoid emitting empty line when
3953 there is no element in `consts'.
3954
3955 2018-12-01 Florian Weimer <fweimer@redhat.com>
3956
3957 * support/support_capture_subprocess.c
3958 (support_capture_subprocess): Check that pipe descriptors have
3959 expected values. Close original pipe descriptors in subprocess.
3960
3961 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3962
3963 [BZ #23032]
3964 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
3965 attr with __pthread_default_barrierattr.
3966 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
3967 attr with __pthread_default_condattr.
3968 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
3969 attr with __pthread_default_mutexattr.
3970 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
3971 attr with __pthread_default_rwlockattr.
3972
3973 2018-12-01 Kemi Wang <kemi.wang@intel.com>
3974
3975 * manual/tunables.texi (POSIX Thread Tunables): New node.
3976 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
3977 * nptl/nptl-init.c: Include pthread_mutex_conf.h
3978 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
3979 __pthread_tunables_init.
3980 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
3981 (max_adaptive_count): Define.
3982 * nptl/pthread_mutex_conf.c: New file.
3983 * nptl/pthread_mutex_conf.h: New file.
3984 * sysdeps/generic/adaptive_spin_count.h: New file.
3985 * sysdeps/nptl/dl-tunables.list: New file.
3986 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
3987 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
3988 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
3989 Likewise.
3990
3991 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3992
3993 [BZ #20544]
3994 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
3995 * stdlib/on_exit.c (__on_exit): Likewise.
3996 * stdlib/Makefile (tests): Add tst-bz20544.
3997 * stdlib/tst-bz20544.c: New test.
3998
3999 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
4000
4001 [BZ #19767]
4002 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4003 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4004 New.
4005
4006 2018-11-30 Florian Weimer <fweimer@redhat.com>
4007
4008 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4009 Extend error logging.
4010 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4011 symbol.
4012
4013 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4014
4015 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
4016 __sigismember instead of sigismember.
4017 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
4018 cancel_handler): New definitions.
4019 (do_system): Use posix_spawn instead of fork and execl and remove
4020 reentracy code.
4021 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
4022 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4023 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4024 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4025 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4026 * sysdeps/unix/sysv/linux/system.c: Likewise.
4027
4028 [BZ #22834]
4029 [BZ #17490]
4030 * NEWS: Add new semantic for atfork with popen and system.
4031 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4032 fork and execl.
4033
4034 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4035
4036 [BZ #23690]
4037 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4038 modification order when accessing reloc_result->addr.
4039 * include/link.h (reloc_result): Add field init.
4040 * nptl/Makefile (tests): Add tst-audit-threads.
4041 (modules-names): Add tst-audit-threads-mod1 and
4042 tst-audit-threads-mod2.
4043 Add rules to build tst-audit-threads.
4044 * nptl/tst-audit-threads-mod1.c: New file.
4045 * nptl/tst-audit-threads-mod2.c: Likewise.
4046 * nptl/tst-audit-threads.c: Likewise.
4047 * nptl/tst-audit-threads.h: Likewise.
4048
4049 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4050
4051 * scripts/gen-as-const.py: New file.
4052 * scripts/gen-as-const.awk: Remove.
4053 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4054 gen-as-const.py.
4055 ($(objpfx)test-as-const-%.c): Likewise.
4056
4057 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4058
4059 * elf/dl-exception.c: Include <_itoa.h>.
4060
4061 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4062
4063 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4064 returned by __f_setlk.
4065
4066 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4067 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4068
4069 * elf/Makefile (tests-internal): Add tst-create_format1.
4070 * elf/dl-exception.c (_dl_exception_create_format): Support
4071 %x, %lx and %zx.
4072 * elf/tst-create_format1.c: New file.
4073
4074 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4075
4076 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4077 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4078 gnulib.)
4079 * argp/argp-help.c (__argp_failure): Likewise.
4080
4081 2018-11-29 Mao Han <han_mao@c-sky.com>
4082
4083 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4084 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4085 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4086 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4087 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4088 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4089 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4090 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4091 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4092 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4093 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4094 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4095 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4096 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4097 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4098 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4099 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4100 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4101 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4102 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4103 (R_CKCORE_TLS_TPOFF32): New defines.
4104
4105 2018-11-29 Florian Weimer <fweimer@redhat.com>
4106
4107 * posix/Makefile (before-compile): Remove testcases.h and
4108 ptestcases.h.
4109 (generated): Add testcases.h and ptestcases.h.
4110 (testcases.h, ptestcases.h): Move to $(objpfx).
4111 (runtests.o): Add dependency on testcases.h.
4112 (runptests.o): Add dependency on ptestcases.h.
4113 * posix/testcases.h, posix/ptestcases.h: Remove files.
4114 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4115 not touch posix/testcases.h and posix/ptestcases.h.
4116
4117 2018-11-28 Florian Weimer <fweimer@redhat.com>
4118
4119 support: Add signal support to support_capture_subprocess_check.
4120 * support/capture_subprocess.h (support_capture_subprocess_check):
4121 Adjust comment and rename parameter.
4122 * support/support_capture_subprocess_check.c
4123 (print_actual_status): New function.
4124 (support_capture_subprocess_check): Support negative
4125 status_or_signal. Call print_actual_status.
4126 * support/tst-support_capture_subprocess.c (do_test): Call
4127 support_capture_subprocess_check.
4128 * libio/tst-vtables-common.c (termination_status)
4129 (init_termination_status): Remove.
4130 (check_for_termination): Adjust support_capture_subprocess_check
4131 call.
4132 (do_test): Remove call to init_termination_status.
4133
4134 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4135
4136 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4137 source directory instead of a copy.
4138 (CommandList.create_copy_dir): Remove.
4139
4140 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4141
4142 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4143
4144 2018-11-28 Florian Weimer <fweimer@redhat.com>
4145
4146 * support/support.h (support_quote_string): Do not use str
4147 parameter name.
4148
4149 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4150
4151 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4152 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4153
4154 2018-11-27 Florian Weimer <fweimer@redhat.com>
4155
4156 * support/support.h (support_quote_string): Declare.
4157 * support/support_quote_string.c: New file.
4158 * support/tst-support_quote_string.c: Likewise.
4159 * support/Makefile (libsupport-routines): Add
4160 support_quote_string.
4161 (tests): Add tst-support_quote_string.
4162
4163 2018-11-27 Florian Weimer <fweimer@redhat.com>
4164
4165 [BZ #23927]
4166 CVE-2018-19591
4167 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4168 descriptor leak in case of ENODEV error.
4169
4170 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4171
4172 [BZ #19767]
4173 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4174 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4175 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4176
4177 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4178
4179 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4180 Error for unknown lines.
4181
4182 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4183
4184 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4185 Touch additional files.
4186
4187 2018-11-26 Florian Weimer <fweimer@redhat.com>
4188
4189 [BZ #23907]
4190 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4191 double-frees.
4192
4193 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4194
4195 [BZ #19767]
4196 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4197 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4198 SHARED. Include sysdep.h.
4199 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4200 ALWAYS_USE_VSYSCALL.
4201 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4202 ALWAYS_USE_VSYSCALL.
4203
4204 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4205
4206 [BZ #19767]
4207 * nptl/Makefile (tests-static): Add tst-cond11-static.
4208 (tests): Likewise.
4209 * nptl/tst-cond11-static.c: New File.
4210 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4211 tst-affinity-static.
4212 (tests): Likewise.
4213 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4214 instead of SHARED.
4215 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4216 (USE_VSYSCALL): Likewise.
4217 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4218 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4219 instead of SHARED.
4220 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4221 SHARED.
4222 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4223 New.
4224
4225 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4226
4227 [BZ #23915]
4228 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4229 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4230 Undefine.
4231
4232 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4233
4234 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4235 (tst-cet-legacy-1a-ARGS): New.
4236 ($(objpfx)tst-cet-legacy-1a): New target.
4237 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4238
4239 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4240
4241 * conform/conformtest.py (CompileSubTest.__init__): Set
4242 self.run_early to False.
4243 (ExecuteSubTest.__init__): Likewise.
4244 (HeaderTests.run): Try running all non-optional, non-XFAILed
4245 compilation tests in a single execution of the compiler.
4246
4247 * conform/conformtest.py (CompileSubTest): New class.
4248 (ExecuteSubTest): Likewise.
4249 (ElementTest.run): Rename to gen_subtests. Append tests to
4250 self.subtests instead of running them.
4251 (ConstantTest.run): Likewise.
4252 (SymbolTest.run): Likewise.
4253 (TypeTest.run): Likewise.
4254 (TagTest.run): Likewise.
4255 (FunctionTest.run): Likewise.
4256 (VariableTest.run): Likewise.
4257 (MacroFunctionTest.run): Likewise.
4258 (MacroStrTest.run): Likewise.
4259 (HeaderTests.handle_test_line): Generate subtests for tests.
4260 (HeaderTests.run): Run subtests for tests.
4261
4262 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4263
4264 * math/Versions (GLIBC_2.29): Add pow.
4265 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4266 symbol.
4267 * math/w_pow.c: New file.
4268 * sysdeps/i386/fpu/w_pow.c: New file.
4269 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4270 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4271 and add necessary aliases.
4272 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4273 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4274 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4275 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4276 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4277 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4278 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4279 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4280 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4281 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4282 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4283 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4284 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4285 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4286 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4287 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4288 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4289 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4290 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4291 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4292 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4293 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4294 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4295 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4296 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4297 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4298 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4299 __pow.
4300 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4301 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4302 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4303
4304 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4305
4306 * math/Versions (GLIBC_2.29): Add log2.
4307 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4308 symbol.
4309 * math/w_log2.c: New file.
4310 * sysdeps/i386/fpu/w_log2.c: New file.
4311 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4312 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4313 and add necessary aliases.
4314 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4315 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4316 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4317 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4318 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4319 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4320 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4321 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4322 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4323 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4324 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4325 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4326 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4327 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4328 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4329 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4330 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4331 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4332 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4333 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4334 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4335 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4336 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4337 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4338 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4339 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4340
4341 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4342
4343 * math/Versions (GLIBC_2.29): Add log.
4344 * math/w_log_compat.c (__log_compat): Change to versioned compat
4345 symbol.
4346 * math/w_log.c: New file.
4347 * sysdeps/i386/fpu/w_log.c: New file.
4348 * sysdeps/ia64/fpu/e_log.S: Update.
4349 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
4350 and add necessary aliases.
4351 * sysdeps/ieee754/dbl-64/w_log.c: New file.
4352 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
4353 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4354 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4355 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4356 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4357 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4358 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4359 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4360 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4361 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4362 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4363 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4364 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4365 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4366 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4367 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4368 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4369 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4370 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4371 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4372 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4373 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4374 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4375 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4376 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4377 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
4378 __log.
4379 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
4380 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
4381 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
4382 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
4383
4384 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4385
4386 * math/Versions (GLIBC_2.29): Add exp and exp2.
4387 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
4388 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
4389 * math/w_exp_compat.c (__exp_compat): Likewise.
4390 * math/w_exp.c: New file.
4391 * math/w_exp2.c: New file.
4392 * sysdeps/i386/fpu/w_exp.c: New file.
4393 * sysdeps/i386/fpu/w_exp2.c: New file.
4394 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
4395 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4396 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
4397 and add necessary aliases.
4398 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
4399 and add necessary aliases.
4400 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
4401 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
4402 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
4403 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
4404 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4405 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4406 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4407 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4408 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4409 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4410 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4411 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4412 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4413 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4414 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4415 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4416 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4417 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4418 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4419 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4420 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4421 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4422 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4423 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4424 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4425 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4426 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4427 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4428 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
4429 (__ieee754_exp): Rename to __exp.
4430 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
4431 (__ieee754_exp): Rename to __exp.
4432 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
4433 (__ieee754_exp): Rename to __exp.
4434 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
4435 __exp.
4436 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
4437
4438 2018-11-20 DJ Delorie <dj@redhat.com>
4439
4440 * malloc/malloc.c (tcache_entry): Add key field.
4441 (tcache_put): Set it.
4442 (tcache_get): Likewise.
4443 (_int_free): Check for double free in tcache.
4444 * malloc/tst-tcfree1.c: New.
4445 * malloc/tst-tcfree2.c: New.
4446 * malloc/Makefile: Run the new tests.
4447 * manual/probes.texi: Document memory_tcache_double_free probe.
4448
4449 * dlfcn/dlerror.c (check_free): Prevent double frees.
4450
4451 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
4452
4453 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
4454
4455 2018-11-20 Joseph Myers <joseph@codesourcery.com>
4456
4457 * conform/conformtest.py (ElementTest.run): Use unique identifiers
4458 in tests. Use names for format arguments.
4459 (ConstantTest.run): Likewise.
4460 (SymbolTest.run): Likewise.
4461 (TypeTest.run): Likewise.
4462 (TagTest.run): Likewise.
4463 (FunctionTest.run): Likewise.
4464 (VariableTest.run): Likewise.
4465 (MacroFunctionTest.run): Likewise.
4466 (MacroStrTest.run): Likewise.
4467 (HeaderTests.__init__): Set self.num_tests.
4468 (HeaderTests.handle_test_line): Set test.num. Increment
4469 self.num_tests.
4470
4471 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4472
4473 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
4474 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
4475 SEEK_SET.
4476
4477 2018-11-19 Mao Han <han_mao@c-sky.com>
4478
4479 * scripts/config.guess: Update to version 2018-08-29.
4480 * scripts/config.sub: Update to version 2018-08-29.
4481
4482 2018-11-19 Florian Weimer <fweimer@redhat.com>
4483
4484 support: Print timestamps in timeout handler.
4485 * support/support_test_main.c (print_timestamp): New function.
4486 (signal_handler): Use it to print the termination time and the
4487 time of the last write to standard output.
4488
4489 2018-11-16 Zack Weinberg <zackw@panix.com>
4490 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4491
4492 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
4493 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
4494 argument.
4495 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
4496 and add flags argument. Check flags instead of __ldbl_is_dbl when
4497 deciding whether to set is_long_double.
4498 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
4499 passing zero for flags argument.
4500 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
4501
4502 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4503 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
4504 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
4505 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
4506 variable names. Remove libc_hidden_def/libc_hidden_proto from
4507 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
4508 longer called from within the library.
4509 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
4510 for __nldbl___vstrfmon_l, declare it explicitly.
4511
4512 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
4513
4514 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
4515
4516 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
4517 macros
4518 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
4519 F_SETLK64, F_SETLKW64, respectively.
4520 * sysdeps/mach/hurd/f_setlk.c: New file.
4521 * sysdeps/mach/hurd/f_setlk.h: New file.
4522 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
4523 f_setlk.
4524 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
4525 (__libc_fcntl): Move non-flock operations to...
4526 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
4527 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
4528
4529 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
4530
4531 mktime: DEBUG_MKTIME cleanup
4532 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
4533 And it’s no longer needed now that glibc and Gnulib both have
4534 their own testing mechanisms for mktime.
4535 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
4536
4537 mktime: fix non-EOVERFLOW errno handling
4538 [BZ#23789]
4539 mktime was not properly reporting failures when the underlying
4540 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
4541 them like EOVERFLOW failures, and set errno to EOVERFLOW.
4542 The problem could happen on non-glibc platforms, with Gnulib.
4543 * time/mktime.c (guess_time_tm): Remove, replacing with ...
4544 (tm_diff): ... this simpler function, which does not change errno.
4545 All callers changed to deal with errno themselves.
4546 (ranged_convert, __mktime_internal): Return failure immediately if
4547 the underlying function reports any failure other than EOVERFLOW.
4548 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
4549 gap code fails.
4550
4551 mktime: fix bug with Y2038 DST transition
4552 [BZ#23789]
4553 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
4554 mishandle a DST transition that jumps over the Y2038 boundary.
4555 No such DST transitions are known so this is only a theoretical
4556 bug, but we might as well do things right.
4557
4558 mktime: make more room for overflow
4559 [BZ#23789]
4560 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
4561 This is so that we can add tm_diff results to a previous guess,
4562 which will be useful in a later patch.
4563
4564 mktime: simplify offset guess
4565 [BZ#23789]
4566 * time/mktime.c (__mktime_internal): Omit excess precision.
4567
4568 mktime: new test for mktime failure
4569 [BZ#23789]
4570 Based on a test suggested by Albert Aribaud in:
4571 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
4572 * time/Makefile (tests): Add bug-mktime4.
4573 * time/bug-mktime4.c: New file.
4574
4575 mktime: fix EOVERFLOW bug
4576 [BZ#23789]
4577 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
4578 Include libc-config.h, not config.h, for __set_errno.
4579 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
4580
4581 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4582
4583 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
4584 __attribute_copy__ to copy attributes from name. Drop static qualifier
4585 to avoid warnings about leaf attribute not having effect on static
4586 functions.
4587
4588 2018-11-13 Florian Weimer <fweimer@redhat.com>
4589
4590 * malloc/malloc.c (fastbin_push_entry): New function.
4591 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
4592 (REMOVE_FB): Remove macro.
4593 (_int_malloc): Use fastbin_pop_entry and reindent.
4594 (_int_free): Use fastbin_push_entry.
4595 (malloc_consolidate): Use atomic_exchange_acquire.
4596
4597 2018-11-13 Joseph Myers <joseph@codesourcery.com>
4598
4599 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
4600 alias attribute, not with strong_alias.
4601
4602 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
4603 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
4604 with additional parameter thread.
4605 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
4606 in terms of __hidden_ver2.
4607 (hidden_tls_def): New macro.
4608 (libc_hidden_tls_def): Likewise.
4609 (rtld_hidden_tls_def): Likewise.
4610 (libm_hidden_tls_def): Likewise.
4611 (libmvec_hidden_tls_def): Likewise.
4612 (libresolv_hidden_tls_def): Likewise.
4613 (librt_hidden_tls_def): Likewise.
4614 (libdl_hidden_tls_def): Likewise.
4615 (libnss_files_hidden_tls_def): Likewise.
4616 (libnsl_hidden_tls_def): Likewise.
4617 (libnss_nisplus_hidden_tls_def): Likewise.
4618 (libutil_hidden_tls_def): Likewise.
4619 (libutil_hidden_tls_def): Likweise.
4620 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
4621 libc_hidden_tls_def.
4622 (__sim_disabled_exceptions_thread): Likewise.
4623 (__sim_round_mode_thread): Likewise.
4624
4625 * sysdeps/sparc/sparc-ifunc.h [SHARED]
4626 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
4627 copy attributes from name.
4628
4629 2018-11-12 Joseph Myers <joseph@codesourcery.com>
4630
4631 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
4632 Use __attribute_copy__ to copy attributes from name.
4633
4634 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
4635 with __hidden_ver1 call.
4636 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
4637 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
4638 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
4639 (__cosf): Do not declare here.
4640 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
4641 (__sincosf): Do not declare here.
4642 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
4643 (__sinf): Do not declare here.
4644
4645 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
4646 (__BIG_ENDIAN): Likewise.
4647 (__BYTE_ORDER): Likewise.
4648 (strong_alias): Likewise.
4649 (_strong_alias): Likewise.
4650
4651 2018-11-12 Florian Weimer <fweimer@redhat.com>
4652
4653 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
4654 function. Move after the definition of in_smallbin_range. Do not
4655 use __builtin_expect for paths that lead to a noreturn function.
4656 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
4657 because it is unclear whether this is in fact an unlikely
4658 condition.
4659 (_int_malloc, _int_free): Adjust.
4660 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
4661 variables.
4662 * malloc/arena.c (heap_trim): Likewise.
4663
4664 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4665
4666 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
4667 it, free it if needed.
4668 (reauthenticate): Test and use ccwdir.
4669 (child_init_port): In non-resetids case, test and use ccwdir.
4670 (child_chdir): New nested function to set ccwdir.
4671 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
4672 * hurd/hurd/port.h (_hurd_port_move): New function.
4673 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
4674 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
4675 * hurd/Versions (_hurd_port_move): Export function.
4676 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
4677 symbol.
4678 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
4679 of dtablesize for allocating dtable_cloexec.
4680
4681 2018-11-09 Martin Sebor <msebor@redhat.com>
4682
4683 * include/libc-symbols.h (__attribute_copy__): Define macro unless
4684 it's already defined.
4685 (_strong_alias): Use __attribute_copy__.
4686 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
4687 * misc/sys/cdefs.h (__attribute_copy__): New macro.
4688 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
4689 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
4690 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
4691 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
4692 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
4693 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
4694 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
4695 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
4696 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
4697 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
4698 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
4699 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
4700 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
4701 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
4702 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
4703 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
4704 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
4705
4706 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4707
4708 * misc/tst-efgcvt.c: Include support/check.h and
4709 support/test-driver.c. Do not include test-skeleton.c.
4710 (error_count): Remove.
4711 (output_error): Replace increments to error_count with calls to
4712 support_record_failure.
4713 (output_r_error): Likewise.
4714 (special): Likewise.
4715 (do_test): Unconditionally return zero.
4716 (TEST_FUNCTION): Remove.
4717
4718 2018-11-09 Joseph Myers <joseph@codesourcery.com>
4719
4720 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
4721 not $(@D)/scratch.
4722 ($(linknamespace-header-tests)): Likewise.
4723
4724 * conform/conformtest.py: New file.
4725 * conform/conformtest.pl: Remove.
4726 * conform/GlibcConform.pm: Likewise.
4727 * conform/glibcconform.py (KEYWORDS_C90): New constant.
4728 (KEYWORDS_C99): Likewise.
4729 (KEYWORDS): Likewise.
4730 * conform/Makefile ($(conformtest-header-tests)): Use
4731 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
4732 option. Use --header instead of --headers.
4733 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
4734 function entries.
4735 * conform/data/spawn.h-data: Likewise.
4736 * conform/data/fcntl.h-data (openat): Add space after function
4737 name.
4738 * conform/data/wchar.h-data (wcscasecmp): Likewise.
4739 (wcscasecmp_l): Likewise.
4740 * conform/data/termios.h-data (c_cc): Add space after element
4741 name.
4742
4743 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4744
4745 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
4746 instead of manually comparing and reporting mismatching strings.
4747 * misc/tst-ldbl-error.c (do_one_test): Likewise.
4748 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
4749
4750 2018-11-08 Joseph Myers <joseph@codesourcery.com>
4751
4752 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
4753 __ASSUME_SOCKETCALL.
4754 * sysdeps/unix/sysv/linux/i386/kernel-features.h
4755 (__ASSUME_SOCKETCALL): Remove.
4756 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4757 (__ASSUME_SOCKETCALL): Likewise.
4758 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4759 (__ASSUME_SOCKETCALL): Likewise.
4760 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4761 (__ASSUME_SOCKETCALL): Likewise.
4762 * sysdeps/unix/sysv/linux/s390/kernel-features.h
4763 (__ASSUME_SOCKETCALL): Likewise.
4764 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4765 (__ASSUME_SOCKETCALL): Likewise.
4766 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4767 (__ASSUME_SOCKETCALL): Likewise.
4768
4769 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
4770
4771 [BZ #23509]
4772 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
4773 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
4774 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
4775 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
4776 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
4777 lc_unknown.
4778
4779 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
4780
4781 [BZ #17630]
4782 * resolv/tst-resolv-network.c: Add test for getnetbyname.
4783
4784 2018-11-07 Joseph Myers <joseph@codesourcery.com>
4785
4786 [BZ #23867]
4787 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4788 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4789 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4790 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4791
4792 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4793
4794 * support/support_test_compare_string.c
4795 (support_test_compare_string): Fix printf format.
4796
4797 2018-11-07 Florian Weimer <fweimer@redhat.com>
4798
4799 Implement TEST_COMPARE_STRING.
4800 * support/check.h (TEST_COMPARE_STRING): Define.
4801 (support_test_compare_string): Declare.
4802 * support/Makefile (libsupport-routines): Add
4803 support_test_compare_string.
4804 (tests): Add tst-test_compare_string.
4805 * support/support_test_compare_string.c: New file.
4806 * support/tst-test_compare_string.c: Likewise.
4807
4808 2018-11-07 Andreas Schwab <schwab@suse.de>
4809
4810 [BZ #23864]
4811 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
4812 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
4813 Undef.
4814
4815 2018-11-06 Joseph Myers <joseph@codesourcery.com>
4816
4817 [BZ #23862]
4818 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4819 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
4820 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
4821 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
4822 Likewise.
4823
4824 2018-11-06 Florian Weimer <fweimer@redhat.com>
4825
4826 [BZ #17405]
4827 * posix/Makefile (routines): Add spawn_faction_addchdir.
4828 (tests): Add tst-spawn-chdir.
4829 * posix/Versions (GLIBC_2.29): Add
4830 posix_spawn_file_actions_addchdir_np.
4831 * posix/spawn_faction_addchdir.c: New file.
4832 * posix/spawn_faction_destroy.c
4833 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
4834 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
4835 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
4836 chdir_action.
4837 * posix/tst-spawn-chdir.c: New file.
4838 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
4839 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4840 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4841 posix_spawn_file_actions_addchdir_np.
4842 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4843 Likewise.
4844 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4845 Likewise.
4846 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4847 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4848 Likewise.
4849 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4850 Likewise.
4851 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4852 Likewise.
4853 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4854 Likewise.
4855 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4856 Likewise.
4857 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4858 Likewise.
4859 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4860 (GLIBC_2.29): Likewise.
4861 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4862 (GLIBC_2.29): Likewise.
4863 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4864 (GLIBC_2.29): Likewise.
4865 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4866 (GLIBC_2.29): Likewise.
4867 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4868 Likewise.
4869 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4870 (GLIBC_2.29): Likewise.
4871 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4872 (GLIBC_2.29): Likewise.
4873 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4874 (GLIBC_2.29): Likewise.
4875 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4876 (GLIBC_2.29): Likewise.
4877 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4878 Likewise.
4879 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4880 Likewise.
4881 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4882 Likewise.
4883 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4884 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4885 Likewise.
4886 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4887 Likewise.
4888 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4889 Likewise.
4890 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4891 Likewise.
4892
4893 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4894
4895 * misc/Makefile (tests): Add tst-ldbl-error.
4896 * misc/tst-ldbl-error.c: New file.
4897
4898 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4899
4900 * misc/Makefile (tests): Add tst-ldbl-warn.
4901 * misc/tst-ldbl-warn.c: New file.
4902
4903 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4904
4905 * argp/Makefile (tests): Add tst-ldbl-argp.
4906 * argp/tst-ldbl-argp.c: New file.
4907
4908 2018-11-05 Arjun Shankar <arjun@redhat.com>
4909
4910 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
4911 __gconv_path_elem and call __gconv_get_path unconditionally.
4912
4913 2018-11-05 Andreas Schwab <schwab@suse.de>
4914
4915 [BZ #22927]
4916 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
4917 creating the first helper thread failed.
4918
4919 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4920
4921 * sysdeps/mach/hurd/msync.c: New file.
4922
4923 2018-11-02 Florian Weimer <fweimer@redhat.com>
4924
4925 * support/shell-container.c (copy_func): Call
4926 support_copy_file_range instead of copy_file_range to support
4927 cross-device copies.
4928
4929 2018-11-02 Florian Weimer <fweimer@redhat.com>
4930
4931 * support/test-container.c: Include <libc-pointer-arith.h> for
4932 ALIGN_UP.
4933
4934 2018-11-01 Zong Li <zong@andestech.com>
4935
4936 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
4937 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
4938 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
4939 (__FP_FRAC_SET_8): Add implementation for RV32 use.
4940
4941 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
4942 variable to avoid overlap arguments.
4943
4944 2018-11-01 Joseph Myers <joseph@codesourcery.com>
4945
4946 * posix/bug-regex22.c (main): Use puts with distinct error
4947 messages for unexpected success of re_compile_pattern, not printf
4948 with NULL argument to %s.
4949
4950 * stdio-common/bug22.c: Include <libc-diag.h>.
4951 (do_test): Disable -Wformat-overflow= warnings around fprintf
4952 calls outputting more than INT_MAX characters.
4953 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
4954 around printf call with NULL %s argument.
4955
4956 [BZ #23848]
4957 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
4958 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
4959 Undefine.
4960 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4961 (__ASSUME_RECVMSG_SYSCALL): Likewise.
4962 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4963 (__ASSUME_SENDTO_SYSCALL): Likewise.
4964 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4965 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
4966 [!__arch64__].
4967 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4968 (__ASSUME_CONNECT_SYSCALL): Likewise.
4969 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4970 (__ASSUME_RECVFROM_SYSCALL): Likewise.
4971 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
4972 Define.
4973 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
4974 Likewise.
4975 [__LINUX_KERNEL_VERSION >= 0x040400]
4976 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
4977 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
4978 Remove.
4979 (listen): Likewise.
4980 (setsockopt): Likewise.
4981
4982 2018-11-01 Fredrik Noring <noring@nocrew.org>
4983
4984 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
4985 with the ISA override.
4986
4987 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
4988
4989 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
4990 #endif.
4991
4992 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
4993
4994 * manual/errno.texi (EIEIO): Document how translators should
4995 translate the error message.
4996 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
4997 printing trailing whitespaces refused by git.
4998 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
4999 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5000 * hurd/Makefile (user-interfaces): Add pci.
5001
5002 2018-10-30 Joseph Myers <joseph@codesourcery.com>
5003
5004 * conform/linknamespace.py: New file.
5005 * conform/linknamespace.pl: Remove file.
5006 * conform/Makefile ($(linknamespace-header-tests)): Use
5007 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
5008 option.
5009
5010 2018-10-30 Florian Weimer <fweimer@redhat.com>
5011
5012 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5013 memory leaks.
5014
5015 2018-10-30 Florian Weimer <fweimer@redhat.com>
5016
5017 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
5018
5019 2018-10-30 Florian Weimer <fweimer@redhat.com>
5020
5021 * stdlib/tst-strtod-overflow.c (do_test): Switch to
5022 support_blob_repeat.
5023
5024 2018-10-30 Florian Weimer <fweimer@redhat.com>
5025
5026 Avoid spurious test failures in stdlib/test-bz22786.
5027 * support/Makefile (libsupport-routines): Add blob_repeat.
5028 (tests): Add tst-support_blob_repeat.
5029 * support/blob_repeat.h: New file.
5030 * support/blob_repeat.c: Likewise.
5031 * support/tst-support_blob_repeat.c: Likewise.
5032 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5033 support_blob_repeat_allocate.
5034
5035 2018-10-30 Andreas Schwab <schwab@suse.de>
5036
5037 [BZ #23125]
5038 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5039 Don't use tail call.
5040 * elf/tst-unwind-main.c: New file.
5041 * elf/Makefile (tests): Add tst-unwind-main.
5042 (CFLAGS-tst-unwind-main.c): Define.
5043
5044 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5045
5046 [BZ #23791]
5047 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5048 n_cs_precedes to 0.
5049 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5050
5051 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5052
5053 * conform/glibcconform.py: Do not import shutil.
5054 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5055 of mkdtemp.
5056
5057 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5058 critic_missing for versions before 3.4.
5059 * configure: Regenerated.
5060 * manual/install.texi (Tools for Compilation): Document
5061 requirement for Python to build glibc.
5062 * INSTALL: Regenerated.
5063 * Rules [PYTHON]: Make code unconditional.
5064 * benchtests/Makefile [PYTHON]: Likewise.
5065 * conform/Makefile [PYTHON]: Likewise.
5066 * manual/Makefile [PYTHON]: Likewise.
5067 * math/Makefile [PYTHON]: Likewise.
5068
5069 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5070
5071 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5072 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5073 answer to interrupt_operation, return EIEIO instead of EINTR.
5074 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5075 _hurd_intr_rpc_msg_about_to global point to start of controlled
5076 assembly snippet. Make it check canceled flag.
5077 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5078 the _hurd_intr_rpc_msg_about_to point.
5079 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5080 issue, remove cancel flag check.
5081
5082 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5083
5084 * scripts/build-many-glibcs.py: Remove compatibility for missing
5085 os.cpu_count and re.fullmatch.
5086
5087 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5088
5089 [BZ #23822]
5090 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5091 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5092 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5093
5094 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5095
5096 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5097 macro.
5098
5099 2018-10-25 Florian Weimer <fweimer@redhat.com>
5100
5101 [BZ #23562]
5102 [BZ #23821]
5103 XFAIL siginfo_t si_band conform test on sparc64.
5104 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5105 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5106 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5107 (conformtest-xfail-conds): Add sparc64-linux.
5108 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5109 sparc64.
5110 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5111
5112 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5113
5114 * elf/elf.h (NT_MIPS_DSP): New macro.
5115 (NT_MIPS_FP_MODE): Likewise.
5116
5117 2018-10-25 Zong Li <zong@andestech.com>
5118
5119 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5120 name by adding the file extension (.so).
5121
5122 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5123
5124 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5125 (test-xfail-ISO11/threads.h/linknamespace,
5126 test-xfail-ISO11/threads.h/conform): Add.
5127
5128 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5129
5130 * math/gen-libm-test.py: Import os.
5131 (ALL_FLOATS_MANUAL): New constant.
5132 (ALL_FLOATS_SUFFIX): Likewise.
5133 (Ulps.all_functions): New function.
5134 (real_all_ulps): Likewise.
5135 (generate_err_table_sub): Likewise.
5136 (generate_err_table): Likewise.
5137 (main): Handle -s and -m options.
5138 * manual/libm-err-tab.pl: Remove.
5139 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5140 instead of libm-err-tab.pl.
5141 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5142 != no].
5143 * manual/install.texi (Tools for Compilation): Document
5144 requirement for Python to build manual.
5145 * INSTALL: Regenerated.
5146
5147 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5148
5149 * bits/time64.h: New file.
5150 * include/time.h: Replace internal_time_t with __time64_t.
5151 * posix/bits/types (__time64_t): Add.
5152 * stdlib/Makefile: Add bits/time64.h to includes.
5153 * time/tzfile.c: Replace internal_time_t with __time64_t.
5154
5155 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5156
5157 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5158 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5159 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5160 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5161 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5162 prototype.
5163 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5164 * posix/spawn_faction_addclose.c
5165 (__posix_spawn_file_actions_addclose): Add hidden definition.
5166 * posix/spawn_faction_adddup2.c
5167 (__posix_spawn_file_actions_adddup2): Likewise.
5168 * posix/spawn_faction_destroy.c
5169 (__posix_spawn_file_actions_destroy): Likewise.
5170 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5171 Likewise.
5172 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5173 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5174 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5175 Likewise.
5176 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5177 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5178 Likewise.
5179
5180 2018-10-24 Andreas Schwab <schwab@suse.de>
5181
5182 [BZ #18093]
5183 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5184 format cache.
5185 * elf/cache.c (print_cache): Likewise.
5186
5187 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5188
5189 * bits/timesize.h: New file.
5190 * stdlib/Makefile (headers): Add bits/timesize.h.
5191 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5192 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5193 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5194 (__SEM_PAD_AFTER_TIME): Likewise.
5195 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5196 (__SHM_PAD_AFTER_TIME): Likewise.
5197 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5198 (__MSQ_PAD_BEFORE_TIME): Likewise.
5199 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5200 (__SEM_PAD_BEFORE_TIME): Likewise.
5201 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5202 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5203 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5204 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5205 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5206 (__MSQ_PAD_BEFORE_TIME): Likewise.
5207 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5208 (__SEM_PAD_BEFORE_TIME): Likewise.
5209 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5210 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5211 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5212 (__MSQ_PAD_BEFORE_TIME): Likewise.
5213 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5214 (__SEM_PAD_BEFORE_TIME): Likewise.
5215 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5216 (__SHM_PAD_BEFORE_TIME): Likewise.
5217 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5218 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5219 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5220
5221 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5222
5223 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5224 USE_RDTSCP is defined.
5225 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5226 USE_RDTSCP is defined.
5227
5228 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5229
5230 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5231 defined.
5232
5233 [BZ #23709]
5234 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5235 independently of other flags.
5236
5237 2018-10-23 Florian Weimer <fweimer@redhat.com>
5238
5239 * time/tst-mktime2.c (N_STRINGS): Remove.
5240 (set_timezone): New function.
5241 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5242 (mktime_test1): Report localtime failure and check errno value.
5243 Use TEST_COMPARE.
5244 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5245 (do_test): Remove alarm call. Use set_timezone and array_length.
5246
5247 2018-10-23 Andreas Schwab <schwab@suse.de>
5248
5249 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5250 (__start_context): Use END instead of PSEUDO_END.
5251
5252 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5253
5254 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5255 version to 4.19.
5256
5257 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5258 version to 4.19.
5259
5260 [BZ #23793]
5261 * wcsmbs/c32rtomb.c: New file.
5262 * wcsmbs/mbrtoc32.c: Likewise.
5263 * wcsmbs/tst-c32-state.c: Likewise.
5264 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5265 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5266 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5267 (tests): Add tst-c32-state.
5268 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5269 $(gen-locales).
5270
5271 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5272
5273 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5274 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5275
5276 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5277
5278 [BZ #23794]
5279 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5280 pair and return 0 in that case, and use saved character to
5281 interpret following character.
5282 * wcsmbs/tst-c16-surrogate.c: New file.
5283 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5284 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5285 Depend on $(gen-locales)
5286
5287 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5288
5289 [BZ #23562]
5290 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5291 (struct siginfo_t): Use correct type for si_band.
5292
5293 2018-10-19 Florian Weimer <fweimer@redhat.com>
5294
5295 [BZ #23689]
5296 * resource/bits/types/struct_rusage.h (struct rusage): Update
5297 comment on struct. Remove extraneous field comment.
5298
5299 2018-10-18 David S. Miller <davem@davemloft.net>
5300
5301 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5302 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5303 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5304 sysdep_routines in subdir elf.
5305 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5306 version for __vdso_clock_gettime.
5307 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5308 Define.
5309 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5310 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5311
5312 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5313
5314 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5315
5316 * sysdeps/i386/init-arch.h: Removed.
5317 * sysdeps/i386/i586/init-arch.h: Likewise.
5318 * sysdeps/i386/i686/init-arch.h: Likewise.
5319 * sysdeps/i386/i686/hp-timing.h: Likewise.
5320 * sysdeps/x86_64/hp-timing.h: Likewise.
5321 * sysdeps/i386/isa.h: New file.
5322 * sysdeps/i386/i586/isa.h: Likewise.
5323 * sysdeps/i386/i686/isa.h: Likewise.
5324 * sysdeps/x86_64/isa.h: Likewise.
5325 * sysdeps/x86/hp-timing.h: New file.
5326 * sysdeps/x86/init-arch.h: Include <isa.h>.
5327
5328 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5329
5330 * math/libm-test-pow.inc (pow_test_data): Do not allow
5331 divide-by-zero exception for pow(+/- 0, -Inf).
5332
5333 2018-10-17 Zack Weinberg <zackw@panix.com>
5334
5335 * manual/job.texi (Job Control is Optional): Remove node, as
5336 job control has not been optional in quite some time.
5337 (Job Control): Mention briefly that systems older than
5338 POSIX.1-2001 might not support job control.
5339 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5340 defined on systems conforming to POSIX.1-2001.
5341
5342 2018-10-17 Arjun Shankar <arjun@redhat.com>
5343
5344 [BZ #22062]
5345 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
5346 indentation.
5347 * (__gconv_read_conf): Mark function static.
5348 * (once): New static variable.
5349 * (__gconv_load_conf): New function.
5350 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
5351 * iconv/gconv_db.c (once): Remove static variable.
5352 * (__gconv_compare_alias): Use __gconv_load_conf instead of
5353 __gconv_read_conf.
5354 * (__gconv_find_transform): Likewise.
5355 * iconv/tst-iconv-mt.c: New test.
5356 * iconv/Makefile: Add tst-iconv_mt.
5357
5358 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5359
5360 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5361 bits/shm-pad.h.
5362 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5363 (shmatt_t): Define as __syscall_ulong_t.
5364 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5365 and [__SHM_PAD_AFTER_TIME].
5366 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5367 Define shm_segsz and associated padding based on
5368 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5369 Use __syscall_ulong_t instead of unsigned long int.
5370 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
5371 unsigned long int.
5372 [__USE_MISC] (struct shm_info): Likewise.
5373 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
5374 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
5375 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
5376 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
5377 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
5378 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5379 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
5380 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5381 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5382 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5383 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
5384
5385 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5386 bits/shmlba.h.
5387 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
5388 (SHMLBA): Remove macro.
5389 (__getpagesize): Remove function declaration.
5390 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
5391 <bits/shmlba.h>.
5392 (SHMLBA): Remove macro.
5393 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
5394 <bits/shmlba.h>.
5395 (SHMLBA): Remove macro.
5396 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
5397 <bits/shmlba.h>.
5398 (SHMLBA): Remove macro.
5399 (__getpagesize): Remove function declaration.
5400 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
5401 <bits/shmlba.h>.
5402 (SHMLBA): Remove macro.
5403 (__getshmlba): Remove function declaration.
5404 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
5405 (SHMLBA): Remove macro.
5406 (__getpagesize): Remove function declaration.
5407 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
5408 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5409 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5410 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
5411 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
5412 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
5413 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
5414 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
5415 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
5416 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
5417
5418 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
5419
5420 [BZ #23275]
5421 * nptl/tst-mutex10.c: New File.
5422 * nptl/Makefile (tests): Add tst-mutex10.
5423 (tst-mutex10-ENV): New variable.
5424 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
5425 Ensure that elision path is used if elision is available.
5426 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
5427 Likewise.
5428 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
5429 Likewise.
5430 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
5431 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
5432 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
5433 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
5434 Likewise.
5435 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
5436 (__pthread_mutex_cond_lock_adjust): Likewise.
5437 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
5438 Likewise.
5439 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
5440 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
5441 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5442 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
5443 Add comments.
5444 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
5445 Use atomic_load_relaxed and atomic_store_relaxed.
5446 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
5447 Use atomic_store_relaxed.
5448
5449 2018-10-17 Andreas Schwab <schwab@suse.de>
5450
5451 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
5452 * crypt/badsalttest.c (TIMEOUT): Likewise.
5453 * crypt/sha256c-test.c (TIMEOUT): Likewise.
5454 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
5455 * io/test-lfs.c (TIMEOUT): Likewise.
5456 * libio/tst-atime.c (TIMEOUT): Likewise.
5457 * localedata/tst-leaks.c (TIMEOUT): Likewise.
5458 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
5459 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
5460 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
5461 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
5462 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
5463 * nptl/tst-cond11.c (TIMEOUT): Likewise.
5464 * nptl/tst-cond14.c (TIMEOUT): Likewise.
5465 * nptl/tst-cond15.c (TIMEOUT): Likewise.
5466 * nptl/tst-cond24.c (TIMEOUT): Likewise.
5467 * nptl/tst-cond25.c (TIMEOUT): Likewise.
5468 * nptl/tst-kill2.c (TIMEOUT): Likewise.
5469 * nptl/tst-kill3.c (TIMEOUT): Likewise.
5470 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
5471 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
5472 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
5473 * nptl/tst-once2.c (TIMEOUT): Likewise.
5474 * nptl/tst-once3.c (TIMEOUT): Likewise.
5475 * nptl/tst-once4.c (TIMEOUT): Likewise.
5476 * nptl/tst-robust8.c (TIMEOUT): Likewise.
5477 * nptl/tst-robust9.c (TIMEOUT): Likewise.
5478 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
5479 * nptl/tst-sem14.c (TIMEOUT): Likewise.
5480 * nptl/tst-sem6.c (TIMEOUT): Likewise.
5481 * nptl/tst-signal3.c (TIMEOUT): Likewise.
5482 * nptl/tst-spin4.c (TIMEOUT): Likewise.
5483 * nptl/tst-tls3.c (TIMEOUT): Likewise.
5484 * nptl/tst-tls4.c (TIMEOUT): Likewise.
5485 * posix/tst-chmod.c (TIMEOUT): Likewise.
5486 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
5487 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
5488 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
5489 * posix/tst-regex2.c (TIMEOUT): Likewise.
5490 * posix/tst-waitid.c (TIMEOUT): Likewise.
5491 * rt/tst-aio.c (TIMEOUT): Likewise.
5492 * rt/tst-aio10.c (TIMEOUT): Likewise.
5493 * rt/tst-aio4.c (TIMEOUT): Likewise.
5494 * rt/tst-aio5.c (TIMEOUT): Likewise.
5495 * rt/tst-aio6.c (TIMEOUT): Likewise.
5496 * rt/tst-aio64.c (TIMEOUT): Likewise.
5497 * rt/tst-aio7.c (TIMEOUT): Likewise.
5498 * rt/tst-aio9.c (TIMEOUT): Likewise.
5499 * rt/tst-clock.c (TIMEOUT): Likewise.
5500 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
5501 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
5502 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
5503 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
5504 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
5505 * rt/tst-timer4.c (TIMEOUT): Likewise.
5506 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
5507 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
5508 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
5509 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
5510 * time/tst-ftime.c (TIMEOUT): Likewise.
5511 * timezone/tst-tzset.c (TIMEOUT): Likewise.
5512
5513 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5514
5515 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
5516 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
5517 for thunderX2.
5518
5519 2018-10-15 Joseph Myers <joseph@codesourcery.com>
5520
5521 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5522 bits/sem-pad.h.
5523 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
5524 instead of <bits/wordsize.h>.
5525 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
5526 and [__SEM_PAD_AFTER_TIME].
5527 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
5528 __syscall_ulong_t instead of unsigned long int.
5529 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
5530 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
5531 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
5532 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
5533 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
5534 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
5535 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
5536 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
5537 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
5538 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
5539 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
5540
5541 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
5542
5543 regex: simplify by using intprops.h
5544 [BZ#23744]
5545 * posix/regex_internal.h [_LIBC]: Include intprops.h.
5546 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
5547 intprops.h defines them.
5548
5549 regex: __builtin_expect → __glibc_unlikely
5550 [BZ#23744]
5551 This refactoring was prompted by a problem when the regex code is
5552 used as part of Gnulib and when the builder’s compiler does not grok
5553 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
5554 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
5555 Although this refactoring does not fix the problem directly,
5556 we might as well have Gawk use the now-preferred glibc style for when
5557 __builtin_expect is unavailable.
5558 * posix/regex_internal.h (BE): Remove.
5559 All uses replaced by __glibc_unlikely or __glibc_likely.
5560
5561 2018-10-11 Joseph Myers <joseph@codesourcery.com>
5562
5563 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5564 bits/msq-pad.h.
5565 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
5566 instead of <bits/wordsize.h>.
5567 (msgqnum_t): Define as __syscall_ulong_t.
5568 (msglen_t): Likewise.
5569 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
5570 and [__MSQ_PAD_AFTER_TIME].
5571 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
5572 __syscall_ulong_t instead of unsigned long int.
5573 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
5574 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
5575 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
5576 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
5577 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
5578 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
5579 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
5580 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
5581 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
5582 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
5583 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
5584
5585 2018-10-10 Joseph Myers <joseph@codesourcery.com>
5586
5587 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
5588 (struct shmid_ds): Condition padding after time fields on
5589 [__WORDSIZE == 32].
5590 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
5591 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
5592 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5593
5594 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
5595 (struct semid_ds): Condition padding after time fields on
5596 [__WORDSIZE == 32].
5597 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
5598 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
5599 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
5600 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
5601
5602 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
5603 (struct msqid_ds): Condition padding after time fields on
5604 [__WORDSIZE == 32].
5605 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
5606 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
5607 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
5608 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
5609
5610 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5611
5612 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
5613
5614 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5615
5616 * libio/tst-readline.c (TIMEOUT): Define.
5617
5618 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
5619
5620 mktime fix for Gnulib + coreutils
5621 [BZ#23745]
5622 This fix affects only Gnulib. Problem discovered when
5623 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
5624 * time/mktime.c:
5625 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
5626 Do not define since it is not used. Defining an unused static
5627 function prompts a warning from GCC when Coreutils is configured
5628 with --enable-gcc-warnings.
5629
5630 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5631
5632 * benchtests/scripts/compare_bench.py (main): set float type on
5633 threshold argument.
5634
5635 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
5636
5637 [BZ #23740]
5638 * localedata/locales/kl_GL (mon): Update, the relative case.
5639 (alt_mon): Add, fill with month names in the nominative case.
5640 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
5641 (d_fmt): Set to "%b %d %Y".
5642
5643 2018-10-04 Joseph Myers <joseph@codesourcery.com>
5644
5645 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
5646 <bits/mman-linux.h>.
5647 (PROT_READ): Don't define here.
5648 (PROT_WRITE): Likewise.
5649 (PROT_EXEC): Likewise.
5650 (PROT_NONE): Likewise.
5651 (PROT_GROWSDOWN): Likewise.
5652 (PROT_GROWSUP): Likewise.
5653 (MAP_SHARED): Likewise.
5654 (MAP_PRIVATE): Likewise.
5655 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
5656 [__USE_MISC] (MAP_FILE): Likewise.
5657 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
5658 [__USE_MISC] (MAP_ANON): Likewise.
5659 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
5660 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
5661 (MCL_CURRENT): Likewise.
5662 (MCL_FUTURE): Likewise.
5663 (MCL_ONFAULT): Likewise.
5664 [__USE_MISC] (MADV_NORMAL): Likewise.
5665 [__USE_MISC] (MADV_RANDOM): Likewise.
5666 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
5667 [__USE_MISC] (MADV_WILLNEED): Likewise.
5668 [__USE_MISC] (MADV_DONTNEED): Likewise.
5669 [__USE_MISC] (MADV_FREE): Likewise.
5670 [__USE_MISC] (MADV_REMOVE): Likewise.
5671 [__USE_MISC] (MADV_DONTFORK): Likewise.
5672 [__USE_MISC] (MADV_DOFORK): Likewise.
5673 [__USE_MISC] (MADV_HWPOISON): Likewise.
5674 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
5675 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
5676 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
5677 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
5678 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
5679 (__MAP_ANONYMOUS): New macro.
5680 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
5681 <bits/mman-linux.h> inclusion.
5682 (MAP_FIXED): Likewise.
5683 (MS_SYNC): Likewise.
5684 (MS_ASYNC): Likewise.
5685 (MS_INVALIDATE): Likewise.
5686 [__USE_MISC] (MADV_MERGEABLE): Likewise.
5687 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
5688 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
5689 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
5690 [__USE_MISC] (MADV_DONTDUMP): Likewise.
5691 [__USE_MISC] (MADV_DODUMP): Likewise.
5692 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
5693 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
5694
5695 [BZ #23735]
5696 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
5697 Define.
5698 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
5699 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
5700 Add test-nldbl-redirect.
5701 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
5702 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
5703 $(objpfx)libnldbl_nonshared.a.
5704
5705 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
5706
5707 * support/support.h (support_objdir_elf_ldso): New variable.
5708 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
5709 * support/Makefile (CFLAGS-support_paths.c): Add definition
5710 for OBJDIR_ELF_LDSO_PATH.
5711 * support/test-container.c (main): Search for the ld.so
5712 which is also used by the testsuite.
5713
5714 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
5715
5716 [BZ #20209]
5717 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
5718 should be "sap" rather than "sab".
5719 (day): Fix spelling of Sunday, should be "sapaat" rather than
5720 "sabaat".
5721
5722 2018-10-02 Joseph Myers <joseph@codesourcery.com>
5723
5724 * math/libm-test-fma.inc (fma_test_data): Add more tests.
5725
5726 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
5727
5728 [BZ #19444]
5729 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
5730 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
5731 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
5732
5733 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5734
5735 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
5736
5737 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
5738
5739 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
5740 Add -mrtm.
5741 (CFLAGS-elision-unlock.c): Likewise.
5742 (CFLAGS-elision-timed.c): Likewise.
5743 (CFLAGS-elision-trylock.c): Likewise.
5744 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
5745
5746 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5747
5748 [BZ #21037]
5749 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
5750 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
5751 new fd_to_filename interface.
5752 * libio/freopen64.c (freopen64): Likewise.
5753 * libio/tst-memstream.h: New file.
5754 * libio/tst-memstream4.c: Likewise.
5755 * libio/tst-wmemstream4.c: Likewise.
5756 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
5757 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
5758 and remove internal dynamic allocation.
5759
5760 2018-10-01 Joseph Myers <joseph@codesourcery.com>
5761
5762 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
5763 (MREMAP_MAYMOVE): Do not define here.
5764 [__USE_GNU] (MREMAP_FIXED): Likewise.
5765 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
5766 (MREMAP_MAYMOVE): Define here instead.
5767 [__USE_GNU] (MREMAP_FIXED): Likewise.
5768 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
5769 (MREMAP_MAYMOVE): Remove.
5770 [__USE_GNU] (MREMAP_FIXED): Likewise.
5771
5772 2018-09-28 Joseph Myers <joseph@codesourcery.com>
5773
5774 * math/fromfp.h: Do not include <math_private.h>.
5775 * math/s_cacosh_template.c: Likewise.
5776 * math/s_casin_template.c: Likewise.
5777 * math/s_casinh_template.c: Likewise.
5778 * math/s_ccos_template.c: Likewise.
5779 * math/s_cproj_template.c: Likewise.
5780 * math/s_fdim_template.c: Likewise.
5781 * math/s_fmaxmag_template.c: Likewise.
5782 * math/s_fminmag_template.c: Likewise.
5783 * math/s_iseqsig_template.c: Likewise.
5784 * math/s_ldexp_template.c: Likewise.
5785 * math/s_nextdown_template.c: Likewise.
5786 * math/w_log1p_template.c: Likewise.
5787 * math/w_scalbln_template.c: Likewise.
5788 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
5789 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
5790 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
5791 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
5792 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
5793 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
5794 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
5795 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
5796 * sysdeps/i386/fpu/s_atanl.c: Likewise.
5797 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
5798 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
5799 * sysdeps/i386/fpu/s_fdim.c: Likewise.
5800 * sysdeps/i386/fpu/s_logbl.c: Likewise.
5801 * sysdeps/i386/fpu/s_rintl.c: Likewise.
5802 * sysdeps/i386/fpu/s_significandl.c: Likewise.
5803 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
5804 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
5805 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5806 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5807 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
5808 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
5809 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5810 * sysdeps/ieee754/k_standardf.c: Likewise.
5811 * sysdeps/ieee754/k_standardl.c: Likewise.
5812 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5813 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
5814 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
5815 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
5816 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
5817 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
5818 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5819 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
5820 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
5821 * sysdeps/ieee754/s_signgam.c: Likewise.
5822 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
5823 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
5824 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
5825 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
5826 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
5827 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
5828 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5829 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
5830 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
5831 * sysdeps/riscv/rvd/s_finite.c: Likewise.
5832 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
5833 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
5834 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
5835 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
5836 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
5837 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
5838 * sysdeps/riscv/rvf/fegetround.c: Likewise.
5839 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
5840 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
5841 * sysdeps/riscv/rvf/fesetround.c: Likewise.
5842 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
5843 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
5844 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
5845 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
5846 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
5847 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
5848 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
5849 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
5850 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
5851 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
5852 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
5853 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
5854 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
5855 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
5856 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5857 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
5858 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
5859 <math_private.h>.
5860 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
5861
5862 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
5863
5864 [BZ #23716]
5865 * sysdeps/i386/dl-cet.c: Removed.
5866 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
5867 prototype.
5868 (_dl_runtime_profile_shstk): Likewise.
5869 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
5870 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
5871
5872 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5873
5874 [BZ #23579]
5875 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
5876 do_test_with_invalid_iov): New tests.
5877 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
5878 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
5879 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
5880 errno is ENOSYS.
5881 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
5882 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
5883 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
5884
5885 2018-09-27 Joseph Myers <joseph@codesourcery.com>
5886
5887 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5888 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
5889 (MATH_REDIRECT_BINARY_ARGS): New macro.
5890 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
5891 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
5892 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
5893 header inclusion.
5894 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
5895 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5896 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
5897 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5898 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5899 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5900 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5901 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
5902 Likewise.
5903 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
5904 Likewise.
5905 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
5906 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
5907 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
5908 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
5909 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
5910 Likewise.
5911 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
5912 Likewise.
5913 * sysdeps/generic/math_private_calls.h
5914 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
5915 Do not declare and define as an inline function.
5916 * math/divtc3.c (__divtc3): Use copysign functions instead of
5917 __copysign variants.
5918 * math/multc3.c (__multc3): Likewise.
5919 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
5920 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
5921 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
5922 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
5923 Likewise.
5924 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
5925 (__ieee754_yn): Likewise.
5926 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
5927 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
5928 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
5929 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
5930 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
5931 (__sin): Likewise.
5932 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
5933 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5934 Likewise.
5935 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
5936 Likewise.
5937 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
5938 Likewise.
5939 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
5940 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
5941 Likewise.
5942 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
5943 (__ieee754_ynf): Likewise.
5944 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
5945 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
5946 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
5947 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
5948 Likewise.
5949 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
5950 (__ieee754_ynl): Likewise.
5951 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
5952 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
5953 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
5954 Likewise.
5955 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
5956 (__ieee754_ynl): Likewise.
5957 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
5958 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
5959 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
5960 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
5961 Likewise.
5962 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
5963 (__ieee754_ynl)
5964 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
5965 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
5966 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
5967 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
5968 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
5969
5970 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5971 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
5972 using MATH_REDIRECT.
5973 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
5974 header inclusion.
5975 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
5976 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5977 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5978 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
5979 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5980 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
5981 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
5982 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
5983 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
5984 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
5985 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
5986 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5987 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5988 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
5989 (round): Redirect to __round.
5990 (__roundl): Call round instead of __round.
5991 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
5992 Remove macro.
5993 [_ARCH_PWR5X] (__roundf): Likewise.
5994 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
5995 functions instead of __round variants.
5996 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
5997 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
5998 Likewise.
5999 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6000 Likewise.
6001 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6002 Likewise.
6003 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6004 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6005 __lroundl.
6006 (__ieee754_expl): Call roundl instead of __roundl.
6007
6008 2018-09-27 Andreas Schwab <schwab@suse.de>
6009
6010 [BZ #23717]
6011 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6012 (do_test): Make st1 static.
6013
6014 2018-09-26 Andreas Schwab <schwab@suse.de>
6015
6016 [BZ #23707]
6017 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
6018 * elf/Makefile (tests): Add tst-unwind-ctor.
6019 (modules-names): Add tst-unwind-ctor-lib.
6020 ($(objpfx)tst-unwind-ctor): Depend on
6021 $(objpfx)tst-unwind-ctor-lib.so.
6022
6023 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6024
6025 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6026 file. Most contents moved from ....
6027 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6028 and include <bits/mman-map-flags-generic.h>.
6029 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6030 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6031 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6032 <bits/mman-map-flags-generic.h>.
6033 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6034 macros defined in <bits/mman-map-flags-generic.h>.
6035 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6036 <bits/mman-map-flags-generic.h>.
6037 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6038 defined in <bits/mman-map-flags-generic.h>.
6039
6040 2018-09-26 Andreas Schwab <schwab@suse.de>
6041
6042 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6043 output.
6044
6045 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6046 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6047 Fangrui Song <maskray@google.com>
6048
6049 [BZ #20480]
6050 * config.make.in (have-textrel_ifunc): New define.
6051 * configure.ac: Add check if linker supports textrel relocation with
6052 ifunc.
6053 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6054 tst-ifunc-textrel.
6055 (CFLAGS-tst-ifunc-textrel.c): New rule.
6056 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6057 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6058 * elf/tst-ifunc-textrel.c: New file.
6059
6060 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6061
6062 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6063 <bits/procfs-prregset.h>.
6064 (prgregset_t): Define using __prgregset_t.
6065 (prfpregset_t): Define using __prfpregset_t.
6066 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6067 (sysdep_headers): Add bits/procfs-prregset.h.
6068 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6069 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6070 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6071 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6072
6073 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6074 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6075 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6076 pr_uid and pr_gid.
6077 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6078 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6079 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6080 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6081 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6082 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6083 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6084 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6085 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6086 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6087 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6088 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6089 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6090 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6091 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6092 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6093 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6094 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6095 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6096 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6097 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6098 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6099 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6100 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6101
6102 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6103 AArch64 version. Include <bits/procfs.h>.
6104 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6105 (sysdep_headers): Add bits/procfs.h.
6106 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6107 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6108 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6109 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6110 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6111 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6112 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6113 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6114 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6115 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6116 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6117 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6118 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6119 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6120 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6121 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6122 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6123
6124 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6125
6126 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6127 Use libsupport.
6128
6129 2018-09-25 Arjun Shankar <arjun@redhat.com>
6130
6131 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6132 (__gconv_max_path_elem_len): Likewise.
6133 (__gconv_nmodules): Likewise.
6134 (__gconv_get_path): Likewise.
6135 (path_elem): Move to ...
6136 * iconv/gconv_conf.c: ... here.
6137 (__gconv_get_path): Mark function static.
6138 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6139 * iconv/gconv_open.c: ... here.
6140
6141 2018-09-24 Andreas Schwab <schwab@suse.de>
6142
6143 * scripts/haveversions.awk: New file.
6144 * Makerules ($(common-objpfx)Versions.def)
6145 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6146 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6147 Move rules ...
6148 * Makeconfig ($(common-objpfx)Versions.def)
6149 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6150 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6151 ... here.
6152 ($(common-objpfx)Versions.mk): New rule. Include it.
6153 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6154 Emit error if build-obsolete-nsl = yes.
6155 * manual/install.texi (Configuring and compiling): Describe
6156 --enable-obsolete-nsl as unavaiable after version 2.28.
6157 * INSTALL: Regenerate.
6158
6159 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6160
6161 * NEWS: Add note about new TLE support on powerpc64le.
6162 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6163 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6164 __ununsed1.
6165 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6166 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6167 * sysdeps/powerpc/powerpc32/sysdep.h,
6168 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6169 ABORT_TRANSACTION): Remove macros.
6170 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6171 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6172 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6173 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6174 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6175 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6176 usage.
6177 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6178
6179 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6180
6181 [BZ #10425]
6182 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6183 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6184 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6185 which is the same as in it_IT.
6186 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6187 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6188
6189 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6190
6191 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6192 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6193 using MATH_REDIRECT.
6194 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6195 header inclusion.
6196 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6197 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6198 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6199 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6200 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6201 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6202 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6203 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6204 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6205 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6206 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6207 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6208 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6209 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6210 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6211 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6212 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6213 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6214 (ceil): Redirect to __ceil.
6215 (floor): Redirect to __floor.
6216 (trunc): Redirect to __trunc.
6217 (__truncl): Call trunc instead of __trunc.
6218 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6219 Remove macro.
6220 [_ARCH_PWR5X] (__truncf): Likewise.
6221 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6222 trunc functions instead of __trunc variants.
6223 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6224 Likewise.
6225 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6226 Likewise.
6227 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6228 Likewise.
6229 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6230 Likewise.
6231
6232 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6233 [__i586__ || __pentium__].
6234 [__i486__]: Handle explicitly.
6235 (HAS_CPUID): Define to 1 if above macros are undefined.
6236 (HAS_I586): Likewise.
6237 (HAS_I686): Likewise.
6238
6239 2018-09-20 Florian Weimer <fweimer@redhat.com>
6240
6241 * misc/tst-gethostid.c: New file.
6242 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6243 (tst-gethostid): Link with -ldl.
6244
6245 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6246
6247 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6248 value from gethostbyname_r.
6249
6250 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6251
6252 * stdlib/tst-setcontext9.c (f1): Rename to...
6253 (f1a): ... this.
6254 (f1b): New function implementing lower half of f1 in alternate stack.
6255
6256 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6257
6258 Fix mktime localtime offset confusion
6259 [BZ #23603]
6260 * include/time.h (__mktime_internal): The localtime offset is now
6261 of type long int instead of time_t. This is the longstanding type
6262 in glibc, and it is more than enough to represent difference
6263 between localtime and gmtime even if it is 32 bits and time_t is
6264 64. Changing it now will let us avoid an unnecessary change when
6265 time_t is widened to 64 bits on 32-bit platforms.
6266 * time/mktime-internal.h (mktime_offset_t): Now long int.
6267
6268 Merge mktime, timegm from upstream Gnulib
6269 [BZ #23603][BZ #16346]
6270 This fixes some obscure problems with integer overflow.
6271 Although it looks scary, it is almost all a byte-for-byte copy
6272 from Gnulib, and the Gnulib code has been tested reasonably well.
6273 * include/intprops.h: New file, copied from Gnulib.
6274 * include/verify.h, time/mktime-internal.h:
6275 New tiny files, simplified from Gnulib.
6276 * time/mktime.c: Copy from Gnulib. This has the following changes:
6277 Do not include config.h if DEBUG_MKTIME is nonzero.
6278 Include stdbool.h, intprops.h, verify.h.
6279 Include string.h only if needed.
6280 Include stdlib.h on MS-Windows.
6281 Include mktime-internal.h.
6282 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6283 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6284 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6285 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6286 simplify later conditionals; default the others to zero. Use
6287 these conditionals to express only the code needed on the current
6288 platform. In uses of these conditionals, explicitly spell out how
6289 _LIBC affects things, so it’s easier to review from a glibc
6290 viewpoint.
6291 (WRAPV): Remove; no longer needed now that we have
6292 systematic overflow checking.
6293 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6294 compartmentalize tzset issues. Move system-dependent tzsettish
6295 code here from mktime.
6296 (verify): Remove; now done by verify.h. All uses changed.
6297 (long_int): Use a more-conservative definition, to avoid
6298 integer overflow.
6299 (SHR): Remove, replacing with ...
6300 (shr): New function, which means we needn’t worry about side
6301 effects in args, and conversion analysis is simpler.
6302 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6303 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6304 (time_t_avg, time_t_add_ok): Remove.
6305 (mktime_min, mktime_max): New constants.
6306 (leapyear, isdst_differ): Use bool for booleans.
6307 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6308 Use long_int, not time_t, for mktime differences.
6309 (long_int_avg): New function, replacing time_t_avg.
6310 INT_ADD_WRAPV replaces time_t_add_ok.
6311 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6312 All uses changed.
6313 (convert_time): New function.
6314 (ranged_convert): Use it.
6315 (__mktime_internal): Last arg now points to mktime_offset_t, not
6316 time_t. All uses changed. This is a no-op on glibc, where
6317 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6318 offset guess. Directly check for integer overflow instead of
6319 using a heuristic that works only 99.9...% of the time.
6320 Access *OFFSET only once, to avoid an unlikely race if the
6321 compiler delays a load and if this cascades into a signed integer
6322 overflow.
6323 (mktime): Move tzsettish code to my_tzset, and move
6324 localtime_offset to within mktime so that it doesn’t
6325 need a separate ifdef.
6326 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6327 instead of localtime.
6328 * time/timegm.c: Copy from Gnulib. This has the following changes:
6329 Include mktime-internal.h.
6330 [!_LIBC]: Include config.h and time.h. Do not include
6331 timegm.h or time_r.h. Make __mktime_internal a macro,
6332 and include mktime-internal.h to get its declaration.
6333 (timegm): Temporary is now mktime_offset_t, not time_t.
6334 This affects only Gnulib.
6335
6336 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6337
6338 [BZ #23637]
6339 * string/test-strstr.c (pr23637): New function.
6340 (test_main): Add tests with longer needles.
6341 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6342 * string/strstr.c (AVAILABLE): Likewise.
6343
6344 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6345
6346 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
6347
6348 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6349
6350 * NEWS: Mention pow improvements.
6351 * math/Makefile (type-double-routines): Add e_pow_log_data.
6352 * sysdeps/generic/math_private.h (__exp1): Remove.
6353 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6354 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6355 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6356 contraction.
6357 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6358 (exp_inline): Remove.
6359 (__ieee754_exp): Only single double input is handled.
6360 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6361 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6362 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6363 (__pow_log_data): Define.
6364 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6365 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6366 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6367 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6368 contraction.
6369 (CFLAGS-e_pow-fma4.c): Likewise.
6370
6371 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
6372
6373 Simplify tzfile fstat failure code
6374 [BZ #21716]
6375 * time/tzfile.c (__tzfile_read): Simplify slightly.
6376
6377 Fix tzfile low-memory assertion failure
6378 [BZ #21716]
6379 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
6380 when registering time zone abbreviations.
6381
6382 2018-09-18 Joseph Myers <joseph@codesourcery.com>
6383
6384 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
6385 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
6386 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6387 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6388 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
6389 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
6390 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
6391 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6392 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6393
6394 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
6395 __ceil.
6396 (__ceill): Call ceil instead of __ceil.
6397 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
6398 __floor.
6399 (__floorl): Call floor instead of __floor.
6400
6401 2018-09-17 Joseph Myers <joseph@codesourcery.com>
6402
6403 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6404 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
6405 using MATH_REDIRECT.
6406 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
6407 header inclusion.
6408 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
6409 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6410 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6411 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
6412 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6413 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6414 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6415 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6416 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
6417 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
6418 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
6419 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
6420 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6421 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6422 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6423 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6424 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6425 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6426 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
6427 Remove macro.
6428 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
6429 functions instead of __ceil variants.
6430 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6431 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6432 Likewise.
6433 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6434 Likewise.
6435 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6436 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6437 Likewise.
6438 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6439 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6440
6441 [BZ #21286]
6442 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
6443 constant.
6444 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
6445 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
6446 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
6447 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
6448 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
6449 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
6450 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
6451 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
6452 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
6453 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
6454 (ILL_BADIADDR): Remove constant.
6455 (TRAP_BRANCH): Likewise.
6456 (TRAP_HWBKPT): Likewise.
6457
6458 2018-09-14 Joseph Myers <joseph@codesourcery.com>
6459
6460 [BZ #23656]
6461 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
6462 Remove [_MIPS_SIM = _ABIN32] conditional case.
6463 (struct elf_prpsinfo): Likewise.
6464
6465 [BZ #23649]
6466 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
6467 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
6468 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
6469 Likewise.
6470 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
6471 elf_prpsinfo): Likewise.
6472 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
6473 elf_prpsinfo): Likewise.
6474 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
6475 Likewise.
6476
6477 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6478 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
6479 using MATH_REDIRECT.
6480 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
6481 header inclusion.
6482 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
6483 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6484 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6485 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6486 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6487 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6488 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
6489 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6490 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6491 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6492 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
6493 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
6494 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
6495 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
6496 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
6497 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
6498 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6499 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
6500 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6501 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
6502 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
6503 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
6504 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
6505 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
6506 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
6507 * sysdeps/x86_64/fpu/math_private.h: Remove file.
6508 * math/e_scalb.c (invalid_fn): Use rint functions instead of
6509 __rint variants.
6510 * math/e_scalbf.c (invalid_fn): Likewise.
6511 * math/e_scalbl.c (invalid_fn): Likewise.
6512 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6513 Likewise.
6514 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6515 Likewise.
6516 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6517 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
6518 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6519 Likewise.
6520 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6521 Likewise.
6522 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6523 Likewise.
6524 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
6525 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
6526
6527 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6528 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
6529 New macro.
6530 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6531 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
6532 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6533 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
6534 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6535 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
6536 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6537 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
6538 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6539 && !NO_MATH_REDIRECT] (floor): Likewise.
6540 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
6541 header inclusion.
6542 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
6543 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6544 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6545 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
6546 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6547 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6548 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6549 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
6550 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
6551 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
6552 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
6553 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
6554 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6555 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6556 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
6557 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
6558 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
6559 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
6560 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
6561 Remove macro.
6562 [_ARCH_PWR5X] (__floorf): Likewise.
6563 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
6564 inline function.
6565 [__SSE4_1__] (__floorf): Likewise.
6566 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
6567 instead of __floor variants.
6568 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
6569 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
6570 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
6571 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
6572 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
6573 * math/w_tgamma_compat.c (__tgamma): Likewise.
6574 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
6575 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
6576 * math/w_tgammal_compat.c (__tgammal): Likewise.
6577 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
6578 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
6579 Likewise.
6580 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
6581 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
6582 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
6583 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6584 Likewise.
6585 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
6586 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
6587 Likewise.
6588 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
6589 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
6590 Likewise.
6591 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
6592 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
6593 Likewise.
6594 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
6595 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6596 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
6597 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
6598 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6599 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6600
6601 2018-09-12 Joseph Myers <joseph@codesourcery.com>
6602
6603 * elf/Makefile (modules-names-tests): New variable.
6604
6605 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6606
6607 * NEWS: Mention log2 improvements.
6608 * math/Makefile (type-double-routines): Add e_log2_data.
6609 * sysdeps/i386/fpu/e_log2_data.c: New file.
6610 * sysdeps/ia64/fpu/e_log2_data.c: New file.
6611 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
6612 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
6613 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
6614 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
6615 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
6616
6617 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6618
6619 * NEWS: Mention log improvement.
6620 * math/Makefile (type-double-routines): Add e_log_data.
6621 * sysdeps/i386/fpu/e_log_data.c: New file.
6622 * sysdeps/ia64/fpu/e_log_data.c: New file.
6623 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
6624 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
6625 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
6626 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
6627 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
6628 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
6629
6630 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
6631 Xuepeng Guo <xuepeng.guo@intel.com>
6632
6633 [BZ #23606]
6634 * sysdeps/i386/start.S: Include <sysdep.h>
6635 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
6636 enabled. Add cfi_undefined (eip).
6637
6638 2018-09-11 Joseph Myers <joseph@codesourcery.com>
6639
6640 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
6641 (MOVQ): Likewise.
6642 (EXTRACT_WORDS64): Likewise.
6643 (INSERT_WORDS64): Likewise.
6644 (GET_FLOAT_WORD): Likewise.
6645 (SET_FLOAT_WORD): Likewise.
6646
6647 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
6648 argument.
6649 (Config.build_gcc): Use --disable-libsanitizer for first GCC
6650 build, but not for second build if --full-gcc. Use
6651 --enable-languages=all for second build if --full-gcc.
6652 (get_parser): Add --full-gcc option.
6653 (main): Update call to Context.
6654
6655 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
6656
6657 [BZ #10797]
6658 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
6659 Single Quotation Mark).
6660 (thousands_sep): Likewise.
6661 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
6662 * localedata/locales/it_IT (thousands_sep): Use ".".
6663 (grouping): Use "3;3".
6664
6665 2018-09-10 Joseph Myers <joseph@codesourcery.com>
6666
6667 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
6668 x86_64 and i686 configs using --enable-obsolete-rpc
6669 --enable-obsolete-nsl.
6670
6671 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6672
6673 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6674
6675 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6676
6677 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
6678 Increment size of new_argv by one.
6679
6680 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
6681
6682 [BZ #17426]
6683 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
6684 * localedata/locales/ar_IN (d_fmt): Likewise.
6685 * localedata/locales/bhb_IN (d_fmt): Likewise.
6686 * localedata/locales/bho_IN (d_fmt): Likewise.
6687 * localedata/locales/bn_BD (d_fmt): Likewise.
6688 * localedata/locales/bn_IN (d_fmt): Likewise.
6689 * localedata/locales/doi_IN (d_fmt): Likewise.
6690 * localedata/locales/gu_IN (d_fmt): Likewise.
6691 * localedata/locales/hi_IN (d_fmt): Likewise.
6692 * localedata/locales/hne_IN (d_fmt): Likewise.
6693 * localedata/locales/kn_IN (d_fmt): Likewise.
6694 * localedata/locales/mag_IN (d_fmt): Likewise.
6695 * localedata/locales/mai_IN (d_fmt): Likewise.
6696 * localedata/locales/mjw_IN (d_fmt): Likewise.
6697 * localedata/locales/ml_IN (d_fmt): Likewise.
6698 * localedata/locales/mni_IN (d_fmt): Likewise.
6699 * localedata/locales/mr_IN (d_fmt): Likewise.
6700 * localedata/locales/pa_IN (d_fmt): Likewise.
6701 * localedata/locales/raj_IN (d_fmt): Likewise.
6702 * localedata/locales/sat_IN (d_fmt): Likewise.
6703 * localedata/locales/sd_IN (d_fmt): Likewise.
6704 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
6705 * localedata/locales/ta_IN (d_fmt): Likewise.
6706 * localedata/locales/ta_LK (d_fmt): Likewise.
6707 * localedata/locales/tcy_IN (d_fmt): Likewise.
6708 * localedata/locales/ur_IN (d_fmt): Likewise.
6709
6710 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
6711 * localedata/locales/ks_IN (d_fmt): Likewise.
6712 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
6713
6714 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
6715 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
6716 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
6717 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
6718
6719 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
6720
6721 * NEWS: Mention exp and exp2 improvements.
6722 * math/Makefile (libm-support): Remove t_exp.
6723 (type-double-routines): Add math_err and e_exp_data.
6724 * sysdeps/aarch64/libm-test-ulps: Update.
6725 * sysdeps/arm/libm-test-ulps: Update.
6726 * sysdeps/i386/fpu/e_exp_data.c: New file.
6727 * sysdeps/i386/fpu/math_err.c: New file.
6728 * sysdeps/i386/fpu/t_exp.c: Remove.
6729 * sysdeps/ia64/fpu/e_exp_data.c: New file.
6730 * sysdeps/ia64/fpu/math_err.c: New file.
6731 * sysdeps/ia64/fpu/t_exp.c: Remove.
6732 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
6733 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
6734 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
6735 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
6736 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
6737 * sysdeps/ieee754/dbl-64/math_config.h: New file.
6738 * sysdeps/ieee754/dbl-64/math_err.c: New file.
6739 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
6740 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
6741 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
6742 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
6743 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
6744 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
6745 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
6746 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6747 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6748
6749 2018-09-05 Joseph Myers <joseph@codesourcery.com>
6750
6751 * sysdeps/alpha/fpu/math_private.h: Remove.
6752
6753 * sysdeps/generic/math_private.h
6754 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
6755 Move this inline function ....
6756 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
6757 * include/math.h [!_ISOMAC]: To here....
6758
6759 2018-09-04 Joseph Myers <joseph@codesourcery.com>
6760
6761 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
6762 code ....
6763 [!FE_HAVE_ROUNDING_MODES]: And this code ....
6764 * include/fenv.h [!_ISOMAC]: ... to here.
6765 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
6766 (feraiseexcept): Likewise.
6767 * math/fromfp.h: Do not include <fenv_private.h>.
6768 * math/s_cexp_template.c: Likewise.
6769 * math/s_csin_template.c: Likewise.
6770 * math/s_csinh_template.c: Likewise.
6771 * math/s_ctan_template.c: Likewise.
6772 * math/s_ctanh_template.c: Likewise.
6773 * math/s_iseqsig_template.c: Likewise.
6774 * math/w_acos_compat.c: Likewise.
6775 * math/w_acosf_compat.c: Likewise.
6776 * math/w_acosl_compat.c: Likewise.
6777 * math/w_asin_compat.c: Likewise.
6778 * math/w_asinf_compat.c: Likewise.
6779 * math/w_asinl_compat.c: Likewise.
6780 * math/w_j0_compat.c: Likewise.
6781 * math/w_j0f_compat.c: Likewise.
6782 * math/w_j0l_compat.c: Likewise.
6783 * math/w_j1_compat.c: Likewise.
6784 * math/w_j1f_compat.c: Likewise.
6785 * math/w_j1l_compat.c: Likewise.
6786 * math/w_jn_compat.c: Likewise.
6787 * math/w_jnf_compat.c: Likewise.
6788 * math/w_log10_compat.c: Likewise.
6789 * math/w_log10f_compat.c: Likewise.
6790 * math/w_log10l_compat.c: Likewise.
6791 * math/w_log2_compat.c: Likewise.
6792 * math/w_log2f_compat.c: Likewise.
6793 * math/w_log2l_compat.c: Likewise.
6794 * math/w_log_compat.c: Likewise.
6795 * math/w_logf_compat.c: Likewise.
6796 * math/w_logl_compat.c: Likewise.
6797 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6798 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6799 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6800 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6801 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6802 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6803 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6804 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6805 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6806 * sysdeps/ieee754/k_standardl.c: Likewise.
6807 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6808 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6809 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6810 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6811 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6812 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6813 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6814 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6815 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6816 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6817 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6818 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6819 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6820 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6821 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6822 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6823 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6824 * math/w_ilogb_template.c: Include <fenv.h> instead of
6825 <fenv_private.h>.
6826 * math/w_llogb_template.c: Likewise.
6827 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6828 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6829
6830 2018-09-03 Joseph Myers <joseph@codesourcery.com>
6831
6832 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
6833 * math/fromfp.h: Include <fenv_private.h>.
6834 * math/math-narrow.h: Likewise.
6835 * math/s_cexp_template.c: Likewise.
6836 * math/s_csin_template.c: Likewise.
6837 * math/s_csinh_template.c: Likewise.
6838 * math/s_ctan_template.c: Likewise.
6839 * math/s_ctanh_template.c: Likewise.
6840 * math/s_iseqsig_template.c: Likewise.
6841 * math/w_acos_compat.c: Likewise.
6842 * math/w_acosf_compat.c: Likewise.
6843 * math/w_acosl_compat.c: Likewise.
6844 * math/w_asin_compat.c: Likewise.
6845 * math/w_asinf_compat.c: Likewise.
6846 * math/w_asinl_compat.c: Likewise.
6847 * math/w_ilogb_template.c: Likewise.
6848 * math/w_j0_compat.c: Likewise.
6849 * math/w_j0f_compat.c: Likewise.
6850 * math/w_j0l_compat.c: Likewise.
6851 * math/w_j1_compat.c: Likewise.
6852 * math/w_j1f_compat.c: Likewise.
6853 * math/w_j1l_compat.c: Likewise.
6854 * math/w_jn_compat.c: Likewise.
6855 * math/w_jnf_compat.c: Likewise.
6856 * math/w_llogb_template.c: Likewise.
6857 * math/w_log10_compat.c: Likewise.
6858 * math/w_log10f_compat.c: Likewise.
6859 * math/w_log10l_compat.c: Likewise.
6860 * math/w_log2_compat.c: Likewise.
6861 * math/w_log2f_compat.c: Likewise.
6862 * math/w_log2l_compat.c: Likewise.
6863 * math/w_log_compat.c: Likewise.
6864 * math/w_logf_compat.c: Likewise.
6865 * math/w_logl_compat.c: Likewise.
6866 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6867 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6868 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6869 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6870 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6871 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6872 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6873 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6874 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6875 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6876 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6877 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6878 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
6879 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
6880 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6881 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6882 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6883 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6884 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6885 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6886 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6887 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
6888 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6889 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
6890 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6891 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6892 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
6893 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
6894 * sysdeps/ieee754/float128/float128_private.h: Likewise.
6895 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6896 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6897 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6898 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
6899 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6900 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6901 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6902 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6903 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6904 * sysdeps/ieee754/k_standardl.c: Likewise.
6905 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6906 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6907 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6908 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6909 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
6910 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
6911 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6912 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6913 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6914 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6915 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6916 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6917 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
6918 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6919 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6920 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
6921 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
6922 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
6923 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
6924 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6925 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6926 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6927 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6928 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6929 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
6930 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
6931 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6932 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
6933 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
6934 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6935 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6936 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6937 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6938 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6939 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6940 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
6941 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6942 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6943 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6944 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6945 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6946 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6947 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6948 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6949 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6950 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6951 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6952 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6953 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6954 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6955 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6956 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6957 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6958 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6959 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6960 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6961 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6962 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6963 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6964 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6965 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6966 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6967 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6968 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6969 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6970 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6971 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6972 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6973 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6974 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6975 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6976
6977 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6978
6979 [BZ #20271]
6980 * include/stdio.h (__libc_fatal): Mention newline in comment.
6981 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
6982 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
6983 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6984 * nss/nsswitch.c (__nss_next2): Likewise.
6985 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
6986 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
6987 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
6988 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
6989 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
6990 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
6991 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
6992 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
6993 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
6994 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
6995 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
6996 * sysdeps/unix/sysv/linux/netlink_assert_response.c
6997 (__netlink_assert_response): Likewise.
6998
6999 2018-08-31 Joseph Myers <joseph@codesourcery.com>
7000
7001 * conform/glibcconform.py: New file.
7002 * conform/list-header-symbols.py: Likewise.
7003 * conform/list-header-symbols.pl: Remove.
7004 * conform/Makefile (tests-special): Only add linknamespace tests
7005 if [PYTHON].
7006 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7007
7008 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
7009
7010 [BZ #23597]
7011 * support/Makefile (libsupport-routines): Add
7012 support_copy_file_range and xcopy_file_range.
7013 * support/support.h: Include <sys/types.h>.
7014 (support_copy_file_range): New prototype.
7015 * support/support_copy_file_range.c: New file. Copied and
7016 modified from io/copy_file_range-compat.c.
7017 * support/test-container.c (copy_one_file): Call xcopy_file_rang
7018 instead of copy_file_range.
7019 * support/xcopy_file_range.c: New file.
7020 * support/xunistd.h (xcopy_file_range): New prototype.
7021
7022 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7023
7024 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7025 xpthread_create and xpthread_join.
7026
7027 2018-08-30 Florian Weimer <fweimer@redhat.com>
7028
7029 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7030
7031 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7032
7033 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7034 if malloc fails.
7035
7036 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7037
7038 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7039 and minus_oflow as non-finite.
7040
7041 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7042
7043 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7044 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7045 moved to fenv_private.h except for ...
7046 (TOINT_INTRINSICS): Kept in math_private.h.
7047 (roundtoint): Likewise.
7048 (converttoint): Likewise.
7049 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7050 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7051 * sysdeps/arm/math_private.h: Remove.
7052 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7053 ....
7054 * sysdeps/generic/math_private.h: ... this file. Include
7055 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7056 Include <fenv_private.h>. Remove functions and macros moved to
7057 fenv_private.h.
7058 * sysdeps/i386/fpu/math_private.h: Remove.
7059 * sysdeps/mips/math_private.h: Move to ....
7060 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7061 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7062 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7063 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7064 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7065 * sysdeps/powerpc/fpu/math_private.h: Do not include
7066 <fenv_private.h>.
7067 * sysdeps/riscv/rvf/math_private.h: Move to ....
7068 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7069 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7070 <fenv_private.h>.
7071 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7072 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7073 * sysdeps/sparc/fpu/math_private.h: Remove.
7074 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7075 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7076 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7077 <fenv_private.h>.
7078 * sysdeps/x86_64/fpu/math_private.h: Do not include
7079 <sysdeps/i386/fpu/fenv_private.h>.
7080
7081 2018-08-28 Florian Weimer <fweimer@redhat.com>
7082
7083 [BZ #23578]
7084 * posix/tst-regcomp-truncated.c: New file.
7085 * posix/Makefile (tests): Add it.
7086 (tst-regcomp-truncated.out): Depend on generated locales.
7087
7088 2018-08-28 Florian Weimer <fweimer@redhat.com>
7089
7090 * support/test-container.c (main): Treat unshare failure with
7091 EPERM as an unsupported test.
7092
7093 2018-08-28 Florian Weimer <fweimer@redhat.com>
7094
7095 [BZ #23520]
7096 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7097 * nscd/netgroupcache.c
7098 (addgetnetgrentX): Add tofreep parameter. Do not free
7099 heap-allocated buffer.
7100 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7101 (addgetnetgrentX_ignore): New function.
7102 (addgetnetgrent): Call it.
7103 (readdgetnetgrent): Likewise.
7104
7105 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7106
7107 * string/memmem.c: Use memcmp for first match.
7108
7109 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7110
7111 [BZ #17426]
7112 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7113
7114 2018-08-27 DJ Delorie <dj@redhat.com>
7115
7116 * support/Makefile (others): Don't list programs explicitly as a
7117 dependency of "others".
7118
7119 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7120
7121 * sysdeps/generic/math-tests-trap-force.h: New file.
7122 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7123 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7124 * sysdeps/powerpc/math-tests.h: Remove file.
7125 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7126
7127 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7128 Torvald Riegel <triegel@redhat.com>
7129
7130 [BZ #23538]
7131 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7132 Update r to include the set wake-request flag if waiters are
7133 remaining after spinning.
7134
7135 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7136
7137 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7138
7139 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7140
7141 [BZ #23578]
7142 regex: fix uninitialized memory access
7143 I introduced this bug into gnulib in commit
7144 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7145 eventually it was merged into glibc. The bug was found by
7146 project-repo <bugs@feusi.co> and reported here:
7147 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7148 Diagnosis and draft fix reported by Assaf Gordon here:
7149 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7150 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7151 * posix/regex_internal.c (build_wcs_upper_buffer):
7152 Fix bug when mbrtowc returns 0.
7153
7154 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7155
7156 * po/be.po: Update translation.
7157
7158 2018-08-24 DJ Delorie <dj@delorie.com>
7159
7160 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7161 $(libunwind).
7162
7163 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7164
7165 [BZ #23400]
7166 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7167 create temporary files in source tree.
7168
7169 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7170
7171 * sysdeps/generic/math-tests-trap.h: New file.
7172 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7173 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7174 * sysdeps/aarch64/math-tests.h: Remove file.
7175 * sysdeps/arm/math-tests.h: Likewise.
7176 * sysdeps/riscv/math-tests.h: Likewise.
7177 * sysdeps/aarch64/math-tests-trap.h: New file.
7178 * sysdeps/arm/math-tests-trap.h: Likewise.
7179 * sysdeps/riscv/math-tests-trap.h: Likewise.
7180
7181 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7182
7183 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7184 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7185 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7186 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7187 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7188 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7189 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7190 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7191 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7192 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7193 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7194 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7195 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7196 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7197 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7198 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7199 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7200 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7201
7202 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7203
7204 * sysdeps/generic/math-tests-exceptions.h: New file.
7205 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7206 (EXCEPTION_TESTS_float): Do not define here.
7207 (EXCEPTION_TESTS_double): Likewise.
7208 (EXCEPTION_TESTS_long_double): Likewise.
7209 (EXCEPTION_TESTS_float128): Likewise.
7210 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7211 Likewise.
7212 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7213 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7214 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7215 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7216 * sysdeps/mips/math-tests.h: Likewise.
7217 * sysdeps/nios2/math-tests.h: Likewise.
7218 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7219 (EXCEPTION_TESTS_float): Do not define here.
7220 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7221 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7222 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7223
7224 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7225
7226 * NEWS: Move optimized sinf entry to 2.29.
7227
7228 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7229
7230 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7231
7232 2018-08-22 DJ Delorie <dj@redhat.com>
7233
7234 * Makefile (testroot.pristine): New rules to initialize the
7235 test-in-container "testroot".
7236 * Makerules (all-testsuite): Add tests-container.
7237 * Rules (tests-expected): Add tests-container.
7238 (binaries-all-tests): Likewise.
7239 (tests-container): New, run these tests in the testroot container.
7240 * support/Makefile (others): Add *-container, support_paths.c,
7241 xmkdirp, and links-dso-program.
7242 * support/links-dso-program-c.c: New.
7243 * support/links-dso-program.cc: New.
7244 * support/test-container.c: New.
7245 * support/shell-container.c: New.
7246 * support/echo-container.c: New.
7247 * support/true-container.c: New.
7248 * support/xmkdirp.c: New.
7249 * support/xsymlink.c: New.
7250 * support/support_paths.c: New.
7251 * support/support.h: Add support paths prototypes.
7252 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7253
7254 * nss/tst-nss-test3.c: Convert to test-in-container.
7255 * nss/tst-nss-test3.root/: New.
7256
7257 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7258
7259 regex: port Gnulib code to z/OS POSIX environment
7260 Problem reported by Arnold Robbins in:
7261 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7262 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7263 Undef.
7264
7265 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7266
7267 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7268 (ROUNDING_TESTS_double): Remove.
7269 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7270 (ROUNDING_TESTS_double): Remove.
7271 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7272 (ROUNDING_TESTS_double): Remove.
7273 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7274 (ROUNDING_TESTS_float): Remove.
7275 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7276 (ROUNDING_TESTS_float): Remove.
7277 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7278 (ROUNDING_TESTS_float): Remove.
7279 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7280 !TEST_MATHVEC here.
7281 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7282 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7283
7284 * sysdeps/generic/math-tests-rounding.h: New file.
7285 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7286 (ROUNDING_TESTS_float): Do not define here.
7287 (ROUNDING_TESTS_double): Likewise.
7288 (ROUNDING_TESTS_long_double): Likewise.
7289 (ROUNDING_TESTS_float128): Likewise.
7290 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7291 (ROUNDING_TESTS_double): Undefine before defining.
7292 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7293 (ROUNDING_TESTS_double): Undefine before defining.
7294 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7295 (ROUNDING_TESTS_double): Undefine before defining.
7296 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7297 (ROUNDING_TESTS_float): Undefine before defining.
7298 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7299 (ROUNDING_TESTS_float): Undefine before defining.
7300 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7301 (ROUNDING_TESTS_float): Undefine before defining.
7302 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7303 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7304 not define here.
7305 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7306 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7307 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7308 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7309 (ROUNDING_TESTS_float): Do not define here.
7310 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7311 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7312 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7313 (ROUNDING_TESTS_float): Likewise.
7314 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7315 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7316 * sysdeps/mips/math-tests.h [__mips_soft_float]
7317 (ROUNDING_TESTS_float): Likewise.
7318 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7319 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7320 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7321 (ROUNDING_TESTS_double): Likewise.
7322 (ROUNDING_TESTS_long_double): Likewise.
7323
7324 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7325
7326 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7327 (PF_XDP): New macro.
7328 (AF_XDP): New macro.
7329 (SOL_XDP): New macro.
7330
7331 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7332
7333 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7334 (TCP_INQ): Likewise.
7335 (TCP_CM_INQ): Likewise.
7336 (TCP_REPAIR_ON): Likewise.
7337 (TCP_REPAIR_OFF): Likewise.
7338 (TCP_REPAIR_OFF_NO_WP): Likewise.
7339 (struct tcp_zerocopy_receive): New type.
7340
7341 2018-08-21 Florian Weimer <fweimer@redhat.com>
7342
7343 * support/support.h (support_descriptor_supports_holes): Declare.
7344 * support/Makefile (libsupport-routines): Add
7345 support_descriptor_supports_holes.
7346 * support/support_descriptor_supports_holes.c: New file.
7347 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
7348 and stop testing if holes are not supported.
7349 * io/test-lfs.c (do_prepare): Likewise.
7350 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
7351 Likewise.
7352 * timezone/tst-tzset.c (create_tz_file): Likewise.
7353 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7354 variable.
7355 (do_prepare): Set it.
7356 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7357
7358 2018-08-21 Florian Weimer <fweimer@redhat.com>
7359
7360 [BZ #17248]
7361 * Makeconfig (+cflags): Do not sort (and deduplicate).
7362
7363 2018-08-21 Florian Weimer <fweimer@redhat.com>
7364
7365 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7366 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7367
7368 2018-08-20 Florian Weimer <fweimer@redhat.com>
7369
7370 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
7371 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
7372
7373 2018-08-20 Joseph Myers <joseph@codesourcery.com>
7374
7375 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7376 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
7377 and ssi_arch members.
7378
7379 * elf/elf.c (NT_VMCOREDD): New macro.
7380 (AT_MINSIGSTKSZ): Likewise.
7381
7382 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7383
7384 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7385 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
7386 s_cosf-ppc64 and s_cosf-power8.
7387 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
7388 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7389 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7390 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7391 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7392 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7393 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
7394 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7395 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7396 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7397 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
7398 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7399
7400 2018-08-17 Florian Weimer <fweimer@redhat.com>
7401
7402 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7403
7404 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
7405
7406 * malloc/malloc.c (_int_malloc): Additional binning code checks.
7407
7408 2018-08-16 Florian Weimer <fweimer@redhat.com>
7409
7410 * configure.ac: Add --with-nonshared-cflags option.
7411 * config.make.in (extra-nonshared-cflags): Set variable.
7412 * Makeconfig (CFLAGS-.oS): Use it.
7413 * manual/install.texi (Configuring and compiling): Document
7414 --with-nonshared-cflags.
7415 * configure: Regenerate.
7416 * INSTALL: Likewise.
7417
7418 2018-08-16 Florian Weimer <fweimer@redhat.com>
7419
7420 * Makeconfig (ASFLAGS): Always append required assembler flags.
7421
7422 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
7423
7424 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
7425 (malloc_consolidate): Likewise.
7426
7427 2018-08-16 Pochang Chen <johnchen902@gmail.com>
7428
7429 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
7430
7431 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7432
7433 * benchtests/bench-strlen.c (do_test): Allocate buffers before
7434 every strlen call.
7435
7436 * benchtests/bench-strlen.c: Print performance numbers in json.
7437
7438 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7439
7440 * sysdeps/powerpc/powerpc64/multiarch/Makefile
7441 (sysdep_routines): Build strcmp-power9 and strncmp-power9
7442 only for little endian.
7443 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7444 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
7445 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
7446 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
7447 Add check for little endian.
7448 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7449 (__strcmp_power9): Add check for little endian.
7450 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
7451 Add check for little endian.
7452 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7453 (__strncmp_power9): Add check for little endian.
7454 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
7455 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
7456 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
7457 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
7458 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
7459
7460 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
7461
7462 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
7463 [!STRLEN](STRLEN): Set to __strlen.
7464 * sysdeps/aarch64/multiarch/strlen.c: New file.
7465 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
7466 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
7467 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7468 (__libc_ifunc_impl_list): Add strlen.
7469 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7470 strlen_generic and strlen_asimd.
7471
7472 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7473
7474 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
7475 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
7476 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
7477
7478 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7479
7480 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
7481
7482 2018-08-14 Florian Weimer <fweimer@redhat.com>
7483
7484 [BZ #23519]
7485 * include/stdio.h (__vfxprintf): Declare.
7486 * stdio-common/fxprintf.c (__vfxprintf): New function.
7487 (__fxprintf): Call it.
7488 * misc/err.c (convert_and_print): Remove function.
7489 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
7490 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
7491 * misc/Makefile (tests): Add tst-warn-wide.
7492 * misc/tst-warn-wide.c: New file.
7493
7494 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
7495 Szabolcs Nagy <szabolcs.nagy@arm.com>
7496
7497 * NEWS: Mention sinf, cosf, sincosf.
7498 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
7499 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
7500 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
7501 constants rather than including generic sincosf.h.
7502 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
7503 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
7504 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
7505 (reduced_cos): Remove.
7506 (sinf_poly): New function.
7507 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
7508
7509 2018-08-14 Florian Weimer <fweimer@redhat.com>
7510
7511 [BZ #23521]
7512 [BZ #23522]
7513 * nss/nss_files/files-alias.c (get_next_alias): During :include:
7514 processing, bail out if no room, and close the stream before
7515 returning ERANGE.
7516 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
7517 (tst-nss-files-alias-leak): Link with libdl.
7518 (tst-nss-files-alias-leak.out): Depend on nss_files.
7519
7520 * nss/tst-nss-files-alias-leak.c: New file.
7521
7522 2018-08-14 Florian Weimer <fweimer@redhat.com>
7523
7524 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
7525 server_user, stat_user.
7526
7527 2018-08-13 Joseph Myers <joseph@codesourcery.com>
7528
7529 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7530 version to 4.18.
7531 (io_pgetevents): New syscall.
7532 (rseq): Likewise.
7533
7534 * manual/install.texi (Configuring and compiling): Do not list
7535 tools used for testing pretty printers here.
7536 (Tools for Compilation): List Python, PExpect and GDB here.
7537 Update descriptions of uses of Perl and Python.
7538 * INSTALL: Regenerate.
7539
7540 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7541 version to 4.18.
7542
7543 2018-08-13 Florian Weimer <fweimer@redhat.com>
7544
7545 * misc/error.c (error): Add missing va_end call.
7546 (error_at_line): Likewise.
7547
7548 2018-08-13 Florian Weimer <fweimer@redhat.com>
7549
7550 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
7551
7552 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
7553
7554 * benchtests/scripts/benchout.schema.json (properties): Add
7555 new properties.
7556
7557 * benchtests/bench-skeleton.c (main): Add duration and
7558 iterations attributes.
7559
7560 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
7561
7562 regex: Gnulib unibyte RRI uses bytes not chars
7563 Adjust the non-glibc code to agree with what Gawk needs for
7564 rational range interpretation (RRI) for regular expression ranges.
7565 In unibyte locales, Gawk wants ranges to use the underlying byte
7566 rather than the character code point. This change does not affect
7567 glibc proper.
7568 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
7569 In unibyte locales, use the byte value rather than
7570 running it through btowc.
7571
7572 2018-08-10 Joseph Myers <joseph@codesourcery.com>
7573
7574 * sysdeps/generic/math-tests-snan.h: New file.
7575 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
7576 (SNAN_TESTS_float): Do not define here.
7577 (SNAN_TESTS_double): Likewise.
7578 (SNAN_TESTS_long_double): Likewise.
7579 (SNAN_TESTS_float128): Likewise.
7580 * sysdeps/i386/fpu/math-tests-snan.h: New file.
7581 * sysdeps/i386/fpu/math-tests.h: Remove file.
7582 * sysdeps/ia64/math-tests-snan.h: New file.
7583 * sysdeps/ia64/math-tests.h: Remove file.
7584 * sysdeps/x86/math-tests.h: Likewise.
7585 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
7586
7587 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7588 Szabolcs Nagy <szabolcs.nagy@arm.com>
7589
7590 * math/Makefile: Add s_sincosf_data.c.
7591 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
7592 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
7593 (sincosf_poly): Likewise.
7594 (reduce_small): Likewise.
7595 (reduce_large): Likewise.
7596 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
7597 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
7598 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
7599 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
7600
7601 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7602 Szabolcs Nagy <szabolcs.nagy@arm.com>
7603
7604 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
7605 (converttoint): Use lround.
7606 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
7607 document the semantics when TOINT_INTRINSICS is set.
7608 (converttoint): Likewise.
7609 (TOINT_RINT): Remove.
7610 (TOINT_SHIFT): Remove.
7611 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
7612 path.
7613
7614 2018-08-10 Florian Weimer <fweimer@redhat.com>
7615
7616 [BZ #23497]
7617 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
7618 function.
7619 (__old_getdents64): Use getdents64. Convert entries without
7620 moving them.
7621 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
7622 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
7623 tst-readdir64-compat.
7624
7625 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7626
7627 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
7628 Fix unwind.
7629
7630 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7631
7632 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
7633 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
7634 code to s390x-mcount.h and #include it.
7635 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
7636 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
7637 (__fentry__): Add.
7638
7639 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7640
7641 * stdlib/Versions: Remove __fentry__.
7642 * sysdeps/i386/Versions: Add __fentry__.
7643 * sysdeps/x86_64/Versions: Add __fentry__.
7644
7645 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7646
7647 * sysdeps/s390/Makefile: Register the new tests.
7648 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
7649 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
7650 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
7651 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
7652 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
7653 * sysdeps/s390/tst-dl-runtime.c: New file.
7654
7655 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7656
7657 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7658 Do not clobber R0.
7659
7660 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7661
7662 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7663 Do not clobber R0.
7664
7665 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7666
7667 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7668 Do not clobber R0.
7669
7670 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7671
7672 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7673 Do not clobber R0.
7674
7675 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7676
7677 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7678 Use symbolic offsets for stack variables.
7679
7680 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7681
7682 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7683 Use symbolic offsets for stack variables.
7684
7685 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7686
7687 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7688 Use symbolic offsets for stack variables.
7689
7690 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7691
7692 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7693 Use symbolic offsets for stack variables.
7694
7695 2018-08-09 Joseph Myers <joseph@codesourcery.com>
7696
7697 * math/gen-libm-test.py: New file.
7698 * math/gen-libm-test.pl: Remove.
7699 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
7700 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
7701 gen-libm-test.pl.
7702 ($(libm-test-c-noauto-obj)): Likewise.
7703 ($(libm-test-c-auto-obj)): Likewise.
7704 ($(libm-test-c-narrow-obj)): Likewise.
7705 (regen-ulps): Likewise.
7706 * math/README.libm-test: Update references to gen-libm-test.pl.
7707 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
7708 referencing gen-libm-test.pl.
7709 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
7710 * math/libm-test-support.c: Likewise.
7711 * math/libm-test-support.h: Likewise.
7712 * sysdeps/generic/libm-test-ulps: Likewise.
7713
7714 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
7715
7716 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
7717 Fix value.
7718
7719 2018-08-08 Joseph Myers <joseph@codesourcery.com>
7720
7721 * math/libm-test-nextdown.inc (do_test): Move comment to ....
7722 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
7723
7724 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
7725
7726 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
7727 symbols.
7728 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
7729 __pthread_setspecific): Add hidden proto.
7730 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
7731 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
7732
7733 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
7734
7735 * benchtests/bench-string.h (buf1_size, buf2_size): New
7736 variables.
7737 (init_sizes): New function.
7738 (test_init): Use it.
7739 (alloc_buf, exit_error): New functions.
7740 (alloc_bufs): Use ALLOC_BUF.
7741 (realloc_bufs): Remove.
7742 * benchtests/bench-memcmp.c (do_test): Adjust.
7743 * benchtests/bench-memset-large.c (do_test): Likewise.
7744 * benchtests/bench-memset-walk.c (do_test): Likewise.
7745 * benchtests/bench-memset.c (do_test): Likewise.
7746 * benchtests/bench-strncmp.c (do_test): Likewise.
7747
7748 2018-08-06 Andreas Schwab <schwab@suse.de>
7749
7750 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
7751 of CONST_THREAD_AREA.
7752
7753 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
7754
7755 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
7756 (STATE_SAVE_MASK): Likewise.
7757 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
7758 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
7759 (STATE_SAVE_MASK): Likewise.
7760 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
7761 instead of <cpu-features.h>.
7762
7763 2018-08-03 DJ Delorie <dj@redhat.com>
7764
7765 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
7766 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
7767
7768 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7769
7770 2018-08-03 Joseph Myers <joseph@codesourcery.com>
7771
7772 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
7773 after TEST_* calls.
7774 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
7775 * math/libm-test-logb.inc (logb_test_data): Likewise.
7776
7777 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
7778
7779 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
7780 * string/strstr.c (AVAILABLE): Likewise.
7781
7782 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7783
7784 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
7785 <init-arch.h>.
7786 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
7787 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
7788 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
7789
7790 2018-08-03 Carlos O'Donell <carlos@redhat.com>
7791
7792 * po/be.po: Update translation.
7793
7794 * po/be.po: Update translation.
7795
7796 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7797
7798 * sysdeps/x86/cpu-features-offsets.sym
7799 (rtld_global_ro_offsetof): Removed.
7800 (CPU_FEATURES_SIZE): Likewise.
7801 (CPUID_OFFSET): Likewise.
7802 (CPUID_SIZE): Likewise.
7803 (CPUID_EAX_OFFSET): Likewise.
7804 (CPUID_EBX_OFFSET): Likewise.
7805 (CPUID_ECX_OFFSET): Likewise.
7806 (CPUID_EDX_OFFSET): Likewise.
7807 (FAMILY_OFFSET): Likewise.
7808 (MODEL_OFFSET): Likewise.
7809 (FEATURE_OFFSET): Likewise.
7810 (FEATURE_SIZ): Likewise.
7811 (COMMON_CPUID_INDEX_1): Likewise.
7812 (COMMON_CPUID_INDEX_7): Likewise.
7813 (FEATURE_INDEX_1): Likewise.
7814 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
7815
7816 2018-08-02 Carlos O'Donell <carlos@redhat.com>
7817
7818 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
7819 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
7820 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
7821 (install-locales): Depend on install-locale-archive.
7822 (install-locale-archive): Define.
7823 (install-locale-files): Define.
7824 (build-one-locale): Define macro.
7825 * manual/install.texi (Running make install): Document.
7826 * manual/INSTALL: Regenerate.
7827
7828 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
7829
7830 * benchtests/scripts/compare_strings.py: Import traceback.
7831 (parse_file): Pretty-print error.
7832
7833 * NEWS: Mention the change.
7834 * elf/dl-tunables.list: Rename tune namespace to cpu.
7835 * sysdeps/powerpc/dl-tunables.list: Likewise.
7836 * sysdeps/x86/dl-tunables.list: Likewise.
7837 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
7838 cpu.name.
7839 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
7840 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
7841 * manual/README.tunables: Likewise.
7842 * manual/tunables.texi: Likewise.
7843 * sysdeps/powerpc/cpu-features.c: Likewise.
7844 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
7845 (init_cpu_features): Likewise.
7846 * sysdeps/x86/cpu-features.c: Likewise.
7847 * sysdeps/x86/cpu-features.h: Likewise.
7848 * sysdeps/x86/cpu-tunables.c: Likewise.
7849 * sysdeps/x86_64/Makefile: Likewise.
7850 * sysdeps/x86/dl-cet.c: Likewise.
7851
7852 2018-08-02 Joseph Myers <joseph@codesourcery.com>
7853
7854 [BZ #23479]
7855 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
7856 [__mips_hard_float].
7857 (FE_UNDERFLOW): Likewise.
7858 (FE_OVERFLOW): Likewise.
7859 (FE_DIVBYZERO): Likewise.
7860 (FE_INVALID): Likewise.
7861 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
7862 (FE_TOWARDZERO): Define only if [__mips_hard_float].
7863 (FE_UPWARD): Likewise.
7864 (FE_DOWNWARD): Likewise.
7865 (__FE_UNDEFINED): Define if [!__mips_hard_float]
7866 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
7867 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
7868 [__mips_hard_float].
7869 (FP_ROUNDMODE): Likewise.
7870 (FP_RND_NEAREST): Likewise.
7871 (FP_RND_ZERO): Likewise.
7872 (FP_RND_PINF): Likewise.
7873 (FP_RND_MINF): Likewise.
7874 (FP_EX_INVALID): Likewise.
7875 (FP_EX_OVERFLOW): Likewise.
7876 (FP_EX_UNDERFLOW): Likewise.
7877 (FP_EX_DIVZERO): Likewise.
7878 (FP_EX_INEXACT): Likewise.
7879 (FP_INIT_ROUNDMODE): Likewise.
7880 * sysdeps/mips/nofpu/fesetenv.c: New file.
7881 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
7882
7883 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7884
7885 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
7886 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
7887 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
7888 conditional on [FE_UPWARD].
7889
7890 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
7891
7892 regex: fix memory leak in Gnulib
7893 Problem and fix reported by Assaf Gordon in:
7894 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
7895 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
7896 range_ends members too, as they are defined in 'struct
7897 re_charset_t' even if not _LIBC. This affects only Gnulib.
7898
7899 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
7900
7901 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
7902 ...
7903 (get_common_indices): This.
7904 (init_cpu_features): Updated.
7905
7906 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7907
7908 * sysdeps/generic/math-tests-snan-payload.h: New file.
7909 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
7910 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
7911 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
7912 * sysdeps/generic/math-tests.h: Include
7913 <math-tests-snan-payload.h>.
7914 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7915 * sysdeps/hppa/math-tests.h: Remove file.
7916 * sysdeps/mips/math-tests.h [!__mips_nan2008]
7917 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7918 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
7919 Likewise.
7920
7921 * sysdeps/generic/math-tests-snan-cast.h: New file.
7922 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
7923 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
7924 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
7925 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
7926
7927 2018-08-01 Carlos O'Donel <carlos@redhat.com>
7928
7929 * version.h (RELEASE): Set to "development".
7930 (VERSION): Set to "2.28.9000".
7931 * NEWS (2.29): New section.
7932
7933 * version.h (RELEASE): Set to "stable".
7934 (VERSION): Set to "2.28".
7935 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
7936 * NEWS: Add the list of bugs fixed in 2.28.
7937
7938 * po/ca.po: Update to latest version.
7939 * po/cs.po: Likewise
7940 * po/da.po: Likewise
7941 * po/el.po: Likewise
7942 * po/eo.po: Likewise
7943 * po/es.po: Likewise
7944 * po/fi.po: Likewise
7945 * po/fr.po: Likewise
7946 * po/gl.po: Likewise
7947 * po/hu.po: Likewise
7948 * po/ia.po: Likewise
7949 * po/id.po: Likewise
7950 * po/it.po: Likewise
7951 * po/ja.po: Likewise
7952 * po/ko.po: Likewise
7953 * po/lt.po: Likewise
7954 * po/nb.po: Likewise
7955 * po/nl.po: Likewise
7956 * po/pt_BR.po: Likewise
7957 * po/ru.po: Likewise
7958 * po/rw.po: Likewise
7959 * po/sk.po: Likewise
7960 * po/sl.po: Likewise
7961 * po/tr.po: Likewise
7962 * po/zh_CN.po: Likewise
7963 * po/zh_TW.po: Likewise
7964
7965 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
7966
7967 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
7968 initialization...
7969 (init): ... before initializing libpthread.
7970
7971 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
7972 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
7973 (__mach_setup_tls): ... new function.
7974 (mach_setup_tls): New alias.
7975 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
7976 __mach_setup_thread.
7977 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
7978 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
7979 * mach/Versions [libc] (mach_setup_tls): Add symbol.
7980 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
7981
7982 2018-07-31 Carlos O'Donell <carlos@redhat.com>
7983
7984 * manual/install.texi: Update versions.
7985 * INSTALL: Regenerate.
7986
7987 * manual/contrib.texi (Contributors): Update contributions.
7988
7989 2018-07-31 Carlos O'Donell <carlos@redhat.com>
7990
7991 * po/be.po: Update translations.
7992
7993 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7994
7995 * sysdeps/sh/libm-test-ulps: Update.
7996
7997 2018-07-30 Carlos O'Donell <carlos@redhat.com>
7998
7999 * po/bg.po: Update translations.
8000 * po/de.po: Likewise.
8001 * po/hr.po: Likewise.
8002 * po/pt_BR.po: Likewise.
8003 * po/sv.po: Likewise.
8004 * po/vi.po: Likewise.
8005
8006 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8007
8008 [BZ #23467]
8009 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8010 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8011 (CFLAGS-tst-cet-property-1.o): New.
8012 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8013 ($(objpfx)tst-cet-property-2): Likewise.
8014 ($(objpfx)tst-cet-property-2.out): Likewise.
8015 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
8016 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
8017 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
8018 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
8019 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
8020
8021 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8022
8023 [BZ #23458]
8024 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8025
8026 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8027
8028 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8029 __sbrk): Do not set attribute_hidden.
8030 * sysdeps/mach/hurd/not-errno.h: New file.
8031 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8032 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8033
8034 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8035
8036 * po/uk.po: Update translations.
8037 * po/cs.po: Likewise.
8038 * po/pl.po: Likewise.
8039
8040 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8041
8042 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8043 parse beyond the note end.
8044
8045 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8046
8047 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8048 kernel does not support OFD locks.
8049 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8050
8051 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8052
8053 * sysdeps/mach/hurd/Versions (libc): Make __access and
8054 __access_noerrno external so they can override the ld symbols.
8055 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8056 __writev, __open64, __access_noerrno extern so they can be overrided.
8057 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8058 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8059
8060 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8061
8062 * po/libc.pot: Regenerate.
8063
8064 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8065
8066 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8067
8068 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8069
8070 [BZ #23459]
8071 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8072 function.
8073 (init_cpu_features): Call get_extended_indices for both Intel
8074 and AMD CPUs.
8075 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8076 Remove "for AMD" comment.
8077
8078 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8079
8080 [BZ # 23456]
8081 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8082 COMMON_CPUID_INDEX_80000001.
8083
8084 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8085
8086 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8087 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8088
8089 2018-07-26 Florian Weimer <fweimer@redhat.com>
8090
8091 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8092 aliases for symbols not in the implementation namespace.
8093
8094 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8095
8096 [BZ #23393]
8097 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8098 lowercase in LATIN script.
8099 * localedata/Makefile (test-input): Add en_US.UTF-8.
8100 * localedata/en_US.UTF-8.in: New file.
8101 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8102 and restore old tests.
8103 * posix/tst-regexloc.c (do_test): Add back range expression test.
8104
8105 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8106
8107 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8108
8109 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8110
8111 * nptl/threads.h: Move to ...
8112 * sysdeps/nptl/threads.h: ... here.
8113 * sysdeps/hurd/stdc-predef.h: New file.
8114
8115 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8116
8117 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8118 tst-cet-setcontext-1 if CET is enabled.
8119 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8120 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8121
8122 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8123
8124 * include/threads.h: Move to ...
8125 * sysdeps/nptl/threads.h: ... here.
8126 * sysdeps/htl/threads.h: New file.
8127 * conform/Makefile (linknamespace-libs-ISO11): Use
8128 static-thread-library instead of linking libpthread.
8129 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8130
8131 2018-07-25 Florian Weimer <fweimer@redhat.com>
8132
8133 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8134 nanoseconds into seconds.
8135 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8136 (do_test): Likewise.
8137 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8138 (do_test): Likewise. Avoid nanosecond overflow and spurious
8139 timeouts due to system load.
8140 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8141 (child_wait): Increment it.
8142 (do_test): Wait as long as necessary until all expected threads
8143 have arrived.
8144
8145 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8146 H.J. Lu <hongjiu.lu@intel.com>
8147
8148 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8149 __ssp.
8150 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8151 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8152 (__push___start_context): New.
8153 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8154 <asm/prctl.h>.
8155 (__getcontext): Record the current shadow stack base. Save the
8156 caller's shadow stack pointer and base.
8157 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8158 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8159 (__push___start_context): New prototype.
8160 (__makecontext): Call __push___start_context to allocate a new
8161 shadow stack, push __start_context onto the new stack as well
8162 as the new shadow stack.
8163 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8164 <asm/prctl.h>.
8165 (__setcontext): Restore the target shadow stack.
8166 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8167 <asm/prctl.h>.
8168 (__swapcontext): Record the current shadow stack base. Save
8169 the caller's shadow stack pointer and base. Restore the target
8170 shadow stack.
8171 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8172 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8173 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8174
8175 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8176
8177 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8178 tst-setcontext8 and tst-setcontext9.
8179 * stdlib/tst-setcontext6.c: New file.
8180 * stdlib/tst-setcontext7.c: Likewise.
8181 * stdlib/tst-setcontext8.c: Likewise.
8182 * stdlib/tst-setcontext9.c: Likewise.
8183
8184 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8185
8186 * stdlib/Makefile ((tests): Add tst-setcontext5.
8187 * stdlib/tst-setcontext5.c: New file.
8188
8189 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8190
8191 * stdlib/Makefile (tests): Add tst-setcontext4.
8192 * stdlib/tst-setcontext4.c: New file.
8193
8194 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8195
8196 * stdlib/Makefile (tests): Add tst-swapcontext1.
8197 * stdlib/tst-swapcontext1.c: New test.
8198
8199 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8200
8201 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8202 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8203 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8204 and tst-cet-legacy-4c.
8205 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8206 and tst-cet-legacy-mod-4.
8207 (CFLAGS-tst-cet-legacy-2.c): New.
8208 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8209 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8210 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8211 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8212 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8213 ($(objpfx)tst-cet-legacy-1): Likewise.
8214 ($(objpfx)tst-cet-legacy-2): Likewise.
8215 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8216 ($(objpfx)tst-cet-legacy-2a): Likewise.
8217 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8218 ($(objpfx)tst-cet-legacy-4): Likewise.
8219 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8220 ($(objpfx)tst-cet-legacy-4a): Likewise.
8221 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8222 (tst-cet-legacy-4a-ENV): Likewise.
8223 ($(objpfx)tst-cet-legacy-4b): Likewise.
8224 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8225 (tst-cet-legacy-4b-ENV): Likewise.
8226 ($(objpfx)tst-cet-legacy-4c): Likewise.
8227 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8228 (tst-cet-legacy-4c-ENV): Likewise.
8229 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8230 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8231 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8232 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8233 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8234 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8235 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8236 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8237 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8238 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8239 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8240
8241 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8242
8243 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8244 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8245 with ssp_base.
8246 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8247 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8248 with ssp_base.
8249
8250 2018-07-25 Andreas Schwab <schwab@suse.de>
8251
8252 [BZ #23442]
8253 * locale/weightwc.h (findidx): Handle the case where usrc is a
8254 prefix of cp but one character too short.
8255
8256 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8257
8258 * NEWS: Add ISO C threads addition.
8259
8260 2018-07-24 Florian Weimer <fweimer@redhat.com>
8261
8262 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8263 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8264 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8265 4.13.
8266
8267 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8268
8269 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8270 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8271 <sys/prctl.h> and <asm/prctl.h>.
8272 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8273 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8274 and <asm/prctl.h>.
8275 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8276 ARCH_CET_LEGACY_BITMAP.
8277 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8278 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8279 * sysdeps/x86/libc-start.c: Include <startup.h>.
8280
8281 2018-07-24 Florian Weimer <fweimer@redhat.com>
8282
8283 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8284 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8285
8286 2018-07-24 Rical Jasan <rj@2c3t.io>
8287 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8288 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8289
8290 [BZ #14092]
8291 * manual/debug.texi: Update adjacent chapter name.
8292 * manual/probes.texi: Likewise.
8293 * manual/threads.texi (ISO C Threads): New section.
8294 (POSIX Threads): Convert to a section.
8295
8296 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8297 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8298
8299 [BZ# 14092]
8300 * nptl/Makefile (tests): Add new test files.
8301 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8302 * nptl/tst-cnd-basic.c: Likewise.
8303 * nptl/tst-cnd-broadcast.c: Likewise.
8304 * nptl/tst-cnd-timedwait.c: Likewise.
8305 * nptl/tst-mtx-basic.c: Likewise.
8306 * nptl/tst-mtx-recursive.c: Likewise.
8307 * nptl/tst-mtx-timedlock.c: Likewise.
8308 * nptl/tst-mtx-trylock.c: Likewise.
8309 * nptl/tst-thrd-basic.c: Likewise.
8310 * nptl/tst-thrd-detach.c: Likewise.
8311 * nptl/tst-thrd-sleep.c: Likewise.
8312 * nptl/tst-tss-basic.c: Likewise.
8313
8314 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8315
8316 [BZ #14092]
8317 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8318 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8319 symbols.
8320 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8321 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8322 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8323 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8324 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8325 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8326 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8327 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8328 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8329 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8330 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8331 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8332 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8333 Likewise.
8334 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8335 Likewise.
8336 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8337 Likewise.
8338 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8339 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8340 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8341 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8342 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8343 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8344 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8345 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8346 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8347 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
8348 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
8349 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
8350 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
8351 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
8352 Likewise.
8353 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8354 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8355 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8356 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8357 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8358 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8359 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8360 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8361 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8362 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8363 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8364 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8365 ikewise.
8366 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8367 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8368 Likewise.
8369 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8370 Likewise.
8371 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8372 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8373 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8374 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8375 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8376 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8377 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8378 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8379
8380 [BZ #14092]
8381 * conform/data/threads.h-data (thread_local): New macro.
8382 (TSS_DTOR_ITERATIONS): Likewise.
8383 (tss_t): New type.
8384 (tss_dtor_t): Likewise.
8385 (tss_create): New function.
8386 (tss_get): Likewise.
8387 (tss_set): Likewise.
8388 (tss_delete): Likewise.
8389 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
8390 tss_get, and tss_set objects.
8391 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8392 * nptl/tss_create.c: New file.
8393 * nptl/tss_delete.c: Likewise.
8394 * nptl/tss_get.c: Likewise.
8395 * nptl/tss_set.c: Likewise.
8396 * sysdeps/nptl/threads.h (thread_local): New define.
8397 (TSS_DTOR_ITERATIONS): Likewise.
8398 (tss_t): New typedef.
8399 (tss_dtor_t): Likewise.
8400 (tss_create): New prototype.
8401 (tss_get): Likewise.
8402 (tss_set): Likewise.
8403 (tss_delete): Likewise.
8404
8405 [BZ #14092]
8406 * conform/data/threads.h-data (cnd_t): New type.
8407 (cnd_init): New function.
8408 (cnd_signal): Likewise.
8409 (cnd_broadcast): Likewise.
8410 (cnd_wait): Likewise.
8411 (cnd_timedwait): Likewise.
8412 (cnd_destroy): Likewise.
8413 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
8414 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
8415 object.
8416 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8417 * nptl/cnd_broadcast.c: New file.
8418 * nptl/cnd_destroy.c: Likewise.
8419 * nptl/cnd_init.c: Likewise.
8420 * nptl/cnd_signal.c: Likewise.
8421 * nptl/cnd_timedwait.c: Likewise.
8422 * nptl/cnd_wait.c: Likewise.
8423 * sysdeps/nptl/threads.h (cnd_t): New type.
8424 (cnd_init): New prototype.
8425 (cnd_signa): Likewise.
8426 (cnd_broadcast): Likewise.
8427 (cnd_wait): Likewise.
8428 (cnd_timedwait): Likewise.
8429 (cnd_destroy): Likewise.
8430
8431 [BZ #14092]
8432 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
8433 (once_flag): New type.
8434 (call_once): New function.
8435 * nptl/Makefile (libpthread-routines): Add call_once object.
8436 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
8437 * nptl/call_once.c: New file.
8438 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
8439 (once_flag): New type.
8440 (call_once): New prototype.
8441
8442 [BZ #14092]
8443 * conform/data/threads.h-data (mtx_plain): New constant.
8444 (mtx_recursive): Likewise.
8445 (mtx_timed): Likewise.
8446 (mtx_t): New type.
8447 (mtx_init): New function.
8448 (mtx_lock): Likewise.
8449 (mtx_timedlock): Likewise.
8450 (mtx_trylock): Likewise.
8451 (mtx_unlock): Likewise.
8452 (mtx_destroy): Likewise.
8453 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
8454 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
8455 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
8456 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
8457 * nptl/mtx_destroy.c: New file.
8458 * nptl/mtx_init.c: Likewise.
8459 * nptl/mtx_lock.c: Likewise.
8460 * nptl/mtx_timedlock.c: Likewise.
8461 * nptl/mtx_trylock.c: Likewise.
8462 * nptl/mtx_unlock.c: Likewise.
8463 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
8464 (mtx_recursive): Likewise.
8465 (mtx_timed): Likewise.
8466 (mtx_t): New type.
8467 (mtx_init): New prototype.
8468 (mtx_lock): Likewise.
8469 (mtx_timedlock): Likewise.
8470 (mtx_trylock): Likewise.
8471 (mtx_unlock): Likewise.
8472 (mtx_destroy): Likewise.
8473
8474 [BZ #14092]
8475 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
8476 (linknamespace-libs-ISO11): Add libpthread.a.
8477 * conform/data/threads.h-data: New file: add C11 thrd_* types and
8478 functions.
8479 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
8480 * nptl/Makefile (headers): Add threads.h.
8481 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
8482 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
8483 thrd_yield.
8484 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
8485 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
8486 thrd_join, thrd_sleep, and thrd_yield symbols.
8487 * nptl/descr.h (struct pthread): Add c11 field.
8488 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
8489 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
8490 routine with expected function prototype.
8491 (__pthread_create_2_1): Add C11 threads check based on attribute
8492 value.
8493 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
8494 * nptl/thrd_create.c: New file.
8495 * nptl/thrd_current.c: Likewise.
8496 * nptl/thrd_detach.c: Likewise.
8497 * nptl/thrd_equal.c: Likewise.
8498 * nptl/thrd_exit.c: Likewise.
8499 * nptl/thrd_join.c: Likewise.
8500 * nptl/thrd_priv.h: Likewise.
8501 * nptl/thrd_sleep.c: Likewise.
8502 * nptl/thrd_yield.c: Likewise.
8503 * include/threads.h: Likewise.
8504
8505 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8506
8507 * bits/indirect-return.h: New file.
8508 * misc/sys/cdefs.h (__glibc_has_attribute): New.
8509 * sysdeps/x86/bits/indirect-return.h: Likewise.
8510 * stdlib/Makefile (headers): Add bits/indirect-return.h.
8511 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
8512 (swapcontext): Add __INDIRECT_RETURN.
8513 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
8514 (prepare_test_buffer): Use it.
8515
8516 2018-07-24 Andreas Schwab <schwab@suse.de>
8517
8518 [BZ #23448]
8519 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
8520 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
8521
8522 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8523
8524 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
8525 Redefine if shadow stack is enabled.
8526 (SYSCALL_ERROR_LABEL): Likewise.
8527 (__vfork): Pop shadow stack and jump back to to caller directly
8528 when shadow stack is in use.
8529 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
8530 Redefine if shadow stack is enabled.
8531 (SYSCALL_ERROR_LABEL): Likewise.
8532 (__vfork): Pop shadow stack and jump back to to caller directly
8533 when shadow stack is in use.
8534
8535 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8536
8537 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
8538 enabled.
8539 (foo): Likewise.
8540 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
8541 (foo): Likewise.
8542
8543 2018-07-20 Joseph Myers <joseph@codesourcery.com>
8544
8545 * scripts/build-many-glibcs.py (Context.checkout): Default
8546 binutils version to 2.31 branch.
8547
8548 2018-07-20 Zong Li <zong@andestech.com>
8549
8550 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
8551 URL of gcc's tarball.
8552
8553 2018-07-20 Florian Weimer <fweimer@redhat.com>
8554
8555 [BZ #23396]
8556 * posix/regcomp.c (build_equiv_class): When comparing weights, do
8557 not compare an extra byte after the end of the weights.
8558
8559 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
8560
8561 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
8562 to 1.
8563 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
8564 hidden prototypes.
8565 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
8566 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
8567 * scripts/check-execstack.awk: Consider `xfail' variable containing a
8568 list of libraries whose stack executability is expected.
8569 * elf/Makefile ($(objpfx)check-execstack.out): Pass
8570 $(check-execstack-xfail) to check-execstack.awk through `xfail'
8571 variable.
8572 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
8573 libc.so libpthread.so.
8574
8575 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
8576
8577 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
8578 SOCK_NONBLOCK.
8579 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
8580 and SOCK_NONBLOCK.
8581 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
8582 implement __pipe2.
8583 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
8584
8585 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8586
8587 * benchtests/scripts/compare_bench.py (__main__): use the argparse
8588 library to improve command line parsing.
8589 (__main__): make schema file as optional parameter (--schema),
8590 defaulting to benchtests/scripts/benchout.schema.json.
8591 (main): move out of the parsing stuff to __main_  and leave it
8592 only as caller of main comparison functions.
8593
8594 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
8595
8596 * NEWS: Add a note for Intel CET status.
8597 * manual/install.texi: Likewise.
8598 * INSTALL: Regenerated.
8599
8600 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
8601
8602 [BZ #23140]
8603 * localedata/locales/oc_FR (mon): Rename to...
8604 (alt_mon): This, then update October (typo fix).
8605 (mon): New content (genitive case, month names preceded by
8606 "de" or "d’").
8607
8608 [BZ #23422]
8609 * localedata/locales/oc_FR (abday): Update all items.
8610 (day): Update Wednesday and Saturday (typo fixes).
8611 (abmon): Update all items, except May.
8612 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
8613 (LC_IDENTIFICATION): Bump the revision number and date.
8614 Keep the "category" entries in alphabetic order.
8615 (LC_ADDRESS): Remove no longer needed comment.
8616 (LC_COLLATE): Use “copy "ca_ES"”.
8617 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
8618 "name_mrs".
8619
8620 2018-07-18 Joseph Myers <joseph@codesourcery.com>
8621
8622 * grp/tst_fgetgrent.c: Include <unistd.h>.
8623 (main): Use mkstemp instead of tmpnam.
8624 * io/test-utime.c (main): Likewise.
8625 * posix/annexc.c (macrofile): Change to modifiable array.
8626 (main): Remove macrofile here.
8627 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8628 macrofile here.
8629 (check_header): Do not remove macrofile here.
8630 * posix/bug-getopt1.c: Include <stdlib.h>.
8631 (do_test): Use mkstemp instead of tmpnam.
8632 * posix/bug-getopt2.c: Include <stdlib.h>.
8633 (do_test): Use mkstemp instead of tmpnam.
8634 * posix/bug-getopt3.c: Include <stdlib.h>.
8635 (do_test): Use mkstemp instead of tmpnam.
8636 * posix/bug-getopt4.c: Include <stdlib.h>.
8637 (do_test): Use mkstemp instead of tmpnam.
8638 * posix/bug-getopt5.c: Include <stdlib.h>.
8639 (do_test): Use mkstemp instead of tmpnam.
8640 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
8641 (main): Use mkstemp instead of tmpnam.
8642 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
8643 (main): Use mkstemp instead of tmpnam.
8644 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
8645 (main): use mkstemp instead of tmpnam.
8646 * stdlib/isomac.c (macrofile): Change to modifiable array.
8647 (main): Remove macrofile here.
8648 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8649 macrofile here.
8650 (check_header): Do not remove macrofile here.
8651
8652 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8653
8654 * manual/tunables.texi: Document glibc.tune.x86_ibt and
8655 glibc.tune.x86_shstk.
8656
8657 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8658
8659 * NEWS: Mention --enable-cet.
8660 * manual/install.texi: Document --enable-cet.
8661 * INSTALL: Regenerated.
8662
8663 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8664
8665 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
8666 Add _CET_NOTRACK before indirect jump to jump table.
8667
8668 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8669
8670 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
8671 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8672 to jump table.
8673
8674 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8675
8676 * sysdeps/i386/i686/multiarch/strcat-sse2.S
8677 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8678 to jump table.
8679
8680 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8681
8682 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
8683 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8684 to jump table.
8685
8686 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8687
8688 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
8689 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8690 to jump table.
8691
8692 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8693
8694 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
8695 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8696 to jump table.
8697 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
8698
8699 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8700
8701 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
8702 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8703 to jump table.
8704
8705 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8706
8707 * sysdeps/i386/i686/multiarch/memset-sse2.S
8708 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8709 to jump table.
8710
8711 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8712
8713 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
8714 indirect jump to jump table.
8715
8716 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8717
8718 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
8719 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8720 to jump table.
8721 (MEMCPY): Likewise.
8722
8723 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8724
8725 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
8726 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8727 to jump table.
8728 (MEMCPY): Likewise.
8729
8730 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8731
8732 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8733 _CET_NOTRACK before indirect jump to jump table.
8734
8735 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8736
8737 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
8738 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8739 to jump table.
8740
8741 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8742
8743 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
8744 indirect jump to jump table.
8745
8746 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
8747
8748 [BZ #22241]
8749 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
8750 (LOCALES): Likewise.
8751 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
8752 * localedata/locales/sah_RU: New file.
8753 * localedata/sah_RU.UTF-8.in: New file.
8754
8755 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8756
8757 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
8758 "sysdep.h".
8759 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8760 _CET_ENDBR to indirect jump targets and adjust jump destination
8761 for _CET_ENDBR.
8762 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
8763 "sysdep.h".
8764 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8765 _CET_ENDBR to indirect jump targets and adjust jump destination
8766 for _CET_ENDBR.
8767 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
8768 "sysdep.h".
8769 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
8770 _CET_ENDBR to indirect jump targets and adjust jump destination
8771 for _CET_ENDBR.
8772
8773 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8774
8775 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8776 _CET_ENDBR.
8777
8778 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8779
8780 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
8781 _CET_ENDBR.
8782 (_dl_tlsdesc_undefweak): Likewise.
8783 (_dl_tlsdesc_dynamic): Likewise.
8784 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
8785 (_dl_tlsdesc_resolve_rel): Likewise.
8786 (_dl_tlsdesc_resolve_rela): Likewise.
8787 (_dl_tlsdesc_resolve_hold): Likewise.
8788 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
8789 (_dl_tlsdesc_undefweak): Likewise.
8790 (_dl_tlsdesc_dynamic): Likewise.
8791 (_dl_tlsdesc_resolve_rela): Likewise.
8792 (_dl_tlsdesc_resolve_hold): Likewise.
8793
8794 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8795
8796 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
8797 (_fini): Likewise.
8798 * sysdeps/x86_64/crti.S (_init): Likewise.
8799 (_fini): Likewise.
8800
8801 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
8802
8803 [BZ #23140]
8804 * localedata/locales/os_RU (mon): Rename to...
8805 (alt_mon): This.
8806 (mon): Import from CLDR (genitive case).
8807
8808 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8809
8810 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
8811 cet-tunables.h> when CET is enabled.
8812
8813 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
8814
8815 [BZ #21598]
8816 * configure.ac: Add --enable-cet.
8817 * configure: Regenerated.
8818 * elf/Makefille (all-built-dso): Add a comment.
8819 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
8820 Include <dl-prop.h>.
8821 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
8822 segment.
8823 * elf/dl-open.c: Include <dl-prop.h>.
8824 (dl_open_worker): Call _dl_open_check.
8825 * elf/rtld.c: Include <dl-prop.h>.
8826 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
8827 _rtld_main_check.
8828 * sysdeps/generic/dl-prop.h: New file.
8829 * sysdeps/i386/dl-cet.c: Likewise.
8830 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
8831 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
8832 * sysdeps/x86/cet-tunables.h: Likewise.
8833 * sysdeps/x86/check-cet.awk: Likewise.
8834 * sysdeps/x86/configure: Likewise.
8835 * sysdeps/x86/configure.ac: Likewise.
8836 * sysdeps/x86/dl-cet.c: Likewise.
8837 * sysdeps/x86/dl-procruntime.c: Likewise.
8838 * sysdeps/x86/dl-prop.h: Likewise.
8839 * sysdeps/x86/libc-start.h: Likewise.
8840 * sysdeps/x86/link_map.h: Likewise.
8841 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
8842 _CET_ENDBR.
8843 (_dl_runtime_profile): Likewise.
8844 (_dl_runtime_resolve_shstk): New.
8845 (_dl_runtime_profile_shstk): Likewise.
8846 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
8847 if CET is enabled.
8848 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
8849 (CFLAGS-.os): Likewise.
8850 (CFLAGS-.op): Likewise.
8851 (CFLAGS-.oS): Likewise.
8852 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
8853 is enabled.
8854 (tests-special): Add $(objpfx)check-cet.out.
8855 (cet-built-dso): New.
8856 (+$(cet-built-dso:=.note)): Likewise.
8857 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
8858 ($(objpfx)check-cet.out): New.
8859 (generated): Add check-cet.out.
8860 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
8861 <cet-tunables.h>.
8862 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
8863 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8864 (init_cpu_features): Call get_cet_status to check CET status
8865 and update dl_x86_feature_1 with CET status. Call
8866 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
8867 (set_x86_shstk). Disable and lock CET in libc.a.
8868 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
8869 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
8870 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8871 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
8872 (_CET_ENDBR): Define if not defined.
8873 (ENTRY): Add _CET_ENDBR.
8874 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
8875 x86_shstk.
8876 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
8877 _CET_ENDBR.
8878 (_dl_runtime_profile): Likewise.
8879
8880 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
8881
8882 [BZ #21895]
8883 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
8884 restore r2 on longjmp.
8885 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
8886 test list.
8887 Added rules to build test tst-setjmp-bug21895-static.
8888 Added module setjmp-bug21895 and rules to build a shared object from it.
8889 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
8890 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
8891
8892 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
8893
8894 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
8895 * benchtests/bench-strstr.c: Likewise.
8896 * string/memmem.c (FASTSEARCH): Define.
8897 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
8898 Add support for FASTSEARCH.
8899 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
8900 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
8901 (FASTSEARCH): Define.
8902 * string/test-strcasestr.c: Rename __strnlen to strnlen.
8903 * string/test-strstr.c: Likewise.
8904
8905 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
8906
8907 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
8908 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
8909
8910 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
8911 H.J. Lu <hongjiu.lu@intel.com>
8912
8913 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
8914 (__longjmp): Restore shadow stack pointer if shadow stack is
8915 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8916 isn't defined for __longjmp_cancel.
8917 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
8918 (_setjmp): Save shadow stack pointer if shadow stack is enabled
8919 and SHADOW_STACK_POINTER_OFFSET is defined.
8920 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
8921 (setjmp): Save shadow stack pointer if shadow stack is enabled
8922 and SHADOW_STACK_POINTER_OFFSET is defined.
8923 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
8924 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8925 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8926 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
8927 <jmp_buf-ssp.h>.
8928 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8929 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8930 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
8931 Remove jmp_buf-ssp.sym.
8932 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8933 <jmp_buf-ssp.h>.
8934 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8935 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8936 * sysdeps/x86/Makefile (gen-as-const-headers): Add
8937 jmp_buf-ssp.sym.
8938 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
8939 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
8940 (__longjmp): Restore shadow stack pointer if shadow stack is
8941 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8942 isn't defined for __longjmp_cancel.
8943 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
8944 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8945 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8946
8947 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
8948
8949 [BZ #22563]
8950 * nptl/pthread_create.c: Include <tls-setup.h>.
8951 (__pthread_create_2_1): Call tls_setup_tcbhead.
8952 * sysdeps/generic/tls-setup.h: New file.
8953 * sysdeps/x86/nptl/tls-setup.h: Likewise.
8954 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
8955 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
8956 Likewise.
8957 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
8958 to feature_1.
8959 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
8960 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
8961 (X86_FEATURE_1_SHSTK): Likewise.
8962 (CET_ENABLED): Likewise.
8963 (IBT_ENABLED): Likewise.
8964 (SHSTK_ENABLED): Likewise.
8965
8966 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
8967
8968 [BZ #23208]
8969 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
8970 (LOCALES): Likewise.
8971 * localedata/dsb_DE.UTF-8.in: New file.
8972 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
8973
8974 2018-07-12 Florian Weimer <fweimer@redhat.com>
8975
8976 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
8977 __mprotect, not mprotect.
8978
8979 2018-07-11 Florian Weimer <fweimer@redhat.com>
8980
8981 * io/Makefile (headers): Add bits/statx.h.
8982
8983 2018-07-10 Mike FABIAN <mfabian@redhat.com>
8984
8985 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
8986 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
8987 and headers.
8988 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
8989 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
8990 for utf8_gen.py
8991
8992 2018-07-10 Florian Weimer <fweimer@redhat.com>
8993
8994 * io/Makefile (routines): Add statx.
8995 (tests-internal): Add tst-statx.
8996 * io/Versions (GLIBC_2.28): Export statx.
8997 * io/bits/statx.h: New file.
8998 * io/sys/stat.h [__USE_GNU]: Include it.
8999 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9000 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9001 Define.
9002 * io/statx.c: New file.
9003 * io/statx_generic.: Likewise.
9004 * io/tst-statx.: Likewise.
9005 * include/bits/statx.h: Likewise.
9006 * sysdeps/unix/sysv/linux/kernel-features.h
9007 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9008 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9009 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9010 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9011 Undefine.
9012 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9013 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9014 * sysdeps/unix/sysv/linux/statx.c: New file.
9015 * manual/filesys.texi: Note that statx is undocumented.
9016 * sysdeps/**/libc*.abilist: Update.
9017
9018 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9019
9020 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
9021 a kernel issue which lead to test failure in some cases.
9022
9023 2018-07-10 Florian Weimer <fweimer@redhat.com>
9024
9025 [BZ #23036]
9026 * posix/regexec.c (check_node_accept_bytes): When comparing
9027 weights, do not compare an extra byte after the end of the
9028 weights.
9029
9030 2018-07-10 Florian Weimer <fweimer@redhat.com>
9031
9032 * libio/readline.c: Fix copyright year.
9033 * libio/tst-readline.c Likewise.
9034 * nss/tst-nss-files-hosts-getent.c: Likewise.
9035
9036 2018-07-06 Florian Weimer <fweimer@redhat.com>
9037
9038 [BZ #18991]
9039 * nss/nss_files/files-XXX.c (internal_getent): Use
9040 __libc_readline_unlocked. Seek back to the start of the line if
9041 parsing failes with ERANGE.
9042 (get_contents_ret, get_contents): Remove.
9043 * nss/tst-nss-files-hosts-getent.c: New file.
9044 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9045 (tst-nss-files-hosts-getent): Link with -ldl.
9046
9047 2018-07-06 Florian Weimer <fweimer@redhat.com>
9048
9049 * include/stdio.h (__libc_readline_unlocked): Declare.
9050 (__ftello64, __fseeko64): Declare aliases.
9051 * libio/readline.c: New file.
9052 * libio/tst-readline.c: Likewise.
9053 (routines): Add readline.
9054 (tests-internal): Add tst-readlime.
9055 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9056 __libc_readline_unlocked.
9057 * libio/fseeko.c (__fseeko): Rename from fseeko.
9058 (fseeko): Add alias.
9059 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9060 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9061 (fseeko64): Add alias.
9062 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9063 * libio/ftello64.c (__ftello64): Rename from ftello64.
9064 (ftello64): Add alias.
9065
9066 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9067
9068 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9069 HWCAP_ATOMICS.
9070
9071 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9072
9073 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9074 Use dl_hwcap without masking.
9075 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9076 Remove HWCAP_CPUID.
9077
9078 2018-07-06 Florian Weimer <fweimer@redhat.com>
9079
9080 * conform/conformtest.pl (checknamespace): Escape literal braces
9081 in regular expressions.
9082
9083 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9084
9085 * sysdeps/x86/cpu-features.c (get_common_indeces):
9086 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9087 * sysdeps/x86/cpu-features.c (init_cpu_features):
9088 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9089
9090 2018-07-05 Florian Weimer <fweimer@redhat.com>
9091
9092 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9093 protector.
9094 (CFLAGS-elf-init.oS): Likewise.
9095
9096 2018-07-05 Florian Weimer <fweimer@redhat.com>
9097 Carlos O'Donell <carlos@redhat.com>
9098
9099 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9100 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9101 with stack protector enabled because there is no risk of infinite
9102 recursion.
9103
9104 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9105
9106 [BZ #19818]
9107 [BZ #23307]
9108 * libc-abis (ABSOLUTE): New ABI.
9109 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9110 * NEWS: Mention the new ABI.
9111
9112 2018-07-05 Florian Weimer <fweimer@redhat.com>
9113
9114 [BZ # 17662]
9115 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9116 (RENAME_WHITEOUT): Define.
9117 [__USE_GNU] (renameat2): Declare.
9118 * stdio-common/Makefile (routines): Add renameat2.
9119 (tests): Add tst-renameat2.
9120 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9121 * stdio-common/renameat2.c: New file.
9122 * stdio-common/tst-renameat2.c: Likewise.
9123 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9124 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9125 undocumented.
9126 * sysdeps/unix/sysv/linux/kernel-features.h
9127 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9128 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9129 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9130 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9131 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9132 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9133 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9134 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9135 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9136 * include/stdio.h (__renameat): Add alias for renameat.
9137 * stdio-common/renameat.c (__renameat): Rename from renameat.
9138 Add hidden definition and alias.
9139 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9140 * sysdeps/mach/hurd/renameat.c: Likewise.
9141 * sysdeps/**/libc*.abilist: Add renameat2.
9142
9143 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9144
9145 * posix/bug-regex33.c: Fix build after regex sync.
9146
9147 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9148
9149 [BZ #23164]
9150 * localedata/tst-langinfo-setlocale.c: New file.
9151 * localedata/tst-langinfo-setlocale-static.c: New file.
9152 * localedata/tst-langinfo-newlocale.c: New file.
9153 * localedata/tst-langinfo-newlocale-static.c: New file.
9154 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9155 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9156 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9157 (tests-static): Remove tst-langinfo-static. Add
9158 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9159 (tests-special): Remove $(objpfx)tst-langinfo.out,
9160 $(objpfx)tst-langinfo-static.out. Add
9161 $(objpfx)tst-langinfo-setlocale.out,
9162 $(objpfx)tst-langinfo-newlocale.out,
9163 $(objpfx)tst-langinfo-setlocale-static.out,
9164 $(objpfx)tst-langinfo-newlocale-static.out.
9165 ($(objpfx)tst-langinfo.out): Remove.
9166 ($(objpfx)tst-langinfo-static.out): Remove.
9167 ($(objpfx)tst-langinfo-newlocale.out): New target.
9168 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9169 (test-xfail-tst-langinfo-newlocale-static): Add.
9170 ($(objpfx)tst-langinfo-setlocale.out): New target.
9171 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9172 * localedata/tst-langinfo.c: Call test_locale.
9173 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9174 data.
9175
9176 2018-07-04 Florian Weimer <fweimer@redhat.com>
9177
9178 testrun.sh: Implement --tool=strace, --tool=valgrind
9179 * Makefile (testrun-script): Define variable.
9180 (testrun.sh): Use variable.
9181 * manual/install.texi (Tools for Compilation): make 4.0 or later
9182 is required.
9183 * configure.ac: Check for make 4.0 or later.
9184 * INSTALL: Regenerate.
9185 * configure: Likewise.
9186
9187 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9188
9189 [BZ #23233]
9190 [BZ #21163]
9191 [BZ #18986]
9192 [BZ #13762]
9193 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9194 * posix/PCRE.tests: Remove invalid test.
9195 * posix/bug-regex28.c: Fix expected values for used syntax.
9196 * posix/bug-regex37.c: New file.
9197 * posix/bug-regex38.c: Likewise.
9198 * posix/regcomp.c: Sync with gnulib.
9199 * posix/regex.c: Likewise.
9200 * posix/regex.h: Likewise.
9201 * posix/regex_internal.c: Likewise.
9202 * posix/regex_internal.h: Likewise.
9203 * posix/regexec.c: Likewise.
9204
9205 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9206
9207 [BZ #23308]
9208 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9209 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9210 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9211 * localedata/unicode-gen/PropList.txt: likewise.
9212 * localedata/unicode-gen/UnicodeData.txt: likewise.
9213 * localedata/charmaps/UTF-8: Regenerate.
9214 * localedata/locales/i18n_ctype: likewise.
9215 * localedata/locales/tr_TR: likewise.
9216 * localedata/locales/translit_circle: likewise.
9217 * localedata/locales/translit_cjk_compat: likewise.
9218 * localedata/locales/translit_combining: likewise.
9219 * localedata/locales/translit_compat: likewise.
9220 * localedata/locales/translit_font: likewise.
9221 * localedata/locales/translit_fraction: likewise.
9222
9223 2018-07-03 Florian Weimer <fweimer@redhat.com>
9224
9225 [BZ #23363]
9226 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9227 * stdio-common/tst-printf.sh: Adjust expected output.
9228 * LICENSES: Update.
9229
9230 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9231
9232 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9233 symbol.
9234
9235 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9236
9237 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9238 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9239 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9240 * stdio-common/tst-printfsz-islongdouble.c: New file.
9241 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9242 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9243 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9244 [subdir == stdio-common] (tests-internal): Add
9245 test-printf-size-ieee128, and test-printf-size-ibm128.
9246 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9247 (CFLAGS-test-printf-size-ibm128.c): New variables.
9248 [subdir == stdio-common] (tests-special): Add
9249 $(objpfx)test-printf-size-ieee128.out and
9250 $(objpfx)test-printf-size-ibm128.out.
9251 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9252 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9253 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9254 __printf_sizeieee128.
9255 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9256 New file.
9257 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9258 Likewise.
9259 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9260 Likewise.
9261
9262 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9263
9264 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9265 (exp2f_inline): Likewise.
9266 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9267 (__math_uflowf): Likewise.
9268 (__math_may_uflowf): Likewise.
9269 (__math_divzerof): Likewise.
9270 (__math_invalidf): Likewise.
9271 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9272 (__math_oflowf): Likewise.
9273 (__math_uflowf): Likewise.
9274 (__math_may_uflowf): Likewise.
9275 (__math_divzerof): Likewise.
9276 (__math_invalidf): Likewise.
9277
9278 2018-06-29 DJ Delorie <dj@redhat.com>
9279 Carlos O'Donell <carlos@redhat.com>
9280
9281 [BZ #23329]
9282 * include/libc-symbols.h: Comment the freeres framework.
9283 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9284 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9285 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9286 * dlfcn/dlerror.c: Include libc-symbols.h
9287 (__dlerror_main_freeres): New function.
9288 * dlfcn/dlfreeres.c: New file.
9289 * dlfcn/sdlfreeres.c: New file.
9290 * include/dlfcn.h: Declare __dlerror_main_freeres.
9291 * malloc/set-freeres.c: Declare __libdl_freeres, and
9292 __libpthread_freeres.
9293 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9294 the releavant libraries are loaded.
9295 * malloc/thread-freeres.c: Add comments.
9296 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9297 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9298 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9299 (__free_stacks): Rename to...
9300 (free_stacks): ...this. Mark static.
9301 (queue_stack): Call free_stacks.
9302 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9303 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9304 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9305 ptr_freeres element from struct.
9306 (pthread_functions): Remove .ptr_freeres from struct initializer.
9307 [SHARED] (nptl_freeres): Remove.
9308 * nptl/nptlfreeres.c: New file.
9309 * nptl/pthreadP.h
9310 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9311 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9312 attribute_hidden.
9313 (__free_stacks): Rename to...
9314 (__nptl_stacks_freeres): ...this.
9315 (__shm_directory_freeres): Declare.
9316 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9317 (__nptl_unwind_freeres): ...this.
9318 * resolv/res-close.c: Add comment.
9319 * resolv/resolv_conf.c: Include libc-symbols.h.
9320 * string/strerror_l.c: Include libc-symbols.h.
9321 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9322 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9323 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9324 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9325
9326 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9327
9328 * stdlib/tst-strfmon_l.c: Add tests for long double.
9329
9330 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9331
9332 [BZ #23208]
9333 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9334 * localedata/locales/dsb_DE: New file.
9335
9336 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9337
9338 [BZ #23140]
9339 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9340 genitive case).
9341 (alt_mon): New entry, import from CLDR (nominative case).
9342
9343 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9344
9345 [BZ #22996]
9346 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
9347
9348 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
9349
9350 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
9351 Use vector registers.
9352
9353 * sysdeps/aarch64/multiarch/memmove_falkor.S
9354 (__memcpy_falkor): Use vector registers.
9355
9356 2018-06-29 Martin Sebor <msebor@redhat.com>
9357
9358 * manual/stdio.texi (Customizing Printf): Mention interaction
9359 with GCC built-ins.
9360
9361 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9362
9363 [BZ #23307]
9364 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9365 `st_value' is 0 if `st_shndx' is SHN_ABS.
9366 * elf/tst-absolute-zero.c: New file.
9367 * elf/tst-absolute-zero-lib.c: New file.
9368 * elf/tst-absolute-zero-lib.lds: New file.
9369 * elf/Makefile (tests): Add `tst-absolute-zero'.
9370 (modules-names): Add `tst-absolute-zero-lib'.
9371 (LDLIBS-tst-absolute-zero-lib.so): New variable.
9372 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
9373 ($(objpfx)tst-absolute-zero: New dependency.
9374
9375 2018-06-29 Zack Weinberg <zackw@panix.com>
9376
9377 * configure.ac: New command-line option --disable-crypt.
9378 Force --disable-nss-crypt when --disable-crypt is given, with a
9379 warning if it was explicitly enabled.
9380 * configure: Regenerate.
9381 * config.make.in: New boolean substitution variable $(build-crypt).
9382 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
9383 when $(build-crypt).
9384 * manual/install.texi: Document --disable-crypt.
9385 * INSTALL: Regenerate.
9386
9387 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
9388 which is never set.
9389 * conform/Makefile: Only include libcrypt.a in
9390 linknamespace-libs-xsi and linknamespace-libs-XPG4
9391 when $(build-crypt).
9392 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
9393 USE_CRYPT to 1 when $(build-crypt).
9394 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
9395 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
9396 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
9397
9398 2018-06-29 Zack Weinberg <zackw@panix.com>
9399
9400 * crypt/crypt.h, posix/unistd.h: Update comments and
9401 prototypes for crypt and crypt_r.
9402
9403 * manual/crypt.texi (Cryptographic Functions): New initial
9404 exposition.
9405 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
9406 (Unpredictable Bytes): Improve initial exposition. Clarify error
9407 behavior of getentropy and getrandom.
9408 * manual/examples/genpass.c: Generate a salt using getentropy
9409 instead of the current time. Use hash $5$ (SHA-2-256).
9410 * manual/examples/testpass.c: Demonstrate validation against
9411 hashes generated with three different one-way functions.
9412
9413 * manual/intro.texi: crypt.texi does not need an overview
9414 anymore.
9415
9416 * manual/nss.texi, manual/memory.texi, manual/socket.texi
9417 * manual/terminal.texi: Consistently refer to "passphrases"
9418 * instead of "passwords", and to the "user database" instead
9419 * of the "password database".
9420 * manual/users.texi: Similarly. Add notes about how actual
9421 passphrase hashes are now stored in the shadow database.
9422 Remove 20-year-old junk todo note.
9423
9424 2018-06-29 Zack Weinberg <zackw@panix.com>
9425
9426 * manual/crypt.texi: Use a normal top-level @node declaration.
9427 Move most of the introductory text to the 'crypt' section.
9428 Move the example programs below the @deftypefun for 'crypt_r'.
9429 Move the 'getpass' section...
9430 * manual/terminal.texi: ...here.
9431
9432 2018-06-29 Zack Weinberg <zackw@panix.com>
9433 Florian Weimer <fweimer@redhat.com>
9434
9435 * posix/unistd.h: Do not declare encrypt.
9436 (_XOPEN_CRYPT): Remove macro definition.
9437 (crypt): Declare only for _USE_MISC.
9438 * stdlib/stdlib.h: Do not declare setkey.
9439 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
9440 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
9441
9442 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
9443 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
9444 into compat symbols. Don't define initial_perm if it's not
9445 going to be used.
9446 * crypt/cert.c: Link explicitly with the expected versions for
9447 setkey and encrypt. If they are not available at all, mark
9448 the test as unsupported.
9449
9450 * sunrpc/des_crypt.c: Unconditionally block linkage with
9451 cbc_crypt and ecb_crypt for new binaries.
9452 * sunrpc/des_soft.c: Unconditionally block linkage with
9453 des_setparity for new binaries.
9454
9455 * manual/crypt.texi: Remove the entire "DES Encryption"
9456 section. Also remove the paragraph talking about FIPS 140-2
9457 from the introduction.
9458 * manual/string.texi (strfry, memfrob): Revise. Recommend use
9459 of libgcrypt for "real" encryption, not DES.
9460 * manual/conf.texi (Constants for Sysconf): Mention that
9461 _XOPEN_CRYPT is no longer impelemented.
9462
9463 * conform/data/unistd.h-data: Remove crypt function declaration.
9464
9465 2018-06-29 Florian Weimer <fweimer@redhat.com>
9466
9467 [BZ #23351]
9468 * malloc/hooks.c: Update comments on restoring of dumped heaps.
9469 (disallow_malloc_check): Remove variable.
9470 (__malloc_check_init): Adjust.
9471 (malloc_set_state): Update comment.
9472 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
9473 declarations.
9474
9475 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9476
9477 [BZ #23140]
9478 * localedata/locales/ast_ES (mon): Rename to...
9479 (alt_mon): This.
9480 (mon): Import from CLDR (genitive case).
9481
9482 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
9483 Jakub Sitnicki <jkbs@redhat.com>
9484
9485 [BZ #21812]
9486 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
9487 on NLM_F_DUMP_INTR.
9488
9489 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
9490
9491 * manual/llio.texi: Remove spurious space.
9492
9493 2018-06-28 Florian Weimer <fweimer@redhat.com>
9494
9495 [BZ #23349]
9496 * time/bits/types/struct_timespec.h: Change header inclusion guard to
9497 _STRUCT_TIMESPEC.
9498
9499 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9500
9501 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
9502 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
9503 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
9504 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
9505 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
9506 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
9507 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
9508
9509 2018-06-27 Maciej W. Rozycki <macro@mips.com>
9510
9511 [BZ #23266]
9512 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
9513 Copy and null-terminate entries that are not terminated, in
9514 addition to empty ones.
9515
9516 2018-06-27 Florian Weimer <fweimer@redhat.com>
9517
9518 [BZ #18023]
9519 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
9520 (extend_alloca_account): Remove.
9521 * manual/stdio.texi (Variable Arguments Output): Update comment.
9522
9523 2018-06-27 Joseph Myers <joseph@codesourcery.com>
9524
9525 * nptl/sockperf.c: Remove file.
9526
9527 2018-06-27 Florian Weimer <fweimer@redhat.com>
9528
9529 [BZ #18023]
9530 * elf/dl-deps.c (_dl_map_object_deps): Use struct
9531 scratch_buffer instead of extend_alloca.
9532
9533 2018-06-27 Florian Weimer <fweimer@redhat.com>
9534
9535 [BZ #18023]
9536 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
9537 scratch_buffer instead of extend_alloca. Update comments.
9538
9539 2018-06-27 Florian Weimer <fweimer@redhat.com>
9540
9541 [BZ #18023]
9542 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
9543 instead of extend_alloca.
9544
9545 2018-06-26 Joseph Myers <joseph@codesourcery.com>
9546
9547 [BZ #13888]
9548 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
9549 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
9550 /tmp.
9551 * scripts/test-installation.pl: Put temporary files in build
9552 directory, not /tmp.
9553 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
9554 (CFLAGS-bug4.c): Likewise.
9555 (CFLAGS-bug5.c): Likewise.
9556 (CFLAGS-test-fseek.c): Likewise.
9557 (CFLAGS-test-popen.c): Likewise.
9558 (CFLAGS-test_rdwr.c): Likewise.
9559 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
9560 /tmp.
9561 * stdio-common/bug4.c (main): Likewise.
9562 * stdio-common/bug5.c (main): Likewise.
9563 * stdio-common/test-fseek.c (TESTFILE): Likewise.
9564 * stdio-common/test-popen.c (do_test): Likewise.
9565 * stdio-common/test_rdwr.c (main): Likewise.
9566
9567 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
9568
9569 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
9570 (sem_open): Set sem.newsem.pad to zero for valgrind.
9571
9572 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9573
9574 [BZ #20251]
9575 * NEWS: Mention fcntl64 addition.
9576 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
9577 * login/utmp_file.c: Likewise.
9578 * sysdeps/posix/fdopendir.c: Likewise.
9579 * sysdeps/posix/opendir.c: Likewise.
9580 * sysdeps/unix/pt-fcntl.c: Likewise.
9581 * include/fcntl.h (__libc_fcntl64, __fcntl64,
9582 __fcntl64_nocancel_adjusted): New prototype.
9583 (__fcntl_nocancel_adjusted): Remove prototype.
9584 * io/Makefile (routines): Add fcntl64.
9585 (CFLAGS-fcntl64.c): New rule.
9586 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
9587 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
9588 * io/fcntl.h (fcntl64): Add prototype and redirect if
9589 __USE_FILE_OFFSET64 is defined.
9590 * io/fcntl64.c: New file.
9591 * manual/llio.text: Add a note for which commands fcntl acts a
9592 cancellation point.
9593 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
9594 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
9595 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
9596 New symbols.
9597 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
9598 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
9599 non-LFS case.
9600 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
9601 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
9602 to __fcntl64_nocancel.
9603 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
9604 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
9605 to __fcntl64_nocancel.
9606 * sysdeps/generic/not-cancel.h: Likewise.
9607 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
9608 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
9609 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9610 (fcntl64): New symbol.
9611 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9612 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9613 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9614 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9615 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9616 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9617 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9618 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9619 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9620 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9621 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
9622 fcntl64): Likewise.
9623 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9624 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
9625 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9626 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9627 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9628 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9629 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9630 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9631 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9632 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9633 Likewise.
9634 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9635 Likewise.
9636 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9637 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9638 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9639
9640 2018-06-26 Florian Weimer <fweimer@redhat.com>
9641
9642 Run thread shutdown functions in an explicit order.
9643 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
9644 definition.
9645 (__libc_thread_freeres): Call thread shutdown functions
9646 explicitly.
9647 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
9648 * include/string.h (__strerror_thread_freeres): Declare.
9649 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
9650 arena_thread_freeres. No longer static. Remove thread shutdown
9651 hook registration.
9652 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
9653 Declare.
9654 * resolv/res-close.c (__res_thread_freeres): Renamed from
9655 res_thread_freeres. No longer static. Remove thread shutdown
9656 hook registration.
9657 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
9658 * resolv/resolv_conf.c (freeres): Remove incorrect section
9659 attribute and use libc_freeres_fn.
9660 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
9661 strerror_thread_freeres. No longer static. Remove thread
9662 shutdown hook registration.
9663 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
9664 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
9665 shutdown hook registration.
9666 * Makerules (shlib.lds): Do not provide section boundary symbols
9667 for __libc_thread_subfreeres.
9668 * manual/memory.texi (Basic Allocation): Update comment.
9669
9670 2018-06-26 Florian Weimer <fweimer@redhat.com>
9671
9672 Remove always-defined _RPC_THREAD_SAFE_ macro.
9673 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
9674 Do not define _RPC_THREAD_SAFE_.
9675 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
9676 conditional.
9677 * sunrpc/clnt_perr.c: Likewise.
9678 * sunrpc/clnt_raw.c: Likewise.
9679 * sunrpc/clnt_simp.c: Likewise.
9680 * sunrpc/key_call.c: Likewise.
9681 * sunrpc/rpc_common.c: Likewise.
9682 * sunrpc/rpc_main.c: Likewise.
9683 * sunrpc/rpc_thread.c: Likewise.
9684 * sunrpc/svc.c: Likewise.
9685 * sunrpc/svc_raw.c: Likewise.
9686 * sunrpc/svc_simple.c: Likewise.
9687 * sumrpc/svcauth_des.c: Likewise.
9688
9689 2018-06-26 Florian Weimer <fweimer@redhat.com>
9690
9691 * libio/Makefile (tests-internal): Add tst-vtables,
9692 tst-vtables-interposed.
9693 * libio/tst-vtables.c: New file.
9694 * libio/tst-vtables-common.c: Likewise.
9695 * libio/tst-vtables-interposed.c: Likewise.
9696
9697 2018-06-26 Florian Weimer <fweimer@redhat.com>
9698
9699 * support/support_test_main.c (support_test_main): Only call
9700 setvbuf if not disables.
9701 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
9702 * support/test-driver.h (struct test_config): Add no_setvbuf member.
9703
9704 2018-06-26 Florian Weimer <fweimer@redhat.com>
9705
9706 [BZ #23313]
9707 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
9708
9709 2018-06-25 Florian Weimer <fweimer@redhat.com>
9710
9711 [BZ #18023]
9712 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
9713 Use struct scratch_buffer instead of extend_alloca.
9714
9715 2018-06-25 Florian Weimer <fweimer@redhat.com>
9716
9717 [BZ #18023]
9718 * nss/getent.c (initgroups_keys): Use dynarray instead of
9719 extend_alloca.
9720
9721 2018-06-25 Florian Weimer <fweimer@redhat.com>
9722
9723 [BZ #18023]
9724 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
9725 Use struct scratch_buffer instead of extend_alloca.
9726
9727 2018-06-25 Florian Weimer <fweimer@redhat.com>
9728
9729 [BZ #18023]
9730 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
9731 back to malloc directly, without stack allocations.
9732
9733 2018-06-25 Florian Weimer <fweimer@redhat.com>
9734
9735 [BZ #18023]
9736 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
9737 of extend_alloca.
9738
9739 2018-06-25 Florian Weimer <fweimer@redhat.com>
9740
9741 [BZ #18023]
9742 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
9743 of extend_alloca.
9744 * nscd/hstcache.c (addhstbyX): Likewise.
9745 * nscd/pwdcache.c (addpwbyX): Likewise.
9746 * nscd/servicescache.c (addservbyX): Likewise.
9747
9748 2018-06-25 Florian Weimer <fweimer@redhat.com>
9749
9750 [BZ #18023]
9751 * nscd/connections.c (read_cmdline): New function.
9752 (restart): Use it. Update comment.
9753
9754 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9755
9756 [BZ #23140]
9757 * localedata/locales/csb_PL (mon): Rename to...
9758 (alt_mon): This.
9759 (abmon): Rename to...
9760 (ab_alt_mon): This.
9761 (mon): Add with proper genitive forms, copy from Wikipedia.
9762 (abmon): Likewise.
9763
9764 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9765
9766 [BZ #19485]
9767 * localedata/locales/csb_PL (mon): Fix typos:
9768 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
9769 (yesstr): Add, value is "jo".
9770 (nostr): Add, value is "nié".
9771
9772 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9773
9774 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
9775 all log1p and significand functions on m680x0.
9776 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
9777 of s_significand.c..
9778 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
9779 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
9780 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
9781 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
9782 s_log1p.c and include it..
9783
9784 2018-06-21 Vincent Chen <vincentc@andestech.com>
9785
9786 * elf/elf.h (R_NDS32_NONE): New define.
9787 (R_NDS32_32_RELA): Likewise.
9788 (R_NDS32_COPY): Likewise.
9789 (R_NDS32_GLOB_DAT): Likewise.
9790 (R_NDS32_JUMP_SLOT): Likewise.
9791 (R_NDS32_RELATIVE): Likewise.
9792 (R_NDS32_TLS_TPOFF): Likewise.
9793 (R_NDS32_TLS_DESC): Likewise.
9794
9795 2018-06-21 Mark Wielaard <mark@klomp.org>
9796
9797 * elf/elf.h (R_BPF_MAP_FD): Removed.
9798 (R_BPF_64_64, R_BPF_64_32): New.
9799
9800 2018-06-21 Florian Weimer <fweimer@redhat.com>
9801
9802 [BZ #23253]
9803 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
9804 Renamed from libc_feholdsetround_ctx.
9805 (default_libc_feresetround_ctx): Renamed from
9806 libc_feresetround_ctx.
9807 (default_libc_feholdsetround_noex_ctx): Renamed from
9808 libc_feholdsetround_noex_ctx.
9809 (default_libc_feresetround_noex_ctx): Renamed from
9810 libc_feresetround_noex_ctx.
9811 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
9812 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
9813 forwardning to the old implementations under the new names.
9814 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
9815 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
9816 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
9817 (libc_feresetround_ctx): Forward to default implements for i386
9818 and MATH_SET_BOTH_ROUNDING_MODES.
9819 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
9820 Add -DMATH_SET_BOTH_ROUNDING_MODES.
9821
9822 2018-06-20 Joseph Myers <joseph@codesourcery.com>
9823
9824 * string/tst-cmp.c: Include <libc-diag.h>.
9825 (strncmp_max): Disable -Wstringop-overflow= around call to
9826 strncmp.
9827 (strncasecmp_max): Disable -Wstringop-overflow= around call to
9828 strncasecmp.
9829
9830 * string/bug-strpbrk1.c: Include <libc-diag.h>.
9831 (main): Disable -Wunused-value around call to strpbrk.
9832 * string/bug-strspn1.c: Include <libc-diag.h>.
9833 (main): Disable -Wunused-value around call to strspn.
9834
9835 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9836 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9837
9838 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
9839 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
9840
9841 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9842
9843 * math/Makefile (libm-calls): Move s_significandF to...
9844 (gen-libm-calls): ... here.
9845 * math/s_significand_template.c: New file.
9846 * math/s_significand.c: Removed.
9847 * math/s_significandf.c: Removed.
9848 * math/s_significandl.c: Removed.
9849 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
9850 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
9851
9852 * math/e_exp2_template.c (declare_mgen_finite_alias,
9853 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
9854 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
9855 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
9856
9857 2018-06-20 Florian Weimer <fweimer@redhat.com>
9858
9859 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
9860
9861 2018-06-19 Joseph Myers <joseph@codesourcery.com>
9862
9863 [BZ #23280]
9864 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
9865 floating-point number to strtod functions rather than possibly
9866 negating result of those functions.
9867 * stdio-common/tst-scanf-round.c: New file.
9868 * stdio-common/Makefile (tests): Add tst-scanf-round.
9869 ($(objpfx)tst-scanf-round): Depend on $(libm).
9870
9871 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
9872
9873 * sysdeps/mach/hurd/localplt.data: Move to...
9874 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
9875 R_386_GLOB_DAT like on Linux i386.
9876
9877 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9878
9879 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
9880 (SHM_STAT_ANY): New macro.
9881 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
9882 (SHM_STAT_ANY): Likewise.
9883 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
9884 (SHM_STAT_ANY): Likewise.
9885 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
9886 (SHM_STAT_ANY): Likewise.
9887 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
9888 (SHM_STAT_ANY): Likewise.
9889 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
9890 (SHM_STAT_ANY): Likewise.
9891 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
9892 (SHM_STAT_ANY): Likewise.
9893 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
9894 (SHM_STAT_ANY): Likewise.
9895 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
9896 (SHM_STAT_ANY): Likewise.
9897 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
9898 (SHM_STAT_ANY): Likewise.
9899 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
9900 (SHM_STAT_ANY): Likewise.
9901 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
9902 (SHM_STAT_ANY): Likewise.
9903
9904 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
9905 (SEM_STAT_ANY): New macro.
9906 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
9907 (SEM_STAT_ANY): Likewise.
9908 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
9909 (SEM_STAT_ANY): Likewise.
9910 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
9911 (SEM_STAT_ANY): Likewise.
9912 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
9913 (SEM_STAT_ANY): Likewise.
9914 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
9915 (SEM_STAT_ANY): Likewise.
9916 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
9917 (SEM_STAT_ANY): Likewise.
9918 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
9919 (SEM_STAT_ANY): Likewise.
9920 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
9921 (SEM_STAT_ANY): Likewise.
9922 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
9923 (SEM_STAT_ANY): Likewise.
9924
9925 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
9926 (MSG_STAT_ANY): New macro.
9927 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
9928 (MSG_STAT_ANY): Likewise.
9929 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
9930 (MSG_STAT_ANY): Likewise.
9931 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
9932 (MSG_STAT_ANY): Likewise.
9933 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
9934 (MSG_STAT_ANY): Likewise.
9935 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
9936 (MSG_STAT_ANY): Likewise.
9937 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
9938 (MSG_STAT_ANY): Likewise.
9939 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
9940 (MSG_STAT_ANY): Likewise.
9941 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
9942 (MSG_STAT_ANY): Likewise.
9943 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
9944 (MSG_STAT_ANY): Likewise.
9945
9946 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
9947 (MAP_TYPE): Change value to 0x2b.
9948
9949 2018-06-18 Florian Weimer <fweimer@redhat.com>
9950
9951 [BZ #15722]
9952 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
9953 socket with SOCK_CLOEXEC.
9954
9955 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9956
9957 [BZ #23303]
9958 * sysdeps/powerpc/powerpc64/le/Makefile
9959 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
9960 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
9961 (gnulib-tests): Also add $(f128-loader-link) for
9962 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
9963
9964 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
9965
9966 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
9967 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
9968 of sendfile.
9969 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
9970 (sendfile64): New strong alias.
9971 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
9972 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
9973 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
9974 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
9975 attribute.
9976 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
9977 ___pthread_get_cleanup_stack.
9978 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
9979 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
9980 * mach/shortcut.awk: Make syscall stubs include
9981 <mach-shortcuts-hidden.h> and add hidden definition.
9982 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
9983 (__mach_msg): Add hidden prototype.
9984 * mach/msg.c: Include <mach.h>.
9985 (__mach_msg): Add hidden definition.
9986 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
9987 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
9988 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
9989 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
9990 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
9991 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
9992 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
9993 prototype and definition.
9994 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
9995 hidden target for _hurd_self_sigstate.
9996
9997 2018-06-15 Joseph Myers <joseph@codesourcery.com>
9998
9999 [BZ #23007]
10000 * stdlib/tst-strtod-nan-sign-main.c: New file.
10001 * stdlib/tst-strtod-nan-sign.c: Likewise.
10002 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10003 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10004 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10005 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10006 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10007
10008 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
10009
10010 [BZ #23007]
10011 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10012 appropriate sign.
10013
10014 2018-06-14 Florian Weimer <fweimer@redhat.com>
10015
10016 [BZ #23290]
10017 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
10018 that the result stays within the ISO-8859-1 range.
10019 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
10020 characters are defined in IBM273.
10021
10022 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10023
10024 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10025 __mach_task_self): Remove attribute_hidden.
10026
10027 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10028
10029 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10030 ignore -Wrestrict for one test.
10031
10032 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10033 Szabolcs Nagy <szabolcs.nagy@arm.com>
10034
10035 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10036
10037 2018-06-14 Florian Weimer <fweimer@redhat.com>
10038
10039 * scripts/update-abilist.sh: Accept empty list of files to patch.
10040
10041 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10042
10043 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10044 test-xfail-check-abi-libmachuser): Add.
10045 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10046 __libc_read and __libc_write to __read and __write.
10047 * sysdeps/hurd/include/hurd/port.h: New file.
10048 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10049 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10050 __thread_switch, __evc_wait): Move declarations to...
10051 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10052 attribute_hidden.
10053 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10054 use PLT to call _hurd_self_sigstate.
10055
10056 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10057
10058 [BZ #23279]
10059 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10060 MAX_EXP as overflowing.
10061 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10062 overflow flag.
10063 (round_str): Output also whether result overflows in each rounding
10064 mode.
10065 * stdlib/tst-strtod-round-data: Add more tests.
10066 * stdlib/tst-strtod-round-data.h: Regenerated.
10067 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10068 (TEST): Handle extra arguments for overflow flags.
10069 (struct test_overflow): New type.
10070 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10071 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10072 (test_in_one_mode): Take argument with overflow information.
10073 (do_test): Update calls to test_in_one_mode.
10074
10075 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10076
10077 * elf/dl-load (_dl_dst_substitute): Correct comment.
10078 (_dl_dst_count): Likewise.
10079
10080 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10081 lll_futex_timed_wait.
10082
10083 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10084
10085 [BZ #23277]
10086 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10087 attribute.
10088 * math/test-nan-const.c: New file.
10089 * math/Makefile (tests): Add test-nan-const.
10090 (CFLAGS-test-nan-const.c): New variable.
10091
10092 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10093
10094 * benchtests/scripts/compare_strings.py (process_results): Add
10095 funcs argument. Compare only functions which are selected.
10096 (main): Check if base function is among selected functions.
10097 Pass selected functions to process_results.
10098 (__main__): Add -f/--functions argument.
10099
10100 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10101 Hongbo Zhang <hongbo.zhang@linaro.org>
10102
10103 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10104 __memcpy_falkor for phecda core.
10105 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10106 __memmove_falkor for phecda core.
10107 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10108 __memset_falkor for phecda core.
10109 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10110 for phecda core.
10111 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10112 macro to identify phecda core.
10113
10114 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10115 Andreas Schwab <schwab@suse.de>
10116 Dmitry V. Levin <ldv@altlinux.org>
10117 Florian Weimer <fweimer@redhat.com>
10118
10119 [BZ #23102]
10120 [BZ #21942]
10121 [BZ #18018]
10122 [BZ #23259]
10123 CVE-2011-0536
10124 * elf/dl-dst.h: Remove DL_DST_COUNT.
10125 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10126 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10127 (is_dst): Comment. Support ELF gABI.
10128 (_dl_dst_count): Comment. Simplify and count DSTs.
10129 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10130 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10131 locals.
10132
10133 2018-06-12 Zack Weinberg <zackw@panix.com>
10134
10135 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10136 * sysdeps/unix/sysv/linux/dl-sysdep.c
10137 Include not-cancel.h. Use __close_nocancel instead of __close,
10138 __open64_nocancel instead of __open, __read_nocancel instead of
10139 __libc_read, and __write_nocancel instead of __libc_write.
10140
10141 * csu/check_fds.c (check_one_fd)
10142 * sysdeps/posix/fdopendir.c (__fdopendir)
10143 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10144 instead of __fcntl and/or __libc_fcntl.
10145
10146 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10147 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10148 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10149 Use __open64_nocancel instead of __open_nocancel.
10150
10151 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10152 hidden_proto declarations to the end and issue them if either
10153 IS_IN(libc) or IS_IN(rtld).
10154 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10155 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10156 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10157 read_nocancel, waitpid_nocancel, write_nocancel.
10158
10159 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10160 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10161 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10162
10163 * nptl/pt-fcntl.c: New file.
10164 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10165 (libpthread-routines): Add pt-fcntl.
10166 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10167 (__libc_fcntl): Remove attribute_hidden.
10168 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10169 __fcntl_nocancel_adjusted, not fcntl_common.
10170 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10171 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10172 to fcntl_nocancel.c.
10173 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10174 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10175 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10176 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10177
10178 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10179 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10180 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10181 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10182 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10183 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10184 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10185 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10186 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10187 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10188 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10189 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10190 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10191 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10192 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10193 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10194 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10195 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10196 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10197 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10198
10199 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10200 libpthread-routines.
10201 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10202 defines nothing.
10203
10204 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10205 __libc_read, and __write instead of __libc_write. Define
10206 __open64 in addition to __open.
10207
10208 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10209
10210 [BZ #23250]
10211 [BZ #10686]
10212 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10213 to _private_tm[3] and add __glibc_reserved2.
10214 Add _Static_assert of offset of __private_ss == 0x30.
10215 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10216 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10217
10218 2018-06-12 Florian Weimer <fweimer@redhat.com>
10219
10220 x86: Make strncmp usable from rtld.
10221 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10222 __strncmp_ia32 if in libc (and not in rtld).
10223 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10224 strncmp if not in libc (and not to __strncmp_sse2).
10225
10226 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10227
10228 [BZ #23140]
10229 * localedata/locales/gd_GB (mon): Rename to...
10230 (alt_mon): This.
10231 (mon): Import from CLDR (genitive case).
10232 * localedata/locales/hsb_DE (mon): Rename to...
10233 (alt_mon): This.
10234 (mon): Import from CLDR (genitive case).
10235 * localedata/locales/wa_BE (mon): Rename to...
10236 (alt_mon): This.
10237 (mon): Add, fill with the proper genitive forms, but CLDR data
10238 is incomplete; completed according to the comments in this file.
10239 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10240
10241 * localedata/locales/wa_BE (country_name): Reword
10242 "Beljike" -> "Beldjike".
10243
10244 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10245
10246 [BZ #23272]
10247 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10248 cases of non-finite arguments.
10249 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10250
10251 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10252
10253 [BZ #23174]
10254 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10255
10256 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10257
10258 [BZ #23264]
10259 * include/unistd.h (__execvpex): New prototype.
10260 * posix/Makefile (tests): Add tst-spawn4.
10261 (tests-internal): Add tst-spawn4-compat.
10262 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10263 * posix/tst-spawn4-compat.c: New file.
10264 * posix/tst-spawn4.c: Likewise.
10265 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10266 binaries as shell scripts.
10267 * sysdeps/posix/spawni.c (__spawni): Likewise.
10268
10269 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10270
10271 [BZ #23145]
10272 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10273 ($(all-built-dso:=.dynsym): New target.
10274 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10275 ($(objpfx)check-initfini.out): New target.
10276 (generated): Add check-initfini.out.
10277 * scripts/check-initfini.awk: New file.
10278 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10279 (_fini): Likewise.
10280 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10281 (_fini): Likewise.
10282 * sysdeps/arm/crti.S (_init): Mark as hidden.
10283 (_fini): Likewise.
10284 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10285 (_fini): Likewise.
10286 * sysdeps/i386/crti.S (_init): Mark as hidden.
10287 (_fini): Likewise.
10288 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10289 (_fini): Likewise.
10290 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10291 (_fini): Likewise.
10292 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10293 (_fini): Likewise.
10294 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10295 (_fini): Likewise.
10296 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10297 (_fini): Likewise.
10298 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10299 (_fini): Likewise.
10300 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10301 (_fini): Likewise.
10302 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10303 (_fini): Likewise.
10304 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10305 (_fini): Likewise.
10306 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10307 (_fini): Likewise.
10308 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10309 (_fini): Likewise.
10310 * sysdeps/sh/crti.S (_init): Mark as hidden.
10311 (_fini): Likewise.
10312 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10313 (_fini): Likewise.
10314 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10315 (_fini): Likewise.
10316
10317 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10318
10319 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10320 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10321 and TF redirection to KFtype and KF only when the default
10322 long double type is not the IEEE 128-bit floating point type.
10323
10324 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10325
10326 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10327 macro.
10328 (HWCAP_USCAT): Likewise.
10329 (HWCAP_ILRCPC): Likewise.
10330 (HWCAP_FLAGM): Likewise.
10331 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10332 Increase to 28.
10333 (_dl_aarch64_cap_flags): Add new flag names.
10334
10335 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10336 (MAP_FIXED_NOREPLACE): New macro.
10337 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10338 (MAP_FIXED_NOREPLACE): Likewise.
10339 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10340 (MAP_FIXED_NOREPLACE): Likewise.
10341 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10342 (MAP_FIXED_NOREPLACE): Likewise.
10343 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10344 (MAP_FIXED_NOREPLACE): Likewise.
10345 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
10346 (MAP_FIXED_NOREPLACE): Likewise.
10347 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
10348 (MAP_FIXED_NOREPLACE): Likewise.
10349 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
10350 (MAP_FIXED_NOREPLACE): Likewise.
10351 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
10352 (MAP_FIXED_NOREPLACE): Likewise.
10353 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10354 (MAP_FIXED_NOREPLACE): Likewise.
10355 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10356 (MAP_FIXED_NOREPLACE): Likewise.
10357 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10358 (MAP_FIXED_NOREPLACE): Likewise.
10359 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10360 (MAP_FIXED_NOREPLACE): Likewise.
10361 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10362 (MAP_FIXED_NOREPLACE): Likewise.
10363 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10364 (MAP_FIXED_NOREPLACE): Likewise.
10365
10366 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10367 version to 4.17.
10368
10369 2018-06-04 Joseph Myers <joseph@codesourcery.com>
10370
10371 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10372 version to 4.17
10373
10374 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10375
10376 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
10377 int.
10378 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
10379
10380 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10381
10382 * benchtests/scripts/compare_string.py: (process_results) Catch
10383 exception in non-existent base_func and catch exception in
10384 non-existent attribute.
10385 (parse_file) Catch exception if input file does not exist.
10386
10387 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10388
10389 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
10390 options to avoid diff calculation and omit header, respectively.
10391 (main): process --no-diff and --no-header
10392
10393 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10394 H.J. Lu <hongjiu.lu@intel.com>
10395
10396 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10397 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
10398 wcsncmp-sse2.
10399 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10400 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
10401 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
10402 and __wcsncmp_sse2.
10403 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
10404 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
10405 AVX unaligned load is fast and vzeroupper is preferred.
10406 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
10407 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
10408 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
10409 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
10410 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
10411 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
10412 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
10413 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
10414 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
10415 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
10416 is undefined.
10417
10418 2018-06-01 Florian Weimer <fweimer@redhat.com>
10419
10420 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
10421 configuring with --disable-multi-arch, building with
10422 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
10423 Haswell-era CPU.
10424
10425 2018-06-01 Florian Weimer <fweimer@redhat.com>
10426
10427 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
10428 results from building with “-march=x86-64 -mtune=generic
10429 -mfpmath=sse” and running on a Haswell-era CPU.
10430
10431 2018-06-01 Joseph Myers <joseph@codesourcery.com>
10432
10433 [BZ #18473]
10434 * soft-fp/sqrttf2.c: Remove file.
10435 * soft-fp/sqrtdf2.c: Move to ....
10436 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
10437 <shlib-compat.h>.
10438 (__sqrtdf2): Make conditional on
10439 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10440 symbol.
10441 * soft-fp/sqrtsf2.c: Move to ....
10442 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
10443 <shlib-compat.h>.
10444 (__sqrtsf2): Make conditional on
10445 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10446 symbol.
10447 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
10448 (gcc-double-routines): Remove sqrtdf2.
10449 (gcc-quad-routines): Remove sqrttf2.
10450 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10451 Do not filter out sqrtsf2 and sqrtdf2.
10452 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10453 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
10454
10455 2018-06-01 Florian Weimer <fweimer@redhat.com>
10456
10457 * sysdeps/generic/libcidn.abilist: Remove file.
10458
10459 2018-06-01 Florian Weimer <fweimer@redhat.com>
10460
10461 [BZ #23236]
10462 * libio/strfile.h (struct _IO_str_fields): Rename members to
10463 discourage their use and add comment.
10464 (_IO_STR_DYNAMIC): Remove unused macro.
10465 * libio/strops.c (_IO_str_init_static_internal): Do not use
10466 callback pointers. Call malloc and free.
10467 (_IO_str_overflow): Do not use callback pointers. Call malloc
10468 and free.
10469 (enlarge_userbuf): Likewise.
10470 (_IO_str_finish): Call free.
10471 * libio/wstrops.c (_IO_wstr_init_static): Initialize
10472 _allocate_buffer_unused.
10473 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
10474 and free.
10475 (enlarge_userbuf): Likewise.
10476 (_IO_wstr_finish): Call free.
10477 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
10478 _allocate_buffer_unused, _free_buffer_unused.
10479 * libio/memstream.c (__open_memstream): Likewise.
10480 * libio/vasprintf.c (_IO_vasprintf): Likewise.
10481 * libio/wmemstream.c (open_wmemstream): Likewise.
10482
10483 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
10484
10485 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
10486 AMD Ryzen 7 1800X.
10487
10488 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10489
10490 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
10491 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
10492 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
10493 New file.
10494 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
10495 Likewise.
10496 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
10497
10498 2018-05-29 Florian Weimer <fweimer@redhat.com>
10499
10500 * support/Makefile (libsupport-routines): Add
10501 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
10502 xpthread_barrierattr_setpshared.
10503 * support/xpthread_barrierattr_destroy.c: New file.
10504 * support/xpthread_barrierattr_init.c: Likewise.
10505 * support/xpthread_barrierattr_setpshared.c: Likewise.
10506
10507 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
10508
10509 [BZ #23206]
10510 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
10511 _r_debug and update DT_DEBUG for debugger.
10512
10513 2018-05-29 Florian Weimer <fweimer@redhat.com>
10514
10515 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
10516 (tst-strtod5i.out): Likewise.
10517
10518 2018-05-25 Joseph Myers <joseph@codesourcery.com>
10519
10520 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
10521 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
10522 (sparc64-quad-routines): New variable. Moved from ....
10523 [$(subdir) = soft-fp] (sysdep_routines): Add
10524 $(sparc64-quad-routines). Moved from ....
10525 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
10526 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
10527 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
10528 moved from ....
10529 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
10530 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
10531 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
10532 * sysdeps/sparc/sparc64/qp_add.c: ... here.
10533 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
10534 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
10535 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
10536 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
10537 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
10538 * sysdeps/sparc/sparc64/qp_div.c: ... here.
10539 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
10540 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
10541 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
10542 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
10543 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
10544 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
10545 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
10546 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
10547 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
10548 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
10549 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
10550 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
10551 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
10552 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
10553 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
10554 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
10555 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
10556 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
10557 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
10558 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
10559 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
10560 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
10561 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
10562 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
10563 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
10564 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
10565 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
10566 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
10567 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
10568 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
10569 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
10570 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
10571 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
10572 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
10573 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
10574 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
10575 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
10576 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
10577 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
10578 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
10579 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
10580 * sysdeps/sparc/sparc64/qp_util.c: ... here.
10581 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
10582 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
10583 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
10584 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
10585 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
10586 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
10587
10588 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
10589 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
10590 (sparc32-quad-routines): New variable. Moved from ....
10591 [$(subdir) = soft-fp] (sysdep_routines): Add
10592 $(sparc32-quad-routines). Moved from ....
10593 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
10594 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
10595 moved from ....
10596 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
10597 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
10598 * sysdeps/sparc/sparc32/q_add.c: ... here.
10599 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
10600 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
10601 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
10602 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
10603 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
10604 * sysdeps/sparc/sparc32/q_div.c: ... here.
10605 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
10606 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
10607 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
10608 * sysdeps/sparc/sparc32/q_feq.c: ... here.
10609 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
10610 * sysdeps/sparc/sparc32/q_fge.c: ... here.
10611 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
10612 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
10613 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
10614 * sysdeps/sparc/sparc32/q_fle.c: ... here.
10615 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
10616 * sysdeps/sparc/sparc32/q_flt.c: ... here.
10617 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
10618 * sysdeps/sparc/sparc32/q_fne.c: ... here.
10619 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
10620 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
10621 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
10622 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
10623 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
10624 * sysdeps/sparc/sparc32/q_mul.c: ... here.
10625 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
10626 * sysdeps/sparc/sparc32/q_neg.c: ... here.
10627 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
10628 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
10629 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
10630 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
10631 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
10632 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
10633 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
10634 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
10635 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
10636 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
10637 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
10638 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
10639 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
10640 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
10641 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
10642 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
10643 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
10644 * sysdeps/sparc/sparc32/q_sub.c: ... here.
10645 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
10646 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
10647 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
10648 * sysdeps/sparc/sparc32/q_util.c: ... here.
10649 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
10650 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
10651 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
10652 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
10653
10654 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10655 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10656
10657 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
10658 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
10659 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
10660 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
10661
10662 2018-05-24 Joseph Myers <joseph@codesourcery.com>
10663
10664 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
10665 powerpc/soft-fp.
10666 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
10667 Likewise.
10668 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
10669 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
10670
10671 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10672
10673 [BZ #23171]
10674 * math/math.h [C++] (iseqsig): Fix parameter type for the long
10675 double version.
10676
10677 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10678
10679 * sysdeps/sh/Implies: Remove sh/soft-fp.
10680 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
10681 * sysdeps/sh/sfp-machine.h: ... here.
10682
10683 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10684
10685 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10686 (__mempcpy_erms): Skip zero length.
10687 (__memmove_erms): Likewise.
10688 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
10689 (__memset_erms): Likewise.
10690
10691 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10692
10693 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
10694 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10695 Add functions moved from ....
10696 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
10697 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
10698 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
10699 from ....
10700 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
10701 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
10702 * sysdeps/alpha/e_sqrtl.c: ... here.
10703 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
10704 * sysdeps/alpha/local-soft-fp.h: ... here.
10705 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
10706 * sysdeps/alpha/ots_add.c: ... here.
10707 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
10708 * sysdeps/alpha/ots_cmp.c: ... here.
10709 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
10710 * sysdeps/alpha/ots_cmpe.c: ... here.
10711 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
10712 * sysdeps/alpha/ots_cvtqux.c: ... here.
10713 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
10714 * sysdeps/alpha/ots_cvtqx.c: ... here.
10715 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
10716 * sysdeps/alpha/ots_cvttx.c: ... here.
10717 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
10718 * sysdeps/alpha/ots_cvtxq.c: ... here.
10719 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
10720 * sysdeps/alpha/ots_cvtxt.c: ... here.
10721 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
10722 * sysdeps/alpha/ots_div.c: ... here.
10723 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
10724 * sysdeps/alpha/ots_mul.c: ... here.
10725 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
10726 * sysdeps/alpha/ots_nintxq.c: ... here.
10727 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
10728 * sysdeps/alpha/ots_sub.c: ... here.
10729 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
10730 * sysdeps/alpha/sfp-machine.h: ... here.
10731
10732 2018-05-23 Florian Weimer <fweimer@redhat.com>
10733
10734 [BZ #19728]
10735 [BZ #19729]
10736 [BZ #22247]
10737 CVE-2016-6261
10738 CVE-2016-6263
10739 CVE-2017-14062
10740 Switch to extern IDNA implementation (libidn2).
10741 * libidn: Remove subdirectory.
10742 * LICENSES: Do not mention licensing conditions for the removed
10743 libidn code.
10744 * config.h.in (HAVE_LIBIDN): Remove.
10745 * include/dlfcn.h (__libc_dlopen): Update comment.
10746 * include/idna.h: Remove file.
10747 * inet/Makefile (routines): Add idna.
10748 (tests-static, tests-internal): Add tst-idna_name_classify.
10749 (LOCALES): Generate locales for tests.
10750 (tst-idna_name_classify.out): Depend on generated locales.
10751 * inet/idna_name_classify.c: New file.
10752 * inet/tst-idna_name_classify.c: Likewise.
10753 * inet/net-internal.h (__idna_to_dns_encoding)
10754 (__idna_from_dns_encoding): Declare.
10755 * inet/net-internal.h (enum idna_name_classification): Define.
10756 (__idna_name_classify): Declare.
10757 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
10758 __idna_from_dns_encoding.
10759 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
10760 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
10761 name as a fallback in case of encoding errors.
10762 (getnameinfo): Use DEPRECATED_NI_IDN.
10763 * inet/idna.c: New file.
10764 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
10765 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
10766 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
10767 (modules-names): Add tst-no-libidn2.
10768 (extra-test-objs): Add tst-no-libidn2.os.
10769 (LDFLAGS-tst-no-libidn2.so): Set soname.
10770 (LOCALES): Set, and generate locales.
10771 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
10772 (tst-resolv-ai_idn-latin1): Likewise.
10773 (tst-resolv-ai_idn-nolibidn2): Likewise.
10774 (tst-resolv-ai_idn.out): Depend on locales.
10775 (tst-resolv-ai_idn-latin1.out): Depend on locales.
10776 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
10777 tst-no-libidn2.so.
10778 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
10779 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
10780 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
10781 * resolv/tst-resolv-ai_idn.c: New file.
10782 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
10783 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
10784 * resolv/tst-no-libidn2.c: Likewise.
10785 * support/support_format_addrinfo.c (format_ai_flags): Do not
10786 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
10787 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
10788 (gaih_inet): Call __idna_to_dns_encoding and
10789 __idna_from_dns_encoding, and use the original (punycode) name if
10790 __idna_from_dns_encoding fails due to an encoding error.
10791 (getaddrinfo): Use DEPRECATED_AI_IDN.
10792 * sysdeps/unix/inet/Subdirs (libidn): Remove.
10793 * sysdeps/unix/inet/configure: Remove file.
10794 * sysdeps/unix/inet/configure.ac: Likewise.
10795
10796 2018-05-23 Florian Weimer <fweimer@redhat.com>
10797
10798 Implement allocate_once.
10799 * include/allocate_once.h: New file.
10800 * misc/allocate_once.c: Likewise.
10801 * misc/tst-allocate_once.c: Likewise.
10802 * misc/Makefile (routines): Add allocate_once.
10803 (tests-internal): Add tst-allocate_once.
10804 (generated): Add tst-allocate_once.mtrace,
10805 tst-allocate_once-mem.out.
10806 (tests-special): Add tst-allocate_once-mem.out.
10807 (tst-allocate_once-ENV): Set MALLOC_TRACE.
10808 (tst-allocate_once-mem.out): Call mtrace.
10809 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
10810
10811 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10812
10813 [BZ #23196]
10814 * string/test-memcpy.c (do_test1): New function.
10815 (test_main): Call it.
10816
10817 2018-05-23 Andreas Schwab <schwab@suse.de>
10818
10819 [BZ #23196]
10820 CVE-2018-11237
10821 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
10822 (L(preloop_large)): Save initial destination pointer in %r11 and
10823 use it instead of %rax after the loop.
10824 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
10825
10826 2018-05-22 Joseph Myers <joseph@codesourcery.com>
10827
10828 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
10829 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
10830 -I../soft-fp. Moved from ....
10831 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
10832 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
10833 * sysdeps/aarch64/e_sqrtl.c: ... here.
10834 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
10835 * sysdeps/aarch64/sfp-machine.h: ... here.
10836
10837 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
10838 -Wmaybe-uninitialized around access to fq[0].
10839 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
10840 Likewise.
10841
10842 [BZ #18471]
10843 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
10844 aliases for non-libc case of versioned symbols.
10845 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
10846 (llseek): Define as compat symbol if
10847 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
10848 with link warning.
10849 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
10850 Make into a compat symbol, disabled for minimum symbol version
10851 GLIBC_2.28 and later.
10852 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
10853
10854 2018-05-22 Florian Weimer <fweimer@redhat.com>
10855
10856 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
10857 not add -mpreferred-stack-boundary=4.
10858 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
10859 (stack-align-test-flags): Likewise.
10860 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
10861 Likewise.
10862 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
10863 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
10864 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
10865 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
10866 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
10867 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
10868 (CFLAGS-tst-align2.c): Likewise.
10869
10870 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10871
10872 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
10873 (index_arch_Prefer_FSRM): Likewise.
10874 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
10875 Also check Prefer_FSRM.
10876 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
10877 Also return OPTIMIZE (erms) for Prefer_FSRM.
10878
10879 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10880
10881 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
10882 (index_cpu_FSRM): Likewise.
10883 (reg_FSRM): Likewise.
10884
10885 2018-05-18 Joseph Myers <joseph@codesourcery.com>
10886
10887 * math/gen-tgmath-tests.py: Import sys.
10888 (Tests.__init__): Initialize macros_seen.
10889 (Tests.add_tests): Add macro to macros_seen. Only generate tests
10890 if requested to do so for this macro.
10891 (Tests.add_all_tests): Take argument for macro for which to
10892 generate tests.
10893 (Tests.check_macro_list): New function.
10894 (main): Handle check-list argument and argument specifying macro
10895 for which to generate tests.
10896 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
10897 [PYTHON] (tgmath3-macro-tests): Likewise.
10898 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
10899 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
10900 not test-tgmath3.c.
10901 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
10902 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
10903 to CFLAGS.
10904 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
10905 [PYTHON] ($(foreach
10906 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
10907 rule.
10908 [PYTHON] (tests-special): Add
10909 $(objpfx)test-tgmath3-macro-list.out.
10910 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
10911
10912 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
10913 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
10914 later.
10915
10916 [BZ #22639]
10917 * time/tzset.c (SECSPERDAY): Cast to time_t.
10918 * time/tst-y2039.c: New file.
10919 * time/Makefile (tests): Add tst-y2039.
10920
10921 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10922
10923 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10924 (PREFETCH_ONE_SET): Remove duplicate line.
10925
10926 2018-05-17 Florian Weimer <fweimer@redhat.com>
10927
10928 * sysdeps/generic/math-type-macros-double.h: Include
10929 <math-nan-payload-double.h> after <libm-alias-double.h>.
10930 * sysdeps/generic/math-type-macros-float.h: Include
10931 <math-nan-payload-float.h> after <libm-alias-float.h>.
10932 * sysdeps/generic/math-type-macros-float128.h: Include
10933 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
10934 * sysdeps/generic/math-type-macros-ldouble.h: Include
10935 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
10936
10937 2018-05-17 Andreas Schwab <schwab@suse.de>
10938
10939 * resolv/res_send.c (__res_context_send): Don't set errno when
10940 returing error after malloc failure.
10941
10942 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
10943
10944 * nptl/allocatestack.c (allocate_stack): Remove the
10945 !__ASSUME_PRIVATE_FUTEX paths.
10946 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
10947 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
10948 Likewise.
10949 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
10950 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10951 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10952 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10953 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
10954 !__ASSUME_PRIVATE_FUTEX path.
10955 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
10956 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
10957 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
10958 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
10959 !__ASSUME_PRIVATE_FUTEX macros.
10960 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
10961 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
10962 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
10963 * sysdeps/unix/sysv/linux/kernel-features.h
10964 (__ASSUME_PRIVATE_FUTEX): Removed.
10965
10966 2018-05-17 Joseph Myers <joseph@codesourcery.com>
10967
10968 * math/Makefile (libm-narrow-fns): Add div.
10969 (libm-test-funcs-narrow): Likewise.
10970 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
10971 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
10972 * math/gen-auto-libm-tests.c (test_functions): Add div.
10973 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
10974 (NARROW_DIV_ROUND_TO_ODD): Likewise.
10975 (NARROW_DIV_TRIVIAL): Likewise.
10976 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
10977 macro.
10978 (__ddivl): Likewise.
10979 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
10980 ddiv.
10981 (CFLAGS-nldbl-ddiv.c): New variable.
10982 (CFLAGS-nldbl-fdiv.c): Likewise.
10983 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
10984 __nldbl_ddivl.
10985 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
10986 prototype.
10987 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
10988 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
10989 * math/auto-libm-test-in: Add tests of div.
10990 * math/auto-libm-test-out-narrow-div: New generated file.
10991 * math/libm-test-narrow-div.inc: New file.
10992 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
10993 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
10994 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
10995 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
10996 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
10997 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
10998 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
10999 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11000 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11001 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11002 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11003 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11004 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11005 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11006 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11007 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11008 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11009 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11010 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11011 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11012 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11013 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11014 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11015 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11016 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11017 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11018 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11019 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11020 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11021 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11022 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11023 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11024 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11025 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11026 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11027 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11028 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11029 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11030 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11031 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11032 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11033 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11034 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11035 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11036
11037 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11038
11039 [BZ #23178]
11040 * nscd/nscd-client.h (sendfileall): Remove prototype.
11041 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11042 (handle_request): Use writeall instead of sendfileall.
11043 * nscd/aicache.c (addhstaiX): Likewise.
11044 * nscd/grpcache.c (cache_addgr): Likewise.
11045 * nscd/hstcache.c (cache_addhst): Likewise.
11046 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11047 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11048 * nscd/pwdcache.c (cache_addpw): Likewise.
11049 * nscd/servicescache.c (cache_addserv): Likewise.
11050 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11051 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11052 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11053 Remove define.
11054
11055 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11056
11057 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11058 Include <string/strncat.c>.
11059 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11060 alias.
11061 (__GI___strncat): New hidden alias.
11062
11063 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11064
11065 * sysdeps/mips/mips32/libm-test-ulps: Update.
11066 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11067
11068 2018-05-16 Florian Weimer <fweimer@redhat.com>
11069
11070 * support/Makefile (libsupport-routines): Add support_quote_blob,
11071 support_test_compare_blob.
11072 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11073 * support/check.h (TEST_COMPARE_BLOB): Define.
11074 (support_test_compare_blob): Declare.
11075 * support/support.h (support_quote_blob): Declare.
11076 * support/support_quote_blob.c: New file.
11077 * support/support_test_compare_blob.c: Likewise.
11078 * support/tst-support_quote_blob.c: Likewise.
11079 * support/tst-test_compare_blob.c: Likewise.
11080
11081 2018-05-16 Florian Weimer <fweimer@redhat.com>
11082
11083 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11084 of <strtod_nan_double.h>.
11085 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11086 instead of SET_MANTISSA.
11087 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11088 of include <strtod_nan_float.h>.
11089 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11090 instead of <strtod_nan_ldouble.h>.
11091 * stdlib/strtod_nan_double.h: Move to ...
11092 * sysdeps/generic/math-nan-payload-double.h: ... here.
11093 (FLOAT): Remove definition.
11094 (SET_MANTISSA): Rename to ...
11095 (SET_NAN_PAYLOAD): ... this.
11096 * stdlib/strtod_nan_float.h: Move to ...
11097 * sysdeps/generic/math-nan-payload-float.h: ... here.
11098 (FLOAT): Remove definition.
11099 (SET_MANTISSA): Rename to ...
11100 (SET_NAN_PAYLOAD): ... this.
11101 * sysdeps/generic/math-type-macros-double.h: Include
11102 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11103 instead of <math-svid-compat.h>.
11104 * sysdeps/generic/math-type-macros-float.h: Include
11105 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11106 instead of <math-svid-compat.h>.
11107 * sysdeps/generic/math-type-macros-float128.h: Include
11108 <math-nan-payload-float128.h>.
11109 * sysdeps/generic/math-type-macros-ldouble.h: Include
11110 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11111 instead of <math-svid-compat.h>.
11112 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11113 check for definition.
11114 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11115 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11116 Include <ieee754_float128.h>.
11117 (FLOAT): Remove definition.
11118 (SET_MANTISSA): Rename to ...
11119 (SET_NAN_PAYLOAD): ... this.
11120 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11121 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11122 Do not include <float128_private.h>.
11123 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11124 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11125 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11126 (FLOAT): Remove definition.
11127 (SET_MANTISSA): Rename to ...
11128 (SET_NAN_PAYLOAD): ... this.
11129 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11130 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11131 (FLOAT): Remove definition.
11132 (SET_MANTISSA): Rename to ...
11133 (SET_NAN_PAYLOAD): ... this.
11134 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11135 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11136 (FLOAT): Remove definition.
11137 (SET_MANTISSA): Rename to ...
11138 (SET_NAN_PAYLOAD): ... this.
11139 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11140 of "../stdlib/strtod_nan_double.h".
11141 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11142 of "../stdlib/strtod_nan_float.h".
11143 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11144 instead of "../stdlib/strtod_nan_ldouble.h".
11145 * manual/arith.texi (Parsing of Floats): Adjust comment.
11146
11147 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11148
11149 * math/Makefile (libm-narrow-fns): Add mul.
11150 (libm-test-funcs-narrow): Likewise.
11151 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11152 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11153 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11154 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11155 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11156 (NARROW_MUL_TRIVIAL): Likewise.
11157 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11158 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11159 macro.
11160 (__dmull): Likewise.
11161 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11162 dmul.
11163 (CFLAGS-nldbl-dmul.c): New variable.
11164 (CFLAGS-nldbl-fmul.c): Likewise.
11165 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11166 __nldbl_dmull.
11167 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11168 prototype.
11169 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11170 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11171 * math/auto-libm-test-in: Add tests of mul.
11172 * math/auto-libm-test-out-narrow-mul: New generated file.
11173 * math/libm-test-narrow-mul.inc: New file.
11174 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11175 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11176 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11177 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11178 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11179 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11180 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11181 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11182 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11183 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11184 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11185 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11186 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11187 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11188 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11189 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11190 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11191 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11192 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11193 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11194 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11195 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11196 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11197 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11198 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11199 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11200 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11201 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11202 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11203 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11204 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11205 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11206 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11207 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11208 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11209 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11210 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11211 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11212 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11213 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11214 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11215 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11216 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11217 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11218
11219 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11220
11221 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11222 with *%eax in call.
11223
11224 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11225
11226 * sysdeps/i386/ldsodefs.h: Removed.
11227 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11228 * sysdeps/x86/ldsodefs.h: This.
11229 (La_i86_regs): New.
11230 (La_i86_retval): Likewise.
11231 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11232 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11233
11234 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11235
11236 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11237 unnecessary testl.
11238
11239 2018-05-13 Alan Modra <amodra@gmail.com>
11240
11241 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11242 R_PARISC_TLS_DTPOFF32 reloc addend.
11243
11244 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11245
11246 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11247 * math/math.h: Restrict the prototype definition for the functions
11248 issignaling(_Float128) and iszero(_Float128); and template
11249 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11250 __HAVE_FLOAT128_UNLIKE_LDBL.
11251 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11252 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11253 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11254 __f128() constants; define the type _Float128 as long double;
11255 and reuse long double in __CFLOAT128.
11256
11257 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11258
11259 * sysdeps/generic/math_private.h: Do not include
11260 <math-barriers.h>.
11261 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11262 <math_private.h>.
11263 * math/fromfp.h: Include <math-barriers.h>.
11264 * math/math-narrow.h: Likewise.
11265 * math/s_nextafter.c: Likewise.
11266 * math/s_nexttowardf.c: Likewise.
11267 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11268 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11269 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11270 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11271 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11272 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11273 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11274 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11275 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11276 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11277 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11278 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11279 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11280 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11281 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11282 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11283 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11284 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11285 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11286 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11287 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11288 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11289 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11290 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11291 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11292 * sysdeps/ieee754/k_standardl.c: Likewise.
11293 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11294 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11295 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11296 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11297 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11298 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11299 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11300 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11301 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11302 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11303 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11304 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11305 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11306 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11307 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11308 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11309 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11310 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11311 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11312 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11313 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11314 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11315
11316 2018-05-11 Florian Weimer <fweimer@redhat.com>
11317
11318 Use 64-bit epoch values in the time zone file parser.
11319 * include/time.h (internal_time_t): Define.
11320 (__tzfile_compute): Use it.
11321 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11322 member.
11323 (transitions): Switch to internal_time_t.
11324 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11325 types.
11326 (__tzfile_compute): Use internal_time_t for timer argument. Check
11327 for truncation before calling __offtime.
11328
11329 2018-05-11 Florian Weimer <fweimer@redhat.com>
11330
11331 [BZ #23166]
11332 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11333 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11334 Likewise.
11335 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11336 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11337 export without --enable-obsolete-rpc.
11338 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11339 symbol. This should not have been exported, ever.
11340
11341 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11342
11343 [BZ #23152]
11344 * localedata/locales/gd_GB (abmon): Fix typo in May:
11345 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
11346
11347 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11348
11349 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11350 Use multiple registers to copy data in loop tail.
11351
11352 * sysdeps/aarch64/multiarch/memmove_falkor.S
11353 (__memmove_falkor): Use multiple registers to move data in
11354 loop tail.
11355
11356 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11357
11358 * math/math-underflow.h: New file.
11359 * sysdeps/generic/math_private.h: Do not include <float.h>.
11360 (fabs_tg): Remove macro. Moved to math-underflow.h.
11361 (min_of_type_f): Likewise.
11362 (min_of_type_): Likewise.
11363 (min_of_type_l): Likewise.
11364 (min_of_type_f128): Likewise.
11365 (min_of_type): Likewise.
11366 (math_check_force_underflow): Likewise.
11367 (math_check_force_underflow_nonneg): Likewise.
11368 (math_check_force_underflow_complex): Likewise.
11369 * math/e_exp2_template.c: Include <math-underflow.h>.
11370 * math/k_casinh_template.c: Likewise.
11371 * math/s_catan_template.c: Likewise.
11372 * math/s_catanh_template.c: Likewise.
11373 * math/s_ccosh_template.c: Likewise.
11374 * math/s_cexp_template.c: Likewise.
11375 * math/s_clog10_template.c: Likewise.
11376 * math/s_clog_template.c: Likewise.
11377 * math/s_csin_template.c: Likewise.
11378 * math/s_csinh_template.c: Likewise.
11379 * math/s_csqrt_template.c: Likewise.
11380 * math/s_ctan_template.c: Likewise.
11381 * math/s_ctanh_template.c: Likewise.
11382 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11383 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11384 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11385 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11386 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11387 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11388 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11389 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11390 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11391 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11392 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11393 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11394 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11395 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11396 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11397 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11398 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11399 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11400 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11401 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11402 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11403 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11404 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11405 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11406 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11407 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11408 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11409 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11410 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11411 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11412 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11413 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11414 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11415 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11416 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11417 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11418 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11419 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11420 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11421 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11422 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11423 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11424 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11425 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11426 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11427 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11428 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11429 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11430 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11431 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11432 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11433 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11434 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11435 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11436 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11437 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11438 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11439 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11440 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11441 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11442 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11443 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11444 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11445 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11446 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11447 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11448 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11449 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11450 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11451 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11452 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11453 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11454 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11455 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
11456 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11457 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11458 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11459 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11460 * sysdeps/x86/fpu/powl_helper.c: Likewise.
11461 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
11462 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
11463 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11464 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
11465 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
11466
11467 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11468
11469 * sysdeps/generic/math-barriers.h: New file.
11470 * sysdeps/generic/math_private.h [!math_opt_barrier]
11471 (math_opt_barrier): Move to math-barriers.h.
11472 [!math_opt_barrier] (math_force_eval): Likewise.
11473 * sysdeps/aarch64/fpu/math-barriers.h: New file.
11474 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
11475 math-barriers.h.
11476 (math_force_eval): Likewise.
11477 * sysdeps/alpha/fpu/math-barriers.h: New file.
11478 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
11479 math-barriers.h.
11480 (math_force_eval): Likewise.
11481 * sysdeps/x86/fpu/math-barriers.h: New file.
11482 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
11483 math-barriers.h.
11484 (math_force_eval): Likewise.
11485 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
11486 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
11487 multiple-include guard for rename.
11488 * sysdeps/powerpc/fpu/math-barriers.h: New file.
11489 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
11490 math-barriers.h.
11491 (math_force_eval): Likewise.
11492
11493 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
11494
11495 [BZ #22786]
11496 CVE-2018-11236
11497 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
11498 computation.
11499 * stdlib/Makefile (test-bz22786): New test.
11500 * stdlib/test-bz22786.c: New test.
11501
11502 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11503
11504 * include/math-narrow-eval.h: New file. Contents moved from ....
11505 * sysdeps/generic/math_private.h: ... here.
11506 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
11507 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11508 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
11509 * stdlib/strtod_l.c: Likewise.
11510 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11511 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11512 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11513 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11514 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11515 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11516 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11517 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11518 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11519 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
11520 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11521 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
11522 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11523 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11524 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11525 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11526 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11527 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11528 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11529 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11530 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11531 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11532 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11533 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11534 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11535 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11536 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11537 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11538 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
11539
11540 2018-05-08 Andreas Schwab <schwab@suse.de>
11541
11542 * sysdeps/nptl/internaltypes.h: Fix comment.
11543
11544 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
11545
11546 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11547 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
11548 hidden.
11549
11550 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
11551
11552 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
11553 of I into loop header.
11554 * benchtests/bench-memmove-walk.c
11555 (test_main): Likewise.
11556
11557 2018-05-07 Alexandre Oliva <oliva@gnu.org>
11558
11559 Revert:
11560 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11561 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11562
11563 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
11564
11565 [BZ #20419]
11566 * elf/dl-load.c (open_verify): Fix stack overflow.
11567 * elf/Makefile (tst-big-note): New test.
11568 * elf/tst-big-note-lib.S: New.
11569 * elf/tst-big-note.c: New.
11570
11571 2018-05-04 Joseph Myers <joseph@codesourcery.com>
11572
11573 * scripts/abilist.awk: Ignore absolute symbols.
11574 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
11575 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
11576 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
11577 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
11578 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
11579 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
11580 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11581 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
11582 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
11583 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
11584 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
11585 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
11586 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
11587 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
11588 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
11589 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
11590 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
11591 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
11592 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11593 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
11594 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11595 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
11596 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
11597 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
11598 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
11599 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
11600 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
11601 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
11602 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11603 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
11604 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
11605 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11606 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
11607 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11608 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
11609 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
11610 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
11611 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
11612 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
11613 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
11614 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
11615 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11616 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
11617 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
11618 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11619 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
11620 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11621 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
11622 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
11623 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
11624 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
11625 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
11626 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
11627 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
11628 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11629 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
11630 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
11631 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11632 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
11633 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11634 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
11635 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
11636 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
11637 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
11638 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
11639 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
11640 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
11641 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11642 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
11643 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
11644 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11645 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
11646 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11647 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
11648 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
11649 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
11650 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
11651 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
11652 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
11653 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
11654 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11655 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
11656 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
11657 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11658 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
11659 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11660 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
11661 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
11662 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
11663 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
11664 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
11665 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
11666 Likewise.
11667 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
11668 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11669 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
11670 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
11671 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11672 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
11673 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11674 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
11675 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
11676 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
11677 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
11678 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
11679 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
11680 Likewise.
11681 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
11682 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11683 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
11684 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
11685 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11686 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
11687 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11688 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
11689 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
11690 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
11691 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
11692 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
11693 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
11694 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
11695 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11696 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
11697 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
11698 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11699 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
11700 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11701 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
11702 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
11703 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
11704 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
11705 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11706 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
11707 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
11708 Likewise.
11709 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
11710 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
11711 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
11712 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
11713 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11714 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
11715 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
11716 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
11717 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
11718 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
11719 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
11720 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
11721 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
11722 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11723 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
11724 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
11725 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
11726 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
11727 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
11728 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
11729 Likewise.
11730 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
11731 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
11732 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
11733 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11734 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
11735 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11736 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
11737 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
11738 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
11739 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
11740 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11741 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
11742 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
11743 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11744 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
11745 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
11746 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
11747 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
11748 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11749 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
11750 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
11751 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11752 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
11753 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11754 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
11755 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
11756 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
11757 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
11758 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
11759 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11760 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
11761 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
11762 Likewise.
11763 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
11764 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
11765 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
11766 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
11767 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11768 Likewise.
11769 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
11770 Likewise.
11771 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
11772 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
11773 Likewise.
11774 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
11775 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11776 Likewise.
11777 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11778 Likewise.
11779 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
11780 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
11781 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
11782 Likewise.
11783 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
11784 Likewise.
11785 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
11786 Likewise.
11787 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
11788 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
11789 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11790 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
11791 Likewise.
11792 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
11793 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
11794 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
11795 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11796 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11797 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
11798 Likewise.
11799 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
11800 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11801 Likewise.
11802 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11803 Likewise.
11804 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
11805 Likewise.
11806 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
11807 Likewise.
11808 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
11809 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
11810 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
11811 Likewise.
11812 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
11813 Likewise.
11814 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
11815 Likewise.
11816 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
11817 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
11818 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
11819 Likewise.
11820 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
11821 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11822 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
11823 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
11824 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11825 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
11826 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11827 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
11828 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
11829 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
11830 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
11831 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
11832 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
11833 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
11834 Likewise.
11835 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11836 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
11837 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
11838 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11839 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
11840 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11841 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
11842 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
11843 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
11844 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
11845 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
11846 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
11847 Likewise.
11848 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11849 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
11850 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
11851 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11852 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
11853 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11854 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
11855 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
11856 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
11857 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
11858 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
11859 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
11860 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
11861 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11862 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
11863 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
11864 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11865 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
11866 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11867 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
11868 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
11869 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
11870 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
11871 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
11872 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
11873 Likewise.
11874 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
11875 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11876 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
11877 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
11878 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11879 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
11880 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11881 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
11882 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
11883 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
11884 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
11885 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
11886 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
11887 Likewise.
11888 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
11889 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11890 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
11891 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
11892 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11893 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
11894 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11895 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
11896 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
11897 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
11898 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
11899 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
11900 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
11901 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
11902 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11903 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
11904 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
11905 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11906 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
11907 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11908 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
11909 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
11910 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
11911 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
11912 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
11913 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
11914 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
11915 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
11916 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11917 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
11918 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
11919 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11920 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
11921 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11922 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
11923 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
11924 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
11925 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
11926
11927 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
11928
11929 [BZ #23137]
11930 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
11931 Use atomic_load_acquire to load __tid.
11932
11933 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11934
11935 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
11936 Restore the pointer into %rdx, after syscall and use %rdx,
11937 instead of %rsi, to restore context.
11938
11939 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11940
11941 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
11942 Pop the pointer into %rdx after syscall and use %rdx, instead
11943 of %rsi, to restore context.
11944
11945 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11946
11947 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
11948 handlers after setjmp.
11949 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
11950 defined.
11951 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
11952 <libc-pointer-arith.h>.
11953 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
11954 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
11955 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
11956 _JUMP_BUF_SIGSET_BITS_PER_WORD.
11957 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
11958 * sysdeps/x86/__longjmp_cancel.S: New file.
11959 * sysdeps/x86/longjmp.c: Likewise.
11960 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
11961
11962 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11963
11964 * NEWS: Add ustat.h deprecation entry.
11965 * bits/ustat.h: Remove file.
11966 * misc/sys/ustat.h: Likewise.
11967 * misc/ustat.h: Likewise.
11968 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
11969 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
11970 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
11971 compatibility mode.
11972 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
11973 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
11974 generic Linux implementation.
11975
11976 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11977
11978 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
11979 * math/w_expl_compat.c: Likewise.
11980 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
11981
11982 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11983
11984 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11985
11986 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11987
11988 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
11989 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
11990 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
11991 Remove.
11992 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
11993 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11994 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11995 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
11996 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
11997 and SYSCALL_LL64.
11998
11999 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12000
12001 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12002
12003 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12004 * math/w_asin_template.c: Likewise.
12005 * math/w_atanh_template.c: Likewise.
12006
12007 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12008
12009 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12010 to powerpc/powerpc64/be for big-endian.
12011 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12012 little-endian.
12013
12014 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
12015 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
12016 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
12017 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
12018 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
12019 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
12020 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
12021 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
12022 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
12023 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
12024 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
12025 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
12026 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
12027 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12028 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12029 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12030 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12031 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12032 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12033 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12034 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12035 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12036 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12037 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12038 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12039 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12040 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12041 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12042 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12043 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12044 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12045 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12046
12047 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12048 adjusted to imply powerpc64 and older processors on powerpc64/be.
12049 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12050 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12051 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12052 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12053 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12054 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12055 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12056 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12057 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12058 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12059 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12060 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12061 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12062 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12063 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12064 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12065 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12066 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12067 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12068 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12069 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12070 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12071 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12072 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12073 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12074 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12075 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12076 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12077 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12078 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12079 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12080
12081 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12082 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12083 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12084 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12085
12086 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12087 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12088 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12089 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12090
12091 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12092 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12093 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12094 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12095 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12096 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12097 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12098 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12099 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12100 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12101 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12102
12103 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12104 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12105 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12106 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12107 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12108 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12109 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12110 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12111 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12112 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12113 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12114
12115 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12116 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12117 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12118 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12119 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12120 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12121 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12122 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12123 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12124 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12125 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12126 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12127
12128 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12129 and adjusted to imply olders processors.
12130 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12131 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12132 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12133 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12134 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12135 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12136 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12137 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12138 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12139 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12140 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12141
12142 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12143 powerpc64/le.
12144 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12145 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12146
12147 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12148 powerpc64le.
12149 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12150 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12151
12152 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12153 powerpc64/be.
12154 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12155 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12156 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12157
12158 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12159 powerpc64 and adjusted.
12160 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12161 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12162 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12163 Likewise.
12164
12165 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12166
12167 * sysdeps/tile: Remove.
12168 * sysdeps/unix/sysv/linux/tile: Likewise.
12169 * README (tilegx-*-linux-gnu): Remove from list of supported
12170 configurations.
12171 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12172 contribution of support for generic Linux kernel syscall
12173 interface.
12174 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12175 tilegx configurations.
12176 (Config.install_linux_headers): Do not handle tile.
12177 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12178 in comment.
12179 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12180 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12181 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12182 conditional undefine and redefine.
12183 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12184 in comment.
12185 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12186 conditional undefine and redefine.
12187
12188 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12189
12190 * signal/tst-sigaction.c: New file to test BZ #23069.
12191 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12192
12193 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12194
12195 [BZ #22766]
12196 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12197 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12198 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12199 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12200
12201 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12202
12203 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12204 _DIRENT_MATCHES_DIRENT64 is not defined.
12205 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12206 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12207 is defined.
12208 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12209 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12210
12211 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12212
12213 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12214 version to GCC 8 branch.
12215
12216 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12217
12218 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12219 (check_no_hidden): Use type of original function when declaring
12220 alias.
12221
12222 * sysdeps/unix/sysv/linux/sys/ptrace.h
12223 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12224 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12225 (struct __ptrace_seccomp_metadata): New type.
12226 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12227 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12228 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12229 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12230 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12231 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12232 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12233 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12234 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12235 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12236 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12237 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12238 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12239 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12240 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12241 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12242
12243 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12244
12245 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12246 defined.
12247 * dirent/versionsort.c (versionsort): Likewise.
12248 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12249 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12250 * dirent/versionsort64.c (versionsort64): Likewise.
12251 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12252 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12253 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12254 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12255 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12256 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12257 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12258 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12259 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12260 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12261 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12262 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12263 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12264 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12265
12266 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12267
12268 * elf/elf.h (NT_PPC_PKEY): New macro.
12269
12270 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12271
12272 [BZ #23094]
12273 * localedata/locales/hr_HR: fix thousands_sep and
12274 mon_thousands_sep
12275
12276 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12277
12278 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12279 (XTABS): Define to TAB3.
12280
12281 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12282
12283 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12284
12285 * dirent/scandir-tail-common.c: New file.
12286 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12287 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12288 * dirent/scandir.c: Use scandir-tail-common.c.
12289 * dirent/scandirat.c: Likewise.
12290 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12291 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12292 if _DIRENT_MATCHES_DIRENT64 is defined.
12293 * dirent/scandirat64.c (scandirat64): Likewise.
12294 * include/dirent.h (__scandir_tail): Only define iff
12295 _DIRENT_MATCHES_DIRENT64 is not defined.
12296 (__scandir64_tail): Define regardless.
12297 (__scandirat, scandirat64): Remove libc_hidden_proto.
12298 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12299 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12300 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12301 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12302 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12303 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12304 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12305
12306 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12307
12308 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12309 New macro.
12310 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12311 Increase to 24.
12312 (_dl_aarch64_cap_flags): Add asimdfhm.
12313
12314 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12315
12316 * sysdeps/nios2/libm-test-ulps: Update.
12317
12318 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12319
12320 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12321 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12322
12323 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12324 requirements.
12325 (_DIRENT_MATCHES_DIRENT64): Undef
12326 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12327 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12328 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12329 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12330 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12331 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12332 use getdents64 syscalls as base.
12333 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12334 symbol if required.
12335 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12336 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12337 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12338 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12339 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12340 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12341 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12342 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12343 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12344 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12345 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
12346
12347 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12348
12349 * scripts/test_printers_common.py (init_test): Disable lock elision.
12350
12351 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12352
12353 * math/test-tgmath.c (count_double, count_float,
12354 count_ldouble, count_cdouble, count_cfloat,
12355 count_cldouble): Use volatile int.
12356
12357 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12358
12359 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12360 (conformtest-xfail-conds): Add i386-gnu.
12361 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12362 i386-gnu.
12363 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12364 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12365 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12366 msqid_ds.msg_lrpid): Likewise.
12367 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12368 Likewise.
12369 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
12370 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
12371 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
12372 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
12373 unsigned int.
12374 (struct statvfs64): Likewise.
12375 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
12376 Likewise.
12377 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
12378 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
12379 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
12380 instead of wait_queue.
12381 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
12382 instead of vm_area_struct.
12383 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
12384 struct sched_param definition to it.
12385 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12386 * bits/types/struct_sched_param.h: New file.
12387 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
12388 <bits/types/struct_sched_param.h> instead of <sched.h>.
12389 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
12390 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
12391 generic version but include <bits/pthreadtypes.h> to make struct
12392 sigevent's sigev_notify_attributes field a pthread_attr_t*.
12393 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
12394 non-compliant.
12395 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
12396 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
12397 [__USE_XOPEN] (OFDEL): New macro.
12398 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
12399 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
12400 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
12401 prototypes.
12402 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
12403 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
12404 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
12405 non-compliant.
12406 * sysdeps/i386/sys/ucontext.h: Likewise.
12407 * sysdeps/m68k/sys/ucontext.h: Likewise.
12408 * sysdeps/mips/sys/ucontext.h: Likewise.
12409 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
12410 * sysdeps/mach/hurd/i386/Makefile
12411 (test-xfail-POSIX/fcntl.h/conform): Add.
12412 (test-xfail-POSIX/signal.h/conform): Add.
12413 (test-xfail-POSIX/semaphore.h/conform): Add.
12414 (test-xfail-POSIX/regex.h/conform): Add.
12415 (test-xfail-POSIX/aio.h/conform): Add.
12416 (test-xfail-POSIX/mqueue.h/conform): Add.
12417 (test-xfail-POSIX/sys/types.h/conform): Add.
12418 (test-xfail-UNIX98/fcntl.h/conform): Add.
12419 (test-xfail-UNIX98/netdb.h/conform): Add.
12420 (test-xfail-UNIX98/signal.h/conform): Add.
12421 (test-xfail-UNIX98/semaphore.h/conform): Add.
12422 (test-xfail-UNIX98/regex.h/conform): Add.
12423 (test-xfail-UNIX98/aio.h/conform): Add.
12424 (test-xfail-UNIX98/ftw.h/conform): Add.
12425 (test-xfail-UNIX98/mqueue.h/conform): Add.
12426 (test-xfail-UNIX98/netinet/in.h/conform): Add.
12427 (test-xfail-UNIX98/sys/wait.h/conform): Add.
12428 (test-xfail-UNIX98/sys/sem.h/conform): Add.
12429 (test-xfail-UNIX98/sys/uio.h/conform): Add.
12430 (test-xfail-UNIX98/sys/socket.h/conform): Add.
12431 (test-xfail-UNIX98/sys/types.h/conform): Add.
12432 (test-xfail-UNIX98/stdlib.h/conform): Add.
12433 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
12434 (test-xfail-POSIX2008/fcntl.h/conform): Add.
12435 (test-xfail-POSIX2008/netdb.h/conform): Add.
12436 (test-xfail-POSIX2008/signal.h/conform): Add.
12437 (test-xfail-POSIX2008/semaphore.h/conform): Add.
12438 (test-xfail-POSIX2008/regex.h/conform): Add.
12439 (test-xfail-POSIX2008/aio.h/conform): Add.
12440 (test-xfail-POSIX2008/mqueue.h/conform): Add.
12441 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
12442 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
12443 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
12444 (test-xfail-POSIX2008/sys/types.h/conform): Add.
12445 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
12446 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
12447 (test-xfail-XOPEN2K/netdb.h/conform): Add.
12448 (test-xfail-XOPEN2K/signal.h/conform): Add.
12449 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
12450 (test-xfail-XOPEN2K/regex.h/conform): Add.
12451 (test-xfail-XOPEN2K/aio.h/conform): Add.
12452 (test-xfail-XOPEN2K/ftw.h/conform): Add.
12453 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
12454 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
12455 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
12456 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
12457 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
12458 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
12459 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
12460 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
12461 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
12462 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
12463 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
12464 (test-xfail-XOPEN2K8/signal.h/conform): Add.
12465 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
12466 (test-xfail-XOPEN2K8/regex.h/conform): Add.
12467 (test-xfail-XOPEN2K8/aio.h/conform): Add.
12468 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
12469 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
12470 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
12471 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
12472 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
12473 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
12474 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
12475 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
12476 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
12477 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
12478 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
12479 i386-gnu.
12480 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
12481 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
12482
12483 2018-04-18 Joseph Myers <joseph@codesourcery.com>
12484
12485 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
12486 --enable-obsolete for powerpc-linux-gnuspe.
12487
12488 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12489
12490 * conform/data/sys/un.h-data: Allow sun_ prefix.
12491 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
12492 prototypes.
12493 * sysdeps/mach/include/mach.h: Likewise.
12494 * sysdeps/mach/include/mach/mig_support.h: Likewise.
12495 * sysdeps/mach/include/mach_error.h: Likewise.
12496
12497 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12498
12499 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
12500 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
12501 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
12502 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
12503
12504 2018-04-16 Andreas Schwab <schwab@suse.de>
12505
12506 [BZ #19527]
12507 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
12508
12509 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
12510
12511 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
12512 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
12513
12514 2018-04-12 DJ Delorie <dj@redhat.com>
12515
12516 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12517 version to 4.16.
12518
12519 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
12520
12521 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
12522 (struct kernel_sigaction): Use the same definition on 31bit as is used
12523 on 64bit.
12524
12525 2018-04-09 Florian Weimer <fweimer@redhat.com>
12526
12527 [BZ #23037]
12528 * resolv/res_send.c (send_dg): Use designated initializers instead
12529 of assignment to zero-initialize other fields of struct mmsghdr.
12530
12531 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12532
12533 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
12534 __READDIR_ALIAS): Undefine after usage.
12535 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
12536 __READDIR_R_ALIAS): Likewise.
12537 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
12538 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
12539 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
12540 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
12541 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
12542 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
12543 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
12544 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12545 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
12546 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
12547 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
12548 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
12549 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
12550 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
12551 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
12552 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
12553 * sysdeps/unix/sysv/linux/readdir.c: New file.
12554 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
12555 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
12556 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
12557
12558 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
12559
12560 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
12561
12562 * manual/charset.texi (Converting a Character): Fix typo.
12563
12564 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12565
12566 * sysdeps/sparc/fpu/libm-test-ulps: Update.
12567
12568 * sysdeps/arm/libm-test-ulps: Update.
12569
12570 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
12571 as base implementation.
12572 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
12573 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12574 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12575 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12576 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12577 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
12578 remove unrequired definitions and update comments.
12579 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
12580 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
12581 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
12582 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
12583 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
12584 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
12585 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
12586 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
12587 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
12588 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
12589 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
12590 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
12591 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
12592 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
12593 and RESET_SA_RESTORER hooks.
12594
12595 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
12596
12597 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12598
12599 2018-04-05 Florian Weimer <fweimer@redhat.com>
12600
12601 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
12602 integer overflow, memory leak on error, and indeterminate errno
12603 value. Add a null wide character to terminate the result string.
12604 * manual/charset.texi (Converting a Character): Mention embedded
12605 null bytes in the mbrtowc input string. Explain what happens in
12606 the -2 result case. Do not claim that mbrtowc is simple or
12607 obvious to use. Adjust the description of the code example. Use
12608 @code, not @var, for concrete variables.
12609
12610 2018-04-05 Florian Weimer <fweimer@redhat.com>
12611
12612 * manual/examples/mbstouwcs.c: New file.
12613 * manual/charset.texi (Converting a Character): Include it.
12614
12615 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
12616
12617 * include/dirent.h (dirfd): Add hidden proto.
12618 * dirent/dirfd.c (dirfd): Add hidden def.
12619 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
12620 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
12621
12622 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12623
12624 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
12625 sin, cos and sincos to 1 ULP.
12626
12627 2018-04-04 Maciej W. Rozycki <macro@mips.com>
12628
12629 [BZ #19818]
12630 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
12631 symbols.
12632 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
12633 * elf/tst-absolute-sym.c: New file.
12634 * elf/tst-absolute-sym-lib.c: New file.
12635 * elf/tst-absolute-sym-lib.lds: New file.
12636 * elf/Makefile (tests): Add `tst-absolute-sym'.
12637 (modules-names): Add `tst-absolute-sym-lib'.
12638 (LDLIBS-tst-absolute-sym-lib.so): New variable.
12639 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
12640 ($(objpfx)tst-absolute-sym): New dependency.
12641
12642 [BZ #19818]
12643 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
12644 parameter.
12645 (SYMBOL_ADDRESS): New macro.
12646 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
12647 SYMBOL_ADDRESS for symbol address calculation.
12648 * elf/dl-runtime.c (_dl_fixup): Likewise.
12649 (_dl_profile_fixup): Likewise.
12650 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
12651 * elf/rtld.c (dl_main): Likewise.
12652 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
12653 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
12654 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
12655 (elf_machine_rela): Likewise.
12656 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
12657 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
12658 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
12659 (elf_machine_rela): Likewise.
12660 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
12661 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
12662 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
12663 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
12664 Likewise.
12665 (elf_machine_reloc): Likewise.
12666 (elf_machine_got_rel): Likewise.
12667 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
12668 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
12669 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
12670 Likewise.
12671 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12672 Likewise.
12673 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
12674 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
12675 Likewise.
12676 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
12677 Likewise.
12678 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12679 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
12680 Likewise.
12681 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12682 Likewise.
12683 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
12684 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
12685
12686 2018-04-04 Zack Weinberg <zackw@panix.com>
12687
12688 * sysdeps/generic/internal-signals.h: Include signal.h,
12689 sigsetops.h, and stdbool.h.
12690 (__libc_signal_block_all): Actually block all signals.
12691 (__libc_signal_block_app): Likewise.
12692 (__libc_signal_restore_set): Actually restore the signal mask.
12693
12694 2018-04-04 Florian Weimer <fweimer@redhat.com>
12695
12696 inet: Actually build and run tst-deadline.
12697 * inet/Makefile (tests-internal): Add tst-deadline and do not
12698 overwrite the variable.
12699 (tests-static-internal): Remove variable.
12700
12701 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
12702
12703 [BZ #22947]
12704 * bits/uio-ext.h (RWF_APPEND): New.
12705 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
12706 * manual/llio.texi: Document RWF_APPEND.
12707 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
12708 (RWF_SUPPORTED): Add RWF_APPEND.
12709
12710 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12711
12712 [BZ #22391]
12713 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
12714 check for internal nptl signals.
12715 * nptl/sigaction.c (__sigaction): Likewise.
12716 * signal/sigaddset.c (sigaddset): Likewise.
12717 * signal/sigdelset.c (sigdelset): Likewise.
12718 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
12719 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
12720 value.
12721 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
12722 to filter out internal nptl signals.
12723 * signal/tst-sigset.c (do_test): Check ech signal indidually and
12724 also check realtime signals using standard macros.
12725 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
12726 __is_internal_signal, __libc_signal_block_all,
12727 __libc_signal_block_app, __libc_signal_restore_set): New functions.
12728 * sysdeps/nptl/sigfillset.c: Remove file.
12729 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
12730 Change return to bool.
12731 (__clear_internal_signals): Remove SIGTIMER clean since it is
12732 equal to SIGCANEL on Linux.
12733 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
12734 signal set was constructed using standard functions.
12735
12736 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
12737
12738 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
12739 ifname is too long.
12740 * hurd/hurdsig.c (interrupted_reply_port_location): Use
12741 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
12742 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
12743 hidden def.
12744 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
12745 * signal/sigaddset.c: Include <sigsetopts.h>.
12746 * signal/sigdelset.c: Likewise.
12747
12748 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12749
12750 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
12751 (__cos): Likewise.
12752 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
12753 logic as sin and cos.
12754
12755 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12756
12757 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
12758 inputs. Return correct sign.
12759 (do_sincos): Remove small input check before do_sin, let do_sin set
12760 the sign.
12761 (__sin): Likewise.
12762 (__cos): Likewise.
12763
12764 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12765
12766 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
12767 (do_cos_slow): Likewise.
12768 (do_sin_slow): Likewise.
12769 (reduce_and_compute): Likewise.
12770 (slow): Likewise.
12771 (slow1): Likewise.
12772 (slow2): Likewise.
12773 (sloww): Likewise.
12774 (sloww1): Likewise.
12775 (sloww2): Likewise.
12776 (bslow): Likewise.
12777 (bslow1): Likewise.
12778 (bslow2): Likewise.
12779 (cslow2): Likewise.
12780
12781 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12782
12783 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
12784 (do_cos): Remove corp parameter and calculations.
12785 (do_sin): Likewise.
12786 (do_sincos): Remove cor variable.
12787 (__sin): Use do_sincos for huge inputs.
12788 (__cos): Likewise.
12789 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12790 (reduce_and_compute_sincos): Remove unused function.
12791
12792 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12793
12794 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
12795 reduce_sincos, improve accuracy to 136 bits.
12796 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
12797 (__sin): Use improved reduction and simplified do_sincos calculation.
12798 (__cos): Likewise.
12799 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12800
12801 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12802
12803 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
12804 (do_sincos_2): Likewise.
12805 (__sin): Remove middle range reduction case.
12806 (__cos): Likewise.
12807 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
12808 reduction case.
12809
12810 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12811
12812 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
12813 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
12814 inputs.
12815 (__cos): Likewise.
12816 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
12817
12818 2018-04-03 Joseph Myers <joseph@codesourcery.com>
12819
12820 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12821 version to 4.16
12822
12823 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12824
12825 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
12826 Remove definitions.
12827 (opendir_oflags): Use O_DIRECTORY regardless.
12828 (__opendir, __opendirat): Remove need_isdir_precheck usage.
12829 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
12830
12831 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12832
12833 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
12834 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
12835 macros.
12836 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
12837 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
12838 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
12839 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
12840 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
12841 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
12842
12843 * htl/Makefile: Bump licence to LGPL 2.1+.
12844 * htl/alloca_cutoff.c: Likewise.
12845 * htl/cthreads-compat.c: Likewise.
12846 * htl/lockfile.c: Likewise.
12847 * htl/pt-alloc.c: Likewise.
12848 * htl/pt-cancel.c: Likewise.
12849 * htl/pt-cleanup.c: Likewise.
12850 * htl/pt-create.c: Likewise.
12851 * htl/pt-dealloc.c: Likewise.
12852 * htl/pt-detach.c: Likewise.
12853 * htl/pt-exit.c: Likewise.
12854 * htl/pt-getattr.c: Likewise.
12855 * htl/pt-initialize.c: Likewise.
12856 * htl/pt-internal.h: Likewise.
12857 * htl/pt-join.c: Likewise.
12858 * htl/pt-self.c: Likewise.
12859 * htl/pt-setcancelstate.c: Likewise.
12860 * htl/pt-setcanceltype.c: Likewise.
12861 * htl/pt-sigmask.c: Likewise.
12862 * htl/pt-spin-inlines.c: Likewise.
12863 * htl/pt-testcancel.c: Likewise.
12864 * htl/pt-yield.c: Likewise.
12865 * htl/tests/test-1.c: Likewise.
12866 * htl/tests/test-10.c: Likewise.
12867 * htl/tests/test-11.c: Likewise.
12868 * htl/tests/test-12.c: Likewise.
12869 * htl/tests/test-13.c: Likewise.
12870 * htl/tests/test-14.c: Likewise.
12871 * htl/tests/test-15.c: Likewise.
12872 * htl/tests/test-16.c: Likewise.
12873 * htl/tests/test-17.c: Likewise.
12874 * htl/tests/test-2.c: Likewise.
12875 * htl/tests/test-3.c: Likewise.
12876 * htl/tests/test-4.c: Likewise.
12877 * htl/tests/test-5.c: Likewise.
12878 * htl/tests/test-6.c: Likewise.
12879 * htl/tests/test-7.c: Likewise.
12880 * htl/tests/test-8.c: Likewise.
12881 * htl/tests/test-9.c: Likewise.
12882 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
12883 * sysdeps/htl/bits/cancelation.h: Likewise.
12884 * sysdeps/htl/bits/pthread-np.h: Likewise.
12885 * sysdeps/htl/bits/pthread.h: Likewise.
12886 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
12887 * sysdeps/htl/bits/semaphore.h: Likewise.
12888 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
12889 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
12890 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
12891 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
12892 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
12893 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
12894 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
12895 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
12896 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
12897 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
12898 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
12899 * sysdeps/htl/old_pt-atfork.c: Likewise.
12900 * sysdeps/htl/pt-atfork.c: Likewise.
12901 * sysdeps/htl/pt-attr-destroy.c: Likewise.
12902 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
12903 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
12904 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
12905 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
12906 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
12907 * sysdeps/htl/pt-attr-getscope.c: Likewise.
12908 * sysdeps/htl/pt-attr-getstack.c: Likewise.
12909 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
12910 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
12911 * sysdeps/htl/pt-attr-init.c: Likewise.
12912 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
12913 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
12914 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
12915 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
12916 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
12917 * sysdeps/htl/pt-attr-setscope.c: Likewise.
12918 * sysdeps/htl/pt-attr-setstack.c: Likewise.
12919 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
12920 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
12921 * sysdeps/htl/pt-attr.c: Likewise.
12922 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
12923 * sysdeps/htl/pt-barrier-init.c: Likewise.
12924 * sysdeps/htl/pt-barrier-wait.c: Likewise.
12925 * sysdeps/htl/pt-barrier.c: Likewise.
12926 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
12927 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
12928 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
12929 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
12930 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
12931 * sysdeps/htl/pt-cond-destroy.c: Likewise.
12932 * sysdeps/htl/pt-cond-init.c: Likewise.
12933 * sysdeps/htl/pt-cond-signal.c: Likewise.
12934 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
12935 * sysdeps/htl/pt-cond-wait.c: Likewise.
12936 * sysdeps/htl/pt-cond.c: Likewise.
12937 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
12938 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
12939 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
12940 * sysdeps/htl/pt-condattr-init.c: Likewise.
12941 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
12942 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
12943 * sysdeps/htl/pt-destroy-specific.c: Likewise.
12944 * sysdeps/htl/pt-equal.c: Likewise.
12945 * sysdeps/htl/pt-getconcurrency.c: Likewise.
12946 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
12947 * sysdeps/htl/pt-getschedparam.c: Likewise.
12948 * sysdeps/htl/pt-getspecific.c: Likewise.
12949 * sysdeps/htl/pt-init-specific.c: Likewise.
12950 * sysdeps/htl/pt-key-create.c: Likewise.
12951 * sysdeps/htl/pt-key-delete.c: Likewise.
12952 * sysdeps/htl/pt-key.h: Likewise.
12953 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
12954 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
12955 * sysdeps/htl/pt-mutex-init.c: Likewise.
12956 * sysdeps/htl/pt-mutex-lock.c: Likewise.
12957 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
12958 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
12959 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
12960 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
12961 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
12962 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
12963 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
12964 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
12965 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
12966 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
12967 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
12968 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
12969 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
12970 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
12971 * sysdeps/htl/pt-mutexattr.c: Likewise.
12972 * sysdeps/htl/pt-once.c: Likewise.
12973 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
12974 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
12975 * sysdeps/htl/pt-rwlock-init.c: Likewise.
12976 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
12977 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
12978 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
12979 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
12980 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
12981 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
12982 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
12983 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
12984 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
12985 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
12986 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
12987 * sysdeps/htl/pt-setconcurrency.c: Likewise.
12988 * sysdeps/htl/pt-setschedparam.c: Likewise.
12989 * sysdeps/htl/pt-setschedprio.c: Likewise.
12990 * sysdeps/htl/pt-setspecific.c: Likewise.
12991 * sysdeps/htl/pt-spin.c: Likewise.
12992 * sysdeps/htl/pt-startup.c: Likewise.
12993 * sysdeps/htl/pthread.h: Likewise.
12994 * sysdeps/htl/sem-close.c: Likewise.
12995 * sysdeps/htl/sem-destroy.c: Likewise.
12996 * sysdeps/htl/sem-getvalue.c: Likewise.
12997 * sysdeps/htl/sem-init.c: Likewise.
12998 * sysdeps/htl/sem-open.c: Likewise.
12999 * sysdeps/htl/sem-post.c: Likewise.
13000 * sysdeps/htl/sem-timedwait.c: Likewise.
13001 * sysdeps/htl/sem-trywait.c: Likewise.
13002 * sysdeps/htl/sem-unlink.c: Likewise.
13003 * sysdeps/htl/sem-wait.c: Likewise.
13004 * sysdeps/hurd/htl/pt-kill.c: Likewise.
13005 * sysdeps/i386/htl/pt-machdep.h: Likewise.
13006 * sysdeps/mach/htl/pt-block.c: Likewise.
13007 * sysdeps/mach/htl/pt-spin.c: Likewise.
13008 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13009 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13010 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13011 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13012 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13013 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13014 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
13015 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
13016 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
13017 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
13018 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
13019 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
13020 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
13021 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
13022 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13023 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13024 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13025 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13026 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13027 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13028 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13029 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13030 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13031 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13032 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13033 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13034 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13035 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13036 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13037 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13038 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13039 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13040 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13041 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13042 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13043 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13044 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13045 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13046 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13047 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13048 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13049 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13050 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13051
13052 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13053 * README: Remove the mention of out-of-tree patches needed for
13054 GNU/Hurd.
13055
13056 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13057 (UTIME_NOW, UTIME_OMIT): Define macros.
13058
13059 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13060 instead of pthread_detach.
13061 (__cthread_fork): Call __pthread_create instead of pthread_create.
13062 (__cthread_keycreate): Call __pthread_key_create instead of
13063 pthread_key_create.
13064 (__cthread_getspecific): Call __pthread_getspecific instead of
13065 pthread_getspecific.
13066 (__cthread_setspecific): Call __pthread_setspecific instead of
13067 pthread_setspecific.
13068 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13069 __pthread_mutex_unlock instead of pthread_mutex_lock and
13070 pthread_mutex_unlock.
13071 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13072 ___pthread_get_cleanup_stack.
13073 (__pthread_get_cleanup_stack): New strong alias.
13074 * htl/pt-create.c: Include <pthreadP.h>.
13075 (entry_point): Call __pthread_exit instead of pthread_exit.
13076 (pthread_create): Rename to __pthread_create.
13077 (pthread_create): New strong alias.
13078 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13079 (pthread_detach): New strong alias.
13080 (__pthread_detach): Call __pthread_cond_broadcast instead of
13081 pthread_cond_broadcast.
13082 * htl/pt-exit.c: Include <pthreadP.h>.
13083 (__pthread_exit): Call __pthread_setcancelstate and
13084 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13085 __pthread_get_cleanup_stack.
13086 * htl/pt-testcancel.c: Include <pthreadP.h>.
13087 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13088 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13089 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13090 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13091 pthread_attr_getstacksize.
13092 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13093 Rename to __pthread_attr_getstackaddr.
13094 (pthread_attr_getstackaddr): New strong alias.
13095 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13096 Rename to __pthread_attr_getstacksize.
13097 (pthread_attr_getstacksize): New strong alias.
13098 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13099 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13100 (pthread_attr_setstack): New strong alias.
13101 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13102 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13103 pthread_attr_getstacksize, pthread_attr_setstacksize and
13104 pthread_attr_setstackaddr.
13105 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13106 Rename to __pthread_attr_setstackaddr.
13107 (pthread_attr_setstackaddr): New strong alias.
13108 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13109 Rename to __pthread_attr_setstacksize.
13110 (pthread_attr_setstacksize): New strong alias.
13111 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13112 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13113 pthread_exit.
13114 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13115 (__pthread_key_create): New hidden def.
13116 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13117 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13118 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13119 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13120 __pthread_setspecific, __pthread_setcancelstate,
13121 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13122 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13123 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13124 declarations.
13125 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13126 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13127 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13128 (pthread_attr_setstackaddr): New strong alias.
13129 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13130 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13131 (pthread_attr_setstacksize): New strong alias.
13132 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13133 (call_exit): Call __pthread_exit instead of pthread_exit.
13134 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13135 (_pthread_mutex_init): New hidden definition.
13136 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13137 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13138 instead of pthread_attr_init and pthread_attr_setstack.
13139
13140 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13141 __vm_deallocate instead of vm_allocate and vm_deallocate.
13142 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13143 setenv.
13144 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13145 of geteuid.
13146 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13147 strdup.
13148 * hurd/siginfo.c: Include <libioP.h>.
13149 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13150 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13151 munmap.
13152 * mach/devstream.c: Include <libioP.h>.
13153 (dealloc_ref): Call __mach_port_deallocate instead of
13154 mach_port_deallocate.
13155 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13156 Call __mach_port_deallocate instead of mach_port_deallocate.
13157 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13158 pathconf.
13159 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13160 munmap.
13161 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13162 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13163 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13164 of munmap.
13165 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13166 of close.
13167 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13168 instead of sysconf.
13169 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13170 __clock_gettime instead of clock_gettime.
13171 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13172 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13173 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13174 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13175 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13176 tcgetattr.
13177 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13178 __clock_gettime and __nanosleep instead of clock_gettime and
13179 nanosleep.
13180 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13181 __hurd_catch_signal.
13182 (hurd_catch_signal): New strong alias.
13183 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13184 __hurd_catch_signal instead of hurd_catch_signal.
13185 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13186 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13187 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13188 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13189 (_hurd_thread_sigstate): Add hidden def.
13190 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13191 mutex_unlock.
13192 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13193 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13194 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13195 __hurd_file_name_path_lookup.
13196 (hurd_file_name_path_lookup): New strong alias.
13197 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13198 hurd_file_name_path_lookup.
13199 * mach/errstring.c (mach_error_type): Add hidden def.
13200 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13201 * mach/mutex-init.c (__mutex_init): Add hidden def.
13202 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13203 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13204 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13205 * sysdeps/mach/hurd/getcwd.c
13206 (_hurd_canonicalize_directory_name_internal): Rename to
13207 __hurd_canonicalize_directory_name_internal.
13208 (_hurd_canonicalize_directory_name_internal): New strong alias.
13209 (__canonicalize_directory_name_internal, __getcwd): Call
13210 __hurd_canonicalize_directory_name_internal instead of
13211 _hurd_canonicalize_directory_name_internal.
13212 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13213 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13214 hidden defs.
13215 * sysdeps/hurd/include/hurd.h: New file.
13216 * sysdeps/hurd/include/hurd/fd.h: New file.
13217 * sysdeps/hurd/include/hurd/signal.h: New file.
13218 * sysdeps/mach/include/lock-intern.h: New file.
13219 * sysdeps/mach/include/mach.h: New file.
13220 * sysdeps/mach/include/mach/mig_support.h: New file.
13221 * sysdeps/mach/include/mach_error.h: New file.
13222 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13223 prototype.
13224 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13225 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13226 _HEADER_H_HIDDEN_DEF macro.
13227 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13228 _hurd_fd_error_signal): Add hidden prototype.
13229 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13230 hidden def.
13231 * libio/iolibio.h (_IO_puts): New hidden prototype.
13232 * libio/ioputs.c (_IO_puts): New hidden def.
13233 * sysdeps/mach/hurd/localplt.data: New file.
13234
13235 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13236 Amos Jeffries <squid3@treenet.co.nz>
13237 David Michael <fedora.dm0@gmail.com>
13238 Marco Gerards <marco@gnu.org>
13239 Marcus Brinkmann <marcus@gnu.org>
13240 Neal H. Walfield <neal@gnu.org>
13241 Pino Toscano <toscano.pino@tiscali.it>
13242 Richard Braun <rbraun@sceen.net>
13243 Roland McGrath <roland@gnu.org>
13244 Samuel Thibault <samuel.thibault@ens-lyon.org>
13245 Thomas DiModica <ricinwich@yahoo.com>
13246 Thomas Schwinge <tschwinge@gnu.org>
13247
13248 * htl: New directory.
13249 * sysdeps/htl: New directory.
13250 * sysdeps/hurd/htl: New directory.
13251 * sysdeps/i386/htl: New directory.
13252 * sysdeps/mach/htl: New directory.
13253 * sysdeps/mach/hurd/htl: New directory.
13254 * sysdeps/mach/hurd/i386/htl: New directory.
13255 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13256 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13257 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13258
13259 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13260
13261 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13262 signals in thread created for runing timers.
13263
13264 2018-04-01 Florian Weimer <fweimer@redhat.com>
13265
13266 * support/support_format_addrinfo.c (support_format_addrinfo):
13267 Include unknown error number in formatted result.
13268
13269 2018-03-29 Florian Weimer <fweimer@redhat.com>
13270
13271 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13272 capture SIGBUS.
13273
13274 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13275
13276 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13277 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13278 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13279 (__ASSUME_CLONE_BACKWARDS): Define.
13280
13281 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13282
13283 [BZ #23024]
13284 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13285 early when linux sentinel value is set.
13286
13287 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13288
13289 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13290
13291 2018-03-27 Andreas Schwab <schwab@suse.de>
13292
13293 [BZ #23005]
13294 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13295 allocation of private copy of nsaddr_list fails.
13296
13297 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13298
13299 [BZ #16552]
13300 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13301 * sysdeps/unix/sysv/linux/umount.c: ... here.
13302 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13303 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13304 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13305 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13306 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13307 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13308 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13309
13310 2018-03-26 Andreas Schwab <schwab@suse.de>
13311
13312 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13313 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13314 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13315 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13316 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13317 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13318 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13319 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13320 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13321 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13322 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13323 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13324 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13325 (R_RISCV_NUM): Define.
13326
13327 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13328
13329 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13330 TLS declaration of errno.
13331 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13332 __libc_setup_tls.
13333 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13334 (ARCH_SETUP_TLS): Likewise.
13335 * sysdeps/mach/hurd/libc-start.h: New file copied from
13336 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13337 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13338 instead of __libc_setup_tls.
13339 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13340 __libc_setup_tls before initializing libpthread and running _hurd_init
13341 which starts the signal thread.
13342 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13343 Declare function.
13344 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13345
13346 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
13347
13348 [BZ #22998]
13349 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
13350 after it is defined.
13351
13352 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
13353 Max Horn <max@quendi.de>
13354
13355 [BZ #22644]
13356 CVE-2017-18269
13357 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13358 branch conditions.
13359 * string/test-memmove.c (do_test2): New testcase.
13360
13361 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13362
13363 * sysdeps/generic/frame.h: Remove file.
13364 * sysdeps/arm/frame.h: Likewise.
13365 * sysdeps/hppa/frame.h: Likewise.
13366 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13367 macro.
13368 (GET_FRAME): Likewise.
13369 (GET_STACK): Likewise.
13370 (CALL_SIGHANDLER): Likewise.
13371 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
13372 Likewise.
13373 (GET_FRAME): Likewise.
13374 (GET_STACK): Likewise.
13375 (CALL_SIGHANDLER): Likewise.
13376 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
13377 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13378 (GET_FRAME): Likewise.
13379 (GET_STACK): Likewise.
13380 (CALL_SIGHANDLER): Likewise.
13381 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
13382 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13383 (GET_FRAME): Likewise.
13384 (GET_STACK): Likewise.
13385 (ADVANCE_STACK_FRAME): Likewise.
13386 (CALL_SIGHANDLER): Likewise.
13387 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
13388 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13389 (GET_FRAME): Likewise.
13390 (GET_STACK): Likewise.
13391 (CALL_SIGHANDLER): Likewise.
13392 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
13393 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13394 (GET_FRAME): Likewise.
13395 (GET_STACK): Likewise.
13396 (CALL_SIGHANDLER): Likewise.
13397 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
13398 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13399 (GET_FRAME): Likewise.
13400 (GET_STACK): Likewise.
13401 (CALL_SIGHANDLER): Likewise.
13402 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
13403 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13404 (GET_FRAME): Likewise.
13405 (GET_STACK): Likewise.
13406 (CALL_SIGHANDLER): Likewise.
13407 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
13408 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13409 (GET_FRAME): Likewise.
13410 (GET_STACK): Likewise.
13411 (CALL_SIGHANDLER): Likewise.
13412 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
13413 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13414 (GET_FRAME): Likewise.
13415 (GET_STACK): Likewise.
13416 (CALL_SIGHANDLER): Likewise.
13417 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
13418 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13419 (GET_FRAME): Likewise.
13420 (GET_STACK): Likewise.
13421 (CALL_SIGHANDLER): Likewise.
13422 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
13423 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13424 (GET_FRAME): Likewise.
13425 (GET_STACK): Likewise.
13426 (CALL_SIGHANDLER): Likewise.
13427 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
13428 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13429 (GET_FRAME): Likewise.
13430 (GET_STACK): Likewise.
13431 (CALL_SIGHANDLER): Likewise.
13432 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
13433 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13434 (FIRST_FRAME_POINTER): Likewise.
13435 (ADVANCE_STACK_FRAME): Likewise.
13436 (GET_STACK): Likewise.
13437 (GET_FRAME): Likewise.
13438 (CALL_SIGHANDLER): Likewise.
13439 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
13440 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13441 (ADVANCE_STACK_FRAME): Likewise.
13442 (GET_STACK): Likewise.
13443 (GET_FRAME): Likewise.
13444 (CALL_SIGHANDLER): Likewise.
13445 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
13446 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13447 (GET_FRAME): Likewise.
13448 (GET_STACK): Likewise.
13449 (CALL_SIGHANDLER): Likewise.
13450 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
13451 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13452 (GET_FRAME): Likewise.
13453 (GET_STACK): Likewise.
13454 (CALL_SIGHANDLER): Likewise.
13455
13456 2018-03-21 Joseph Myers <joseph@codesourcery.com>
13457
13458 * sysdeps/x86_64/backtrace.c: Move to ....
13459 * debug/backtrace.c: ... here.
13460 * sysdeps/aarch64/backtrace.c: Remove file.
13461 * sysdeps/alpha/backtrace.c: Likewise.
13462 * sysdeps/hppa/backtrace.c: Likewise.
13463 * sysdeps/ia64/backtrace.c: Likewise.
13464 * sysdeps/mips/backtrace.c: Likewise.
13465 * sysdeps/nios2/backtrace.c: Likewise.
13466 * sysdeps/riscv/backtrace.c: Likewise.
13467 * sysdeps/sh/backtrace.c: Likewise.
13468 * sysdeps/tile/backtrace.c: Likewise.
13469
13470 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13471
13472 [BZ #22987]
13473 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
13474 function.
13475 (fdimf): Likewise.
13476 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
13477
13478 [BZ #17343]
13479 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
13480 possibly overflowing computations.
13481
13482 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
13483
13484 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
13485 values from Linux-specific section now that it is in the GNU section.
13486 * sysdeps/gnu/errlist.c: Regenerate.
13487
13488 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13489
13490 * math/Makefile (libm-narrow-fns): Add sub.
13491 (libm-test-funcs-narrow): Likewise.
13492 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
13493 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
13494 * math/gen-auto-libm-tests.c (test_functions): Add sub.
13495 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
13496 (NARROW_SUB_ROUND_TO_ODD): Likewise.
13497 (NARROW_SUB_TRIVIAL): Likewise.
13498 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
13499 macro.
13500 (__dsubl): Likewise.
13501 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
13502 dsub.
13503 (CFLAGS-nldbl-dsub.c): New variable.
13504 (CFLAGS-nldbl-fsub.c): Likewise.
13505 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13506 __nldbl_dsubl.
13507 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
13508 prototype.
13509 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
13510 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
13511 * math/auto-libm-test-in: Add tests of sub.
13512 * math/auto-libm-test-out-narrow-sub: New generated file.
13513 * math/libm-test-narrow-sub.inc: New file.
13514 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13515 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
13516 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
13517 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
13518 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
13519 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
13520 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
13521 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
13522 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
13523 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
13524 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
13525 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
13526 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
13527 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
13528 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
13529 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
13530 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
13531 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
13532 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13533 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13534 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13535 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13536 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13537 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13538 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13539 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13540 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13541 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13542 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13543 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13544 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13545 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13546 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13547 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13548 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13549 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13550 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13551 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13552 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13553 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13554 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13555 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13556 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
13557 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
13558 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13559 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13560
13561 2018-03-19 Joseph Myers <joseph@codesourcery.com>
13562
13563 [BZ #20079]
13564 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
13565
13566 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
13567
13568 * benchtests/bench-timing.h (attribute_hidden): Undefine.
13569
13570 2018-03-18 Richard Braun <rbraun@sceen.net>
13571
13572 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
13573 thread reference.
13574
13575 2018-03-18 Agustina Arzille <avarzille@riseup.net>
13576
13577 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
13578 (__libc_cleanup_fct): Define function.
13579 (__libc_cleanup_region_start, __libc_cleanup_region_end,
13580 __libc_cleanup_end): Rewrite implementation using
13581 __attribute__ ((__cleanup__)).
13582 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
13583 * hurd/Makefile (routines): Add hurdlock.
13584 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
13585 interface.
13586 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
13587 * hurd/hurdpid.c: Include <lowlevellock.h>
13588 (_S_msg_proc_newids): Use lll_wait to synchronize.
13589 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
13590 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
13591 * mach/Makefile (lock-headers): Remove machine-lock.h.
13592 * mach/lock-intern.h: Include <lowlevellock.h> instead of
13593 <machine-lock.h>.
13594 (__spin_lock_t): New type.
13595 (__SPIN_LOCK_INITIALIZER): New macro.
13596 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
13597 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
13598 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
13599 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
13600 (__mutex_init): Initialize with lll.
13601 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
13602 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
13603 needing lll.
13604 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13605 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
13606 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
13607 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
13608 (__setpgid): Use lll for synchronization.
13609 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
13610 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
13611 instead of <cthreads.h>.
13612 (_IO_lock_inexpensive): New macro
13613 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
13614 (__libc_lock_self0): New declaration.
13615 (__libc_lock_owner_self): New macro.
13616 (__libc_key_t): Remove type.
13617 (_LIBC_LOCK_INITIALIZER): New macro.
13618 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
13619 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
13620 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
13621 __libc_lock_define_initialized_recursive,
13622 __rtld_lock_define_initialized_recursive,
13623 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
13624 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
13625 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
13626 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
13627 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
13628 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
13629 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
13630 New macros.
13631 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
13632 * hurd/hurdlock.c: New file.
13633 * hurd/hurdlock.h: New file.
13634 * mach/lowlevellock.h: New file
13635
13636 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13637
13638 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
13639 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
13640 when opening a symlink with O_NOFOLLOW.
13641 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
13642 path when flags contains O_NOFOLLOW.
13643 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
13644 if flags contains O_DIRECTORY and the result is a directory.
13645 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
13646 oneself when the pointer given in D is nul (as set by ext2fs).
13647 * sysdeps/mach/hurd/mlockall.c: New file.
13648 * sysdeps/mach/hurd/munlockall.c: New file.
13649
13650 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
13651
13652 * hurd/hurdsig.c: Include <pthread.h>.
13653 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
13654 get the signal thread stack layout.
13655 * hurd/Makefile (headers): Remove threadvar.h.
13656 (inline-headers): Remove threadvar.h.
13657 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
13658 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
13659 __hurd_threadvar_max, __hurd_errno_location.
13660 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
13661 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
13662 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
13663 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
13664 unless TLS is not initialized yet, in which case we do not need a
13665 critical section yet anyway.
13666 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
13667 <machine-sp.h>.
13668 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
13669 declarations.
13670 (__hurd_threadvar_index): Remove enum.
13671 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
13672 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
13673 inlines.
13674 (__hurd_reply_port0): New variable declaration.
13675 (__hurd_local_reply_port): New macro.
13676 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
13677 (interrupted_reply_port_location): Add thread_t parameter. Use it
13678 with THREAD_TCB to access thread-local variables.
13679 (_hurdsig_abort_rpcs): Pass ss->thread to
13680 interrupted_reply_port_location.
13681 (_hurd_internal_post_signal): Likewise.
13682 (_hurdsig_init): Use presence of cthread_fork instead of
13683 __hurd_threadvar_stack_mask to start signal thread by hand.
13684 Remove signal thread threadvar initialization.
13685 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
13686 * hurd/sigunwind.c: Include <hurd/threadvar.h>
13687 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
13688 of threadvar.
13689 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
13690 __libc_lock_self0.
13691 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
13692 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
13693 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
13694 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
13695 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
13696 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
13697 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
13698 define variables.
13699 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
13700 <hurd/threadvar.h>.
13701 [IS_IN(rtld)] (rtld_errno): New variable.
13702 [IS_IN(rtld)] (__errno_location): New weak function.
13703 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
13704 * sysdeps/mach/hurd/errno.c: Remove file.
13705 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
13706 (__fork): Remove THREADVAR_SPACE macro and its use.
13707 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
13708 variable.
13709 (init): Do not initialize threadvar.
13710 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
13711 symbol.
13712 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
13713 __hurd_local_reply_port instead of threadvar.
13714 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
13715 _hurd_sigstate fields.
13716 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
13717 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
13718 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
13719 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
13720 instead of threadvar.
13721 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
13722 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
13723 (use_threadvar, global_reply_port): Remove variables.
13724 (__hurd_reply_port0): New variable.
13725 (__mig_get_reply_port): Use __hurd_local_reply_port and
13726 __hurd_reply_port0 instead of threadvar.
13727 (__mig_dealloc_reply_port): Likewise.
13728 (__mig_init): Do not initialize threadvar.
13729 * sysdeps/mach/hurd/profil.c: Fix comment.
13730 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
13731 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
13732 cthread_keycreate, cthread_getspecific, cthread_setspecific to
13733 __cthread_fork, __cthread_detach, __pthread_getattr_np,
13734 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
13735 __cthread_setspecific.
13736 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
13737 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
13738 __cthread_t instead of cthread_fork, cthread_detach,
13739 pthread_getattr_np, pthread_attr_getstack.
13740 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
13741 __cthread_keycreate.
13742 (cthread_getspecific): Rename to __cthread_getspecific.
13743 (cthread_setspecific): Rename to __cthread_setspecific.
13744 (__libc_getspecific): Use __cthread_getspecific instead of
13745 cthread_getspecific.
13746 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
13747 __cthread_keycreate instead of cthread_keycreate.
13748 (__libc_setspecific): Use __cthread_setspecific instead of
13749 cthread_setspecific.
13750 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
13751 Likewise.
13752 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
13753 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
13754 testing whether it is defined.
13755
13756 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
13757
13758 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
13759 Define macro.
13760 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
13761 * sysdeps/mach/i386/thread_state.h
13762 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
13763 i386_THREAD_STATE.
13764 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
13765 i386_THREAD_STATE.
13766 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
13767
13768 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
13769 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
13770
13771 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
13772 macros.
13773 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
13774 descriptor instead of creating a new one.
13775 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
13776
13777 * mach/setup-thread.c: Include <ldsodefs.h>.
13778 (__mach_setup_thread): Call _dl_allocate_tls, pass
13779 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
13780 MACHINE_THREAD_STATE_FLAVOR, before getting
13781 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
13782 MACHINE_THREAD_STATE_FLAVOR with the result.
13783 * hurd/hurdfault.c (_hurdsig_fault_init): Call
13784 MACHINE_THREAD_STATE_FIX_NEW.
13785 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
13786 too. Add original thread parameter.
13787
13788 2018-03-16 Joseph Myers <joseph@codesourcery.com>
13789
13790 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
13791 Remove inline function.
13792
13793 * sysdeps/i386/fpu/libm-test-ulps: Update.
13794 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
13795
13796 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
13797
13798 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
13799 commit.
13800
13801 2018-03-15 Joseph Myers <joseph@codesourcery.com>
13802
13803 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
13804 (__sincos_code): Remove define and undefine.
13805 [__FAST_MATH__] (__sincos): Remove inline function.
13806 [__FAST_MATH__] (__sincosf): Remove inline function.
13807 [__FAST_MATH__] (__sincosl): Remove inline function.
13808 (__atan2l): Remove inline functions.
13809 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
13810 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
13811 function.
13812 (floor): Remove inline function.
13813 (ceil): Likewise.
13814 [__FAST_MATH__] (__ldexp_code): Remove macro.
13815 [__FAST_MATH__] (ldexp): Remove inline function.
13816 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
13817 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
13818 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
13819 [__USE_ISOC99] (__lrint_code): Remove macro.
13820 [__USE_ISOC99] (__llrint_code): Likewise.
13821 [__USE_ISOC99] (lrintf): Remove inline function.
13822 [__USE_ISOC99] (lrint): Likewise.
13823 [__USE_ISOC99] (lrintl): Likewise.
13824 [__USE_ISOC99] (llrint): Likewise.
13825 [__USE_ISOC99] (llrintf): Likewise.
13826 [__USE_ISOC99] (llrintl): Likewise.
13827
13828 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13829
13830 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
13831 (__ieee754_sqrtf): Remove.
13832 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
13833 (__ieee754_sqrtf): Remove.
13834 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
13835 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13836 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
13837 (__ieee754_sqrtf): Remove.
13838 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
13839 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
13840 (sqrtf): Remove.
13841 (sqrtl): Remove.
13842 (__ieee754_sqrt): Remove.
13843 (__ieee754_sqrtf): Remove.
13844 (__ieee754_sqrtl): Remove.
13845 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13846 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
13847 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
13848 (__ieee754_sqrtf): Remove.
13849 (__ieee754_sqrtl): Remove.
13850
13851 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13852
13853 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
13854 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
13855 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
13856 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
13857 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
13858 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
13859 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
13860 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
13861 Likewise.
13862 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
13863 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
13864 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
13865 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
13866 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
13867 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
13868 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
13869 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
13870 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
13871 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13872 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
13873 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
13874 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
13875 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
13876 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
13877 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
13878 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
13879 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
13880 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
13881 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
13882 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13883 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13884 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
13885 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
13886 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
13887 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
13888 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13889 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13890 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
13891 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13892 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
13893 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
13894 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
13895 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
13896 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13897 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
13898 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
13899 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
13900 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
13901 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
13902
13903 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13904
13905 * include/math.h (sqrt): Declare with asm redirect.
13906 (sqrtf): Likewise.
13907 (sqrtl): Likewise.
13908 (sqrtf128): Likewise.
13909 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
13910 nonlib and libnldbl with -fmath-errno.
13911 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
13912 * math/w_sqrt_template.c: Likewise.
13913 * math/w_sqrtf_compat.c: Likewise.
13914 * math/w_sqrtl_compat.c: Likewise.
13915 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
13916 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
13917 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
13918 complex.h.
13919
13920 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13921
13922 * benchtests/Makefile: Define _ISOMAC.
13923 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
13924 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
13925 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
13926 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
13927 * benchtests/bench-timing.h: Define attribute_hidden.
13928
13929 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13930
13931 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
13932 mov + lsr.
13933
13934 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13935
13936 [BZ #22963]
13937 * localedata/locales/cs_CZ (mon): Rename to...
13938 (alt_mon): This.
13939 (mon): Import from CLDR (genitive case).
13940
13941 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13942
13943 [BZ #22937]
13944 * localedata/locales/el_CY (abmon): Rename to...
13945 (ab_alt_mon): This.
13946 (abmon): Import from CLDR (abbreviated genitive case).
13947 * localedata/locales/el_GR (abmon): Rename to...
13948 (ab_alt_mon): This.
13949 (abmon): Import from CLDR (abbreviated genitive case).
13950
13951 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13952
13953 [BZ #22932]
13954 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
13955
13956 2018-03-15 Robert Buj <robert.buj@gmail.com>
13957
13958 [BZ #22848]
13959 * localedata/locales/ca_ES (abmon): Rename to...
13960 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
13961 (mon): Rename to...
13962 (alt_mon): This.
13963 (abmon): Import from CLDR (genitive case, month names preceded by
13964 "de" or "d’").
13965 (mon): Likewise.
13966 (abday): Synchronize with CLDR.
13967 (d_t_fmt): Likewise.
13968 (d_fmt): Likewise.
13969 (am_pm): Likewise.
13970
13971 (LC_TIME): Improve indentation.
13972 (LC_TELEPHONE): Likewise.
13973 (LC_NAME): Likewise.
13974 (LC_ADDRESS): Likewise.
13975
13976 2018-03-14 Joseph Myers <joseph@codesourcery.com>
13977
13978 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
13979 (lrintf): Remove definitions used only with old GCC.
13980 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
13981 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
13982 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
13983 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
13984 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
13985 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
13986 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
13987 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
13988 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
13989 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
13990 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
13991 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
13992 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
13993 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
13994 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
13995 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
13996 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
13997 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
13998 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
13999 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14000 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14001 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14002 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14003 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14004 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14005 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14006 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14007 [__FAST_MATH__] (__M_SQRT2): Remove macro.
14008
14009 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14010
14011 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14012 instruction to unbreak builds with binutils 2.26 and older.
14013
14014 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14015
14016 * sysdeps/aarch64/strncmp.S (count): New macro.
14017 (strncmp): Store misaligned length in SRC1 in COUNT.
14018 (mutual_align): Adjust.
14019 (misaligned8): Load dword at a time when it is safe.
14020
14021 2018-03-12 Zack Weinberg <zackw@panix.com>
14022
14023 [BZ #1190]
14024 [BZ #19476]
14025 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14026 if the _IO_EOF_SEEN bit is already set; update commentary.
14027 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14028 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14029
14030 * support/support_openpty.c, support/tty.h: New files.
14031 * support/Makefile (libsupport-routines): Add support_openpty.
14032
14033 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14034 New test cases.
14035 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14036 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14037
14038 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14039
14040 * po/pt_BR.po: Update translations.
14041
14042 2018-03-12 David Michael <fedora.dm0@gmail.com>
14043
14044 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14045 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14046 get a port to the startup server.
14047
14048 2018-03-11 Zack Weinberg <zackw@panix.com>
14049
14050 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14051 before nldbl-compat.h.
14052
14053 2018-03-10 Zack Weinberg <zackw@panix.com>
14054
14055 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14056 math.h or math_private.h.
14057
14058 * sysdeps/alpha/fpu/s_isnan.c
14059 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14060 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14061 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14062 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14063 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14064 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14065 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14066 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14067 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14068 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14069 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14070 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14071 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14072 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14073 Include math_private.h.
14074
14075 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14076 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14077 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14078 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14079 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14080 * sysdeps/powerpc/power7/fpu/s_logb.c:
14081 Include math.h and math_private.h.
14082
14083 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14084 uses of $at in .set noat / .set at.
14085
14086 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14087
14088 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14089 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14090 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14091 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14092 Likewise.
14093
14094 2018-03-09 Florian Weimer <fweimer@redhat.com>
14095
14096 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14097 in comment.
14098
14099 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14100
14101 [BZ #22919]
14102 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14103 Add nop before __startcontext, add explaining comments.
14104
14105 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14106
14107 [BZ #22926]
14108 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14109 empty for __SPE__.
14110 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14111 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14112 Do not build hardware transactional code for __SPE__.
14113 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14114 (__lll_trylock_elision): Likewise.
14115 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14116 (__lll_unlock_elision): Likewise.
14117
14118 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14119 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14120 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14121 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14122 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14123 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14124 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14125 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14126 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14127 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14128 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14129 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14130 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14131 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14132 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14133 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14134 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14135 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14136 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14137 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14138 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14139 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14140 (__ASSUME_CLONE_BACKWARDS): Define.
14141 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14142 __clone2 if __NR_clone2 is defined.
14143 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14144 (__ASSUME_CLONE_BACKWARDS): Likewise.
14145 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14146 (__ASSUME_CLONE_BACKWARDS): Likewise.
14147 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14148 (__ASSUME_CLONE2): Likewise.
14149 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14150 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14151 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14152 variants and the define architecture can use.
14153 (__ASSUME_CLONE_DEFAULT): Define as default.
14154 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14155 (__ASSUME_CLONE_BACKWARDS): Likewise.
14156 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14157 (__ASSUME_CLONE_BACKWARDS): Likewise.
14158 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14159 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14160
14161 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14162
14163 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14164
14165 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14166 time.
14167
14168 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14169 (do_test_limit): Likewise.
14170
14171 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14172 for every implementation.
14173 (do_test): Likewise.
14174
14175 * benchtests/bench-strncmp.c: Convert output to json.
14176
14177 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14178
14179 * io/futimens.c: Add missing start-of-file descriptive comment.
14180 * io/utime.c: Likewise.
14181 * misc/futimesat.c: Likewise.
14182 * misc/utimes.c: Likewise.
14183 * sysdeps/mach/hurd/futimesat.c: Likewise.
14184 * sysdeps/mach/hurd/utimes.c: Likewise.
14185 * sysdeps/posix/utime.c: Likewise.
14186 * sysdeps/posix/utimes.c: Likewise.
14187 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14188 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14189 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14190 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14191
14192 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14193
14194 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14195 hurd_futimes.
14196 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14197 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14198 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14199 (__futimens): Move implementation to...
14200 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14201 utime_tvalue_from_tspec): ... new helper functions.
14202 (hurd_futimens): New function.
14203 * sysdeps/mach/hurd/futimesat.c: New file.
14204 * sysdeps/mach/hurd/utimensat.c: New file.
14205
14206 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14207
14208 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14209 UTIME_OMIT): New macros.
14210 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14211 before reverting to converting time spec to time value and calling
14212 __file_utimes.
14213 * sysdeps/mach/hurd/utime-helper.c: New file.
14214 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14215 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14216 reverting to utime_tvalue_from_tval and __file_utimes.
14217 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14218 (__lutimes): Just call hurd_futimens after lookup.
14219 * sysdeps/mach/hurd/utimes.c: Likewise.
14220
14221 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14222
14223 * bits/sigaction.h: Add include guard.
14224 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14225 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14226 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14227 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14228 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14229 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14230 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14231 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14232 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14233
14234 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14235
14236 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14237 -Wmaybe-uninitialized for -Os.
14238 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14239 this disabling.
14240
14241 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14242
14243 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14244 __INO_T_MATCHES_INO64_T is defined.
14245 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14246 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14247 of definition.
14248 * dirent/alphasort64.c: Likewise.
14249 * dirent/scandir.c: Likewise.
14250 * dirent/scandir64-tail.c: Likewise.
14251 * dirent/scandir64.c: Likewise.
14252 * dirent/scandirat.c: Likewise.
14253 * dirent/scandirat64.c: Likewise.
14254 * dirent/versionsort.c: Likewise.
14255 * dirent/versionsort64.c: Likewise.
14256 * include/dirent.h: Likewise.
14257
14258 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14259 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14260 for socketpair endpoint.
14261 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14262 WRITE_BUFFER_SIZE as buffer size for sending socket.
14263 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14264 issue on system where send is implemented with sendto syscall.
14265 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14266 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14267 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14268 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14269
14270 [BZ #21269]
14271 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14272 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14273 sa_restorer for vDSO case.
14274 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14275
14276 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14277
14278 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14279 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14280 * hurd/hurd/ioctl.h: Include <mach/port.h>
14281 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14282 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14283 <mach/mach_types.h> and <mach/message.h>.
14284 (headers): Move mach/param.h to bits/mach/param.h.
14285 * sysdeps/mach/i386/mach/param.h: Move file to ...
14286 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14287 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14288 of <mach/param.h>.
14289 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14290 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14291 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14292 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14293 trivial, for C++ conformity.
14294 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14295 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14296 Process mig output through $(migheadersed).
14297 * hurd/Makefile (migheadersed): Define variable.
14298 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14299 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14300 headers.
14301 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14302 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14303 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14304 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14305 <bits/types/sigset_t.h>.
14306 [!defined __USE_GNU]: Do not #error out.
14307 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14308 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14309 Include <stddef.h> and <bits/types/sigset_t.h>
14310 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14311 instead of sighandler_t.
14312 * stdlib/errno.h (error_t): Move definition to...
14313 * bits/types/error_t.h: ... new header.
14314 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14315 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14316 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14317 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14318 * hurd/hurd.h: Include <bits/types/error_t.h>
14319 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14320 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14321 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14322 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14323 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14324 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14325 * sysdeps/mach/hurd/futimens.c: New file.
14326
14327 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14328
14329 [BZ #22918]
14330 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14331 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14332 * nscd/gai.c (__nss_hosts_database): Readd definition.
14333 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14334 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14335 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14336
14337 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14338
14339 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14340 (ifunc_one): Likewise.
14341
14342 2018-03-01 DJ Delorie <dj@delorie.com>
14343
14344 [BZ #22342]
14345 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
14346 key value.
14347
14348 2018-03-01 Maciej W. Rozycki <macro@mips.com>
14349
14350 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
14351 `match_pid' parameter.
14352 (td_ta_thr_iter): Update accordingly.
14353
14354 2018-03-01 Florian Weimer <fweimer@redhat.com>
14355
14356 * nptl/Makefile (install-lib-ldscripts): Remove.
14357 (install): Remove rule.
14358 ($(inst_libdir)/libpthread.so): Likewise.
14359
14360 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14361
14362 [BZ #22896]
14363 * localedata/locales/an_ES: update month and day names,
14364 improve d_fmt, improve postal_fmt, add country_post,
14365 add country_isbn
14366
14367 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14368
14369 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
14370 Ukrainian instead of Bulgarian.
14371
14372 2018-03-01 Florian Weimer <fweimer@redhat.com>
14373
14374 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
14375 reference.
14376
14377 2018-03-01 Florian Weimer <fweimer@redhat.com>
14378
14379 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
14380 * nptl/Makefile (routines): Add pthread_atfork.
14381 (static-only-routines): Set to pthread_atfork.
14382 (libpthread-routines): Remove pthread_atfork.
14383 (libpthread-static-only-routines): Remove.
14384 (install): Update comment.
14385 (libpthread.so): Do not install libpthread_nonshared.a.
14386 (tests): Do not link with libpthread_nonshared.a.
14387 (generated): Remove libpthread_nonshared.a.
14388 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
14389 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
14390 with libpthread_nonshared.a.
14391
14392 2018-02-28 Joseph Myers <joseph@codesourcery.com>
14393
14394 [BZ #22902]
14395 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
14396 (libc_feholdexcept_setroundf128): New macro.
14397 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
14398
14399 [BZ #15105]
14400 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
14401 libc_hidden_def.
14402 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
14403 * include/inttypes.h: New file.
14404
14405 2018-02-27 Joseph Myers <joseph@codesourcery.com>
14406
14407 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
14408 -Os in two more places.
14409
14410 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14411
14412 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
14413 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
14414 be sorted correctly at the moment because of a bug.
14415
14416 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14417
14418 [BZ #22550] - es_ES locale (and other es_* locales): collation should
14419 treat ñ as a primary different character, sync the collation
14420 for Spanish with CLDR.
14421 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
14422 * localedata/Makefile: Add new test files.
14423 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
14424 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
14425 collation order.
14426 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
14427 * localedata/am_ET.UTF-8.in: New test file.
14428 * localedata/az_AZ.UTF-8.in: Likewise.
14429 * localedata/be_BY.UTF-8.in: Likewise.
14430 * localedata/ber_DZ.UTF-8.in: Likewise.
14431 * localedata/ber_MA.UTF-8.in: Likewise.
14432 * localedata/bg_BG.UTF-8.in: Likewise.
14433 * localedata/br_FR.UTF-8.in: Likewise.
14434 * localedata/cmn_TW.UTF-8.in: Likewise.
14435 * localedata/crh_UA.UTF-8.in: Likewise.
14436 * localedata/csb_PL.UTF-8.in: Likewise.
14437 * localedata/cv_RU.UTF-8.in: Likewise.
14438 * localedata/cy_GB.UTF-8.in: Likewise.
14439 * localedata/dz_BT.UTF-8.in: Likewise.
14440 * localedata/eo.UTF-8.in: Likewise.
14441 * localedata/es_ES.UTF-8.in: Likewise.
14442 * localedata/fa_IR.UTF-8.in: Likewise.
14443 * localedata/fi_FI.UTF-8.in: Likewise.
14444 * localedata/fil_PH.UTF-8.in: Likewise.
14445 * localedata/fur_IT.UTF-8.in: Likewise.
14446 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
14447 * localedata/ha_NG.UTF-8.in: Likewise.
14448 * localedata/ig_NG.UTF-8.in: Likewise.
14449 * localedata/ik_CA.UTF-8.in: Likewise.
14450 * localedata/kk_KZ.UTF-8.in: Likewise.
14451 * localedata/ku_TR.UTF-8.in: Likewise.
14452 * localedata/ky_KG.UTF-8.in: Likewise.
14453 * localedata/ln_CD.UTF-8.in: Likewise.
14454 * localedata/mi_NZ.UTF-8.in: Likewise.
14455 * localedata/ml_IN.UTF-8.in: Likewise.
14456 * localedata/mn_MN.UTF-8.in: Likewise.
14457 * localedata/mr_IN.UTF-8.in: Likewise.
14458 * localedata/mt_MT.UTF-8.in: Likewise.
14459 * localedata/nb_NO.UTF-8.in: Likewise.
14460 * localedata/om_KE.UTF-8.in: Likewise.
14461 * localedata/os_RU.UTF-8.in: Likewise.
14462 * localedata/ps_AF.UTF-8.in: Likewise.
14463 * localedata/ro_RO.UTF-8.in: Likewise.
14464 * localedata/ru_RU.UTF-8.in: Likewise.
14465 * localedata/sc_IT.UTF-8.in: Likewise.
14466 * localedata/se_NO.UTF-8.in: Likewise.
14467 * localedata/sq_AL.UTF-8.in: Likewise.
14468 * localedata/sv_SE.UTF-8.in: Likewise.
14469 * localedata/szl_PL.UTF-8.in: Likewise.
14470 * localedata/tg_TJ.UTF-8.in: Likewise.
14471 * localedata/tk_TM.UTF-8.in: Likewise.
14472 * localedata/tt_RU.UTF-8.in: Likewise.
14473 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
14474 * localedata/ug_CN.UTF-8.in: Likewise.
14475 * localedata/uz_UZ.UTF-8.in: Likewise.
14476 * localedata/vi_VN.UTF-8.in: Likewise.
14477 * localedata/yi_US.UTF-8.in: Likewise.
14478 * localedata/yo_NG.UTF-8.in: Likewise.
14479 * localedata/zh_CN.UTF-8.in: Likewise.
14480 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
14481 file and fix bugs in the collation.
14482 * localedata/locales/az_AZ: Likewise.
14483 * localedata/locales/be_BY: Likewise.
14484 * localedata/locales/ber_DZ: Likewise.
14485 * localedata/locales/ber_MA: Likewise.
14486 * localedata/locales/bg_BG: Likewise.
14487 * localedata/locales/br_FR: Likewise.
14488 * localedata/locales/br_FR@euro: Likewise.
14489 * localedata/locales/ca_ES: Likewise.
14490 * localedata/locales/cns11643_stroke: Likewise.
14491 * localedata/locales/crh_UA: Likewise.
14492 * localedata/locales/cs_CZ: Likewise.
14493 * localedata/locales/csb_PL: Likewise.
14494 * localedata/locales/cv_RU: Likewise.
14495 * localedata/locales/cy_GB: Likewise.
14496 * localedata/locales/da_DK: Likewise.
14497 * localedata/locales/dz_BT: Likewise.
14498 * localedata/locales/en_CA: Likewise.
14499 * localedata/locales/eo: Likewise.
14500 * localedata/locales/es_CU: Likewise.
14501 * localedata/locales/es_EC: Likewise.
14502 * localedata/locales/es_ES: Likewise.
14503 * localedata/locales/es_US: Likewise.
14504 * localedata/locales/et_EE: Likewise.
14505 * localedata/locales/fa_IR: Likewise.
14506 * localedata/locales/fi_FI: Likewise.
14507 * localedata/locales/fil_PH: Likewise.
14508 * localedata/locales/fur_IT: Likewise.
14509 * localedata/locales/gez_ER@abegede: Likewise.
14510 * localedata/locales/ha_NG: Likewise.
14511 * localedata/locales/hr_HR: Likewise.
14512 * localedata/locales/hsb_DE: Likewise.
14513 * localedata/locales/hu_HU: Likewise.
14514 * localedata/locales/ig_NG: Likewise.
14515 * localedata/locales/ik_CA: Likewise.
14516 * localedata/locales/is_IS: Likewise.
14517 * localedata/locales/iso14651_t1_pinyin: Likewise.
14518 * localedata/locales/kk_KZ: Likewise.
14519 * localedata/locales/ku_TR: Likewise.
14520 * localedata/locales/ky_KG: Likewise.
14521 * localedata/locales/ln_CD: Likewise.
14522 * localedata/locales/lt_LT: Likewise.
14523 * localedata/locales/lv_LV: Likewise.
14524 * localedata/locales/mi_NZ: Likewise.
14525 * localedata/locales/ml_IN: Likewise.
14526 * localedata/locales/mn_MN: Likewise.
14527 * localedata/locales/mr_IN: Likewise.
14528 * localedata/locales/mt_MT: Likewise.
14529 * localedata/locales/nb_NO: Likewise.
14530 * localedata/locales/om_KE: Likewise.
14531 * localedata/locales/os_RU: Likewise.
14532 * localedata/locales/pl_PL: Likewise.
14533 * localedata/locales/ps_AF: Likewise.
14534 * localedata/locales/ro_RO: Likewise.
14535 * localedata/locales/ru_RU: Likewise.
14536 * localedata/locales/ru_UA: Likewise.
14537 * localedata/locales/sc_IT: Likewise.
14538 * localedata/locales/se_NO: Likewise.
14539 * localedata/locales/si_LK: Likewise.
14540 * localedata/locales/sq_AL: Likewise.
14541 * localedata/locales/sv_FI: Likewise.
14542 * localedata/locales/sv_FI@euro: Likewise.
14543 * localedata/locales/sv_SE: Likewise.
14544 * localedata/locales/szl_PL: Likewise.
14545 * localedata/locales/tg_TJ: Likewise.
14546 * localedata/locales/ti_ER: Likewise.
14547 * localedata/locales/tk_TM: Likewise.
14548 * localedata/locales/tl_PH: Likewise.
14549 * localedata/locales/tr_TR: Likewise.
14550 * localedata/locales/tt_RU: Likewise.
14551 * localedata/locales/tt_RU@iqtelif: Likewise.
14552 * localedata/locales/ug_CN: Likewise.
14553 * localedata/locales/uk_UA: Likewise.
14554 * localedata/locales/uz_UZ: Likewise.
14555 * localedata/locales/uz_UZ@cyrillic: Likewise.
14556 * localedata/locales/vi_VN: Likewise.
14557 * localedata/locales/yi_US: Likewise.
14558 * localedata/locales/yo_NG: Likewise.
14559
14560 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14561
14562 * gen-locales.mk: Make test files which contain @ modifiers in their
14563 name work.
14564 * localedata/gen-locale.sh: Likewise.
14565
14566 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14567
14568 * posix/tst-fnmatch.input: Fix results for range expressions
14569 for non C locales.
14570 * posix/tst-regexloc.c: Do not use a range expression for
14571 de_DE.ISO-8859-1 locale.
14572
14573 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14574
14575 * posix/bug-regex5.c: Fix test case because with the new
14576 iso14651_t1_common file, the da_DK locale now has 6 collating elements
14577 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
14578 file.
14579
14580 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14581
14582 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
14583 downloaded from ISO, the collation order of @-. and space has changed.
14584 Therefore, this test file needed to be adapted.
14585 * localedata/fr_CA.UTF-8.in: Likewise.
14586 * localedata/fr_FR.UTF-8.in: Likewise.
14587 * localedata/uk_UA.UTF-8.in: Likewise.
14588
14589 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14590
14591 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
14592 order of ȥ in the new iso14651_t1_common file.
14593 * localedata/pl_PL.UTF-8.in: Likewise.
14594
14595 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14596
14597 * localedata/locales/iso14651_t1_common: Add sections for various
14598 scripts to the iso14651_t1_common file.
14599
14600 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14601
14602 * localedata/locales/iso14651_t1_common: Use the code point of a
14603 character in the fourth collation level instead of IGNORE for all
14604 entries which have IGNORE on all 4 levels.
14605
14606 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14607
14608 * localedata/locales/iso14651_t1_common: Add some convenient collation
14609 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
14610 rules similar to those in CLDR.
14611
14612 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14613
14614 * localedata/locales/iso14651_t1_common: The new version of this
14615 file downloaded from ISO contained several syntax errors which
14616 are fixed by this patch.
14617
14618 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14619
14620 * localedata/locales/iso14651_t1_common: replace all <U.....>
14621 with <U000.....> because glibc understands only 4 digit or 8 digit
14622
14623 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14624
14625 * localedata/locales/iso14651_t1_common: Necessary changes
14626 to make the file downloaded from ISO usable by glibc.
14627
14628 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14629
14630 [BZ #14095]
14631 * localedata/locales/iso14651_t1_common: Update file to
14632 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
14633
14634 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14635
14636 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
14637 of <nptl/pthreadP.h>
14638 (thread_attr_compare): Move function to...
14639 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
14640 * sysdeps/nptl/timer_routines.h: ... new header.
14641 * sysdeps/mach/hurd/gai_misc.h: New file.
14642
14643 2018-02-26 Joseph Myers <joseph@codesourcery.com>
14644
14645 * string/strcoll_l.c: Include <libc-diag.h>.
14646 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
14647 declarations of seq1 and seq2.
14648
14649 [BZ #15105]
14650 * stdlib/atoi.c (atoi): Use libc_hidden_def.
14651 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
14652
14653 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
14654
14655 [BZ #22433]
14656 [BZ #22807]
14657 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
14658 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
14659 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
14660 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
14661 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
14662 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
14663
14664 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14665
14666 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
14667 macros used in __ptrace_request.
14668
14669 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
14670
14671 [BZ #22792]
14672 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
14673 to $(CC).
14674 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
14675 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
14676 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
14677 <tcb-offsets.h>.
14678
14679 2018-02-23 Joseph Myers <joseph@codesourcery.com>
14680
14681 [BZ #15105]
14682 * ctype/ctype.c (tolower): Use libc_hidden_def.
14683 (toupper): Likewise.
14684 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
14685 [!_ISOMAC] (toupper): Likewise.
14686
14687 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14688
14689 * localedata/Makefile: Remove --quiet argument when
14690 installing locales
14691
14692 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14693
14694 [BZ #17438]
14695 * localedata/locales/pt_BR (LC_TIME): use / instead of -
14696 in d_fmt.
14697 * localedata/locales/pt_PT (LC_TIME): likewise
14698
14699 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14700
14701 [BZ #22646]
14702 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
14703 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
14704 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
14705
14706 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14707
14708 * sysdeps/sparc/fpu/libm-test-ulps: Update.
14709
14710 * nptl/Makefile (routines): Remove unregister-atfork.
14711 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
14712 (fork_handler_alloc): Remove function.
14713 (fork_handlers, fork_handler_init): New variables.
14714 (__fork_lock): Rename to atfork_lock.
14715 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
14716 to use a dynamic array to add/remove atfork handlers.
14717 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14718 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
14719 Remove declaration.
14720 (fork_handler): Remove next, refcntr, and need_signal member.
14721 (__run_fork_handler_type): New enum.
14722 (__run_fork_handlers): New prototype.
14723 * nptl/register-atfork.c: Remove file.
14724 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
14725
14726 * sysdeps/nptl/nptl-signals.h: Move to ...
14727 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
14728 comments.
14729 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
14730 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
14731 unnecessary check for SIGTIMER.
14732 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
14733 remove unnecessary removal of SIGTIMER.
14734 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
14735 include-signals.h rename.
14736 * nptl/pthreadP.h: Likewise.
14737 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
14738 __is_internal_signal instead of __nptl_is_internal_signal.
14739
14740 2018-02-22 Andrew Waterman <andrew@sifive.com>
14741
14742 [BZ # 22884]
14743 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
14744 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
14745 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
14746 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
14747
14748 2018-02-22 DJ Delorie <dj@delorie.com>
14749
14750 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
14751
14752 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
14753
14754 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
14755 do_misaligned, not misaligned8.
14756
14757 2018-02-22 Steve Ellcey <sellcey@cavium.com>
14758
14759 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
14760 Add memcpy_thunderx2.
14761 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
14762 Increment to 4.
14763 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
14764 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
14765 and IS_THUNDERX2PA checks.
14766 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
14767 Use macro to set name appropriately.
14768 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
14769 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
14770 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
14771 New macro.
14772 (IS_THUNDERX2): New macro.
14773
14774 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
14775
14776 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14777
14778 2018-02-21 Zack Weinberg <zackw@panix.com>
14779
14780 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
14781 Define here, unconditionally.
14782 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
14783 * libio/libioP.h: Remove #if 0 blocks.
14784 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
14785 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
14786 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
14787
14788 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
14789 Assume weak_alias is always defined.
14790
14791 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
14792 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
14793 Remove #if 0 and #ifdef TODO blocks.
14794 Assume text_set_element is always defined.
14795
14796 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
14797 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
14798 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
14799
14800 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
14801 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
14802 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
14803 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
14804 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
14805 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
14806 Reformat bit flags for _flags field to make occupancy clearer.
14807 Update commentary.
14808 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
14809 Keep definitions consistent with those in libio/libio.h.
14810
14811 * libio/libio.h (_IO_file_flags): Remove macro.
14812 All uses changed to _flags.
14813
14814 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
14815 (__HAVE_COLUMN, _IO_BE): Don't define.
14816 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
14817 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
14818 * libio/libioP.h (EOF): Don't define.
14819 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
14820 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
14821 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
14822 testing _IO_UNIFIED_JUMPTABLES.
14823
14824 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
14825 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
14826 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
14827 (_IO_size_t): Delete; all uses changed to size_t.
14828 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
14829 (_IO_off_t): Delete; all uses changed to off_t.
14830 (_IO_off64_t): Delete; all uses changed to off64_t.
14831 (_IO_pid_t): Delete; all uses changed to pid_t.
14832 (_IO_uid_t): Delete; all uses changed to uid_t.
14833 (_IO_wint_t): Delete; all uses changed to wint_t.
14834 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
14835 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
14836 (_IO_cookie_io_functions_t): Delete; all uses changed to
14837 cookie_io_functions_t.
14838 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
14839 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
14840 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
14841 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
14842
14843 * libio/iofopncook.c: Remove unnecessary forward declarations.
14844 * libio/iolibio.h: Correct outdated commentary.
14845 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
14846 * stdio-common/fxprintf.c (__fxprintf_nocancel):
14847 Remove unnecessary casts.
14848 * stdio-common/getline.c: Use _IO_getdelim directly.
14849 Don't redefine ssize_t.
14850 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
14851 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
14852 Remove outdated comments.
14853 * stdio-common/vfscanf.c: Don't redefine va_list.
14854
14855 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
14856 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
14857 Remove preprocessor conditionals on _LIBC and __USE_GNU,
14858 which are always true, and __cplusplus, which is always false.
14859
14860 2018-02-21 Joseph Myers <joseph@codesourcery.com>
14861
14862 [BZ #15105]
14863 [BZ #19463]
14864 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
14865 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
14866 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
14867 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
14868 libc_hidden_proto.
14869 [!_ISOMAC] (putc_unlocked): Likewise.
14870 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
14871 define inline if [__USE_EXTERN_INLINES].
14872 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
14873 putc_unlocked.
14874
14875 [BZ #15105]
14876 [BZ #19463]
14877 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
14878 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
14879 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
14880 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
14881 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
14882 getc_unlocked.
14883 * time/tzfile.c (__tzfile_read): Likewise.
14884
14885 2018-02-21 Mike FABIAN <mfabian@redhat.com>
14886
14887 [BZ #22517]
14888 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
14889
14890 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14891
14892 * io/fcntl.h: Fix a typo in a comment.
14893
14894 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14895
14896 [BZ #22862]
14897 * include/features.h: Add _ISOC11_SOURCE to test for whether to
14898 define _DEFAULT_SOURCE.
14899 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
14900
14901 2018-02-21 Florian Weimer <fweimer@redhat.com>
14902
14903 [BZ #20890]
14904 * elf/cache.c (save_cache): Call fsync on temporary file before
14905 renaming it.
14906 (save_aux_cache): Call fdatasync on temporary file before renaming
14907 it.
14908
14909 2018-02-21 Florian Weimer <fweimer@redhat.com>
14910
14911 [BZ #22787]
14912 * include/caller.h: Remove file.
14913 * elf/dl-caller.c: Likewise.
14914 * elf/Makefile (dl-routines): Remove dl-caller.
14915 (shared-only-routines): Do not add dl-caller.
14916 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
14917 __check_caller.
14918 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
14919 member.
14920 (dl_open_worker): Do not call __check_caller.
14921 (_dl_open): Do not set caller_dl_open member.
14922 * elf/rtld.c (_rtld_global_ro): Do not initialize
14923 _dl_check_caller member.
14924 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
14925 _dl_check_caller member.
14926 (_dl_check_caller): Remove declaration.
14927 * sysdeps/unix/sysv/linux/dl-execstack.c
14928 (_dl_make_stack_executable): Do not call __check_caller.
14929
14930 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
14931
14932 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
14933 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
14934
14935 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14936
14937 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
14938 description.
14939
14940 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14941
14942 [BZ #16335]
14943 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
14944 of 199606L, 200112L, and 200809L.
14945 (_XOPEN_SOURCE): Document special values of 600 and 700.
14946 (_ISOC11_SOURCE): Document macro.
14947 (_ATFILE_SOURCE): Likewise.
14948 (_FORTIFY_SOURCE): Likewise.
14949
14950 2018-02-19 Joseph Myers <joseph@codesourcery.com>
14951
14952 [BZ #15105]
14953 [BZ #19463]
14954 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
14955 and define as weak alias of __ferror_unlocked. Use
14956 libc_hidden_weak.
14957 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
14958 libc_hidden_proto.
14959 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
14960 function if [__USE_EXTERN_INLINES].
14961 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
14962 ferror_unlocked.
14963
14964 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
14965
14966 [BZ #6889]
14967 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
14968
14969 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
14970
14971 [BZ #22818]
14972 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
14973 the GLIBC_2.1 version.
14974
14975 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
14976
14977 [BZ #21508]
14978 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
14979 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
14980 intl/tst-gettext-de.po from po/de.po by removing the
14981 POT-Creation-Date line.
14982 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
14983 ../po/de.po.
14984 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
14985 ../po/de.po.
14986
14987 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14988
14989 * mach/Makefile (headers): Add mach/param.h.
14990 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
14991 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
14992 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
14993 (__ptsname_r): Move implementation to...
14994 (__ptsname_internal): ... new function. Add filling the STP
14995 structure.
14996
14997 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
14998
14999 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15000 idouble to 1 ULP.
15001
15002 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
15003
15004 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15005 syntax.
15006
15007 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
15008
15009 * nptl/Makefile (tst-mutex8-ENV): Delete.
15010 * nptl/tst-mutex8.c (check_type):
15011 Add runtime check if mutex will be elided.
15012
15013 2018-02-15 Joseph Myers <joseph@codesourcery.com>
15014
15015 [BZ #20980]
15016 [BZ #21234]
15017 * manual/install.texi (Configuring and compiling): Describe
15018 passing CC and CFLAGS on configure command line, not as
15019 environment variables. Use @code markup on those variables.
15020 Specify what options go in CC and what go in CFLAGS. Note the
15021 requirement to compile with optimization.
15022 * INSTALL: Regenerated.
15023
15024 [BZ #18124]
15025 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15026 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15027 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15028 __sigprocmask instead of sigprocmask.
15029 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15030 Likewise.
15031 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15032 __sigsetjmp and sigprocmask.
15033
15034 [BZ #15105]
15035 * include/argz.h (argz_next): Use libc_hidden_proto.
15036 (__argz_next): Likewise.
15037 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15038 (argz_next): Use libc_hidden_weak.
15039
15040 [BZ #15105]
15041 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15042 libc_hidden_proto.
15043 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15044 libc_hidden_def.
15045
15046 [BZ #15105]
15047 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15048 libc_hidden_proto.
15049 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15050
15051 [BZ #15105]
15052 [BZ #19463]
15053 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15054 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15055 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15056 (__feof_unlocked): New declaration, and inline function if
15057 [__USE_EXTERN_INLINES].
15058 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15059 instead of feof_unlocked.
15060 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15061 * nss/nsswitch.c (nss_parse_file): Likewise.
15062 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15063 Likewise.
15064 * time/getdate.c (__getdate_r): Likewise.
15065 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15066 Define as macro to call __feof_unlocked.
15067
15068 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15069
15070 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15071
15072 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15073
15074 * math/Makefile: Remove mpexp.c and mplog.c
15075 * sysdeps/i386/fpu/mpexp.c: Delete file.
15076 * sysdeps/i386/fpu/mplog.c: Likewise.
15077 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15078 * sysdeps/ia64/fpu/mplog.c: Likewise.
15079 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15080 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15081 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15082 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15083 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15084 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15085 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15086 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15087 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15088 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15089 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15090 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15091 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15092 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15093 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15094 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15095
15096 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15097
15098 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15099
15100 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15101
15102 * sysdeps/sh/libm-test-ulps: Update.
15103
15104 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15105
15106 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15107 idouble to 1 ULP.
15108
15109 2018-02-12 Zack Weinberg <zackw@panix.com>
15110
15111 [BZ #19239]
15112 * posix/sys/types.h: Don't include sys/sysmacros.h.
15113 * misc/sys/sysmacros.h: Remove the conditional deprecation
15114 warnings for the macros defined by this header.
15115
15116 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15117
15118 * manual/probes.texi: Remove slowexp probes.
15119 * math/Makefile: Remove slowexp.
15120 * sysdeps/generic/math_private.h (__slowexp): Remove.
15121 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15122 document error bounds.
15123 * sysdeps/i386/fpu/slowexp.c: Remove.
15124 * sysdeps/ia64/fpu/slowexp.c: Remove.
15125 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15126 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15127 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15128 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15129 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15130 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15131 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15132 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15133 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15134 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15135 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15136
15137 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15138
15139 [BZ #13932]
15140 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15141 * benchtests/pow-inputs: Update comment for slow path cases.
15142 * manual/probes.texi (slowpow_p10): Delete removed probe.
15143 (slowpow_p10): Likewise.
15144 * math/Makefile: Remove halfulp.c and slowpow.c.
15145 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15146 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15147 (__halfulp): Remove.
15148 (__slowpow): Remove.
15149 * sysdeps/i386/fpu/halfulp.c: Delete file.
15150 * sysdeps/i386/fpu/slowpow.c: Likewise.
15151 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15152 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15153 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15154 improve comments and add error analysis.
15155 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15156 (power1): Remove function:
15157 (log1): Remove error argument, add error analysis.
15158 (my_log2): Remove function.
15159 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15160 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15161 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15162 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15163 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15164 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15165 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15166 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15167 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15168 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15169 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15170 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15171 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15172 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15173
15174 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15175
15176 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15177 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15178
15179 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15180
15181 [BZ #22433]
15182 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15183 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15184 and PTRACE_SETHBPREGS.
15185
15186 2018-02-10 Zack Weinberg <zackw@panix.com>
15187
15188 [BZ #22830]
15189 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15190 correctly.
15191 * malloc/tst-malloc-stats-cancellation.c: New test case.
15192 * malloc/Makefile: Add new test case.
15193
15194 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15195
15196 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15197
15198 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15199
15200 * math/Makefile (libm-narrow-fns): Add add.
15201 (libm-test-funcs-narrow): Likewise.
15202 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15203 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15204 * math/gen-auto-libm-tests.c (test_functions): Add add.
15205 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15206 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15207 (NARROW_ADD_TRIVIAL): Likewise.
15208 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15209 macro.
15210 (__daddl): Likewise.
15211 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15212 dadd.
15213 (CFLAGS-nldbl-dadd.c): New variable.
15214 (CFLAGS-nldbl-fadd.c): Likewise.
15215 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15216 __nldbl_daddl.
15217 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15218 prototype.
15219 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15220 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15221 * math/auto-libm-test-in: Add tests of add.
15222 * math/auto-libm-test-out-narrow-add: New generated file.
15223 * math/libm-test-narrow-add.inc: New file.
15224 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15225 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15226 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15227 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15228 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15229 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15230 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15231 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15232 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15233 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15234 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15235 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15236 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15237 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15238 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15239 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15240 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15241 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15242 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15243 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15244 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15245 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15246 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15247 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15248 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15249 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15250 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15251 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15252 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15253 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15254 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15255 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15256 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15257 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15258 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15259 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15260 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15261 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15262 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15263 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15264 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15265 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15266 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15267 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15268 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15269 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15270
15271 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15272 (f128-pairs): New variable.
15273 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15274 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15275 to CFLAGS.
15276 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15277 Also make tests add $(f128-loader-link) to gnulib-tests.
15278
15279 2018-02-09 DJ Delorie <dj@redhat.com>
15280
15281 [BZ #22827]
15282 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15283 64-bit ELF type for 64-bit ELF objects.
15284
15285 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15286
15287 * math/libm-test-driver.c (snan_tests_arg): New variable.
15288 * math/libm-test-support.h (snan_tests_arg): New declaration.
15289 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15290
15291 * math/Makefile (test-type-pairs): New variable.
15292 (test-type-pairs-f64xf128-yes): Likewise.
15293 (tests): Add test-narrow-macros.
15294 (libm-test-funcs-narrow): New variable.
15295 (libm-test-c-narrow): Likewise.
15296 (generated): Add $(libm-test-c-narrow).
15297 (libm-tests-base-narrow): New variable.
15298 (libm-tests-narrow): Likewise.
15299 (libm-tests): Add $(libm-tests-narrow).
15300 (libm-tests-for-type): Handle $(libm-tests-narrow).
15301 (libm-test-c-narrow-obj): New variable.
15302 ($(libm-test-c-narrow-obj)): New rule.
15303 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15304 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15305 $(o-iterator) to set dependencies and CFLAGS.
15306 * math/gen-auto-libm-tests.c: Document use for narrowing
15307 functions.
15308 (output_for_one_input_case): Take argument NARROW.
15309 (generate_output): Likewise. Update call to
15310 output_for_one_input_case.
15311 (main): Take --narrow option. Update call to generate_output.
15312 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15313 (apply_lit): Update call to _apply_lit.
15314 (apply_arglit): New function.
15315 (parse_args): Handle "a" arguments.
15316 (parse_auto_input): Handle format names using ":".
15317 * math/README.libm-test: Document "a" parameter type.
15318 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15319 (ARG_TYPE_TRUE_MIN): Likewise.
15320 (ARG_TYPE_MAX): Likwise.
15321 (ARG_MIN_EXP): Likewise.
15322 (ARG_MAX_EXP): Likewise.
15323 (ARG_MANT_DIG): Likewise.
15324 (TEST_COND_arg_ibm128): Likewise.
15325 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15326 (TEST_COND_arg_fmt): New macro.
15327 (init_max_error): Update prototype.
15328 * math/libm-test-support.c (test_ibm128): New variable.
15329 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15330 instead of using [TEST_COND_ibm128] conditional.
15331 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15332 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15333 [TEST_NARROW] (TEST_MSG): New definition.
15334 (arg_plus_zero): New macro.
15335 (arg_minus_zero): Likewise.
15336 (arg_plus_infty): Likewise.
15337 (arg_minus_infty): Likewise.
15338 (arg_qnan_value_pl): Likewise.
15339 (arg_qnan_value): Likewise.
15340 (arg_snan_value_pl): Likewise.
15341 (arg_snan_value): Likewise.
15342 (arg_max_value): Likewise.
15343 (arg_min_value): Likewise.
15344 (arg_min_subnorm_value): Likewise.
15345 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
15346 (RUN_TEST_LOOP_aa_f): New macro.
15347 (TEST_SUFF): New macro.
15348 (TEST_SUFF_STR): Likewise.
15349 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
15350 (TEST_COND_any_ibm128): New macro.
15351 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
15352 this_func. Update call to init_max_error.
15353 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15354 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15355 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15356 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15357 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15358 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15359 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15360 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15361 * math/test-math-vector.h (TEST_NARROW): Likewise.
15362 * math/test-arg-double.h: New file.
15363 * math/test-arg-float128.h: Likewise.
15364 * math/test-arg-float32x.h: Likewise.
15365 * math/test-arg-float64.h: Likewise.
15366 * math/test-arg-float64x.h: Likewise.
15367 * math/test-arg-ldouble.h: Likewise.
15368 * math/test-math-narrow.h: Likewise.
15369 * math/test-narrow-macros.c: Likewise.
15370 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
15371 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
15372 test-narrow-macros-ldbl-64.
15373 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
15374
15375 * math/bits/mathcalls-narrow.h: New file.
15376 * include/bits/mathcalls-narrow.h: Likewise.
15377 * math/math-narrow.h: Likewise.
15378 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
15379 (__MATHCALL_NARROW_ARGS_2): Likewise.
15380 (__MATHCALL_NARROW_ARGS_3): Likewise.
15381 (__MATHCALL_NARROW_NORMAL): Likewise.
15382 (__MATHCALL_NARROW_REDIR): Likewise.
15383 (__MATHCALL_NARROW): Likewise.
15384 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
15385 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
15386 defined.
15387 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
15388 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
15389 (libm-narrow-fns): New variable.
15390 (libm-narrow-types-basic): Likewise.
15391 (libm-narrow-types-ldouble-yes): Likewise.
15392 (libm-narrow-types-float128-yes): Likewise.
15393 (libm-narrow-types-float128-alias-yes): Likewise.
15394 (libm-narrow-types): Likewise.
15395 (libm-routines): Add narrowing functions.
15396 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
15397 (libc_feholdexcept_setroundf128): New macro.
15398 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
15399 * sysdeps/ieee754/float128/float128_private.h: Include
15400 <math/math-narrow.h>.
15401 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
15402 Undefine and redefine.
15403 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
15404 (libm_alias_float_ldouble): Undefine and redefine.
15405 (libm_alias_double_ldouble): Likewise.
15406
15407 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
15408
15409 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
15410
15411 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
15412 FPCR/FPSR.
15413
15414 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
15415
15416 * manual/creature.texi: Convert references to gcc.info to gcc.
15417 * manual/stdio.texi: Likewise.
15418 * manual/string.texi: Likewise.
15419
15420 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15421
15422 [BZ #17979]
15423 * posix/bits/types.h (__int_least8_t): New typedef.
15424 (__uint_least8_t): Likewise.
15425 (__int_least16_t): Likewise.
15426 (__uint_least16_t): Likewise.
15427 (__int_least32_t): Likewise.
15428 (__uint_least32_t): Likewise.
15429 (__int_least64_t): Likewise.
15430 (__uint_least64_t): Likewise.
15431 * sysdeps/generic/stdint.h (int_least8_t): Define using
15432 __int_least8_t.
15433 (int_least16_t): Define using __int_least16_t.
15434 (int_least32_t): Define using __int_least32_t.
15435 (int_least64_t): Define using __int_least64_t.
15436 (uint_least8_t): Define using __uint_least8_t.
15437 (uint_least16_t): Define using __uint_least16_t.
15438 (uint_least32_t): Define using __uint_least32_t.
15439 (uint_least64_t): Define using __uint_least64_t.
15440 * wcsmbs/uchar.h: Include <bits/types.h>.
15441 (char16_t): Define using __uint_least16_t conditional only on
15442 [!__USE_ISOCXX11].
15443 (char32_t): Define using __uint_least32_t conditional only on
15444 [!__USE_ISOCXX11].
15445 * wcsmbs/test-char-types.c: New file.
15446 * wcsmbs/Makefile (tests): Add test-char-types.
15447
15448 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15449 version to 4.0.1.
15450
15451 2018-02-07 Zack Weinberg <zackw@panix.com>
15452
15453 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
15454 Delete all contents except for definitions of _G_HAVE_MMAP and
15455 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
15456 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
15457 sysdeps/unix/sysv/linux/_G_config.h. Make same content
15458 change as above.
15459
15460 * libio/libio.h: Don't include bits/_G_config.h here.
15461 Include stddef.h with __need_wchar_t defined. Include
15462 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
15463 Define _IO_iconv_t here, directly.
15464 Don't define _IO_HAVE_ST_BLKSIZE.
15465 * libio/libioP.h: Include _G_config.h here. Move include of
15466 shlib-compat.h up with rest of includes. Simplify conditionals
15467 controlling definition of _IO_JUMPS_OFFSET.
15468
15469 * csu/init.c: Remove always-true #if around entire file.
15470 Don't include stdio.h. Set _IO_stdin_used to hardwired
15471 constant 0x20001, and update commentary.
15472 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
15473 Replace all uses of _G_va_list with __gnuc_va_list.
15474 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
15475 instead of #if _IO_HAVE_ST_BLKSIZE.
15476 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
15477 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
15478 not #ifdef.
15479
15480 * libio/bits/libio.h: Move back to libio/libio.h and adjust
15481 multiple-include guard to match.
15482 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
15483 into this file.
15484 Remove preprocessor conditionals that are always true and/or
15485 redundant to other preprocessor conditionals in the same nest.
15486 Include shlib-compat.h unconditionally.
15487 Error out if _LIBC is not defined, or if _ISOMAC is defined,
15488 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
15489 defined after including stdio.h.
15490 Use __BEGIN_DECLS/__END_DECLS.
15491
15492 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
15493 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
15494 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
15495
15496 2018-02-07 Zack Weinberg <zackw@panix.com>
15497
15498 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
15499 New single-type headers split from _G_config.h.
15500 * libio/bits/types/cookie_io_functions_t.h
15501 * libio/bits/types/struct_FILE.h
15502 New single-type headers split from libio.h.
15503
15504 * libio/Makefile: Install the above new headers. Don't install
15505 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
15506 bits/libio-ldbl.h.
15507 * libio/_G_config.h, libio/libio.h: Delete file.
15508
15509 * libio/bits/libio.h: Remove improper-inclusion guard.
15510 Include stdio.h and don't repeat anything that it does.
15511 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
15512 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
15513 __io_read_fn as cookie_read_function_t,
15514 __io_write_fn as cookie_write_function_t,
15515 __io_seek_fn as cookie_seek_function_t,
15516 __io_close_fn as cookie_close_function_t,
15517 and _IO_cookie_io_functions_t as cookie_io_functions_t.
15518 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
15519 here, in the "compatibility defines" section. Remove an #if 0
15520 block. Use the "body" macros from bits/types/struct_FILE.h to
15521 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
15522 and _IO_ferror_unlocked.
15523 Move prototypes of __uflow and __overflow...
15524
15525 * libio/stdio.h: ...here. Don't include bits/libio.h.
15526 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
15527 directly from stdarg.h. Include bits/types/__fpos_t.h,
15528 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
15529 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
15530 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
15531 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
15532 cookie_io_functions_t, not _IO_cookie_io_functions_t;
15533 __ssize_t, not _IO_ssize_t. Unconditionally define
15534 BUFSIZ as 8192 and EOF as (-1).
15535
15536 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
15537 macros from bits/types/struct_FILE.h instead of _IO_* macros
15538 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
15539 instead of _IO_ssize_t.
15540 * libio/bits/stdio2.h: Similarly.
15541
15542 * libio/iolibio.h: Add multiple-include guard.
15543 Include bits/libio.h after stdio.h.
15544 * libio/libioP.h: Add multiple-include guard.
15545 Include stdio.h and bits/libio.h before iolibio.h.
15546
15547 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
15548 * include/bits/types/cookie_io_functions_t.h
15549 * include/bits/types/struct_FILE.h: New wrappers.
15550
15551 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
15552 Get definitions of _G_fpos_t and _G_fpos64_t from
15553 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
15554 respectively. Remove improper-inclusion guards.
15555
15556 * conform/data/stdio.h-data: Update expectations of va_list.
15557 * scripts/check-installed-headers.sh: Remove special case for
15558 libio.h and _G_config.h.
15559
15560 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15561
15562 [BZ #15105]
15563 [BZ #19463]
15564 * include/sys/sysmacros.h [!_ISOMAC]
15565 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
15566 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
15567 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
15568 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
15569 libc_hidden_proto.
15570 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
15571 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
15572 Likewise.
15573 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
15574 Undefine and redefine to add use __gnu_dev_ prefix.
15575 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
15576 Likewise.
15577 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
15578 and define as hidden inline function.
15579 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
15580 Likewise.
15581 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
15582 Likewise.
15583 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
15584 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
15585 (gnu_dev_minor): Likewise.
15586 (gnu_dev_makedev): Likewise.
15587 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
15588 makedev.
15589 * posix/wordexp.c (exec_comm_child): Likewise.
15590 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
15591 instead of minor and __gnu_dev_major instead of major.
15592 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
15593 __gnu_dev_major instead of major.
15594 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
15595 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
15596 instead of gnu_dev_minor.
15597 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
15598 (SLAVE_P): Likewise.
15599 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
15600 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
15601 instead of major.
15602
15603 [BZ #21313]
15604 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
15605 in another place.
15606 * locale/weightwc.h (findidx): Likewise.
15607
15608 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
15609
15610 * manual/probes.texi (slowlog): Delete documentation of removed probe.
15611 (slowlog_inexact): Likewise
15612 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
15613 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
15614
15615 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
15616
15617 [BZ #22797]
15618 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
15619 missing second underscore to parameter name.
15620
15621 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15622
15623 [BZ #14508]
15624 [BZ #15512]
15625 [BZ #17082]
15626 [BZ #20530]
15627 * bits/byteswap.h: Update file comment. Do not include
15628 <bits/byteswap-16.h>.
15629 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
15630 constant.
15631 (__bswap_16): Define as inline function.
15632 (__bswap_constant_32): Reformat definition.
15633 (__bswap_32): Always define as inline function, not macro, using
15634 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
15635 otherwise __bswap_constant_32.
15636 (__bswap_constant_64): Reformat definition. Do not use
15637 __extension__ here.
15638 (__bswap_64): Always define as inline function, not macro. Use
15639 __extension__ on function definition. Use __builtin_bswap64 if
15640 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
15641 * string/test-endian-file-scope.c: New file.
15642 * string/test-endian-sign-conversion.c: Likewise.
15643 * string/Makefile (headers): Remove bits/byteswap-16.h.
15644 (tests): Add test-endian-file-scope and
15645 test-endian-sign-conversion.
15646 (CFLAGS-test-endian-sign-conversion.c): New variable.
15647 * bits/byteswap-16.h: Remove file.
15648 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
15649 * sysdeps/ia64/bits/byteswap.h: Likewise.
15650 * sysdeps/m68k/bits/byteswap.h: Likewise.
15651 * sysdeps/s390/bits/byteswap-16.h: Likewise.
15652 * sysdeps/s390/bits/byteswap.h: Likewise.
15653 * sysdeps/tile/bits/byteswap.h: Likewise.
15654 * sysdeps/x86/bits/byteswap-16.h: Likewise.
15655 * sysdeps/x86/bits/byteswap.h: Likewise.
15656
15657 [BZ #17721]
15658 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
15659 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
15660 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
15661 199901L] (__restrict): Define to restrict.
15662
15663 [BZ #19667]
15664 * string/testcopy.c: Include <support/support.h>. Do not include
15665 <malloc.h>. Use <support/test-driver.c>.
15666 (main): Rename to do_test. Make static. Use xmalloc instead of
15667 malloc.
15668
15669 [BZ #13575]
15670 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
15671 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
15672 (SSIZE_MAX): Define to INT_MAX.
15673 * posix/test-ssize-max.c: New file.
15674 * posix/Makefile (tests): Add test-ssize-max.
15675
15676 [BZ #19668]
15677 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
15678 <support/support.h>. Do not include <malloc.h>.
15679 (query_auxv): Use xmalloc instead of malloc.
15680
15681 [BZ #14553]
15682 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
15683 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
15684 instead of loff_t.
15685
15686 2018-02-06 Florian Weimer <fweimer@redhat.com>
15687
15688 [BZ #18023]
15689 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15690 Use scratch_buffer instead of extend_alloca.
15691
15692 2018-02-06 Zack Weinberg <zackw@panix.com>
15693
15694 * libio/stdio.h: Don't define getc or putc as macros.
15695 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
15696 not _IO_getc and _IO_putc.
15697
15698 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
15699 * stdio-common/tstgetln.c: Don't redefine ssize_t.
15700
15701 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15702
15703 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
15704 (TCP_FASTOPEN_NO_COOKIE): Likewise.
15705
15706 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
15707
15708 [BZ #14890]
15709 * elf/elf.h (NT_PRFPREG): New macro.
15710 (NT_S390_VXRS_LOW): Likewise.
15711 (NT_S390_VXRS_HIGH): Likewise.
15712 (NT_S390_GS_CB): Likewise.
15713 (NT_S390_GS_BC): Likewise.
15714 (NT_S390_RI_CB): Likewise.
15715
15716 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
15717 (MAP_SYNC): New macro.
15718 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
15719 Likewise.
15720 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
15721 (MAP_SYNC): Likewise.
15722 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
15723 (MAP_SYNC): Likewise.
15724 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
15725 (MAP_SYNC): Likewise.
15726 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
15727 (MAP_SYNC): Likewise.
15728 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
15729 (MAP_SYNC): Likewise.
15730 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
15731 (MAP_SYNC): Likewise.
15732 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
15733 Likewise.
15734 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
15735 Likewise.
15736
15737 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
15738 (MAP_SHARED_VALIDATE): New macro.
15739 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15740 (MAP_SHARED_VALIDATE): Likewise.
15741
15742 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15743
15744 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
15745 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
15746 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
15747
15748 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15749
15750 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
15751 (DT_NUM): Updated to 35.
15752
15753 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15754
15755 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
15756 __builtin_expect with __glibc_likely and __glibc_unlikely.
15757 (elf_machine_rela): Likewise.
15758 (elf_machine_lazy_rel): Likewise.
15759
15760 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15761
15762 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
15763 __builtin_expect with __glibc_likely and __glibc_unlikely.
15764 (elf_machine_lazy_rel): Likewise.
15765
15766 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15767
15768 [BZ #22638]
15769 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
15770 SHARED.
15771 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
15772
15773 2018-02-05 Andreas Schwab <schwab@suse.de>
15774
15775 [BZ #22761]
15776 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
15777 string.
15778
15779 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
15780
15781 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
15782 not check against PTHREAD_STACK_MIN.
15783
15784 2018-02-02 Sean McKean <smckean83@gmail.com>
15785
15786 [BZ #22735]
15787 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
15788
15789 2018-02-02 Florian Weimer <fweimer@redhat.com>
15790
15791 [BZ #22753]
15792 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
15793 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
15794 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
15795 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
15796 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
15797 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
15798 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
15799 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
15800 * manual/llio.texi (Scatter-Gather): Mention offset -1.
15801 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
15802 * misc/tst-preadvwritev2.c (do_test): Call it.
15803 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
15804
15805 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
15806
15807 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
15808
15809 * benchtests/bench-memcmp.c: Print json instead of plain text.
15810
15811 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
15812 every test run.
15813
15814 2018-02-01 Joseph Myers <joseph@codesourcery.com>
15815
15816 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15817 version to 4.15.
15818 (s390_sthyi): New syscall.
15819
15820 * sysdeps/generic/ldbl-classify-compat.h: New file.
15821 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
15822 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
15823 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
15824 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
15825 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
15826 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
15827 * sysdeps/ieee754/dbl-64/s_finite.c: Include
15828 <ldbl-classify-compat.h>.
15829 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15830 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
15831 <ldbl-classify-compat.h>.
15832 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15833 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
15834 <ldbl-classify-compat.h>.
15835 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15836 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
15837 <ldbl-classify-compat.h>.
15838 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15839 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
15840 <ldbl-classify-compat.h>.
15841 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15842 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
15843 <ldbl-classify-compat.h>.
15844 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15845 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
15846 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
15847 * sysdeps/m68k/coldfire/math_private.h: Remove file.
15848 * sysdeps/microblaze/math_private.h: Likewise.
15849 * sysdeps/nios2/math_private.h: Likewise.
15850 * sysdeps/sh/math_private.h: Likewise.
15851
15852 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
15853 * sysdeps/m68k/coldfire/math_private.h: ... here.
15854 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
15855 * sysdeps/tile/math_private.h: Likewise.
15856 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
15857 Remove macro.
15858 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
15859 Likewise.
15860
15861 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
15862 Remove macro.
15863 (libc_fetestexcept): Likewise.
15864 (libc_feupdateenv_test): Likewise.
15865 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
15866 (libc_fetestexcept): Likewise.
15867 (libc_feupdateenv_test): Likewise.
15868 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
15869 (libc_fetestexcept): Likewise.
15870 (libc_feupdateenv_test): Likewise.
15871 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
15872 (libc_fetestexcept): Likewise.
15873 (libc_feupdateenv_test): Likewise.
15874
15875 * sysdeps/generic/math_private.h
15876 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
15877 New inline function.
15878 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
15879 Likewise.
15880
15881 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
15882 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
15883 * sysdeps/generic/math_private.h
15884 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
15885 inline function.
15886 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
15887 Likewise.
15888 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
15889 Likewise.
15890 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
15891 Likewise.
15892 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
15893 Likewise.
15894 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
15895 Likewise.
15896 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
15897 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
15898 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
15899 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
15900 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
15901 (__fegetenv): Likewise.
15902 (fesetenv): Likewise.
15903 (__fesetenv): Likewise.
15904 (feupdateenv): Likewise.
15905 (__feupdateenv): Likewise.
15906 (fegetround): Likewise.
15907 (__fegetround): Likewise.
15908 (fesetround): Likewise.
15909 (__fesetround): Likewise.
15910
15911 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
15912 (feraiseexcept): New macro.
15913 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
15914 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
15915 Remove macro.
15916 (__feraiseexcept): Likewise.
15917 (feclearexcept): Likewise.
15918 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
15919 (__feraiseexcept): Likewise.
15920 (feclearexcept): Likewise.
15921 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
15922 (__feraiseexcept): Likewise.
15923 (feclearexcept): Likewise.
15924 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
15925 (__feraiseexcept): Likewise.
15926 (feclearexcept): Likewise.
15927 (fetestexcept): Likewise.
15928
15929 * sysdeps/m68k/coldfire/math-tests.h: New file.
15930
15931 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
15932 * sysdeps/m68k/bits/fenv.h: ... here.
15933 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
15934 not define.
15935 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
15936 Likewise.
15937 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
15938 Likewise.
15939 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
15940 Likewise.
15941 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
15942 Likewise.
15943 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
15944 Define to 0.
15945 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
15946 (__FE_UNDEFINED): New enum constant.
15947 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
15948 Do not define.
15949 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
15950 Likewise.
15951 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
15952 Likewise.
15953 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
15954 to match generic bits/fenv.h.
15955 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
15956 Do not define.
15957
15958 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
15959 packed on bits.
15960 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
15961 * soft-fp/half.h (union _FP_UNION_H): Likewise.
15962 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
15963 * soft-fp/single.h (union _FP_UNION_S): Likewise.
15964
15965 2018-02-01 Carlos O'Donell <carlos@redhat.com>
15966 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
15967 Joseph Myers <joseph@codesourcery.com>
15968
15969 [BZ #21314]
15970 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
15971 (__log1p): Disable -Wmaybe-uninitialized for -Os around
15972 computation using c.
15973 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
15974 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
15975 computation using c.
15976
15977 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
15978
15979 * version.h (RELEASE): Set to "development".
15980 (VERSION): Set to "2.27.9000".
15981 * NEWS (2.28): New section.
15982
15983 * version.h (RELEASE): Set to "stable".
15984 (VERSION): Set to "2.27".
15985 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
15986
15987 * NEWS: Add the list of bugs fixed in 2.27.
15988
15989 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15990
15991 * stdlib/test-atexit-race-common.c (do_test): Check stack size
15992 against PTHREAD_STACK_MIN.
15993
15994 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
15995
15996 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
15997 New entries.
15998 (Rafal Luzynski, Andreas Schwab): Update.
15999
16000 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
16001
16002 [BZ #10871]
16003 * NEWS: List the languages which actually use the alternative
16004 months feature in this release. Also explain that "alt_mon" and
16005 "ab_alt_mon" are optional.
16006
16007 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
16008
16009 [BZ #22765]
16010 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16011
16012 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
16013
16014 * manual/install.texi (Tools for Compilation): Update the newest
16015 versions of gcc, binutils, texinfo, gawk, bison, and sed.
16016 * INSTALL: Regenerated.
16017
16018 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16019
16020 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
16021 instead of __builtin_expect.
16022
16023 2018-01-30 Florian Weimer <fweimer@redhat.com>
16024
16025 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16026 data.
16027 * nss/tst-nss-getpwent.c (do_test): Likewise.
16028
16029 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16030
16031 [BZ #10871]
16032 * localedata/locales/hr_HR (mon): Rename to...
16033 (alt_mon): This.
16034 (mon): Import from CLDR (genitive case).
16035 (d_t_fmt): Update the comment.
16036
16037 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16038
16039 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16040 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16041 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16042
16043 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16044
16045 * mach/Versions: Fix version when __mach_host_self_ was added.
16046 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16047 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16048 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16049 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16050 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16051 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16052 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16053 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16054 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16055 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16056 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16057 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16058 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16059 || to respect codestyle.
16060 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16061 (do_test_bz20181): Rename accordingly.
16062 * malloc/malloc.c: Include <assert.h>.
16063 (assert): Do not define.
16064 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16065 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16066 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16067 * sysdeps/mach/hurd/hp-timing.h: New file.
16068 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16069
16070 2018-01-29 Darius Rad <darius@bluespec.com>
16071
16072 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16073
16074 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16075
16076 * sysdeps/init_array/crti.S (.section .init_array): Add
16077 PREINIT_FUNCTION when defined.
16078 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16079 * config.h.in: Regenerate.
16080 * manual/platform.texi: Add RISC-V documenation for
16081 __riscv_flush_icache.
16082 * sysdeps/riscv/__longjmp.S: New file.
16083 * sysdeps/riscv/backtrace.c: Likewise.
16084 * sysdeps/riscv/bits/endian.h: Likewise.
16085 * sysdeps/riscv/bits/setjmp.h: Likewise.
16086 * sysdeps/riscv/bits/wordsize.h: Likewise.
16087 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16088 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16089 * sysdeps/riscv/dl-trampoline.S: Likewise.
16090 * sysdeps/riscv/gccframe.h: Likewise.
16091 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16092 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16093 * sysdeps/riscv/machine-gmon.h: Likewise.
16094 * sysdeps/riscv/memusage.h: Likewise.
16095 * sysdeps/riscv/setjmp.S: Likewise.
16096 * sysdeps/riscv/sys/asm.h: Likewise.
16097 * sysdeps/riscv/tls-macros.h: Likewise.
16098 * sysdeps/riscv/dl-tls.h: New file.
16099 * sysdeps/riscv/libc-tls.c: Likewise.
16100 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16101 * sysdeps/riscv/nptl/tls.h: Likewise.
16102 * sysdeps/riscv/stackinfo.h: Likewise.
16103 * sysdeps/riscv/bits/fenv.h: New file.
16104 * sysdeps/riscv/e_sqrtl.c: Likewise.
16105 * sysdeps/riscv/fpu_control.h: Likewise.
16106 * sysdeps/riscv/math-tests.h: Likewise.
16107 * sysdeps/riscv/nofpu/Implies: Likewise.
16108 * sysdeps/riscv/sfp-machine.h: Likewise.
16109 * sysdeps/riscv/tininess.h: Likewise.
16110 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16111 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16112 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16113 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16114 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16115 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16116 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16117 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16118 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16119 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16120 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16121 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16122 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16123 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16124 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16125 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16126 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16127 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16128 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16129 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16130 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16131 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16132 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16133 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16134 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16135 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16136 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16137 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16138 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16139 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16140 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16141 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16142 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16143 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16144 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16145 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16146 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16147 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16148 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16149 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16150 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16151 * sysdeps/riscv/rvf/math_private.h: Likewise.
16152 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16153 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16154 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16155 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16156 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16157 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16158 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16159 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16160 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16161 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16162 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16163 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16164 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16165 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16166 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16167 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16168 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16169 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16170 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16171 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16172 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16173 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16174 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16175 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16176 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16177 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16178 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16179 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16180 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16181 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16182 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16183 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16184 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16185 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16186 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16187 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16188 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16189 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16190 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16191 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16192 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16193 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16194 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16195 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16196 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16197 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16198 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16199 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16200 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16201 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16202 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16203 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16204 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16205 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16206 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16207 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16208 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16209 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16210 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16211 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16212 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16213 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16214 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16215 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16216 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16217 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16218 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16219 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16220 * sysdeps/riscv/Implies: New file.
16221 * sysdeps/riscv/Makefile: Likewise.
16222 * sysdeps/riscv/configure: Likewise.
16223 * sysdeps/riscv/configure.ac: Likewise.
16224 * sysdeps/riscv/nptl/Makefile: Likewise.
16225 * sysdeps/riscv/preconfigure: Likewise.
16226 * sysdeps/riscv/rv64/Implies-after: Likewise.
16227 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16228 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16229 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16230 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16231 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16232 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16233 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16234 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16235 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16236 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16237 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16238 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16239 (Config): Likewise.
16240
16241 2018-01-29 Florian Weimer <fweimer@redhat.com>
16242
16243 [BZ #22701]
16244 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16245 libnsl_hidden_proto.
16246 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16247 libnsl_hidden_proto.
16248 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16249 * nis/Makefile (libnsl-routines): Add nss-default only for
16250 build-obsolete-nsl.
16251 * nis/nis_defaults.c (__nis_default_ttl): Add
16252 libnsl_hidden_nolink_def.
16253 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16254 declaration.
16255 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16256 * nis/ypclnt.c (yp_maplist): Likewise.
16257
16258 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16259
16260 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16261 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16262
16263 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16264
16265 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16266 clean -dxfq for git updates when replacing sources.
16267
16268 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16269 --disable-libcilkrts unconditionally, not just for the final GCC
16270 build for Hurd.
16271
16272 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16273 version to 4.15.
16274
16275 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16276
16277 [BZ #10871]
16278 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16279 case).
16280
16281 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16282
16283 [BZ #10871]
16284 * localedata/locales/be_BY (mon): Rename to...
16285 (alt_mon): This, then synchronize with CLDR (nominative case).
16286 (abmon): Rename to...
16287 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16288 (mon): Import from CLDR (genitive case).
16289 (abmon): Likewise.
16290 * localedata/locales/be_BY@latin (mon): Rename to...
16291 (alt_mon): This.
16292 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16293
16294 * localedata/locales/be_BY@latin (lang_name): Reworded to
16295 "biełaruskaja mova".
16296
16297 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16298
16299 [BZ #10871]
16300 * localedata/locales/el_CY (mon): Renamed to...
16301 (alt_mon): This.
16302 (mon): Import from CLDR (genitive case).
16303 * localedata/locales/el_GR: Likewise.
16304
16305 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16306
16307 [BZ #10871]
16308 * localedata/locales/ru_RU (mon): Rename to...
16309 (alt_mon): This.
16310 (abmon): Rename to...
16311 (ab_alt_mon): This.
16312 (mon): Import from CLDR (genitive case).
16313 (abmon): Copy from the old content except the 5th month which is
16314 now in the genitive case, even when abbreviated.
16315 * localedata/locales/ru_UA: Likewise.
16316 * time/tst-strptime.c (day_tests): Add an actual example of
16317 a difference between %b and %Ob in Russian.
16318
16319 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16320
16321 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16322 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16323 a `c' variable.
16324 * resolv/res-close.c: Include <stdlib.h>.
16325 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16326 <sys/wait.h>, <time.h>, <sys/uio.h>.
16327 (NOT_CANCEL_H): Add inclusion guard.
16328 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16329 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16330 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16331 return 0.
16332 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16333 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16334 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16335 instead of void *.
16336 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16337 timer_ptr2id to cast struct timer_node * to void *.
16338 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16339 --disable-libcilkrts to gcc configure.
16340 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16341 and make them the default for now.
16342 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16343 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16344 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16345 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
16346 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
16347 MACH_IPC_COMPAT.
16348 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
16349 __task_terminate would ever return successfully.
16350 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
16351 to global scope.
16352 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
16353 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16354 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16355 critical section to make code simpler and avoid warning.
16356 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16357 critical section to make code simpler and avoid warning.
16358 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16359 const char * instead of char *.
16360 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16361 __hurd_file_name_split, hurd_file_name_split,
16362 __hurd_directory_name_split, hurd_directory_name_split,
16363 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16364 hurd_file_name_path_lookup): Make lookup function parameter take a
16365 const char *name instead of char *name.
16366 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16367 __hurd_directory_name_split): Likewise.
16368 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16369 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
16370 * sysdeps/mach/hurd/check_native.c: New file.
16371 * sysdeps/mach/hurd/check_pf.c: New file.
16372 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
16373 (__freeifaddrs): Define macro to freeifaddrs.
16374 * sysdeps/mach/hurd/libhurduser.abilist: New file.
16375 * sysdeps/mach/libmachuser.abilist: New file.
16376 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
16377 (do_test_bz20181): Rename accordingly.
16378 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
16379 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
16380 <sys/mount.h>.
16381 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
16382 version only if __USE_EXTERN_INLINES is defined.
16383 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
16384 __hurd_sockfail): Likewise.
16385 (_hurd_fd_get): Always declare functions, and provide inline versions
16386 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
16387 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
16388 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
16389 _hurd_port_set): Always declare functions, and provide inline versions
16390 only if __USE_EXTERN_INLINES and _LIBC are defined and
16391 IS_IN(libc).
16392 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
16393 _hurd_critical_section_unlock): Likewise.
16394 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
16395 * __hurd_threadvar_location): Likewise.
16396 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
16397 _hurd_userlink_clear): Likewise.
16398 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
16399 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
16400 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
16401 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
16402 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
16403 __spin_lock_locked): Likewise.
16404 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
16405 __spin_lock_locked): Likewise.
16406 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
16407 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
16408 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
16409 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
16410 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
16411 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
16412 _POSIX_NO_TRUNC): Define to 0.
16413 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
16414 check size against PTHREAD_STACK_MIN.
16415 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
16416 IS_IN(libpthread)]: Include <sigsetops.h>.
16417 * mach/Makefile (user-interfaces): Add mach/gnumach.
16418 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
16419 * sysdeps/mach/configure (mach_interface_list): Regenerate.
16420 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
16421 instead of invalid -1.
16422 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
16423 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
16424 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
16425 <net/ppp_defs.h>.
16426
16427 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
16428
16429 * hurd/fcntl-internal.h: New file.
16430
16431 2018-01-27 James Clarke <jrtc27@jrtc27.com>
16432
16433 * sysdeps/hppa/fpu/libm-test-ulps: Update.
16434
16435 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16436
16437 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
16438
16439 [BZ #22701]
16440 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
16441 Build only shared objects.
16442
16443 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16444
16445 * README: Update for hppa.
16446
16447 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
16448
16449 * sysdeps/sparc/fpu/libm-test-ulps: Update
16450 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
16451
16452 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16453
16454 Revert:
16455
16456 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16457
16458 [BZ #22563]
16459 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16460 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
16461 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16462 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
16463 to feature_1.
16464
16465 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16466
16467 [BZ #22563]
16468 * bits/types/__cancel_jmp_buf_tag.h: New file.
16469 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
16470 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
16471 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
16472 * nptl/Makefile (headers): Add
16473 bits/types/__cancel_jmp_buf_tag.h.
16474 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
16475 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
16476 * sysdeps/nptl/pthread.h: Include
16477 <bits/types/__cancel_jmp_buf_tag.h>.
16478 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
16479 __cancel_jmp_buf.
16480 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
16481
16482 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
16483
16484 [BZ #10871]
16485 * localedata/locales/uk_UA (mon): Renamed to...
16486 (alt_mon): This.
16487 (alt_digits): "0" removed and then renamed to...
16488 (mon): This.
16489 (date_fmt): Definition changed not to use the alternative
16490 digits hack.
16491
16492 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
16493
16494 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
16495 FLAG_RISCV_FLOAT_ABI_DOUBLE.
16496 * elf/elf.h (EF_RISCV_RVC): New define.
16497 (EF_RISCV_FLOAT_ABI): Likewise.
16498 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
16499 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
16500 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16501 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
16502 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
16503 define.
16504 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16505
16506 2018-01-25 Andreas Schwab <schwab@suse.de>
16507
16508 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
16509 single quotes.
16510 * sysdeps/gnu/configure: Regenerate.
16511 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
16512 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
16513 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
16514 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
16515 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
16516 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
16517 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
16518 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
16519
16520 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16521
16522 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
16523 URL, and run autoconf, make it the default for now.
16524
16525 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16526
16527 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16528 soft-float ColdFire configuration.
16529
16530 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
16531 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
16532 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
16533
16534 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
16535 MicroBlaze file.
16536
16537 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
16538 ....
16539 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
16540 ... here.
16541 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
16542 New file.
16543
16544 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
16545 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
16546 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
16547 file.
16548
16549 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16550
16551 [BZ #22742]
16552 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
16553 Rename to __reserved and add comment.
16554 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
16555 Rename to __reserved.
16556
16557 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16558
16559 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16560 i686-gnu configurations.
16561 (Context.run_builds): Include mig, gnumach and hurd in components
16562 considered.
16563 (Context.checkout): Add mig, gnumach and hurd to components.
16564 (Context.checkout_tar): Add URL mappings for mig, gnumach and
16565 hurd.
16566 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
16567 (Config.build): Install gnumach headers, build mig and install
16568 hurd headers for 'gnu' OS.
16569 (Config.install_gnumach_headers): New function.
16570 (Config.install_hurd_headers): Likewise.
16571 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
16572 when building for 'gnu' OS.
16573
16574 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
16575
16576 * manual/tunables.texi (Hardware Capability Tunables): Fix
16577 spelling.
16578
16579 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
16580
16581 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
16582 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
16583 (ALTMON_11, ALTMON_12): Improve documentation.
16584 * manual/time.texi (strftime): Likewise.
16585
16586 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16587
16588 [BZ #10871]
16589 * localedata/locales/pl_PL: Alternative month names added,
16590 primary month names are genitive now.
16591 * time/tst-strptime.c (day_tests): Actually use a genitive case
16592 of a month name in Polish language.
16593
16594 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16595
16596 [BZ #10871]
16597 * manual/locale.texi: Document ALTMON_1..12 constants for
16598 nl_langinfo. Specify when to use ALTMON instead of MON.
16599 * manual/time.texi (strftime, strptime): Document GNU extension
16600 permitting O modifier with %B and %b. Specify when to use
16601 %OB instead of %B.
16602
16603 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16604
16605 [BZ #10871]
16606 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
16607 names, define them as the same as abbreviated month names explicitly.
16608 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
16609 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
16610 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
16611 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
16612 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
16613 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
16614 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
16615 _NL_WABALTMON_12): New enum constants.
16616 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
16617 wab_alt_mon, and ab_alt_mon_defined members.
16618 (time_output): Output ab_alt_mon and wab_alt_mon members.
16619 (time_read): Read them, initialize them as copies of abmon and wabmon
16620 respectively if they are missing, initialize ab_alt_mon_defined.
16621 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
16622 * locale/programs/locfile-kw.h: Regenerate.
16623 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
16624 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
16625 and ru_RU.UTF-8.
16626 * time/strftime_l.c (a_altmonth, aam_len): New macros.
16627 [!COMPILE_WIDE] (ABALTMON_1): New macro.
16628 (__strftime_internal): Handle %Ob and %Oh formats.
16629 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
16630 (__strptime_internal): Handle %Ob and %Oh formats.
16631 * time/tst-strptime.c (day_tests): Add more tests to parse different
16632 forms of month names including the new %Ob format specifier.
16633
16634 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16635
16636 [BZ #10871]
16637 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
16638 define them as the same as primary full month names explicitly.
16639 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
16640 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
16641 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
16642 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
16643 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
16644 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
16645 _NL_WALTMON_12): New enum constants.
16646 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
16647 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
16648 macros.
16649 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
16650 walt_mon, and alt_mon_defined members.
16651 (time_output): Output alt_mon and walt_mon members.
16652 (time_read): Read them, initialize them as copies of mon and wmon
16653 respectively if they are missing, initialize alt_mon_defined.
16654 * locale/programs/locfile-kw.gperf (alt_mon): Define.
16655 * locale/programs/locfile-kw.h: Regenerate.
16656 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
16657 * localedata/tst-langinfo.c (map): Add tests for the new constants
16658 ALTMON_1 .. ALTMON_12.
16659 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
16660 and pl_PL.UTF-8.
16661 * time/strftime_l.c (f_altmonth): New macro.
16662 (__strftime_internal): Handle %OB format.
16663 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
16664 (__strptime_internal): Handle %OB format.
16665 * time/tst-strptime.c (day_tests): Add tests to parse different forms
16666 of month names including the new %OB format specifier.
16667
16668 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16669
16670 [BZ #22685]
16671 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
16672 from ABORT_TRANSACTION.
16673 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
16674 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
16675 ABORT_TRANSACTION_IMPL): Likewise.
16676 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
16677 Linux code, but remove the code that aborts transactions.
16678
16679 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
16680
16681 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
16682
16683 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
16684
16685 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
16686 in date: "2004-14-09" should be "2004-09-14".
16687 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
16688 "2003-15-09" should be "2003-09-15".
16689
16690 2018-01-18 Arjun Shankar <arjun@redhat.com>
16691
16692 [BZ #22343]
16693 [BZ #22774]
16694 CVE-2018-6485
16695 CVE-2018-6551
16696 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
16697 after padding.
16698 (_int_memalign): check for integer overflow before calling
16699 _int_malloc.
16700 * malloc/tst-malloc-too-large.c: New test.
16701 * malloc/Makefile: Add tst-malloc-too-large.
16702
16703 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
16704
16705 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
16706 in date: "2017-24-07" should be "2017-07-24".
16707 * localedata/locales/mai_IN: Likewise.
16708 * localedata/locales/mai_NP: Likewise.
16709
16710 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
16711
16712 * po/ru.po: Update translations.
16713
16714 2018-01-17 Joseph Myers <joseph@codesourcery.com>
16715
16716 [BZ #22719]
16717 * sysdeps/hppa/backtrace.c: New file.
16718
16719 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
16720
16721 [BZ #22715]
16722 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
16723 align La_x86_64_retval to VEC_SIZE.
16724
16725 2018-01-16 Joseph Myers <joseph@codesourcery.com>
16726
16727 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
16728 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
16729
16730 2018-01-16 Florian Weimer <fweimer@redhat.com>
16731
16732 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
16733 Move tst-thread-exit-clobber ...
16734 [$(CXX)] (tests-unsupported): ... to here.
16735
16736 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16737
16738 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
16739 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
16740 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16741 (_dl_aarch64_cap_flags): Update.
16742 (_DL_HWCAP_COUNT): Update.
16743
16744 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16745
16746 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
16747 (_DL_HWCAP_LAST): Remove.
16748 (_DL_HWCAP_COUNT): Move to ...
16749 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16750 (_DL_HWCAP_COUNT): ... here.
16751
16752 2018-01-16 Florian Weimer <fweimer@redhat.com>
16753
16754 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
16755 mode with GNU extensions.
16756
16757 2018-01-15 Alan Hayward <alan.hayward@arm.com>
16758
16759 * elf/elf.h (NT_ARM_SVE): Define.
16760
16761 2018-01-15 Florian Weimer <fweimer@redhat.com>
16762
16763 [BZ #22636]
16764 * nptl/tst-minstack-throw.cc: New file.
16765 * nptl/Makefile (tests): Add tst-minstack-throw.
16766 (LDLIBS-tst-minstack-throw): Link with libstdc++.
16767 [!CXX] (tests-unsupported): Add tst-minstack-throw.
16768
16769 2018-01-15 Joseph Myers <joseph@codesourcery.com>
16770
16771 * scripts/build-many-glibcs.py (Context.checkout): Default
16772 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
16773 version to 1.1.0.
16774
16775 2018-01-13 Carlos O'Donell <carlos@redhat.com>
16776
16777 [BZ #22707]
16778 * elf/elf.h (DF_1_STUB): Define.
16779 (DF_1_PIE): Define.
16780
16781 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16782
16783 [BZ #22697]
16784 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
16785 Do not add 0.5 to integer or out-of-range arguments.
16786
16787 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16788
16789 * po/bg.po: Update translations.
16790 * po/cs.po: Likewise.
16791 * po/de.po: Likewise.
16792 * po/ko.po: Likewise.
16793 * po/pl.po: Likewise.
16794 * po/sv.po: Likewise.
16795 * po/uk.po: Likewise.
16796 * po/vi.po: Likewise.
16797
16798 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16799
16800 * aarch64/start.S (_start): Use __wrap_main.
16801 (__wrap_main): New local symbol.
16802
16803 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16804
16805 [BZ #22679]
16806 CVE-2018-1000001
16807 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
16808 generic_getcwd if the path returned by getcwd syscall is not absolute.
16809 * io/tst-getcwd-abspath.c: New test.
16810 * io/Makefile (tests): Add tst-getcwd-abspath.
16811
16812 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
16813
16814 * malloc/malloc.c (malloc_consolidate): Add size check.
16815
16816 2018-01-12 Florian Weimer <fweimer@redhat.com>
16817
16818 * support/write_message.c (write_message): Preserve errno.
16819 * support/check.c (print_failure): Likewise.
16820 * support/support_test_verify_impl.c (support_test_verify_impl):
16821 Likewise.
16822 * support/support_test_compare_failure.c
16823 (support_test_compare_failure): Likewise.
16824
16825 2018-01-12 Florian Weimer <fweimer@redhat.com>
16826
16827 [BZ #22701]
16828 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
16829 Prevent installation of libnsl.so.
16830 (libnsl-inhibit-o): Do not build (or install) static libraries.
16831
16832 2018-01-12 Egmont Koblinger <egmont@gmail.com>
16833
16834 [BZ #22657]
16835 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
16836 before the day number which may produce a double space.
16837 (date_fmt): Likewise.
16838
16839 2018-01-12 Joseph Myers <joseph@codesourcery.com>
16840
16841 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
16842 instead of fegetenv.
16843
16844 2018-01-11 Joseph Myers <joseph@codesourcery.com>
16845
16846 [BZ #22702]
16847 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
16848 comment to say exceptions are discarded.
16849 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
16850 __fegetenv.
16851 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
16852 be enabled.
16853
16854 2018-01-11 Florian Weimer <fweimer@redhat.com>
16855
16856 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
16857 and error message.
16858
16859 2018-01-11 Florian Weimer <fweimer@redhat.com>
16860
16861 [BZ #22636]
16862 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
16863 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
16864
16865 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16866
16867 [BZ #22693]
16868 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
16869 negative arguments in test for NaN or infinity argument.
16870
16871 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
16872
16873 * po/libc.pot: Regenerate.
16874
16875 2018-01-10 Florian Weimer <fweimer@redhat.com>
16876
16877 [BZ #22636]
16878 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
16879 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
16880
16881 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
16882
16883 * hurd/hurd/fd.h: Include <fcntl.h>
16884 (__hurd_at_flags): New function.
16885 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
16886 with call to __hurd_at_flags.
16887 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
16888 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
16889 __faccessat
16890 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
16891 (__access_noerrno): Use __faccessat_common instead of access_common.
16892 (__access): Likewise.
16893 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
16894 with a call to __faccessat.
16895 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
16896 (__faccessat_common): ... this. Move implementation of __access into it when
16897 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
16898 reauthenticate_cwdir_at helper to implement AT mechanism.
16899 (__faccessat_noerrno): New function, just calls __faccessat_common.
16900 (__faccessat): New function, just calls __faccessat_common.
16901 (faccessat): Define weak alias.
16902
16903 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16904
16905 [BZ #22691]
16906 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16907 (CFLAGS-s_fmaxmagl.c): New variable.
16908 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
16909
16910 [BZ #22690]
16911 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
16912 long int for arguments of possibly overflowing addition or
16913 subtraction.
16914 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
16915
16916 2018-01-09 Joseph Myers <joseph@codesourcery.com>
16917
16918 [BZ #22688]
16919 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16920 (CFLAGS-e_remainderl.c): New variable.
16921
16922 [BZ #22687]
16923 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
16924 variable.
16925 (CFLAGS-s_cacoshl.c): Likewise.
16926 (CFLAGS-s_casinhl.c): Likewise.
16927 (CFLAGS-s_catanl.c): Likewise.
16928 (CFLAGS-s_catanhl.c): Likewise.
16929 (CFLAGS-s_cexpl.c): Likewise.
16930 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
16931 (CFLAGS-s_csinhl.c): Likewise.
16932 (CFLAGS-s_clogl.c): Likewise.
16933 (CFLAGS-s_clog10l.c): Likewise.
16934 (CFLAGS-s_csinl.c): Likewise.
16935 (CFLAGS-s_csqrtl.c): Likewise.
16936
16937 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
16938 2017-01-09 Svante Signell <svante.signell@gmail.com>
16939
16940 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
16941 (_hurd_exec_paths): New function.
16942 * hurd/hurd.h (_hurd_exec): Deprecate function.
16943 (_hurd_exec_paths): Declare function.
16944 * hurd/Versions: Export _hurd_exec_paths.
16945 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
16946 (__execve): Use __getcwd to build absolute path, and use
16947 _hurd_exec_paths instead of _hurd_exec.
16948 * sysdeps/mach/hurd/spawni.c: Likewise.
16949 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
16950 _hurd_exec.
16951
16952 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
16953
16954 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
16955 test instead of failing in case of ENOENT returned by posix_openpt.
16956
16957 2018-01-08 Florian Weimer <fweimer@redhat.com>
16958
16959 resolv: Support binary labels in test framework.
16960 * support/resolv_test.c (struct to_be_freed): Remove.
16961 (struct compressed_name): New.
16962 (allocate_compressed_name, ascii_tolower)
16963 (compare_compressed_name): New functions.
16964 (struct resolv_response_builder): Update type of
16965 compression_offsets for use with tsearch. Rempve to_be_freed.
16966 (response_push_pointer_to_free): Remove function.
16967 (resolv_response_add_name): Rewrite using struct compressed_name
16968 and tsearch instead of hsearch_r.
16969 (response_builder_allocate): Remove initialization of
16970 compression_offsets.
16971 (response_builder_free): Update for removal of to_be_freed. Use
16972 tdestroy instead of hdestroy_r.
16973 * resolv/Makefile (tests): Add tst-resolv-binary.
16974 (tst-resolv-binary): Link with -lresolv -lpthread.
16975
16976 2018-01-08 Florian Weimer <fweimer@redhat.com>
16977
16978 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
16979 time. Pass positive flag instead of negative flag to
16980 support_test_compare_failure.
16981 (support_test_compare_failure): Change negative parameter to
16982 positive.
16983 * support/support_test_compare_failure.c (report)
16984 (support_test_compare_failure): Likewise.
16985 * support/tst-test_compare.c (return_ssize_t, return_int): New.
16986 (do_test): Check int/size_t, ssize_t/size_t comparisons.
16987
16988 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
16989
16990 [BZ #22637]
16991 * nptl/descr.h (stackblock, stackblock_size): Update comments.
16992 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
16993 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
16994 stacksize.
16995 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
16996
16997 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
16998
16999 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17000 Add s_sincosf-sse2 and s_sincosf-fma.
17001 (CFLAGS-s_sincosf-fma.c): New.
17002 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17003 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17004 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17005 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17006 __sincosf is defined.
17007
17008 2018-01-08 Florian Weimer <fweimer@redhat.com>
17009
17010 * nptl/tst-thread-exit-clobber.cc: New file.
17011 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17012 C++11 mode.
17013 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17014 (tests): Add tst-thread-exit-clobber.
17015 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
17016
17017 2018-01-08 Florian Weimer <fweimer@redhat.com>
17018
17019 * support/check.h (support_static_assert): Define.
17020 (TEST_COMPARE): Use it.
17021
17022 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17023
17024 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17025 [!__RLIM_T_MATCHES_RLIM64_T]
17026 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17027 __getrlimit64. Add libc_hidden_weak.
17028
17029 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17030
17031 * elf/elf.h (R_RISCV_NONE): New define.
17032 (R_RISCV_32): Likewise.
17033 (R_RISCV_64): Likewise.
17034 (R_RISCV_RELATIVE): Likewise.
17035 (R_RISCV_COPY): Likewise.
17036 (R_RISCV_JUMP_SLOT): Likewise.
17037 (R_RISCV_TLS_DTPMOD32): Likewise.
17038 (R_RISCV_TLS_DTPMOD64): Likewise.
17039 (R_RISCV_TLS_DTPREL32): Likewise.
17040 (R_RISCV_TLS_DTPREL64): Likewise.
17041 (R_RISCV_TLS_TPREL32): Likewise.
17042 (R_RISCV_TLS_TPREL64): Likewise.
17043 * Makerules (make-link-multidir): Make directories before linking into
17044 them.
17045 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17046 define.
17047 (VDSO_HASH_LINUX_4_15): Likewise.
17048 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17049 in subdirectories of lib.
17050 * nptl/Makefile (/librt.so): Always depend on
17051 "$(shared-thread-library)".
17052
17053 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17054
17055 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17056 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17057 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17058 (___tls_get_addr).
17059 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17060 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17061 "-O2 -march=i686".
17062 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17063 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17064 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17065 * sysdeps/gnu/glob-lstat-compat.c: New file.
17066 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17067 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17068
17069 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17070
17071 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17072 Reserve 16 chars to reloc_addr before calling _itoa_word.
17073
17074 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17075
17076 [BZ #22678]
17077 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17078 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17079
17080 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17081 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17082
17083 * resource/tst-getrlimit.c: Add copyright header.
17084
17085 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17086 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17087
17088 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17089 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17090 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17091 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17092 instead.
17093 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17094 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17095 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17096 RLIM64_INFINITY): Fix values to match the kernel ones.
17097 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17098 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17099 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17100 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17101 getrlimit64@@GLIBC_2_27.
17102 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17103 and setrlimit64.
17104 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17105 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17106 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17107 setrlimit, getrlimit64 and setrlimit64.
17108
17109 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17110
17111 [BZ #22648]
17112 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17113 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17114
17115 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17116
17117 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17118 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17119 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17120
17121 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17122
17123 [BZ #15479]
17124 [BZ #22666]
17125 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17126 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17127
17128 [BZ #15479]
17129 [BZ #22665]
17130 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17131 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17132 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17133 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17134
17135 2018-01-04 Florian Weimer <fweimer@redhat.com>
17136
17137 [BZ #22667]
17138 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17139 Align the stack before calling exit.
17140 * stdlib/tst-makecontext-align.c: New file.
17141 * stdlib/Makefile (tests): Add tst-makecontext-align.
17142
17143 2018-01-04 Florian Weimer <fweimer@redhat.com>
17144
17145 Add support for calling dlvsym from libc.so.
17146 * include/dlfcn.h (__libc_dlvsym): Declare.
17147 * elf/Makefile (tests-static-internal): Add
17148 tst-libc_dlvsym-static.
17149 (tests-internal): Add tst-libc_dlvsym.
17150 (modules-names): Add tst-libc_dlvsym-dso.
17151 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17152 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17153 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17154 object tst-libc_dlvsym-dso.so needs to be built before running
17155 these tests.
17156 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17157 * elf/Versions: Export __libc_dlvsym.
17158 * elf/dl-libc.c (struct do_dlvsym_args): New.
17159 (do_dlvsym, __libc_dlvsym): New functions.
17160 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17161 (_dl_open_hook2): New variable.
17162 (__libc_register_dl_open_hook): Set it.
17163 * elf/tst-libc_dlvsym-dso.c: New file.
17164 * elf/tst-libc_dlvsym-static.c: Likewise.
17165 * elf/tst-libc_dlvsym.c: Likewise.
17166 * elf/tst-libc_dlvsym.h: Likewise.
17167
17168 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17169
17170 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17171 include <sys/mount.h>.
17172
17173 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17174
17175 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17176 Add __NO_MATH_ERRNO__ check.
17177
17178 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17179
17180 * sysdeps/mips/mips32/libm-test-ulps: Update.
17181 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17182
17183 2018-01-02 Florian Weimer <fweimer@redhat.com>
17184
17185 * misc/tst-pselect.c: Add copyright header.
17186
17187 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17188
17189 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17190 comment.
17191 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17192 comment.
17193 (settrlimit): Rename into setrlimit.
17194 (__sttrlimit): Rename into __setrlimit.
17195
17196 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17197 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17198 never defined in that case.
17199
17200 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17201
17202 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17203
17204 * sysdeps/arm/libm-test-ulps: Update.
17205
17206 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17207 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17208
17209 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17210
17211 * NEWS: Add cosf and sincosf to list of optimized functions.
17212
17213 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17214
17215 [BZ #22660]
17216 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17217 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17218 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17219 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17220
17221 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17222
17223 [BZ #22433]
17224 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17225
17226 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17227 making a copy of it.
17228
17229 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17230
17231 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17232 trailing whitespace removed.
17233 * scripts/config.guess: Update to version 2018-01-01.
17234 * scripts/config.sub: Update to version 2018-01-01.
17235 * scripts/move-if-change: Update from gnulib.
17236
17237 * NEWS: Update copyright dates.
17238 * catgets/gencat.c (print_version): Likewise.
17239 * csu/version.c (banner): Likewise.
17240 * debug/catchsegv.sh: Likewise.
17241 * debug/pcprofiledump.c (print_version): Likewise.
17242 * debug/xtrace.sh (do_version): Likewise.
17243 * elf/ldconfig.c (print_version): Likewise.
17244 * elf/ldd.bash.in: Likewise.
17245 * elf/pldd.c (print_version): Likewise.
17246 * elf/sotruss.sh: Likewise.
17247 * elf/sprof.c (print_version): Likewise.
17248 * iconv/iconv_prog.c (print_version): Likewise.
17249 * iconv/iconvconfig.c (print_version): Likewise.
17250 * locale/programs/locale.c (print_version): Likewise.
17251 * locale/programs/localedef.c (print_version): Likewise.
17252 * login/programs/pt_chown.c (print_version): Likewise.
17253 * malloc/memusage.sh (do_version): Likewise.
17254 * malloc/memusagestat.c (print_version): Likewise.
17255 * malloc/mtrace.pl: Likewise.
17256 * manual/libc.texinfo: Likewise.
17257 * nptl/version.c (banner): Likewise.
17258 * nscd/nscd.c (print_version): Likewise.
17259 * nss/getent.c (print_version): Likewise.
17260 * nss/makedb.c (print_version): Likewise.
17261 * posix/getconf.c (main): Likewise.
17262 * scripts/test-installation.pl: Likewise.
17263 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17264
17265 * All files with FSF copyright notices: Update copyright dates
17266 using scripts/update-copyrights.
17267 * locale/programs/charmap-kw.h: Regenerated.
17268 * locale/programs/locfile-kw.h: Likewise.
17269
17270 2017-12-31 Zack Weinberg <zackw@panix.com>
17271
17272 * libio/bits/libio-ldbl.h: Correct check for improper
17273 inclusion. Add own multiple include guard.
17274
17275 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17276 Dmitry V. Levin <ldv@altlinux.org>
17277
17278 [BZ #22625]
17279 CVE-2017-16997
17280 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17281 string token expansion. Check for NULL pointer or empty string possibly
17282 returned by expand_dynamic_string_token.
17283 (decompose_rpath): Check for empty path after dynamic string
17284 token expansion.
17285
17286 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17287
17288 [BZ #22433]
17289 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17290
17291 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17292 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17293 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17294 and PTRACE_SYSCALL.
17295 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17296 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17297 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17298 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17299 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17300 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17301
17302 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17303 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17304 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17305 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17306 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17307 bits/ptrace-shared.h.
17308 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17309 <bits/ptrace-shared.h>.
17310 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17311 __ptrace_peeksiginfo_flags, ptrace): Remove.
17312 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17313 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17314 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17315 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17316 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17317
17318 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17319
17320 [BZ #17804]
17321 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17322 end of the loop. Improve comments.
17323
17324 2017-12-29 Zack Weinberg <zackw@panix.com>
17325
17326 [BZ #22615]
17327 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17328 might be set on success.
17329
17330 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17331
17332 [BZ #22611]
17333 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17334 is unchanged on success.
17335
17336 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17337
17338 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17339 updated.
17340 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17341 expand_dynamic_string_token): Likewise.
17342 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17343 is_path argument.
17344
17345 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
17346 contains ':'.
17347
17348 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
17349 is set and name contains ':', and all code depending on these checks.
17350
17351 2017-12-24 Zack Weinberg <zackw@panix.com>
17352
17353 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17354 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17355 respectively.
17356 * libio/libio.h: Rename the original version of this file to
17357 libio/bits/libio.h. Error out if not included by stdio.h or the
17358 stub libio.h.
17359 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17360 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17361 if not included by bits/libio.h or the stub _G_config.h.
17362 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17363 sysdeps/unix/sysv/linux/bits. Error out if not included by
17364 bits/libio.h or the stub _G_config.h.
17365 * libio/stdio.h: Include bits/libio.h, not libio.h.
17366 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17367 well as libio.h and _G_config.h.
17368
17369 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
17370 * libio/strfile.h, stdio-common/vfscanf.c
17371 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
17372 Include stdio.h, not _G_config.h nor libio.h.
17373 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
17374 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
17375
17376 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
17377
17378 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
17379
17380 [BZ #22347]
17381 * stdlib/getrandom.c (getrandom): Fix comment.
17382 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
17383
17384 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
17385
17386 [BZ #21161]
17387 * manual/arith.texi (strtoul): Fix a typo.
17388
17389 [BZ #22596]
17390 * manual/arith.texi (finite): Fix the description of the return
17391 value.
17392
17393 2017-12-22 Eric Blake <ebb9@byu.net>
17394
17395 Avoid gcc warnings on cygwin
17396 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17397 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17398 Avoid unused variable.
17399
17400 2017-12-22 Florian Weimer <fweimer@redhat.com>
17401
17402 * io/Makefile (routines): Add copy_file_range.
17403 (tests): Add tst-copy_file_range.
17404 (tests-static, tests-internal): Add tst-copy_file_range-compat.
17405 * io/Versions (GLIBC_2.27): Export copy_file_range.
17406 * io/copy_file_range-compat.c: New file.
17407 * io/copy_file_range.c: Likewise.
17408 * io/tst-copy_file_range-compat.c: Likewise.
17409 * io/tst-copy_file_range.c: Likewise.
17410 * manual/llio.texi (Copying File Data): New section.
17411 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
17412 * support/Makefile (libsupport-routines): Add support-xfstat,
17413 xftruncate, xlseek.
17414 * support/support-xfstat.c: New file.
17415 * support/xftruncate.c: Likewise.
17416 * support/xlseek.c: Likewise.
17417 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
17418 * sysdeps/unix/sysv/linux/**.abilist: Update.
17419 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
17420
17421 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
17422
17423 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17424 disable-multi-arch variant to aarch64-linux-gnu.
17425
17426 2017-12-20 Joseph Myers <joseph@codesourcery.com>
17427
17428 * manual/texinfo.tex: Update to version 2017-12-18.20 with
17429 trailing whitespace removed.
17430 * scripts/config.guess: Update to version 2017-12-17.
17431 * scripts/config.sub: Update to version 2017-11-23.
17432 * scripts/install-sh: Update to version 2017-09-23.17.
17433 * scripts/move-if-change: Update to version 2017-09-13 06:45.
17434
17435 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17436
17437 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
17438 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17439 * sysdeps/tile/_mcount.S (__mcount): Likewise.
17440 * sysdeps/tile/crti.S (_init, _fini): Likewise.
17441 * sysdeps/tile/crtn.S: Likewise.
17442 * sysdeps/tile/dl-start.S (_start): Likewise.
17443 * sysdeps/tile/dl-trampoline.S: Likewise.
17444 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
17445 * sysdeps/tile/start.S (_start): Likewise.
17446 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
17447 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
17448 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
17449 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
17450 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
17451 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
17452 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
17453
17454 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
17455 comment.
17456 * sysdeps/tile/preconfigure: Remove tilegx folder.
17457 * sysdeps/tile/tilegx/Implies: Move definitions to ...
17458 * sysdeps/tile/Implies: ... here.
17459 * sysdeps/tile/tilegx/Makefile: Move rules to ...
17460 * sysdeps/tile/Makefile: ... here.
17461 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
17462 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
17463 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
17464 * sysdeps/tile/bits/wordsize.h: ... here.
17465 * sysdeps/tile/tilegx/*: Move to ...
17466 * sysdeps/tile/*: ... here.
17467 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
17468 * sysdeps/tile/tilegx32/Implies: ... here.
17469 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
17470 * sysdeps/tile/tilegx64/Implies: ... here.
17471 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
17472 to ...
17473 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
17474 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
17475 * sysdeps/unix/sysv/linux/tile/*: ... here.
17476 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
17477 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
17478 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
17479 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
17480
17481 * README: Remove tilepro-*-linux-gnu from supported architecture.
17482 * scripts/build-many-glibcs.py: Likewise.
17483 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17484 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
17485 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
17486 elf_machine_matches_host, elf_machine_dynamic,
17487 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
17488 howto, elf_machine_rela): Likewise.
17489 * sysdeps/tile/dl-start.S (_start): Likewise.
17490 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
17491 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
17492 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
17493 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
17494 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
17495 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
17496 Likewise.
17497 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
17498 * sysdeps/tile/preconfigure: Likewise.
17499 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
17500 POINTER_CHK_GUARD): Likewise.
17501 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
17502 * sysdeps/tile/start.S (_start): Likewise.
17503 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
17504 Likewise.
17505 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
17506 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
17507 CMOVNEZ): Remove.
17508 * sysdeps/unix/sysv/linux/tile/bits/environments.h
17509 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
17510 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
17511 Likewise.
17512 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
17513 * sysdeps/tile/tilepro/Implies: Remove file.
17514 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
17515 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
17516 * sysdeps/tile/tilepro/memchr.c: Likewise.
17517 * sysdeps/tile/tilepro/memcpy.S: Likewise.
17518 * sysdeps/tile/tilepro/memset.c: Likewise.
17519 * sysdeps/tile/tilepro/memusage.h: Likewise.
17520 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
17521 * sysdeps/tile/tilepro/strchr.c: Likewise.
17522 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
17523 * sysdeps/tile/tilepro/strlen.c: Likewise.
17524 * sysdeps/tile/tilepro/strrchr.c: Likewise.
17525 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
17526 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
17527 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
17528 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
17529 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
17530 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
17531 Likewise.
17532 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
17533 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
17534 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
17535 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
17536 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
17537 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
17538 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
17539 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
17540 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
17541 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
17542 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
17543 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
17544 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
17545 tilepro mention in comment.
17546
17547 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
17548 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
17549 * nptl/pthread_join_common.c: New file: common function used on
17550 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
17551 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
17552 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
17553 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
17554 (cleanup): Move definition to pthread_join_common.c.
17555 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
17556 Remove superflous checks.
17557 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
17558 Likewise.
17559
17560 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
17561
17562 * sysdeps/aarch64/libm-test-ulps: Update.
17563
17564 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17565
17566 * sysdeps/aarch64/memset.S (MEMSET): Define.
17567
17568 2017-12-20 Florian Weimer <fweimer@redhat.com>
17569
17570 [BZ #22635]
17571 nptl: Provide full implementation of pthread_self in libc.so.
17572 * nptl/Makefile (routines): Add pthread_self.
17573 (libpthread-routines): Replace pthread_self with
17574 compat-pthread_self.
17575 * nptl/forward.c (pthread_self): Remove.
17576 * nptl/nptl-init.c (pthread_functions): Do not initialize
17577 ptr_pthread_self.
17578 * nptl/pthread_self.c (pthread_self): Remove weak alias.
17579 * nptl/compat-pthread_self.c: New file.
17580 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
17581 Remove ptr_pthread_self.
17582
17583 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
17584
17585 * posix/regcomp.c: Fix spelling in comments.
17586 * posix/regex.h: Likewise.
17587 * posix/regex_internal.c: Likewise.
17588 * posix/regexec.c: Likewise.
17589
17590 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17591
17592 [BZ #22377]
17593 * math/Makefile [C++] (tests): Add test for iseqsig.
17594 * math/math.h [C++] (iseqsig): New implementation, which does
17595 not rely on __MATH_TG/__builtin_types_compatible_p.
17596 * math/test-math-iseqsig.cc: New file.
17597 * sysdeps/powerpc/powerpc64le/Makefile
17598 (CFLAGS-test-math-iseqsig.cc): New variable.
17599
17600 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
17601
17602 * elf/dl-load.c (is_trusted_path): Remove.
17603 (fillin_rpath): Remove check_trusted argument and its use,
17604 all callers changed.
17605
17606 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17607
17608 [BZ #22630]
17609 * Makeconfig (link-pie-before-libc): Replace -pie with
17610 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
17611 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
17612 (tst-dlopen-aout-no-pie): New.
17613 (LDFLAGS-tst-prelink): Removed.
17614 (tst-prelink-no-pie): New.
17615 (LDFLAGS-tst-main1): Removed.
17616 (tst-main1-no-pie): New.
17617 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
17618 (tst-gmon-no-pie): New.
17619
17620 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17621
17622 * manual/install.texi: Document that --enable-static-pie
17623 implies PIE.
17624 * INSTALL: Regenerated.
17625
17626 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
17627
17628 [BZ #21309]
17629 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
17630 unsigned.
17631
17632 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17633
17634 Revert:
17635
17636 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17637
17638 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17639
17640 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17641
17642 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17643 <errno.h>. Include "eexp.tbl".
17644 (half): New constant.
17645 (one): Likewise.
17646 (__ieee754_exp): Rewrite.
17647 (__slowexp): Remove prototype.
17648 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17649 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17650 * sysdeps/i386/fpu/slowexp.c: Likewise.
17651 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17652 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17653 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17654 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17655 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17656 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17657 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17658 comment.
17659 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17660 (CPPFLAGS-slowexp.c): Remove variable.
17661 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17662 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17663 (CFLAGS-slowexp-fma.c): Remove variable.
17664 (CFLAGS-slowexp-fma4.c): Likewise.
17665 (CFLAGS-slowexp-avx.c): Likewise.
17666 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17667 define as macro.
17668 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17669 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17670 * math/Makefile (type-double-routines): Remove slowexp.
17671 * manual/probes.texi (slowexp_p6): Remove.
17672 (slowexp_p32): Likewise.
17673
17674 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17675
17676 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
17677 arithmetic.
17678
17679 * lib/glob.c (glob): Do not pass NULL to mempcpy.
17680
17681 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17682
17683 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17684
17685 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17686
17687 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17688 <errno.h>. Include "eexp.tbl".
17689 (half): New constant.
17690 (one): Likewise.
17691 (__ieee754_exp): Rewrite.
17692 (__slowexp): Remove prototype.
17693 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17694 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17695 * sysdeps/i386/fpu/slowexp.c: Likewise.
17696 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17697 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17698 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17699 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17700 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17701 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17702 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17703 comment.
17704 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17705 (CPPFLAGS-slowexp.c): Remove variable.
17706 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17707 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17708 (CFLAGS-slowexp-fma.c): Remove variable.
17709 (CFLAGS-slowexp-fma4.c): Likewise.
17710 (CFLAGS-slowexp-avx.c): Likewise.
17711 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17712 define as macro.
17713 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17714 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17715 * math/Makefile (type-double-routines): Remove slowexp.
17716 * manual/probes.texi (slowexp_p6): Remove.
17717 (slowexp_p32): Likewise.
17718
17719 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17720 James Clarke <jrtc27@jrtc27.com>
17721
17722 [BZ #22603]
17723 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
17724 addition.
17725
17726 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17727
17728 [BZ #22605]
17729 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
17730 code.
17731
17732 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17733
17734 [BZ #22563]
17735 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17736 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17737 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17738 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17739 to feature_1.
17740
17741 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17742
17743 [BZ #22563]
17744 * bits/types/__cancel_jmp_buf_tag.h: New file.
17745 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17746 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17747 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17748 * nptl/Makefile (headers): Add
17749 bits/types/__cancel_jmp_buf_tag.h.
17750 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17751 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17752 * sysdeps/nptl/pthread.h: Include
17753 <bits/types/__cancel_jmp_buf_tag.h>.
17754 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17755 __cancel_jmp_buf.
17756 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17757
17758 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17759
17760 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17761 --enable-static-pie variants to x86_64, x32 and i686.
17762
17763 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17764
17765 [BZ #22631]
17766 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
17767 argument for attrubutes. All callers changed.
17768 (__inline_mathop1): Likewise. All callers changed.
17769 (__inline_mathop): Likewise. All callers changed.
17770 [__USE_MISC] (scalbn): Use __inline_forward instead of
17771 __inline_forward_c.
17772 [__USE_ISOC99] (scalbln): Likewise.
17773 [__USE_ISOC99] (nearbyint): Likewise.
17774 [__USE_ISOC99] (lrint): Likewise.
17775 [__USE_MISC] (scalbnf): Likewise.
17776 [__USE_ISOC99] (scalblnf): Likewise.
17777 [__USE_ISOC99] (nearbyintf): Likewise.
17778 [__USE_ISOC99] (lrintf): Likewise.
17779 [__USE_MISC] (scalbnl): Likewise.
17780 [__USE_ISOC99] (scalblnl): Likewise.
17781 [__USE_ISOC99] (nearbyintl): Likewise.
17782 [__USE_ISOC99] (lrintl): Likewise.
17783 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
17784 __inline_mathop and __m81_defun changed.
17785
17786 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
17787 CPU or FPU for ARM hard-float configurations.
17788
17789 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17790
17791 * nptl/tst-attr3.c: Include <libc-diag.h>.
17792 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
17793
17794 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
17795
17796 * string/tester.c (test_strncat): Also disable -Warray-bounds
17797 warnings for two tests.
17798
17799 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17800
17801 [BZ #22614]
17802 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
17803 $(cc-pie-default) == yes.
17804 * config.make.in (cc-pie-default): New.
17805 * configure.ac (libc_cv_pie_default): Renamed to ...
17806 (libc_cv_cc_pie_default): This.
17807 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
17808 * configure: Regenerated.
17809
17810 2017-12-18 Florian Weimer <fweimer@redhat.com>
17811
17812 [BZ #20204]
17813 ld.so: Harden dl-libc/libdl hooks.
17814 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
17815 (rtld_active): New function.
17816 * dlfcn/dladdr.c (__dladdr): Call it.
17817 * dlfcn/dladdr1.c (__dladdr1): Likewise.
17818 * dlfcn/dlclose.c (__dlcose): Likewise.
17819 * dlfcn/dlerror.c (__dlerror): Likewise.
17820 * dlfcn/dlinfo.c (__dlinfo): Likewise.
17821 * dlfcn/dlmopen.c (__dlmopen): Likewise.
17822 * dlfcn/dlopen.c (__dlopen): Likewise.
17823 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
17824 * dlfcn/dlsym.c (__dlsym): Likewise.
17825 * dlfcn/dlvsym.c (__dlvsym): Likewise.
17826 * libio/vtables.c (_IO_vtable_check): Likewise.
17827 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
17828 (__libc_dlclose): Likewise.
17829 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
17830 assignment.
17831
17832 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17833
17834 [BZ #22446]
17835 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
17836 buffers for readlink input and output.
17837
17838 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
17839
17840 [BZ #22624]
17841 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
17842 inhibit_stack_protector.
17843
17844 [BZ #22624]
17845 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
17846 inhibit_stack_protector.
17847
17848 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
17849
17850 [BZ #22627]
17851 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
17852 code and invocation.
17853
17854 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
17855
17856 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
17857
17858 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
17859
17860 [BZ #22505]
17861 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
17862
17863 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17864
17865 * sysdeps/s390/fpu/libm-test-ulps: Update.
17866
17867 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17868
17869 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17870
17871 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17872
17873 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
17874 constants to s_sincosf.h file.
17875 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
17876 * sysdeps/ieee754/flt-32/s_sincosf.c: New
17877 implementation.
17878 * sysdeps/ieee754/flt-32/s_sincosf.h:
17879 New file.
17880
17881 2017-12-12 Carlos O'Donell <carlos@redhat.com>
17882
17883 [BZ #14681]
17884 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
17885 before mtrace.
17886
17887 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
17888
17889 [BZ #19574]
17890 * INSTALL: Regenerated.
17891 * Makeconfig (real-static-start-installed-name): New.
17892 (pic-default): Updated for --enable-static-pie.
17893 (pie-default): New for --enable-static-pie.
17894 (default-pie-ldflag): Likewise.
17895 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
17896 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
17897 Replace $(static-start-installed-name) with
17898 $(real-static-start-installed-name).
17899 (+prectorT): Updated for --enable-static-pie.
17900 (+postctorT): Likewise.
17901 (CFLAGS-.o): Add $(pie-default).
17902 (CFLAGS-.op): Likewise.
17903 * NEWS: Mention --enable-static-pie.
17904 * config.h.in (ENABLE_STATIC_PIE): New.
17905 * configure.ac (--enable-static-pie): New configure option.
17906 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
17907 (have-static-pie): Likewise.
17908 Enable static PIE if linker supports --no-dynamic-linker.
17909 (ENABLE_STATIC_PIE): New AC_DEFINE.
17910 (enable-static-pie): New LIBC_CONFIG_VAR.
17911 * configure: Regenerated.
17912 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
17913 gr$(start-installed-name) for --enable-static-pie.
17914 (extra-objs): Likewise.
17915 (install-lib): Likewise.
17916 (extra-objs): Add static-reloc.o and static-reloc.os
17917 ($(objpfx)$(start-installed-name)): Also depend on
17918 $(objpfx)static-reloc.o.
17919 ($(objpfx)r$(start-installed-name)): New.
17920 ($(objpfx)g$(start-installed-name)): Also depend on
17921 $(objpfx)static-reloc.os.
17922 ($(objpfx)gr$(start-installed-name)): New.
17923 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
17924 in libc.a.
17925 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
17926 initimage.
17927 * csu/static-reloc.c: New file.
17928 * elf/Makefile (routines): Add dl-reloc-static-pie.
17929 (elide-routines.os): Likewise.
17930 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
17931 (tst-tls1-static-non-pie-no-pie): New.
17932 * elf/dl-reloc-static-pie.c: New file.
17933 * elf/dl-support.c (_dl_get_dl_main_map): New function.
17934 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
17935 STATIC_PIE_BOOTSTRAP.
17936 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
17937 * gmon/Makefile (tests): Add tst-gmon-static-pie.
17938 (tests-static): Likewise.
17939 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
17940 (tst-gmon-static-no-pie): New.
17941 (CFLAGS-tst-gmon-static-pie.c): Likewise.
17942 (CRT-tst-gmon-static-pie): Likewise.
17943 (tst-gmon-static-pie-ENV): Likewise.
17944 (tests-special): Likewise.
17945 ($(objpfx)tst-gmon-static-pie.out): Likewise.
17946 (clean-tst-gmon-static-pie-data): Likewise.
17947 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
17948 * gmon/tst-gmon-static-pie.c: New file.
17949 * manual/install.texi: Document --enable-static-pie.
17950 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
17951 (_dl_get_dl_main_map): Likewise.
17952 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
17953 * sysdeps/x86_64/configure.ac: Likewise.
17954 * sysdeps/i386/configure: Regenerated.
17955 * sysdeps/x86_64/configure: Likewise.
17956 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
17957 (ASFLAGS-.op): Likewise.
17958
17959 2017-12-15 Joseph Myers <joseph@codesourcery.com>
17960
17961 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
17962 * posix/tst-mmap-offset.c (fname): Use /tmp.
17963 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
17964
17965 2017-12-15 Steve Ellcey <sellcey@cavium.com>
17966
17967 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
17968
17969 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
17970
17971 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
17972 errno.
17973
17974 2017-12-15 Joseph Myers <joseph@codesourcery.com>
17975
17976 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
17977 --with-float=hard for arm-linux-gnueabihf configurations.
17978
17979 [BZ #14121]
17980 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
17981 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
17982 ($(mo-installed)): Use $(objpfx)%.mo.
17983 (realclean): Remove rule.
17984
17985 * po/Makefile (linguas): Remove rule and dependencies.
17986 (linguas.mo): Likewise.
17987 (.PHONY): Do not depend on linguas and linguas.mo.
17988 (podir): Remove variable.
17989 (pofiles): Likewise.
17990 [$(pofiles)] (%.po): Remove rule.
17991
17992 * sysdeps/sparc/sparc32/Makefile
17993 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
17994 start-of-line whitespace in argument of echo.
17995 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
17996 with whitespace. Generate __wrap_.udiv alias.
17997 * sysdeps/sparc/sparc32/rem.S: Regenerated.
17998 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
17999 * sysdeps/sparc/sparc32/udiv.S: Likewise.
18000 * sysdeps/sparc/sparc32/urem.S: Likewise.
18001
18002 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18003
18004 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18005 for aligned inputs.
18006
18007 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
18008
18009 * benchtests/bench-strcmp.c: Print output in JSON format.
18010
18011 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18012
18013 2017-12-14 Florian Weimer <fweimer@redhat.com>
18014
18015 [BZ #22607]
18016 CVE-2017-1000409
18017 * elf/dl-load.c (_dl_init_paths): Compute number of components in
18018 the expanded path string.
18019
18020 2017-12-14 Florian Weimer <fweimer@redhat.com>
18021
18022 [BZ #22606]
18023 CVE-2017-1000408
18024 * elf/dl-load.c (system_dirs): Update comment.
18025 (nsystem_dirs_len): Use array_length.
18026 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18027
18028 2017-12-14 Florian Weimer <fweimer@redhat.com>
18029
18030 Simplify compiling most of support/ outside of glibc.
18031 * support/check_addrinfo.c: Include <string.h>.
18032 * support/check_dns_packet.c: Likewise.
18033 * support/check_hostent.c: Likewise.
18034 * support/support_can_chroot.c: Include <support/xunistd.h>.
18035 * support/support_format_addrinfo.c: Include <stdlib.h>
18036 * support/support_format_dns_packet.c: Include <stdbool.h>.
18037 * support/support_format_hostent.c: Include <stdlib.h>.
18038 * support/support_format_netent.c: Likewise.
18039 * support/support_write_string.c: Include <support/xunistd.h>.
18040 * support/xdlfcn.c: Include <stddef.h>.
18041
18042 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18043
18044 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18045
18046 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18047 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18048
18049 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18050 (sysdeps_routines): Add memset-niagara7.
18051 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18052 Likewise.
18053 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18054 file.
18055 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18056 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18057 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18058 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18059 Add niagara7 option.
18060 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18061 memset.
18062
18063 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18064 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18065 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18066 Likewise.
18067 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18068 New file.
18069 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18070 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18071 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18072 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18073 and __memmove_niagara7.
18074 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18075 Add niagara7 option.
18076 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18077 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18078 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18079 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18080 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18081
18082 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18083
18084 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18085 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18086 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18087 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18088
18089 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18090 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18091 _dl_sparc_cap_flags array.
18092 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18093
18094 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18095
18096 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18097 time whenever possible.
18098
18099 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18100
18101 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18102 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18103
18104 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18105
18106 * soft-fp/fmadf4.c: Move to ....
18107 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18108 * soft-fp/fmasf4.c: Move to ....
18109 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18110 * soft-fp/fmatf4.c: Move to ....
18111 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18112 * sysdeps/ieee754/soft-fp/Makefile: New file.
18113 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18114 * sysdeps/arm/preconfigure: Regenerated.
18115 * sysdeps/arm/nofpu/Implies: New file.
18116 * sysdeps/arm/s_fma.c: Remove file.
18117 * sysdeps/arm/s_fmaf.c: Likewise.
18118 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18119 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18120 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18121 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18122 * sysdeps/microblaze/s_fma.c: Remove file.
18123 * sysdeps/microblaze/s_fmaf.c: Likewise.
18124 * sysdeps/mips/mips32/nofpu/Implies: New file.
18125 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18126 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18127 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18128 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18129 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18130 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18131 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18132 implementation.
18133 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18134 * sysdeps/nios2/s_fma.c: Remove file.
18135 * sysdeps/nios2/s_fmaf.c: Likewise.
18136 * sysdeps/sh/nofpu/Implies: New file.
18137 * sysdeps/sh/s_fma.c: Remove file.
18138 * sysdeps/sh/s_fmaf.c: Likewise.
18139 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18140 * sysdeps/tile/s_fma.c: Remove file.
18141 * sysdeps/tile/s_fmaf.c: Likewise.
18142
18143 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18144
18145 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18146 Add s_cosf-sse2 and s_cosf-fma.
18147 (CFLAGS-s_cosf-fma.c): New.
18148 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18149 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18150 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18151
18152 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18153
18154 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18155
18156 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18157
18158 * libio/Makefile (tests): Add tst-bz22415.
18159 (tst-bz22415-ENV): New rule.
18160 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18161 (tests-special): Add tst-bz22415-mem.out.
18162 ($(objpfx)tst-bz22415-mem.out): New rule.
18163 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18164 in case of a successful seek operation.
18165 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18166 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18167 buffer is required.
18168 * libio/tst-bz22415.c: New test.
18169
18170 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18171
18172 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18173
18174 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18175 __IPC_64 to 0 to avoid IPC_64 being set.
18176
18177 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18178
18179 [BZ #22593]
18180 * math/bits/mathcalls.h (nextafter): Remove const.
18181 (nexttoward): Likewise.
18182
18183 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18184
18185 * configure.ac (--with-fp): Remove configure option.
18186 (with_fp_cond): New variable.
18187 (libc_cv_with_fp): New configure test. Use this variable instead
18188 of with_fp.
18189 * configure: Regenerated.
18190 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18191 * manual/install.texi (Configuring and compiling): Remove
18192 --without-fp.
18193 * INSTALL: Regenerated.
18194 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18195 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18196 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18197 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18198 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18199 use --without-fp to configure glibc.
18200
18201 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18202
18203 * manual/locale.texi (nl_langinfo): Fix a typo.
18204
18205 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18206
18207 [BZ #22588]
18208 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18209
18210 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18211
18212 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18213 (CFLAGS-argp-parse.c): Likewise.
18214 (CFLAGS-argp-fmtstream.c): Likewise.
18215 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18216 (CPPFLAGS-sha512-crypt.c): Likewise.
18217 (CPPFLAGS-md5-crypt.c): Likewise.
18218 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18219 (CFLAGS-stack_chk_fail_local.c): Likewise.
18220 (CFLAGS-backtrace.c): Likewise.
18221 (CFLAGS-sprintf_chk.c): Likewise.
18222 (CFLAGS-snprintf_chk.c): Likewise.
18223 (CFLAGS-vsprintf_chk.c): Likewise.
18224 (CFLAGS-vsnprintf_chk.c): Likewise.
18225 (CFLAGS-asprintf_chk.c): Likewise.
18226 (CFLAGS-vasprintf_chk.c): Likewise.
18227 (CFLAGS-obprintf_chk.c): Likewise.
18228 (CFLAGS-dprintf_chk.c): Likewise.
18229 (CFLAGS-vdprintf_chk.c): Likewise.
18230 (CFLAGS-printf_chk.c): Likewise.
18231 (CFLAGS-fprintf_chk.c): Likewise.
18232 (CFLAGS-vprintf_chk.c): Likewise.
18233 (CFLAGS-vfprintf_chk.c): Likewise.
18234 (CFLAGS-gets_chk.c): Likewise.
18235 (CFLAGS-fgets_chk.c): Likewise.
18236 (CFLAGS-fgets_u_chk.c): Likewise.
18237 (CFLAGS-fread_chk.c): Likewise.
18238 (CFLAGS-fread_u_chk.c): Likewise.
18239 (CFLAGS-swprintf_chk.c): Likewise.
18240 (CFLAGS-vswprintf_chk.c): Likewise.
18241 (CFLAGS-wprintf_chk.c): Likewise.
18242 (CFLAGS-fwprintf_chk.c): Likewise.
18243 (CFLAGS-vwprintf_chk.c): Likewise.
18244 (CFLAGS-vfwprintf_chk.c): Likewise.
18245 (CFLAGS-fgetws_chk.c): Likewise.
18246 (CFLAGS-fgetws_u_chk.c): Likewise.
18247 (CFLAGS-read_chk.c): Likewise.
18248 (CFLAGS-pread_chk.c): Likewise.
18249 (CFLAGS-pread64_chk.c): Likewise.
18250 (CFLAGS-recv_chk.c): Likewise.
18251 (CFLAGS-recvfrom_chk.c): Likewise.
18252 (CFLAGS-tst-longjmp_chk.c): Likewise.
18253 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18254 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18255 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18256 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18257 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18258 (CFLAGS-tst-chk1.c): Likewise.
18259 (CFLAGS-tst-chk2.c): Likewise.
18260 (CFLAGS-tst-chk3.c): Likewise.
18261 (CFLAGS-tst-chk4.cc): Likewise.
18262 (CFLAGS-tst-chk5.cc): Likewise.
18263 (CFLAGS-tst-chk6.cc): Likewise.
18264 (CFLAGS-tst-lfschk1.c): Likewise.
18265 (CFLAGS-tst-lfschk2.c): Likewise.
18266 (CFLAGS-tst-lfschk3.c): Likewise.
18267 (CFLAGS-tst-lfschk4.cc): Likewise.
18268 (CFLAGS-tst-lfschk5.cc): Likewise.
18269 (CFLAGS-tst-lfschk6.cc): Likewise.
18270 (CFLAGS-tst-ssp-1.c): Likewise.
18271 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18272 (CFLAGS-scandir64.c): Likewise.
18273 (CFLAGS-scandir-tail.c): Likewise.
18274 (CFLAGS-scandir64-tail.c): Likewise.
18275 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18276 (CFLAGS-dl-tunables.c): Likewise.
18277 (CFLAGS-dl-runtime.c): Likewise.
18278 (CFLAGS-dl-lookup.c): Likewise.
18279 (CFLAGS-dl-iterate-phdr.c): Likewise.
18280 (CFLAGS-vismain.c): Likewise.
18281 (CFLAGS-tst-linkall-static.c): Likewise.
18282 (CFLAGS-tst-linkall-static.c): Likewise.
18283 (CPPFLAGS-dl-load.c): Likewise.
18284 (CFLAGS-ldconfig.c): Likewise.
18285 (CFLAGS-dl-cache.c): Likewise.
18286 (CFLAGS-cache.c): Likewise.
18287 (CFLAGS-rtld.c): Likewise.
18288 (CFLAGS-multiload.c): Likewise.
18289 (CFLAGS-filtmod1.c): Likewise.
18290 (CFLAGS-tst-align.c): Likewise.
18291 (CFLAGS-tst-align2.c): Likewise.
18292 (CFLAGS-tst-alignmod.c): Likewise.
18293 (CFLAGS-tst-alignmod2.c): Likewise.
18294 (CPPFLAGS-tst-execstack.c): Likewise.
18295 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18296 (CFLAGS-tst-latepthreadmod.c): Likewise.
18297 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18298 (CFLAGS-getgrnam_r.c): Likewise.
18299 (CFLAGS-getgrent_r.c): Likewise.
18300 (CFLAGS-getgrent.c): Likewise.
18301 (CFLAGS-fgetgrent.c): Likewise.
18302 (CFLAGS-fgetgrent_r.c): Likewise.
18303 (CFLAGS-putgrent.c): Likewise.
18304 (CFLAGS-initgroups.c): Likewise.
18305 (CFLAGS-getgrgid.c): Likewise.
18306 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18307 (CFLAGS-getsgent.c): Likewise.
18308 (CFLAGS-fgetsgent.c): Likewise.
18309 (CFLAGS-fgetsgent_r.c): Likewise.
18310 (CFLAGS-putsgent.c): Likewise.
18311 (CFLAGS-getsgnam.c): Likewise.
18312 (CFLAGS-getsgnam_r.c): Likewise.
18313 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18314 (CFLAGS-iconv_charmap.c): Likewise.
18315 (CFLAGS-dummy-repertoire.c): Likewise.
18316 (CFLAGS-charmap.c): Likewise.
18317 (CFLAGS-linereader.c): Likewise.
18318 (CFLAGS-simple-hash.c): Likewise.
18319 (CFLAGS-gconv_conf.c): Likewise.
18320 (CFLAGS-iconvconfig.c): Likewise.
18321 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18322 (CFLAGS-gethstbyad.c): Likewise.
18323 (CFLAGS-gethstbynm_r.c): Likewise.
18324 (CFLAGS-gethstbynm.c): Likewise.
18325 (CFLAGS-gethstbynm2_r.c): Likewise.
18326 (CFLAGS-gethstbynm2.c): Likewise.
18327 (CFLAGS-gethstent_r.c): Likewise.
18328 (CFLAGS-gethstent.c): Likewise.
18329 (CFLAGS-rcmd.c): Likewise.
18330 (CFLAGS-getnetbynm_r.c): Likewise.
18331 (CFLAGS-getnetbynm.c): Likewise.
18332 (CFLAGS-getnetbyad_r.c): Likewise.
18333 (CFLAGS-getnetbyad.c): Likewise.
18334 (CFLAGS-getnetent_r.c): Likewise.
18335 (CFLAGS-getnetent.c): Likewise.
18336 (CFLAGS-getaliasent_r.c): Likewise.
18337 (CFLAGS-getaliasent.c): Likewise.
18338 (CFLAGS-getrpcent_r.c): Likewise.
18339 (CFLAGS-getrpcent.c): Likewise.
18340 (CFLAGS-getservent_r.c): Likewise.
18341 (CFLAGS-getservent.c): Likewise.
18342 (CFLAGS-getprtent_r.c): Likewise.
18343 (CFLAGS-getprtent.c): Likewise.
18344 (CFLAGS-either_ntoh.c): Likewise.
18345 (CFLAGS-either_hton.c): Likewise.
18346 (CFLAGS-getnetgrent.c): Likewise.
18347 (CFLAGS-getnetgrent_r.c): Likewise.
18348 (CFLAGS-tst-checks-posix.c): Likewise.
18349 (CFLAGS-tst-sockaddr.c): Likewise.
18350 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
18351 (CFLAGS-tst-translit.c): Likewise.
18352 (CFLAGS-tst-gettext2.c): Likewise.
18353 (CFLAGS-tst-codeset.c): Likewise.
18354 (CFLAGS-tst-gettext3.c): Likewise.
18355 (CFLAGS-tst-gettext4.c): Likewise.
18356 (CFLAGS-tst-gettext5.c): Likewise.
18357 (CFLAGS-tst-gettext6.c): Likewise.
18358 * io/Makefile (CFLAGS-open.c): Likewise.
18359 (CFLAGS-open64.c): Likewise.
18360 (CFLAGS-creat.c): Likewise.
18361 (CFLAGS-creat64.c): Likewise.
18362 (CFLAGS-fcntl.c): Likewise.
18363 (CFLAGS-poll.c): Likewise.
18364 (CFLAGS-ppoll.c): Likewise.
18365 (CFLAGS-lockf.c): Likewise.
18366 (CFLAGS-statfs.c): Likewise.
18367 (CFLAGS-fstatfs.c): Likewise.
18368 (CFLAGS-statvfs.c): Likewise.
18369 (CFLAGS-fstatvfs.c): Likewise.
18370 (CFLAGS-fts.c): Likewise.
18371 (CFLAGS-fts64.c): Likewise.
18372 (CFLAGS-ftw.c): Likewise.
18373 (CFLAGS-ftw64.c): Likewise.
18374 (CFLAGS-lockf.c): Likewise.
18375 (CFLAGS-posix_fallocate.c): Likewise.
18376 (CFLAGS-posix_fallocate64.c): Likewise.
18377 (CFLAGS-fallocate.c): Likewise.
18378 (CFLAGS-fallocate64.c): Likewise.
18379 (CFLAGS-read.c): Likewise.
18380 (CFLAGS-write.c): Likewise.
18381 (CFLAGS-test-stat.c): Likewise.
18382 (CFLAGS-test-lfs.c): Likewise.
18383 * libio/Makefile (CFLAGS-fileops.c): Likewise.
18384 (CFLAGS-fputc.c): Likewise.
18385 (CFLAGS-fputwc.c): Likewise.
18386 (CFLAGS-freopen64.c): Likewise.
18387 (CFLAGS-freopen.c): Likewise.
18388 (CFLAGS-fseek.c): Likewise.
18389 (CFLAGS-fseeko64.c): Likewise.
18390 (CFLAGS-fseeko.c): Likewise.
18391 (CFLAGS-ftello64.c): Likewise.
18392 (CFLAGS-ftello.c): Likewise.
18393 (CFLAGS-fwide.c): Likewise.
18394 (CFLAGS-genops.c): Likewise.
18395 (CFLAGS-getc.c): Likewise.
18396 (CFLAGS-getchar.c): Likewise.
18397 (CFLAGS-getwc.c): Likewise.
18398 (CFLAGS-getwchar.c): Likewise.
18399 (CFLAGS-iofclose.c): Likewise.
18400 (CFLAGS-iofflush.c): Likewise.
18401 (CFLAGS-iofgetpos64.c): Likewise.
18402 (CFLAGS-iofgetpos.c): Likewise.
18403 (CFLAGS-iofgets.c): Likewise.
18404 (CFLAGS-iofgetws.c): Likewise.
18405 (CFLAGS-iofputs.c): Likewise.
18406 (CFLAGS-iofputws.c): Likewise.
18407 (CFLAGS-iofread.c): Likewise.
18408 (CFLAGS-iofsetpos64.c): Likewise.
18409 (CFLAGS-iofsetpos.c): Likewise.
18410 (CFLAGS-ioftell.c): Likewise.
18411 (CFLAGS-iofwrite.c): Likewise.
18412 (CFLAGS-iogetdelim.c): Likewise.
18413 (CFLAGS-iogetline.c): Likewise.
18414 (CFLAGS-iogets.c): Likewise.
18415 (CFLAGS-iogetwline.c): Likewise.
18416 (CFLAGS-ioputs.c): Likewise.
18417 (CFLAGS-ioseekoff.c): Likewise.
18418 (CFLAGS-ioseekpos.c): Likewise.
18419 (CFLAGS-iosetbuffer.c): Likewise.
18420 (CFLAGS-iosetvbuf.c): Likewise.
18421 (CFLAGS-ioungetc.c): Likewise.
18422 (CFLAGS-ioungetwc.c): Likewise.
18423 (CFLAGS-oldfileops.c): Likewise.
18424 (CFLAGS-oldiofclose.c): Likewise.
18425 (CFLAGS-oldiofgetpos64.c): Likewise.
18426 (CFLAGS-oldiofgetpos.c): Likewise.
18427 (CFLAGS-oldiofsetpos64.c): Likewise.
18428 (CFLAGS-oldiofsetpos.c): Likewise.
18429 (CFLAGS-peekc.c): Likewise.
18430 (CFLAGS-putc.c): Likewise.
18431 (CFLAGS-putchar.c): Likewise.
18432 (CFLAGS-putwc.c): Likewise.
18433 (CFLAGS-putwchar.c): Likewise.
18434 (CFLAGS-rewind.c): Likewise.
18435 (CFLAGS-wfileops.c): Likewise.
18436 (CFLAGS-wgenops.c): Likewise.
18437 (CFLAGS-oldiofopen.c): Likewise.
18438 (CFLAGS-iofopen.c): Likewise.
18439 (CFLAGS-iofopen64.c): Likewise.
18440 (CFLAGS-oldtmpfile.c): Likewise.
18441 (CFLAGS-tst_putwc.c): Likewise.
18442 * locale/Makefile (CFLAGS-md5.c): Likewise.
18443 (CFLAGS-charmap.c): Likewise.
18444 (CFLAGS-locfile.c): Likewise.
18445 (CFLAGS-charmap-dir.c): Likewise.
18446 * login/Makefile (CFLAGS-grantpt.c): Likewise.
18447 (CFLAGS-getpt.c): Likewise.
18448 (CFLAGS-pt_chown.c): Likewise.
18449 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
18450 (CFLAGS-obstack.c): Likewise.
18451 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
18452 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
18453 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
18454 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
18455 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
18456 (CFLAGS-test-tgmath.c): Likewise.
18457 (CFLAGS-test-tgmath2.c): Likewise.
18458 (CFLAGS-test-tgmath-ret.c): Likewise.
18459 (CFLAGS-test-powl.c): Likewise.
18460 (CFLAGS-test-snan.c): Likewise.
18461 (CFLAGS-test-signgam-finite.c): Likewise.
18462 (CFLAGS-test-signgam-finite-c99.c): Likewise.
18463 (CFLAGS-test-signgam-finite-c11.c): Likewise.
18464 (CFLAGS-test-signgam-uchar.c): Likewise.
18465 (CFLAGS-test-signgam-uchar-init.c): Likewise.
18466 (CFLAGS-test-signgam-uchar-static.c): Likewise.
18467 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
18468 (CFLAGS-test-signgam-uint.c): Likewise.
18469 (CFLAGS-test-signgam-uint-init.c): Likewise.
18470 (CFLAGS-test-signgam-uint-static.c): Likewise.
18471 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
18472 (CFLAGS-test-signgam-ullong.c): Likewise.
18473 (CFLAGS-test-signgam-ullong-init.c): Likewise.
18474 (CFLAGS-test-signgam-ullong-static.c): Likewise.
18475 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
18476 (CFLAGS-test-math-cxx11.cc): Likewise.
18477 (CFLAGS-test-math-isinff.cc): Likewise.
18478 (CFLAGS-test-math-iszero.cc): Likewise.
18479 (CFLAGS-test-math-issignaling.cc): Likewise.
18480 (CFLAGS-test-math-iscanonical.cc): Likewise.
18481 (CFLAGS-test-iszero-excess-precision.c): Likewise.
18482 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
18483 (CFLAGS-test-flt-eval-method.c): Likewise.
18484 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
18485 (CFLAGS-test-finite-macros.c): Likewise.
18486 * misc/Makefile (CFLAGS-select.c): Likewise.
18487 (CFLAGS-tsearch.c): Likewise.
18488 (CFLAGS-lsearch.c): Likewise.
18489 (CFLAGS-pselect.c): Likewise.
18490 (CFLAGS-readv.c): Likewise.
18491 (CFLAGS-writev.c): Likewise.
18492 (CFLAGS-preadv.c): Likewise.
18493 (CFLAGS-preadv64.c): Likewise.
18494 (CFLAGS-pwritev.c): Likewise.
18495 (CFLAGS-pwritev64.c): Likewise.
18496 (CFLAGS-preadv2.c): Likewise.
18497 (CFLAGS-preadv64v2.c): Likewise.
18498 (CFLAGS-pwritev2.c): Likewise.
18499 (CFLAGS-pwritev64v2.c): Likewise.
18500 (CFLAGS-usleep.c): Likewise.
18501 (CFLAGS-syslog.c): Likewise.
18502 (CFLAGS-error.c): Likewise.
18503 (CFLAGS-getpass.c): Likewise.
18504 (CFLAGS-mkstemp.c): Likewise.
18505 (CFLAGS-mkstemp64.c): Likewise.
18506 (CFLAGS-getsysstats.c): Likewise.
18507 (CFLAGS-getusershell.c): Likewise.
18508 (CFLAGS-err.c): Likewise.
18509 (CFLAGS-tst-tsearch.c): Likewise.
18510 (CFLAGS-msync.c): Likewise.
18511 (CFLAGS-fdatasync.c): Likewise.
18512 (CFLAGS-fsync.c): Likewise.
18513 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
18514 (CFLAGS-unwind.c): Likewise.
18515 (CFLAGS-unwind-forcedunwind.c): Likewise.
18516 (CFLAGS-pthread_cancel.c): Likewise.
18517 (CFLAGS-pthread_setcancelstate.c): Likewise.
18518 (CFLAGS-pthread_setcanceltype.c): Likewise.
18519 (CFLAGS-cancellation.c): Likewise.
18520 (CFLAGS-libc-cancellation.c): Likewise.
18521 (CFLAGS-pthread_exit.c): Likewise.
18522 (CFLAGS-forward.c): Likewise.
18523 (CFLAGS-pthread_testcancel.c): Likewise.
18524 (CFLAGS-pthread_join.c): Likewise.
18525 (CFLAGS-pthread_timedjoin.c): Likewise.
18526 (CFLAGS-pthread_once.c): Likewise.
18527 (CFLAGS-pthread_cond_wait.c): Likewise.
18528 (CFLAGS-sem_wait.c): Likewise.
18529 (CFLAGS-sem_timedwait.c): Likewise.
18530 (CFLAGS-fcntl.c): Likewise.
18531 (CFLAGS-lockf.c): Likewise.
18532 (CFLAGS-pread.c): Likewise.
18533 (CFLAGS-pread64.c): Likewise.
18534 (CFLAGS-pwrite.c): Likewise.
18535 (CFLAGS-pwrite64.c): Likewise.
18536 (CFLAGS-wait.c): Likewise.
18537 (CFLAGS-waitpid.c): Likewise.
18538 (CFLAGS-sigwait.c): Likewise.
18539 (CFLAGS-msgrcv.c): Likewise.
18540 (CFLAGS-msgsnd.c): Likewise.
18541 (CFLAGS-tcdrain.c): Likewise.
18542 (CFLAGS-open.c): Likewise.
18543 (CFLAGS-open64.c): Likewise.
18544 (CFLAGS-pause.c): Likewise.
18545 (CFLAGS-recv.c): Likewise.
18546 (CFLAGS-send.c): Likewise.
18547 (CFLAGS-accept.c): Likewise.
18548 (CFLAGS-sendto.c): Likewise.
18549 (CFLAGS-connect.c): Likewise.
18550 (CFLAGS-recvfrom.c): Likewise.
18551 (CFLAGS-recvmsg.c): Likewise.
18552 (CFLAGS-sendmsg.c): Likewise.
18553 (CFLAGS-close.c): Likewise.
18554 (CFLAGS-read.c): Likewise.
18555 (CFLAGS-write.c): Likewise.
18556 (CFLAGS-nanosleep.c): Likewise.
18557 (CFLAGS-sigsuspend.c): Likewise.
18558 (CFLAGS-msync.c): Likewise.
18559 (CFLAGS-fdatasync.c): Likewise.
18560 (CFLAGS-fsync.c): Likewise.
18561 (CFLAGS-pt-system.c): Likewise.
18562 (CFLAGS-tst-cleanup2.c): Likewise.
18563 (CFLAGS-tst-cleanupx2.c): Likewise.
18564 (CFLAGS-flockfile.c): Likewise.
18565 (CFLAGS-ftrylockfile.c): Likewise.
18566 (CFLAGS-funlockfile.c): Likewise.
18567 (CFLAGS-tst-initializers1.c): Likewise.
18568 (CFLAGS-tst-initializers1-c89.c): Likewise.
18569 (CFLAGS-tst-initializers1-c99.c): Likewise.
18570 (CFLAGS-tst-initializers1-c11.c): Likewise.
18571 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
18572 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
18573 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
18574 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
18575 (CFLAGS-nscd_getgr_r.c): Likewise.
18576 (CFLAGS-nscd_gethst_r.c): Likewise.
18577 (CFLAGS-nscd_getai.c): Likewise.
18578 (CFLAGS-nscd_initgroups.c): Likewise.
18579 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
18580 (CFLAGS-pause.c): Likewise.
18581 (CFLAGS-pread.c): Likewise.
18582 (CFLAGS-pread64.c): Likewise.
18583 (CFLAGS-pwrite.c): Likewise.
18584 (CFLAGS-pwrite64.c): Likewise.
18585 (CFLAGS-sleep.c): Likewise.
18586 (CFLAGS-wait.c): Likewise.
18587 (CFLAGS-waitid.c): Likewise.
18588 (CFLAGS-waitpid.c): Likewise.
18589 (CFLAGS-getopt.c): Likewise.
18590 (CFLAGS-wordexp.c): Likewise.
18591 (CFLAGS-sysconf.c): Likewise.
18592 (CFLAGS-pathconf.c): Likewise.
18593 (CFLAGS-fpathconf.c): Likewise.
18594 (CFLAGS-spawn.c): Likewise.
18595 (CFLAGS-spawnp.c): Likewise.
18596 (CFLAGS-spawni.c): Likewise.
18597 (CFLAGS-glob.c): Likewise.
18598 (CFLAGS-glob64.c): Likewise.
18599 (CFLAGS-getconf.c): Likewise.
18600 (CFLAGS-nanosleep.c): Likewise.
18601 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
18602 (CFLAGS-getpwent.c): Likewise.
18603 (CFLAGS-getpw.c): Likewise.
18604 (CFLAGS-fgetpwent_r.c): Likewise.
18605 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
18606 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
18607 (CFLAGS-mq_timedreceive.c): Likewise.
18608 (CFLAGS-mq_timedsend.c): Likewise.
18609 (CFLAGS-clock_nanosleep.c): Likewise.
18610 (CFLAGS-librt-cancellation.c): Likewise.
18611 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
18612 (CFLAGS-getspent.c): Likewise.
18613 (CFLAGS-fgetspent.c): Likewise.
18614 (CFLAGS-fgetspent_r.c): Likewise.
18615 (CFLAGS-putspent.c): Likewise.
18616 (CFLAGS-getspnam.c): Likewise.
18617 (CFLAGS-getspnam_r.c): Likewise.
18618 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
18619 (CFLAGS-sigsuspend.c): Likewise.
18620 (CFLAGS-sigtimedwait.c): Likewise.
18621 (CFLAGS-sigwait.c): Likewise.
18622 (CFLAGS-sigwaitinfo.c): Likewise.
18623 (CFLAGS-sigreturn.c): Likewise.
18624 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
18625 (CFLAGS-vfwprintf.c): Likewise.
18626 (CFLAGS-tmpfile.c): Likewise.
18627 (CFLAGS-tmpfile64.c): Likewise.
18628 (CFLAGS-tempname.c): Likewise.
18629 (CFLAGS-psignal.c): Likewise.
18630 (CFLAGS-vprintf.c): Likewise.
18631 (CFLAGS-cuserid.c): Likewise.
18632 (CFLAGS-errlist.c): Likewise.
18633 (CFLAGS-siglist.c): Likewise.
18634 (CFLAGS-scanf15.c): Likewise.
18635 (CFLAGS-scanf17.c): Likewise.
18636 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
18637 (CFLAGS-msort.c): Likewise.
18638 (CFLAGS-qsort.c): Likewise.
18639 (CFLAGS-system.c): Likewise.
18640 (CFLAGS-fmtmsg.c): Likewise.
18641 (CFLAGS-strfmon.c): Likewise.
18642 (CFLAGS-strfmon_l.c): Likewise.
18643 (CFLAGS-strfromd.c): Likewise.
18644 (CFLAGS-strfromf.c): Likewise.
18645 (CFLAGS-strfroml.c): Likewise.
18646 (CFLAGS-tst-bsearch.c): Likewise.
18647 (CFLAGS-tst-qsort.c): Likewise.
18648 (CFLAGS-tst-makecontext2.c): Likewise.
18649 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
18650 (CFLAGS-xnlm_prot.c): Likewise.
18651 (CFLAGS-xrstat.c): Likewise.
18652 (CFLAGS-xyppasswd.c): Likewise.
18653 (CFLAGS-xklm_prot.c): Likewise.
18654 (CFLAGS-xrex.c): Likewise.
18655 (CFLAGS-xsm_inter.c): Likewise.
18656 (CFLAGS-xmount.c): Likewise.
18657 (CFLAGS-xrusers.c): Likewise.
18658 (CFLAGS-xspray.c): Likewise.
18659 (CFLAGS-xnfs_prot.c): Likewise.
18660 (CFLAGS-xrquota.c): Likewise.
18661 (CFLAGS-xkey_prot.c): Likewise.
18662 (CFLAGS-auth_unix.c): Likewise.
18663 (CFLAGS-key_call.c): Likewise.
18664 (CFLAGS-pmap_rmt.c): Likewise.
18665 (CFLAGS-clnt_perr.c): Likewise.
18666 (CFLAGS-openchild.c): Likewise.
18667 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
18668 (CFLAGS-msgsnd.c): Likewise.
18669 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
18670 * time/Makefile (CFLAGS-tzfile.c): Likewise.
18671 (CFLAGS-tzset.c): Likewise.
18672 (CFLAGS-getdate.c): Likewise.
18673 (CFLAGS-test_time.c): Likewise.
18674 (CPPFLAGS-tst-tzname.c): Likewise.
18675 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
18676 (CFLAGS-zic.c): Likewise.
18677 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
18678 (CFLAGS-wcswidth.c): Likewise.
18679 (CFLAGS-wcstol.c): Likewise.
18680 (CFLAGS-wcstoul.c): Likewise.
18681 (CFLAGS-wcstoll.c): Likewise.
18682 (CFLAGS-wcstoull.c): Likewise.
18683 (CFLAGS-wcstod.c): Likewise.
18684 (CFLAGS-wcstold.c): Likewise.
18685 (CFLAGS-wcstof128.c): Likewise.
18686 (CFLAGS-wcstof.c): Likewise.
18687 (CFLAGS-wcstol_l.c): Likewise.
18688 (CFLAGS-wcstoul_l.c): Likewise.
18689 (CFLAGS-wcstoll_l.c): Likewise.
18690 (CFLAGS-wcstoull_l.c): Likewise.
18691 (CFLAGS-wcstod_l.c): Likewise.
18692 (CFLAGS-wcstold_l.c): Likewise.
18693 (CFLAGS-wcstof128_l.c): Likewise.
18694 (CFLAGS-wcstof_l.c): Likewise.
18695 (CPPFLAGS-tst-wchar-h.c): Likewise.
18696 (CPPFLAGS-wcstold_l.c): Likewise.
18697
18698 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
18699
18700 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
18701
18702 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
18703 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18704
18705 * manual/tunables.texi (Hardware Capability Tunables): Document
18706 glibc.tune.cached_memopt.
18707 * sysdeps/powerpc/cpu-features.c: New file.
18708 * sysdeps/powerpc/cpu-features.h: New file.
18709 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
18710 _dl_powerpc_cpu_features.
18711 * sysdeps/powerpc/dl-tunables.list: New file.
18712 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
18713 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
18714 (INIT_ARCH): Initialize use_aligned_memopt.
18715 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
18716 IS_IN(rtld))]: Restrict dl_platform_init availability and
18717 initialize CPU features used by tunables.
18718 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
18719 Add memcpy-power8-cached.
18720 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
18721 __memcpy_power8_cached.
18722 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
18723 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
18724 New file.
18725
18726 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18727
18728 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
18729 (CFLAGS-noinl-tester.c): Likewise.
18730 (CFLAGS-tst-strlen.c): Likewise.
18731 (CFLAGS-stratcliff.c): Likewise.
18732 (CFLAGS-test-ffs.c): Likewise.
18733 (CFLAGS-tst-inlcall.c): Likewise.
18734 (CFLAGS-tst-xbzero-opt.c): Likewise.
18735 (CFLAGS-memcpy.c): Likewise.
18736 (CFLAGS-wordcopy.c): Likewise.
18737
18738 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
18739
18740 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
18741 Store r15 on stack and add cfi rule.
18742 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
18743 Likewise.
18744
18745 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
18746
18747 [BZ #22577]
18748 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
18749 call.
18750
18751 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18752
18753 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18754 Add s_sinf-sse2 and s_sinf-fma.
18755 (CFLAGS-s_sinf-fma.c): New.
18756 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
18757 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
18758 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
18759
18760 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18761
18762 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
18763
18764 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18765
18766 [BZ #22568]
18767 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
18768 part of result to imaginary part of argument if it is zero and the
18769 real part of the argument is not finite.
18770 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
18771 of result to real part of argument if it is zero and the imaginary
18772 part of the argument is not finite.
18773
18774 2017-12-07 Mike FABIAN <mfabian@redhat.com>
18775
18776 [BZ #22524]
18777 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
18778 and to the list of locales to be built for testing.
18779 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
18780 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
18781 and build the collation rules upon that.
18782
18783 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18784
18785 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
18786 * manual/math.texi (Mathematics): Document support for _Float32.
18787 * math/Makefile (test-types): Add float32.
18788 * math/Versions (GLIBC_2.27): Add _Float32 functions.
18789 * stdlib/Versions (GLIBC_2.27): Likewise.
18790 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18791 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18792 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18793 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18794 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18795 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18796 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18797 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18798 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18799 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18800 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18801 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18802 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18803 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18804 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18805 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18806 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18807 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18808 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18809 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18810 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18811 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18812 Likewise.
18813 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18814 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18815 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18816 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18817 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18818 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18819 Likewise.
18820 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18821 Likewise.
18822 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18823 Likewise.
18824 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18825 Likewise.
18826
18827 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18828 Likewise.
18829 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18830 Likewise.
18831 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18832 Likewise.
18833 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18834 Likewise.
18835 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18836 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18837 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18838 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18839 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18840 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18841 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18842 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18843 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18844 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18845 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18846 Likewise.
18847 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18848 Likewise.
18849 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18850 Likewise.
18851 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18852 Likewise.
18853 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18854 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18855 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18856 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18857 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18858 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18859 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18860 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18861
18862 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18863
18864 * stdlib/strtof.c: Include <bits/floatn.h>
18865 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
18866 and later undefine as macro. Define as weak alias if
18867 [!USE_WIDE_CHAR].
18868 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
18869 and later undefine as macro. Define as weak alias if
18870 [USE_WIDE_CHAR].
18871 * stdlib/strtof_l.c: Include <bits/floatn.h>
18872 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
18873 and later undefine as macro. Define as weak alias if
18874 [!USE_WIDE_CHAR].
18875 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
18876 and later undefine as macro. Define as weak alias if
18877 [USE_WIDE_CHAR].
18878
18879 * stdlib/strfromf.c: Include <bits/floatn.h>.
18880 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
18881 and later undefine as macro and define as weak alias.
18882
18883 * math/test-float32.h: New file.
18884
18885 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
18886 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
18887 (libm_alias_float_other_r): Create f32 alias.
18888 (libm_alias_float_r): Use semicolon before call to
18889 libm_alias_float_other_r.
18890
18891 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
18892 second argument to libm_alias_float_other.
18893 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
18894 second argument to libm_alias_float_other.
18895 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
18896 argument to libm_alias_float_other.
18897
18898 [BZ #22561]
18899 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
18900 real part of result for argument 0 + i * NaN.
18901 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
18902 results for tests of 0 + i * NaN.
18903
18904 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18905
18906 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18907
18908 2017-12-06 David S. Miller <davem@davemloft.net>
18909
18910 * sysdeps/sparc/fpu/libm-test-ulps: Update
18911 exp_{downward,towardzero,upward} ulps.
18912
18913 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18914
18915 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
18916 variables static.
18917
18918 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
18919 (Y0_2D): Likewise.
18920 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
18921 (Y0_2D): Likewise.
18922 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
18923 (Y0_2D): Likewise.
18924 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
18925 (Y0_2D): Likewise.
18926
18927 2017-12-06 Mike FABIAN <mfabian@redhat.com>
18928
18929 [BZ #22515]
18930 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
18931 and to the list of locales to be built for testing.
18932 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
18933 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
18934 and build the collation rules upon that.
18935
18936 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18937
18938 * NEWS: Add sinf to list of optimized functions.
18939
18940 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18941
18942 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
18943 (__HAVE_FLOAT32X): Likewise.
18944 * manual/math.texi (Mathematics): Document support for _Float64
18945 and _Float32x.
18946 * math/Makefile (test-types): Add float64 and float32x.
18947 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
18948 functions.
18949 * stdlib/Versions (GLIBC_2.27): Likewise.
18950 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18951 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18952 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18953 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18954 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18955 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18956 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18957 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18958 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18959 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18960 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18961 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18962 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18963 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18964 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18965 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18966 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18967 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18968 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18969 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18970 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18971 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18972 Likewise.
18973 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18974 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18975 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18976 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18977 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18978 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18979 Likewise.
18980 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18981 Likewise.
18982 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18983 Likewise.
18984 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18985 Likewise.
18986 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18987 Likewise.
18988 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18989 Likewise.
18990 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18991 Likewise.
18992 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18993 Likewise.
18994 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18995 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18996 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18997 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18998 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18999 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19000 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19001 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19002 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19003 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19004 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19005 Likewise.
19006 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19007 Likewise.
19008 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19009 Likewise.
19010 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19011 Likewise.
19012 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19013 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19014 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19015 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19016 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19017 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19018 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19019 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19020
19021 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19022
19023 * bits/floatn-common.h: Include <bits/long-double.h>.
19024 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19025 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19026 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19027 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19028 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19029 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19030 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19031 (__builtin_huge_valf64): Use __builtin_huge_vall.
19032 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19033 (__builtin_inff64): Use __builtin_infl.
19034 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19035 (__builtin_nanf64): Use __builtin_nanl.
19036 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19037 (__builtin_nansf64): Use __builtin_nansl.
19038
19039 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19040 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19041 Carlos O'Donnell <carlos@redhat.com>
19042
19043 * elf/dl-tunables.list: Add elision parameters.
19044 * manual/tunables.texi: Add entries about elision tunable.
19045 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19046 Add callback functions to dynamically enable/disable elision.
19047 Add multiple callbacks functions to set elision parameters.
19048 Deleted __libc_enable_secure check.
19049 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19050 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19051 * configure: Regenerated.
19052 * configure.ac: Option enable_lock_elision was deleted.
19053 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19054 * config.make.in: Remove references to enable_lock_elision.
19055 * manual/install.texi: Elision configure option was removed.
19056 * INSTALL: Regenerated to remove enable_lock_elision.
19057 * nptl/Makefile:
19058 Disable elision so it can verify error case for destroying a mutex.
19059 * sysdeps/powerpc/nptl/elide.h:
19060 Cleanup ENABLE_LOCK_ELISION check.
19061 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19062 * sysdeps/s390/configure: Regenerated.
19063 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19064 * nptl/tst-mutex8.c:
19065 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19066 * sysdeps/powerpc/powerpc32/sysdep.h:
19067 Deleted all ENABLE_LOCK_ELISION checks.
19068 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19069 * sysdeps/powerpc/sysdep.h: Likewise.
19070 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19071 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19072 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19073 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19074 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19075 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19076 enable-lock-elision.
19077
19078 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19079
19080 * stdlib/strtod.c: Include <bits/floatn.h>.
19081 (BUILD_DOUBLE): New macro.
19082 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19083 (strtof64): Define and later undefine as macro. Define as weak
19084 alias if [!USE_WIDE_CHAR].
19085 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19086 (wcstof64): Define and later undefine as macro. Define as weak
19087 alias if [USE_WIDE_CHAR].
19088 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19089 (strtof32x): Define and later undefine as macro. Define as weak
19090 alias if [!USE_WIDE_CHAR].
19091 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19092 (wcstof32x): Define and later undefine as macro. Define as weak
19093 alias if [USE_WIDE_CHAR].
19094 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19095 (BUILD_DOUBLE): New macro.
19096 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19097 (strtof64_l): Define and later undefine as macro. Define as weak
19098 alias if [!USE_WIDE_CHAR].
19099 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19100 (wcstof64_l): Define and later undefine as macro. Define as weak
19101 alias if [USE_WIDE_CHAR].
19102 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19103 (strtof32x_l): Define and later undefine as macro. Define as weak
19104 alias if [!USE_WIDE_CHAR].
19105 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19106 (wcstof32x_l): Define and later undefine as macro. Define as weak
19107 alias if [USE_WIDE_CHAR].
19108
19109 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19110
19111 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19112 (reduced): Use ones as double instead of integer.
19113
19114 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19115
19116 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19117
19118 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19119
19120 * stdlib/strfromd.c: Include <bits/floatn.h>.
19121 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19122 and later undefine as macro and define as weak alias.
19123 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19124 Likewise.
19125
19126 * math/test-float32x.h: New file.
19127 * math/test-float64.h: Likewise.
19128
19129 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19130 (libm_alias_double_other_r_f64): New macro.
19131 (libm_alias_double_other_r_f32x): Likewise.
19132 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19133 libm_alias_double_other_r_f32x.
19134 (libm_alias_double_r): Use semicolon before call to
19135 libm_alias_double_other_r.
19136 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19137 <bits/floatn.h>.
19138 (libm_alias_double_other_r_f64): New macro.
19139 (libm_alias_double_other_r_f32x): Likewise.
19140 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19141 libm_alias_double_other_r_f32x.
19142
19143 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19144
19145 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19146 int.
19147 (SINF_FUNC): Likewise. Replace floor with simple casts.
19148
19149 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19150
19151 [BZ #22517]
19152 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19153 and to the list of locales to be built for testing.
19154 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19155 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19156 and build the collation rules upon that.
19157
19158 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19159
19160 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19161 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19162 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19163 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19164 instead of __insn__xxx.
19165 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19166 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19167 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19168 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19169 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19170 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19171
19172 2017-12-05 Florian Weimer <fweimer@redhat.com>
19173
19174 Linux: Implement interfaces for memory protection keys
19175 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19176 xsignal, xsysconf.
19177 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19178 * support/xunistd.h (xsysconf): Declare.
19179 * support/xraise.c: New file.
19180 * support/xsigaction.c: Likewise.
19181 * support/xsignal.c: Likewise.
19182 * support/xsysconf.c: Likewise.
19183 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19184 pkey_set, pkey_get, pkey_mprotect.
19185 [misc] (tests): Add tst-pkey.
19186 (tst-pkey): Link with -lpthread.
19187 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19188 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19189 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19190 (PKEY_DISABLE_WRITE): Define.
19191 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19192 Declare.
19193 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19194 (SEGV_PKUERR): Add.
19195 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19196 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19197 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19198 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19199 Add.
19200 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19201 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19202 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19203 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19204 * sysdeps/unix/sysv/linux/**.abilist: Update.
19205
19206 2017-12-05 Florian Weimer <fweimer@redhat.com>
19207
19208 * support/tst-test_compare.c (subprocess): Use long long instead
19209 of long argument for consistent type width across 32-bit and
19210 64-bit architectures.
19211 (do_test): Adjust expected output.
19212
19213 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19214
19215 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19216 (cosf): Define using libm_alias_float.
19217 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19218 (fabsf): Define using libm_alias_float.
19219 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19220 (fmaf): Define using libm_alias_float.
19221 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19222 (rintf): Define using libm_alias_float.
19223 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19224 (sinf): Define using libm_alias_float.
19225 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19226 <libm-alias-float.h>.
19227 (modff): Define using libm_alias_float.
19228 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19229 <libm-alias-float.h>.
19230 (logbf): Define using libm_alias_float.
19231 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19232 <libm-alias-float.h>.
19233 (ceilf): Define using libm_alias_float.
19234 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19235 <libm-alias-float.h>.
19236 (copysignf): Define using libm_alias_float.
19237 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19238 <libm-alias-float.h>.
19239 (floorf): Define using libm_alias_float.
19240 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19241 <libm-alias-float.h>.
19242 (llrintf): Define using libm_alias_float.
19243 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19244 <libm-alias-float.h>.
19245 (llroundf): Define using libm_alias_float.
19246 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19247 <libm-alias-float.h>.
19248 (lrintf): Define using libm_alias_float.
19249 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19250 <libm-alias-float.h>.
19251 (lroundf): Define using libm_alias_float.
19252 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19253 <libm-alias-float.h>.
19254 (nearbyintf): Define using libm_alias_float.
19255 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19256 <libm-alias-float.h>.
19257 (rintf): Define using libm_alias_float.
19258 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19259 <libm-alias-float.h>.
19260 (roundf): Define using libm_alias_float.
19261 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19262 <libm-alias-float.h>.
19263 (truncf): Define using libm_alias_float.
19264 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19265 Include <libm-alias-float.h>.
19266 (ceilf): Define using libm_alias_float.
19267 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19268 Include <libm-alias-float.h>.
19269 (copysignf): Define using libm_alias_float.
19270 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19271 Include <libm-alias-float.h>.
19272 (floorf): Define using libm_alias_float.
19273 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19274 Include <libm-alias-float.h>.
19275 (llrintf): Define using libm_alias_float.
19276 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19277 Include <libm-alias-float.h>.
19278 (llroundf): Define using libm_alias_float.
19279 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19280 Include <libm-alias-float.h>.
19281 (logbf): Define using libm_alias_float.
19282 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19283 Include <libm-alias-float.h>.
19284 (lrintf): Define using libm_alias_float.
19285 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19286 Include <libm-alias-float.h>.
19287 (lroundf): Define using libm_alias_float.
19288 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19289 Include <libm-alias-float.h>.
19290 (modff): Define using libm_alias_float.
19291 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19292 Include <libm-alias-float.h>.
19293 (roundf): Define using libm_alias_float.
19294 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19295 Include <libm-alias-float.h>.
19296 (truncf): Define using libm_alias_float.
19297 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19298 <libm-alias-float.h>.
19299 (llrintf): Define using libm_alias_float.
19300 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19301 <libm-alias-float.h>.
19302 (llroundf): Define using libm_alias_float.
19303 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19304 <libm-alias-float.h>.
19305 (ceilf): Define using libm_alias_float.
19306 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19307 <libm-alias-float.h>.
19308 (floorf): Define using libm_alias_float.
19309 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19310 <libm-alias-float.h>.
19311 (llroundf): Define using libm_alias_float.
19312 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19313 <libm-alias-float.h>.
19314 (lroundf): Define using libm_alias_float.
19315 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19316 <libm-alias-float.h>.
19317 (roundf): Define using libm_alias_float.
19318 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19319 <libm-alias-float.h>.
19320 (truncf): Define using libm_alias_float.
19321 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19322 <libm-alias-float.h>.
19323 (copysignf): Define using libm_alias_float.
19324 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19325 <libm-alias-float.h>.
19326 (llrintf): Define using libm_alias_float.
19327 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19328 <libm-alias-float.h>.
19329 (llroundf): Define using libm_alias_float.
19330 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19331 <libm-alias-float.h>.
19332 (lrintf): Define using libm_alias_float.
19333 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19334 <libm-alias-float.h>.
19335 (lroundf): Define using libm_alias_float.
19336 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19337 <libm-alias-float.h>.
19338 (ceilf): Define using libm_alias_float.
19339 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19340 <libm-alias-float.h>.
19341 (copysignf): Define using libm_alias_float.
19342 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19343 <libm-alias-float.h>.
19344 (cosf): Define using libm_alias_float.
19345 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
19346 <libm-alias-float.h>.
19347 (floorf): Define using libm_alias_float.
19348 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
19349 <libm-alias-float.h>.
19350 (llrintf): Define using libm_alias_float.
19351 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
19352 <libm-alias-float.h>.
19353 (llroundf): Define using libm_alias_float.
19354 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19355 <libm-alias-float.h>.
19356 (logbf): Define using libm_alias_float.
19357 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19358 <libm-alias-float.h>.
19359 (modff): Define using libm_alias_float.
19360 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19361 <libm-alias-float.h>.
19362 (roundf): Define using libm_alias_float.
19363 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19364 <libm-alias-float.h>.
19365 (sinf): Define using libm_alias_float.
19366 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19367 <libm-alias-float.h>.
19368 (truncf): Define using libm_alias_float.
19369 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
19370 <libm-alias-float.h>.
19371 (ceilf): Define using libm_alias_float.
19372 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19373 <libm-alias-float.h>.
19374 (copysignf): Define using libm_alias_float.
19375 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
19376 <libm-alias-float.h>.
19377 (floorf): Define using libm_alias_float.
19378 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19379 <libm-alias-float.h>.
19380 (llrintf): Define using libm_alias_float.
19381 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
19382 <libm-alias-float.h>.
19383 (llroundf): Define using libm_alias_float.
19384 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
19385 <libm-alias-float.h>.
19386 (nearbyintf): Define using libm_alias_float.
19387 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
19388 <libm-alias-float.h>.
19389 (rintf): Define using libm_alias_float.
19390 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
19391 <libm-alias-float.h>.
19392 (roundf): Define using libm_alias_float.
19393 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
19394 <libm-alias-float.h>.
19395 (truncf): Define using libm_alias_float.
19396 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
19397 <libm-alias-float.h>.
19398 (ceilf): Define using libm_alias_float.
19399 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
19400 <libm-alias-float.h>.
19401 (floorf): Define using libm_alias_float.
19402 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19403 <libm-alias-float.h>.
19404 (llroundf): Define using libm_alias_float.
19405 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
19406 <libm-alias-float.h>.
19407 (roundf): Define using libm_alias_float.
19408 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
19409 <libm-alias-float.h>.
19410 (truncf): Define using libm_alias_float.
19411 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19412 <libm-alias-float.h>.
19413 (copysignf): Define using libm_alias_float.
19414 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19415 <libm-alias-float.h>.
19416 (llrintf): Define using libm_alias_float.
19417 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19418 <libm-alias-float.h>.
19419 (llroundf): Define using libm_alias_float.
19420 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
19421 <libm-alias-float.h>.
19422 (cosf): Define using libm_alias_float.
19423 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19424 <libm-alias-float.h>.
19425 (llrintf): Define using libm_alias_float.
19426 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19427 <libm-alias-float.h>.
19428 (llroundf): Define using libm_alias_float.
19429 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
19430 <libm-alias-float.h>.
19431 (sinf): Define using libm_alias_float.
19432
19433 2017-12-04 Florian Weimer <fweimer@redhat.com>
19434
19435 * support/check.h (TEST_COMPARE): Define.
19436 (support_test_compare_failure): Declare.
19437 * support/Makefile (libsupport-routines): Add
19438 support_test_compare_failure.
19439 (tests): Add tst-test_compare.
19440 * support /support_test_compare_failure.c: New file.
19441 * support/tst-test_compare.c: Likewise.
19442
19443 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19444
19445 [BZ #22527]
19446 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
19447 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
19448 available, this rewrite of the collation rules does reproduce
19449 the test file in the same order.
19450
19451 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19452
19453 [BZ #10580]
19454 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
19455 digraphs in the month and day names. Using single code points for
19456 digraphs is deprecated. While there are dedicated Unicode
19457 codepoints, for the digraphs, these are included for backwards
19458 compatibility and modern texts use a sequence of Basic Latin
19459 characters. See: https://www.unicode.org/faq/ligature_digraph.html
19460 This makes the month and day names agree exactly with CLDR now,
19461 CLDR does not use the single code points for the digraphs either.
19462
19463 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
19464
19465 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
19466
19467 2017-12-04 Joseph Myers <joseph@codesourcery.com>
19468
19469 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
19470 of floor.
19471
19472 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
19473
19474 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
19475 Define only for libc.so.
19476
19477 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
19478
19479 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19480 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
19481 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
19482 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
19483 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
19484
19485 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19486
19487 [BZ #5997]
19488 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
19489
19490 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
19491
19492 [BZ libc/19170]
19493 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
19494 PREINIT_FUNCTION_WEAK is nonzero.
19495 (gmon_initializer): New function. Put procedure label for it in
19496 .init_array section.
19497 (_init): Don't call PREINIT_FUNCTION.
19498 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
19499 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
19500 value when map argument is null.
19501
19502 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
19503 depi instruction from PIC pc-relative sequence.
19504 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
19505 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
19506 (elf_machine_load_address): Likewise.
19507 (elf_machine_runtime_setup): Likewise.
19508
19509 2017-12-02 Joseph Myers <joseph@codesourcery.com>
19510
19511 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
19512 <libm-alias-double.h>.
19513 (logb): Define using libm_alias_double.
19514 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19515 <libm-alias-double.h>.
19516 (copysign): Define using libm_alias_double.
19517 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
19518 <libm-alias-double.h>.
19519 (llrint): Define using libm_alias_double.
19520 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
19521 <libm-alias-double.h>.
19522 (llround): Define using libm_alias_double.
19523 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19524 <libm-alias-double.h>.
19525 (lrint): Define using libm_alias_double.
19526 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19527 <libm-alias-double.h>.
19528 (lround): Define using libm_alias_double.
19529 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
19530 Include <libm-alias-double.h>.
19531 (copysign): Define using libm_alias_double.
19532 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
19533 Include <libm-alias-double.h>.
19534 (llrint): Define using libm_alias_double.
19535 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
19536 Include <libm-alias-double.h>.
19537 (llround): Define using libm_alias_double.
19538 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
19539 <libm-alias-double.h>.
19540 (logb): Define using libm_alias_double.
19541 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
19542 Include <libm-alias-double.h>.
19543 (lrint): Define using libm_alias_double.
19544 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
19545 Include <libm-alias-double.h>.
19546 (lround): Define using libm_alias_double.
19547 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
19548 <libm-alias-double.h>.
19549 (llrint): Define using libm_alias_double.
19550 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19551 <libm-alias-double.h>.
19552 (llround): Define using libm_alias_double.
19553 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19554 <libm-alias-double.h>.
19555 (llround): Define using libm_alias_double.
19556 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19557 <libm-alias-double.h>.
19558 (lround): Define using libm_alias_double.
19559 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19560 <libm-alias-double.h>.
19561 (copysign): Define using libm_alias_double.
19562 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
19563 <libm-alias-double.h>.
19564 (llrint): Define using libm_alias_double.
19565 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19566 <libm-alias-double.h>.
19567 (llround): Define using libm_alias_double.
19568 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19569 <libm-alias-double.h>.
19570 (lrint): Define using libm_alias_double.
19571 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19572 <libm-alias-double.h>.
19573 (lround): Define using libm_alias_double.
19574 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
19575 <libm-alias-double.h>.
19576 (copysign): Define using libm_alias_double.
19577 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
19578 <libm-alias-double.h>.
19579 (llrint): Define using libm_alias_double.
19580 (lrint): Likewise.
19581 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
19582 <libm-alias-double.h>.
19583 (llround): Define using libm_alias_double.
19584 (lround): Likewise.
19585 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
19586 <libm-alias-double.h>.
19587 (logb): Define using libm_alias_double.
19588 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19589 <libm-alias-double.h>.
19590 (copysign): Define using libm_alias_double.
19591 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19592 <libm-alias-double.h>.
19593 (llrint): Define using libm_alias_double.
19594 (lrint): Likewise.
19595 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
19596 <libm-alias-double.h>.
19597 (llround): Define using libm_alias_double.
19598 (lround): Likewise.
19599 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19600 <libm-alias-double.h>.
19601 (llround): Define using libm_alias_double.
19602 (lround): Likewise.
19603 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19604 <libm-alias-double.h>.
19605 (copysign): Define using libm_alias_double.
19606 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19607 <libm-alias-double.h>.
19608 (llrint): Define using libm_alias_double.
19609 (lrint): Likewise.
19610 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19611 <libm-alias-double.h>.
19612 (llround): Define using libm_alias_double.
19613 (lround): Likewise.
19614 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19615 <libm-alias-double.h>.
19616 (llrint): Define using libm_alias_double.
19617 (lrint): Likewise.
19618 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19619 <libm-alias-double.h>.
19620 (llround): Define using libm_alias_double.
19621 (lround): Likewise.
19622
19623 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19624
19625 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
19626 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
19627 compat symbol based on llround.
19628
19629 * sysdeps/powerpc/power7/fpu/s_logb.c
19630 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
19631 symbol based on __logb, not on logb.
19632 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
19633 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19634 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
19635 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19636
19637 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
19638 (rint): Define using libm_alias_double.
19639 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
19640 <libm-alias-double.h>.
19641 (modf): Define using libm_alias_double.
19642 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
19643 <libm-alias-double.h>.
19644 (ceil): Define using libm_alias_double.
19645 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
19646 <libm-alias-double.h>.
19647 (floor): Define using libm_alias_double.
19648 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
19649 <libm-alias-double.h>.
19650 (nearbyint): Define using libm_alias_double.
19651 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
19652 <libm-alias-double.h>.
19653 (rint): Define using libm_alias_double.
19654 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
19655 <libm-alias-double.h>.
19656 (round): Define using libm_alias_double.
19657 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
19658 <libm-alias-double.h>.
19659 (trunc): Define using libm_alias_double.
19660 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
19661 <libm-alias-double.h>.
19662 (ceil): Define using libm_alias_double.
19663 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
19664 Include <libm-alias-double.h>.
19665 (floor): Define using libm_alias_double.
19666 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
19667 <libm-alias-double.h>.
19668 (modf): Define using libm_alias_double.
19669 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
19670 Include <libm-alias-double.h>.
19671 (round): Define using libm_alias_double.
19672 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
19673 Include <libm-alias-double.h>.
19674 (trunc): Define using libm_alias_double.
19675 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
19676 <libm-alias-double.h>.
19677 (ceil): Define using libm_alias_double.
19678 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
19679 <libm-alias-double.h>.
19680 (floor): Define using libm_alias_double.
19681 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
19682 <libm-alias-double.h>.
19683 (round): Define using libm_alias_double.
19684 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
19685 <libm-alias-double.h>.
19686 (trunc): Define using libm_alias_double.
19687 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
19688 <libm-alias-double.h>.
19689 (ceil): Define using libm_alias_double.
19690 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
19691 <libm-alias-double.h>.
19692 (floor): Define using libm_alias_double.
19693 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
19694 <libm-alias-double.h>.
19695 (modf): Define using libm_alias_double.
19696 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
19697 <libm-alias-double.h>.
19698 (round): Define using libm_alias_double.
19699 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
19700 <libm-alias-double.h>.
19701 (trunc): Define using libm_alias_double.
19702 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
19703 <libm-alias-double.h>.
19704 (ceil): Define using libm_alias_double.
19705 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
19706 <libm-alias-double.h>.
19707 (floor): Define using libm_alias_double.
19708 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
19709 <libm-alias-double.h>.
19710 (nearbyint): Define using libm_alias_double.
19711 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
19712 <libm-alias-double.h>.
19713 (rint): Define using libm_alias_double.
19714 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
19715 <libm-alias-double.h>.
19716 (round): Define using libm_alias_double.
19717 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
19718 <libm-alias-double.h>.
19719 (trunc): Define using libm_alias_double.
19720 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
19721 <libm-alias-double.h>.
19722 (ceil): Define using libm_alias_double.
19723 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
19724 <libm-alias-double.h>.
19725 (floor): Define using libm_alias_double.
19726 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
19727 <libm-alias-double.h>.
19728 (round): Define using libm_alias_double.
19729 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
19730 <libm-alias-double.h>.
19731 (trunc): Define using libm_alias_double.
19732
19733 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
19734 (fabs): Define using libm_alias_double.
19735 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
19736 (fma): Define using libm_alias_double.
19737 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
19738 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
19739 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
19740 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
19741
19742 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19743
19744 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
19745
19746 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
19747 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
19748 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
19749
19750 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
19751 due redirect macro.
19752
19753 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
19754
19755 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
19756
19757 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19758
19759 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
19760 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
19761 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
19762 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
19763
19764 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19765 (libm-sysdep_routines): Add s_nearbyintf-generic and
19766 s_nearbyint-generic.
19767 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
19768 New file.
19769 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
19770 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
19771 Likewise.
19772 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
19773 Likewise.
19774 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
19775 file.
19776 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
19777 Likewise.
19778
19779 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19780 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
19781 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
19782 file.
19783 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
19784 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
19785 Likewise.
19786 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
19787 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
19788 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
19789
19790 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19791 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
19792 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
19793 file.
19794 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
19795 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
19796 Likewise.
19797 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
19798 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
19799 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
19800
19801 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19802 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
19803 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
19804 file.
19805 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
19806 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
19807 Likewise.
19808 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
19809 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
19810 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
19811
19812 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19813 (sysdep_calls): New rule.
19814 (sysdep_routines): Use sysdep_calls as base.
19815 (libm-sysdep_routines): Add generic rule for symbols shared with
19816 libc. Add s_copysign-generic and s_copysign-generic objects.
19817 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
19818 New file.
19819 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
19820 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
19821 Likewise.
19822 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
19823 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
19824 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
19825
19826 2017-12-01 Mike FABIAN <mfabian@redhat.com>
19827
19828 [BZ #22519]
19829 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
19830 the list of locales to be built for testing.
19831 * localedata/is_IS.UTF-8.in: New file.
19832 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
19833 on iso14651_t1.
19834
19835 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19836
19837 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
19838 <libm-alias-float.h>.
19839 (fabsf): Define using libm_alias_float.
19840
19841 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
19842
19843 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
19844
19845 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19846
19847 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
19848 <libm-alias-float.h>.
19849 (fabsf): Define using libm_alias_float.
19850 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
19851 <libm-alias-float.h>.
19852 (lrintf): Define using libm_alias_float.
19853 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
19854 <libm-alias-float.h>.
19855 (rintf): Define using libm_alias_float.
19856
19857 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
19858 <libm-alias-double.h>.
19859 (fabs): Define using libm_alias_double.
19860 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
19861 <libm-alias-double.h>.
19862 (lrint): Define using libm_alias_double.
19863 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
19864 <libm-alias-double.h>.
19865 (rint): Define using libm_alias_double.
19866
19867 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
19868 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
19869 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
19870 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
19871 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
19872 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
19873 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
19874 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
19875 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
19876 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
19877 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
19878 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
19879 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
19880 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
19881 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
19882 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
19883 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
19884 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
19885 s_atan_template.c.
19886 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
19887 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
19888 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
19889 s_ceil_template.c.
19890 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
19891 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
19892 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
19893 s_cos_template.c.
19894 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
19895 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
19896 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
19897 s_expm1_template.c.
19898 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
19899 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
19900 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
19901 s_fabs_template.c.
19902 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
19903 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
19904 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
19905 s_floor_template.c.
19906 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
19907 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
19908 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
19909 s_frexp_template.c.
19910 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
19911 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
19912 s_lrint_template.c.
19913 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
19914 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
19915 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
19916 s_modf_template.c.
19917 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
19918 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
19919 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
19920 s_nearbyint_template.c.
19921 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
19922 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
19923 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
19924 s_remquo_template.c.
19925 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
19926 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
19927 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
19928 s_rint_template.c.
19929 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
19930 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
19931 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
19932 s_sin_template.c.
19933 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
19934 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
19935 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
19936 s_sincos_template.c.
19937 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
19938 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
19939 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
19940 s_tan_template.c.
19941 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
19942 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
19943 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
19944 s_tanh_template.c.
19945 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
19946 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
19947 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
19948 s_trunc_template.c.
19949 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
19950 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
19951 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
19952 s_atan.c instead of including s_atan.c.
19953 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
19954 s_atanf.c instead of including s_atanf.c.
19955 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
19956 s_atanl.c instead of including s_atanl.c.
19957 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
19958 instead of s_atan.c.
19959 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
19960 instead of s_atanf.c.
19961 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
19962 instead of s_atanl.c.
19963
19964 * scripts/update-copyrights: Do not handle intl/plural.c
19965 specially.
19966
19967 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
19968
19969 [BZ #22432]
19970 * configure.ac (BISON): Require to be present.
19971 * configure: Regenerated.
19972 * intl/Makefile (generated): Add plural.c.
19973 [$(BISON) != no]: Make code unconditional.
19974 (plural.c): Change rule to $(objpfx)plural.c.
19975 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
19976 * intl/plural.c: Remove.
19977 * manual/install.texi (Tools for Compilation): Document bison as
19978 required.
19979 * INSTALL: Regenerated.
19980
19981 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19982
19983 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
19984 <libm-alias-double.h>.
19985 (llrint): Define using libm_alias_double.
19986 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
19987 <libm-alias-float.h>.
19988 (llrintf): Define using libm_alias_float.
19989 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
19990 <libm-alias-ldouble.h>.
19991 (llrintl): Define using libm_alias_ldouble.
19992
19993 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
19994 declare_mgen_alias instead of weak_alias.
19995 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
19996 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
19997 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
19998
19999 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20000
20001 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20002 Add add_n-generic.
20003 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20004 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20005 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20006
20007 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20008 Add submul_1-generic.
20009 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20010 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20011 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20012
20013 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20014 Add addmul_1-generic.
20015 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
20016 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
20017 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
20018
20019 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20020 Add sub_n-generic.
20021 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
20022 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20023 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20024
20025 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20026 Add mul_1-generic.
20027 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20028 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20029 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20030
20031 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20032
20033 According to CLDR, collation rules for Serbian and Bosnian
20034 should be the same as for Croatian.
20035
20036 [BZ #22534]
20037 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20038 and to the list of locales to be built for testing.
20039 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20040 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20041 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20042 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20043
20044 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20045
20046 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20047 to make test case pass.
20048 * localedata/hr_HR.UTF-8.in: Add more test strings.
20049
20050 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20051
20052 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20053
20054 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20055
20056 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20057 the list of locales to built for testing.
20058 * localedata/hr_HR.UTF-8.in: New file.
20059
20060 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20061
20062 [BZ #10580]
20063 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20064 iso14651_t1.
20065 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20066 CLDR (except use ligatures for the digraphs, CLDR does not use
20067 the ligatures), add first_workday, some fixes in the date and time
20068 formats.
20069 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20070 for Đ and đ.
20071 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20072 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20073 Add int_p_cs_precedes and int_n_cs_precedes.
20074 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20075 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20076 LC_MONETARY now).
20077 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20078 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20079 name_miss.
20080 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20081 and lang_lib. Change postal_fmt.
20082
20083 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20084
20085 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20086 <setjmp.h>.
20087 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20088 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20089 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20090 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20091 * sysdeps/generic/setjmpP.h: New file.
20092 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20093 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20094 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20095 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20096 Add jmp_buf-ssp.sym.
20097 (tests): Add tst-saved_mask-1.
20098
20099 2017-11-30 Arjun Shankar <arjun@redhat.com>
20100
20101 [BZ #22375]
20102 CVE-2017-17426
20103 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20104 instead of request2size.
20105
20106 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20107
20108 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20109 (__lllrint): Remove alias.
20110 (lllrint): Likewise.
20111 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20112 (__lllrintf): Likewise.
20113 (lllrintf): Likewise.
20114
20115 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20116 <libm-alias-float.h>.
20117 (copysignf): Define using libm_alias_float.
20118 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20119 <libm-alias-float.h>.
20120 (fabsf): Define using libm_alias_float.
20121 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20122 Include <libm-alias-float.h>.
20123 (copysignf): Define using libm_alias_float.
20124 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20125 <libm-alias-float.h>.
20126 (fabsf): Define using libm_alias_float.
20127 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20128 <libm-alias-float.h>.
20129 (fdimf): Define using libm_alias_float.
20130 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20131 <libm-alias-float.h>.
20132 (fmaf): Define using libm_alias_float.
20133 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20134 <libm-alias-float.h>.
20135 (llrintf): Define using libm_alias_float.
20136 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20137 Include <libm-alias-float.h>.
20138 (nearbyintf): Define using libm_alias_float.
20139 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20140 <libm-alias-float.h>.
20141 (rintf): Define using libm_alias_float.
20142 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20143 <libm-alias-float.h>.
20144 (llrintf): Define using libm_alias_float.
20145 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20146 <libm-alias-float.h>.
20147 (lrintf): Define using libm_alias_float.
20148 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20149 <libm-alias-float.h>.
20150 (nearbyintf): Define using libm_alias_float.
20151 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20152 <libm-alias-float.h>.
20153 (rintf): Define using libm_alias_float.
20154 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20155 <libm-alias-float.h>.
20156 (ceilf): Define using libm_alias_float.
20157 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20158 <libm-alias-float.h>.
20159 (floorf): Define using libm_alias_float.
20160 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20161 <libm-alias-float.h>.
20162 (fmaf): Define using libm_alias_float.
20163 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20164 <libm-alias-float.h>.
20165 (lrintf): Define using libm_alias_float.
20166 (llrintf): Likewise.
20167 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20168 <libm-alias-float.h>.
20169 (nearbyintf): Define using libm_alias_float.
20170 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20171 <libm-alias-float.h>.
20172 (rintf): Define using libm_alias_float.
20173 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20174 <libm-alias-float.h>.
20175 (truncf): Define using libm_alias_float.
20176 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20177 <libm-alias-float.h>.
20178 (copysignf): Define using libm_alias_float.
20179 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20180 <libm-alias-float.h>.
20181 (fabsf): Define using libm_alias_float.
20182 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20183 <libm-alias-float.h>.
20184 (lrintf): Define using libm_alias_float.
20185 (llrintf): Likewise.
20186 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20187 <libm-alias-float.h>.
20188 (nearbyintf): Define using libm_alias_float.
20189 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20190 <libm-alias-float.h>.
20191 (rintf): Define using libm_alias_float.
20192
20193 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20194
20195 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20196 <libm-alias-double.h>.
20197 (copysign): Define using libm_alias_double.
20198 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20199 <libm-alias-double.h>.
20200 (fabs): Define using libm_alias_double.
20201 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20202 Include <libm-alias-double.h>.
20203 (copysign): Define using libm_alias_double.
20204 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20205 <libm-alias-double.h>.
20206 (fabs): Define using libm_alias_double.
20207 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20208 <libm-alias-double.h>.
20209 (fdim): Define using libm_alias_double.
20210 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20211 <libm-alias-double.h>.
20212 (fma): Define using libm_alias_double.
20213 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20214 <libm-alias-double.h>.
20215 (llrint): Define using libm_alias_double.
20216 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20217 Include <libm-alias-double.h>.
20218 (nearbyint): Define using libm_alias_double.
20219 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20220 <libm-alias-double.h>.
20221 (rint): Define using libm_alias_double.
20222 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20223 <libm-alias-double.h>.
20224 (fabs): Define using libm_alias_double.
20225 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20226 <libm-alias-double.h>.
20227 (llrint): Define using libm_alias_double.
20228 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20229 <libm-alias-double.h>.
20230 (nearbyint): Define using libm_alias_double.
20231 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20232 <libm-alias-double.h>.
20233 (rint): Define using libm_alias_double.
20234 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20235 <libm-alias-double.h>.
20236 (ceil): Define using libm_alias_double.
20237 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20238 <libm-alias-double.h>.
20239 (floor): Define using libm_alias_double.
20240 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20241 <libm-alias-double.h>.
20242 (fma): Define using libm_alias_double.
20243 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20244 <libm-alias-double.h>.
20245 (lrint): Define using libm_alias_double.
20246 (llrint): Likewise.
20247 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20248 <libm-alias-double.h>.
20249 (nearbyint): Define using libm_alias_double.
20250 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20251 <libm-alias-double.h>.
20252 (rint): Define using libm_alias_double.
20253 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20254 <libm-alias-double.h>.
20255 (trunc): Define using libm_alias_double.
20256 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20257 <libm-alias-double.h>.
20258 (copysign): Define using libm_alias_double.
20259 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20260 <libm-alias-double.h>.
20261 (fabs): Define using libm_alias_double.
20262 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20263 <libm-alias-double.h>.
20264 (lrint): Define using libm_alias_double.
20265 (llrint): Likewise.
20266 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20267 <libm-alias-double.h>.
20268 (nearbyint): Define using libm_alias_double.
20269 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20270 <libm-alias-double.h>.
20271 (rint): Define using libm_alias_double.
20272
20273 [BZ #22229]
20274 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20275 <math_ldbl_opt.h>.
20276 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20277
20278 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20279 SPARC --disable-multi-arch glibc variants.
20280
20281 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20282 <libm-alias-float.h>.
20283 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20284 if [SHARED].
20285 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20286 <libm-alias-float.h>.
20287 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20288 if [SHARED].
20289 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20290 <libm-alias-float.h>.
20291 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20292 if [SHARED].
20293 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20294 <libm-alias-float.h>.
20295 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20296 if [SHARED].
20297 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20298 <libm-alias-float.h>.
20299 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20300 if [SHARED].
20301 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20302 <libm-alias-float.h>.
20303 (ceilf): Define using libm_alias_float.
20304 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20305 <libm-alias-float.h>.
20306 (floorf): Define using libm_alias_float.
20307 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20308 <libm-alias-float.h>.
20309 (fmaf): Define using libm_alias_float.
20310 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20311 <libm-alias-float.h>.
20312 (nearbyintf): Define using libm_alias_float.
20313 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20314 <libm-alias-float.h>.
20315 (rintf): Define using libm_alias_float.
20316 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20317 <libm-alias-float.h>.
20318 (truncf): Define using libm_alias_float.
20319 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20320 (copysignf): Define using libm_alias_float.
20321 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20322 (cosf): Define using libm_alias_float.
20323 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20324 (fabsf): Define using libm_alias_float.
20325 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20326 (fmaxf): Define using libm_alias_float.
20327 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20328 (fminf): Define using libm_alias_float.
20329 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20330 (llrintf): Define using libm_alias_float.
20331 [!__ILP32__] (lrintf): Likewise.
20332 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20333 (sincosf): Define using libm_alias_float.
20334 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20335 (sinf): Define using libm_alias_float.
20336 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20337 (lrintf): Define using libm_alias_float.
20338
20339 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20340 <libm-alias-double.h>.
20341 (atan): Define using libm_alias_double.
20342 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20343 <libm-alias-double.h>.
20344 (ceil): Define using libm_alias_double.
20345 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
20346 <libm-alias-double.h>.
20347 (floor): Define using libm_alias_double.
20348 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
20349 <libm-alias-double.h>.
20350 (fma): Define using libm_alias_double.
20351 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
20352 <libm-alias-double.h>.
20353 (nearbyint): Define using libm_alias_double.
20354 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20355 <libm-alias-double.h>.
20356 (rint): Define using libm_alias_double.
20357 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20358 <libm-alias-double.h>.
20359 (sin): Define using libm_alias_double.
20360 (cos): Likewise.
20361 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20362 <libm-alias-double.h>.
20363 (tan): Define using libm_alias_double.
20364 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20365 <libm-alias-double.h>.
20366 (trunc): Define using libm_alias_double.
20367 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20368 (copysign): Define using libm_alias_double.
20369 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
20370 (fabs): Define using libm_alias_double.
20371 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
20372 (fmax): Define using libm_alias_double.
20373 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
20374 (fmin): Define using libm_alias_double.
20375 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
20376 (llrint): Define using libm_alias_double.
20377 [!__ILP32__] (lrint): Likewise.
20378 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
20379 (lrint): Define using libm_alias_double.
20380
20381 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20382
20383 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20384 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
20385 objects.
20386 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
20387 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
20388 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
20389 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
20390 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
20391 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20392
20393 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20394 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
20395 objects.
20396 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
20397 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
20398 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
20399 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
20400 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
20401 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20402
20403 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20404 (libm-sysdep_routines): Add s_nearbyint-generic and
20405 s_nearbyintf-generic objects.
20406 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
20407 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
20408 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
20409 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
20410 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
20411 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
20412
20413 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20414 Add s_finitef-generic and s_finite-generic objects.
20415 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
20416 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
20417 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
20418 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
20419 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
20420 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
20421
20422 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20423 Add s_isinff-generic and s_isinf-generic objects.
20424 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
20425 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
20426 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
20427 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
20428 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
20429 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
20430
20431 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20432 Add s_isnanf-generic and s_isnan-generic objects.
20433 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
20434 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
20435 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
20436 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
20437 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
20438 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
20439
20440 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
20441 macro.
20442 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
20443 rule.
20444 (sysdep_routines): Use sysdep_calls as base.
20445 (libm-sysdep_routines): Add generic rule for symbols shared with
20446 libc. Add s_signbit-generic and s_signbitf-generic objects.
20447 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
20448 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
20449 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
20450 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
20451 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
20452 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
20453
20454 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20455
20456 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
20457 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
20458 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
20459 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
20460 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
20461 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
20462 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
20463 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
20464 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
20465 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
20466 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
20467 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
20468 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
20469 libm_alias_float_r.
20470 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
20471 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
20472 (logf): Likewise.
20473 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
20474 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
20475 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
20476 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
20477 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
20478 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
20479 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
20480 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
20481 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
20482 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
20483 libm_alias_float.
20484 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
20485 (cosf): Likewise.
20486 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
20487 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
20488 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
20489 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
20490 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
20491 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
20492 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
20493 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
20494 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
20495 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
20496 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
20497 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
20498 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
20499 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
20500 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
20501 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
20502 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
20503 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
20504 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
20505 libm_alias_float.
20506 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
20507 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
20508 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
20509 * sysdeps/ia64/fpu/w_lgammaf_main.c
20510 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
20511 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
20512
20513 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20514 Alexandre Oliva <aoliva@redhat.com>
20515
20516 [BZ #17750]
20517 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
20518 * localedata/fr_CA.UTF-8.in: New file with test data for backward
20519 accents sorting.
20520 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
20521 sorting.
20522 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
20523 * localedata/locales/de_DE (LC_COLLATE): Likewise.
20524 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
20525 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
20526 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
20527 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
20528 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
20529 instead of “ifdef DIACRIT_BACKWARD”.
20530
20531 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20532
20533 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
20534 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
20535 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
20536 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
20537 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
20538 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
20539 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
20540 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
20541 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
20542 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
20543 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
20544 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
20545 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
20546 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
20547 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
20548 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20549 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
20550 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
20551 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20552 ($(have-as-vis3) == yes): Remove conditional.
20553 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
20554 Likewise.
20555 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
20556 file.
20557 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
20558 file.
20559 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
20560 file.
20561 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
20562 file.
20563 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
20564 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
20565 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
20566 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
20567 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
20568 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
20569 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
20570 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
20571
20572 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20573
20574 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
20575 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
20576 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
20577 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
20578 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
20579 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
20580 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
20581 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
20582 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
20583 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
20584 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
20585 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
20586 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
20587 libm_alias_double_r.
20588 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
20589 (log): Likewise.
20590 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
20591 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
20592 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
20593 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
20594 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
20595 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
20596 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
20597 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
20598 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
20599 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
20600 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
20601 libm_alias_double.
20602 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
20603 (cos): Likewise.
20604 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
20605 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
20606 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
20607 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
20608 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
20609 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
20610 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
20611 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
20612 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
20613 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
20614 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
20615 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
20616 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
20617 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
20618 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
20619 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
20620 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
20621 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
20622 libm_alias_double.
20623 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
20624 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
20625 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
20626 * sysdeps/ia64/fpu/w_lgamma_main.c
20627 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
20628 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
20629
20630 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
20631
20632 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
20633 address of $global$ into %dp register earlier. Use pc-relative
20634 instruction sequence for PIC case.
20635
20636 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20637
20638 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
20639 (asinhf): Define using libm_alias_float.
20640 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
20641 (atanf): Define using libm_alias_float.
20642 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
20643 (cbrtf): Define using libm_alias_float.
20644 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
20645 (ceilf): Define using libm_alias_float.
20646 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20647 (copysignf): Define using libm_alias_float.
20648 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
20649 (expm1f): Define using libm_alias_float.
20650 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
20651 (fabsf): Define using libm_alias_float.
20652 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
20653 (floorf): Define using libm_alias_float.
20654 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20655 (fmaxf): Define using libm_alias_float.
20656 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
20657 (fminf): Define using libm_alias_float.
20658 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
20659 (frexpf): Define using libm_alias_float.
20660 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20661 (llrintf): Define using libm_alias_float.
20662 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
20663 (logbf): Define using libm_alias_float.
20664 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20665 (lrintf): Define using libm_alias_float.
20666 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
20667 (nearbyintf): Define using libm_alias_float.
20668 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
20669 (remquof): Define using libm_alias_float.
20670 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
20671 (rintf): Define using libm_alias_float.
20672 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
20673 (truncf): Define using libm_alias_float.
20674 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
20675 <libm-alias-float.h>.
20676 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20677 if [SHARED].
20678 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
20679 <libm-alias-float.h>.
20680 (expf): Define using libm_alias_float, or libm_alias_float_other
20681 if [SHARED].
20682 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
20683 <libm-alias-float.h>.
20684 (log2f): Define using libm_alias_float, or libm_alias_float_other
20685 if [SHARED].
20686 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
20687 <libm-alias-float.h>.
20688 (logf): Define using libm_alias_float, or libm_alias_float_other
20689 if [SHARED].
20690 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
20691 <libm-alias-float.h>.
20692 (powf): Define using libm_alias_float, or libm_alias_float_other
20693 if [SHARED].
20694 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
20695 <libm-alias-float.h>.
20696 (cosf): Define using libm_alias_float.
20697 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
20698 <libm-alias-float.h>.
20699 (sincosf): Define using libm_alias_float.
20700 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
20701 <libm-alias-float.h>.
20702 (sinf): Define using libm_alias_float.
20703 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20704 (fmaxf): Define using libm_alias_float.
20705 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
20706 (fminf): Define using libm_alias_float.
20707 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20708 <libm-alias-float.h>.
20709 (fmaf): Define using libm_alias_float.
20710
20711 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
20712 (asinh): Define using libm_alias_double.
20713 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
20714 (atan): Define using libm_alias_double.
20715 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
20716 (cbrt): Define using libm_alias_double.
20717 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
20718 (ceil): Define using libm_alias_double.
20719 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
20720 (copysign): Define using libm_alias_double.
20721 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
20722 (expm1): Define using libm_alias_double.
20723 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
20724 (fabs): Define using libm_alias_double.
20725 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
20726 (fdim): Define using libm_alias_double.
20727 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
20728 (floor): Define using libm_alias_double.
20729 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
20730 (fmax): Define using libm_alias_double.
20731 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
20732 (fmin): Define using libm_alias_double.
20733 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
20734 (frexp): Define using libm_alias_double.
20735 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
20736 (llrint): Define using libm_alias_double.
20737 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
20738 (logb): Define using libm_alias_double.
20739 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
20740 (lrint): Define using libm_alias_double.
20741 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
20742 (nearbyint): Define using libm_alias_double.
20743 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
20744 (remquo): Define using libm_alias_double.
20745 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
20746 (rint): Define using libm_alias_double.
20747 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
20748 (trunc): Define using libm_alias_double.
20749 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
20750 (fmax): Define using libm_alias_double.
20751 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
20752 (fmin): Define using libm_alias_double.
20753 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
20754 (fma): Define using libm_alias_double.
20755
20756 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
20757
20758 [BZ #22370]
20759 * elf/dl-hwcaps.c (ROUND): Removed.
20760 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
20761 and ELF_NOTE_NEXT_OFFSET.
20762 * elf/dl-load.c (ROUND): Removed.
20763 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20764 * elf/readelflib.c (ROUND): Removed.
20765 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20766 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
20767 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
20768 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
20769
20770 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20771
20772 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20773 [!__fmaf] (fmaf): Define using libm_alias_float.
20774
20775 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
20776 [!__fma] (fma): Define using libm_alias_double.
20777 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
20778
20779 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20780
20781 [BZ #22336]
20782 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
20783 and implement the collation rules for cs from CLDR on top of that.
20784 * Makefile: Add cs_CZ.UTF-8 to test-input.
20785 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
20786
20787 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
20788
20789 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
20790
20791 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20792 Icarus Sparry <icarus.w.sparry@intel.com>
20793
20794 * benchtests/Makefile:Add BENCHSET to allow subsets of
20795 benchmarks to be run.
20796 * benchtests/README: Add documentation for: Running subsets of
20797 benchmarks.
20798
20799 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20800
20801 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
20802 range of tests names.
20803
20804 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
20805 result from property and remove "max", min" and "mean" from
20806 required properties based on benchtests/bench-skeleton.c.
20807
20808 2017-11-28 Florian Weimer <fweimer@redhat.com>
20809
20810 [BZ #20826]
20811 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
20812 due to Internet requirement.
20813 * posix/Makefile (tests): Remove tst-getaddrinfo4,
20814 tst-getaddrinfo5.
20815 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
20816
20817 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20818
20819 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20820 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
20821 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20822 (sysdep_routines): Add memset-ultra1.
20823 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
20824 file.
20825 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
20826 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
20827 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
20828 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
20829 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
20830 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
20831 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
20832 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20833
20834 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
20835 file.
20836 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
20837 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
20838 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
20839 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
20840 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
20841 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
20842 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
20843 macro.
20844 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20845 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
20846 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20847 (sysdep_routines): Add memcpy-ultra1.
20848 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
20849 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
20850
20851 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20852
20853 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
20854 (cfloat_versions): Take function argument without trailing 'f'.
20855 Call libm_alias_float_other.
20856 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
20857 * sysdeps/alpha/fpu/cargf.c: Likewise.
20858 * sysdeps/alpha/fpu/cimagf.c: Likewise.
20859 * sysdeps/alpha/fpu/conjf.c: Likewise.
20860 * sysdeps/alpha/fpu/crealf.c: Likewise.
20861 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
20862 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
20863 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
20864 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
20865 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
20866 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
20867 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
20868 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
20869 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
20870 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
20871 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
20872 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
20873 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
20874 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
20875 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
20876 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
20877 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
20878 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
20879 (clog10f): Use libm_alias_float_other.
20880 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20881 (ceilf): Define using libm_alias_float.
20882 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
20883 (copysignf): Define using libm_alias_float.
20884 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20885 (fabsf): Define using libm_alias_float.
20886 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
20887 (floorf): Define using libm_alias_float.
20888 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
20889 (fmaxf): Define using libm_alias_float.
20890 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
20891 (fminf): Define using libm_alias_float.
20892 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20893 (lrintf): Define using libm_alias_float.
20894 (llrintf): Likewise.
20895 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20896 (lroundf): Define using libm_alias_float.
20897 (llroundf): Likewise.
20898 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
20899 (rintf): Define using libm_alias_float.
20900 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
20901 (truncf): Define using libm_alias_float.
20902
20903 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20904 (ceilf): Define using libm_alias_float.
20905 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
20906 (floorf): Define using libm_alias_float.
20907 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20908 (fmaf): Define using libm_alias_float.
20909 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
20910 (fmaxf): Define using libm_alias_float.
20911 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
20912 (fminf): Define using libm_alias_float.
20913 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
20914 (llrintf): Define using libm_alias_float.
20915 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
20916 (llroundf): Define using libm_alias_float.
20917 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20918 (lrintf): Define using libm_alias_float.
20919 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20920 (lroundf): Define using libm_alias_float.
20921 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
20922 <libm-alias-float.h>.
20923 (nearbyintf): Define using libm_alias_float.
20924 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
20925 (rintf): Define using libm_alias_float.
20926 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
20927 (roundf): Define using libm_alias_float.
20928 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
20929 (truncf): Define using libm_alias_float.
20930
20931 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
20932 (ceil): Define using libm_alias_double.
20933 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
20934 (copysign): Define using libm_alias_double.
20935 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
20936 (fabs): Define using libm_alias_double.
20937 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
20938 (floor): Define using libm_alias_double.
20939 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
20940 (fmax): Define using libm_alias_double.
20941 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
20942 (fmin): Define using libm_alias_double.
20943 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
20944 (lrint): Define using libm_alias_double.
20945 (llrint): Likewise.
20946 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
20947 (lround): Define using libm_alias_double.
20948 (llround): Likewise.
20949 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
20950 (rint): Define using libm_alias_double.
20951 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
20952 (trunc): Define using libm_alias_double.
20953
20954 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
20955 (libm_alias_double_r): Add semicolon after weak_alias call.
20956
20957 2017-11-27 Joseph Myers <joseph@codesourcery.com>
20958
20959 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
20960 (ceil): Define using libm_alias_double.
20961 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
20962 (floor): Define using libm_alias_double.
20963 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
20964 (fma): Define using libm_alias_double.
20965 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
20966 (fmax): Define using libm_alias_double.
20967 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
20968 (fmin): Define using libm_alias_double.
20969 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
20970 (llrint): Define using libm_alias_double.
20971 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
20972 (llround): Define using libm_alias_double.
20973 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
20974 (lrint): Define using libm_alias_double.
20975 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
20976 (lround): Define using libm_alias_double.
20977 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
20978 (nearbyint): Define using libm_alias_double.
20979 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
20980 (rint): Define using libm_alias_double.
20981 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
20982 (round): Define using libm_alias_double.
20983 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
20984 (trunc): Define using libm_alias_double.
20985
20986 2017-11-27 Florian Weimer <fweimer@redhat.com>
20987
20988 * sysdeps/unix/sysv/linux/mlock2.c: New file.
20989 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
20990 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
20991 (tests): Add tst-mlock2.
20992 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
20993 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
20994 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
20995 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
20996 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
20997 for mlock. Document mlock2.
20998
20999 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21000
21001 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21002 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21003 Likewise.
21004 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21005 Likewise.
21006 * sysdeps/x86/Makeconfig: New file.
21007 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21008 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21009 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21010 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21011 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21012 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21013 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21014 Likewise.
21015 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21016 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21017 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21018 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21019 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21020 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21021 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21022 * manual/math.texi (Mathematics): Document support for _Float64x.
21023 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21024 * stdlib/Versions (GLIBC_2.27): Likewise.
21025 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21026 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21027 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21028 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21029 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21030 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21031 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21032 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21033 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21034 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21035 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21036 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21037 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21038 Likewise.
21039 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21040 Likewise.
21041 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21042 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21043 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21044 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21045 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21046 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21047 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21048 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21049 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21050 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21051 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21052 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21053 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21054 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21055
21056 2017-11-27 Andreas Schwab <schwab@suse.de>
21057
21058 * elf/Makefile (dl-routines): Add dl-sort-maps.
21059 * elf/dl-sort-maps.c: New file.
21060 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21061 (_dl_sort_maps): Declare.
21062 * elf/dl-fini.c (_dl_sort_fini): Remove.
21063 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21064 * elf/dl-close.c (_dl_close_worker): Likewise.
21065 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21066 open-coding it.
21067 * elf/dl-open.c (dl_open_worker): Likewise.
21068
21069 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21070
21071 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21072 using libm_alias_float128.
21073 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21074 Likewise.
21075 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21076 Likewise.
21077 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21078 (setpayloadsigf128): Likewise.
21079 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21080 Likewise.
21081 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21082 Likewise.
21083
21084 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21085 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21086 -mfloat128 to CFLAGS.
21087 ($(foreach
21088 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21089 Likewise.
21090 (CFLAGS-libm-test-support-float64x.c): New variable.
21091 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21092 $(f128-loader-link) to gnulib-tests.
21093
21094 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21095 (libm_alias_float128_other_r): If
21096 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21097 alias.
21098 (libm_alias_float128_r): Add semicolon after weak_alias call.
21099 * sysdeps/generic/libm-alias-ldouble.h
21100 (libm_alias_ldouble_other_r_f128): New macro.
21101 (libm_alias_ldouble_other_r_f64x): Likewise.
21102 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21103 and libm_alias_ldouble_other_r_f64x.
21104 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21105 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21106 (libm_alias_ldouble_other_r_f128): New macro.
21107 (libm_alias_ldouble_other_r_f64x): Likewise.
21108 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21109 and libm_alias_ldouble_other_r_f64x.
21110
21111 * stdlib/strfroml.c: Always include <stdlib.h>.
21112 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21113 undefine as macro and define as weak alias.
21114 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21115 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21116 <stdlib.h>.
21117 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21118 Define and later undefine as macro and define as weak alias.
21119
21120 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21121 Define and later undefine as macro. Define as weak alias if
21122 [!USE_WIDE_CHAR].
21123 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21124 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21125 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21126 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21127 Define and later undefine as macro. Define as weak alias if
21128 [!USE_WIDE_CHAR].
21129 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21130 Define and later undefine as macro. Define as weak alias if
21131 [USE_WIDE_CHAR].
21132 * sysdeps/ieee754/float128/strtof128_l.c
21133 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21134 Define and later undefine as macro. Define as weak alias if
21135 [!USE_WIDE_CHAR].
21136 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21137 Define and later undefine as macro. Define as weak alias if
21138 [USE_WIDE_CHAR].
21139 * sysdeps/ieee754/ldbl-128/strtold_l.c
21140 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21141 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21142 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21143 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21144 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21145 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21146 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21147 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21148 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21149 * sysdeps/ieee754/ldbl-96/strtold_l.c
21150 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21151 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21152 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21153 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21154
21155 * math/test-float64x.h: New file.
21156 * math/Makefile (type-float64x-yes): New variable.
21157 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21158
21159 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21160 function-like macro.
21161 (min_of_type_): Likewise.
21162 (min_of_type_l): Likewise.
21163 (min_of_type_f128): Likewise.
21164 (min_of_type): Pass () as last argument of __MATH_TG.
21165
21166 * stdlib/tst-strtod-round-skeleton.c
21167 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21168 headers.
21169
21170 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21171 for combinations of long double with _Float64 and _Float64x.
21172
21173 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21174 (__DECL_SIMD_cosf32): Likewise.
21175 (__DECL_SIMD_cosf64): Likewise.
21176 (__DECL_SIMD_cosf32x): Likewise.
21177 (__DECL_SIMD_cosf64x): Likewise.
21178 (__DECL_SIMD_cosf128x): Likewise.
21179 (__DECL_SIMD_sinf16): Likewise.
21180 (__DECL_SIMD_sinf32): Likewise.
21181 (__DECL_SIMD_sinf64): Likewise.
21182 (__DECL_SIMD_sinf32x): Likewise.
21183 (__DECL_SIMD_sinf64x): Likewise.
21184 (__DECL_SIMD_sinf128x): Likewise.
21185 (__DECL_SIMD_sincosf16): Likewise.
21186 (__DECL_SIMD_sincosf32): Likewise.
21187 (__DECL_SIMD_sincosf64): Likewise.
21188 (__DECL_SIMD_sincosf32x): Likewise.
21189 (__DECL_SIMD_sincosf64x): Likewise.
21190 (__DECL_SIMD_sincosf128x): Likewise.
21191 (__DECL_SIMD_logf16): Likewise.
21192 (__DECL_SIMD_logf32): Likewise.
21193 (__DECL_SIMD_logf64): Likewise.
21194 (__DECL_SIMD_logf32x): Likewise.
21195 (__DECL_SIMD_logf64x): Likewise.
21196 (__DECL_SIMD_logf128x): Likewise.
21197 (__DECL_SIMD_expf16): Likewise.
21198 (__DECL_SIMD_expf32): Likewise.
21199 (__DECL_SIMD_expf64): Likewise.
21200 (__DECL_SIMD_expf32x): Likewise.
21201 (__DECL_SIMD_expf64x): Likewise.
21202 (__DECL_SIMD_expf128x): Likewise.
21203 (__DECL_SIMD_powf16): Likewise.
21204 (__DECL_SIMD_powf32): Likewise.
21205 (__DECL_SIMD_powf64): Likewise.
21206 (__DECL_SIMD_powf32x): Likewise.
21207 (__DECL_SIMD_powf64x): Likewise.
21208 (__DECL_SIMD_powf128x): Likewise.
21209
21210 * stdlib/Versions (libc): Move entries for wcstof128 and
21211 wcstof128_l to ....
21212 * wcsmbs/Versions (libc): ... here.
21213 Include <float128-abi.h>.
21214
21215 2017-11-24 Florian Weimer <fweimer@redhat.com>
21216
21217 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21218 bits/mman-shared.h.
21219 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21220 <bits/mman-shared.h>.
21221 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21222 to ...
21223 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21224 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21225 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21226 <bits/mman-shared.h>.
21227
21228 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21229
21230 [BZ #22457]
21231 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21232 posix_memalign/free.
21233 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21234
21235 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21236
21237 [BZ #22469]
21238 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21239 and implement the collation rules for pl from CLDR on top of that.
21240 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21241 of locales to be built for testing.
21242 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21243
21244 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21245
21246 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21247 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21248 libm_alias_ldouble_other.
21249 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21250 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21251 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21252 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21253 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21254 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21255 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21256 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21257 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21258 libm_alias_ldouble_r.
21259 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21260 libm_alias_ldouble_other.
21261 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21262 (log10l): Likewise.
21263 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21264 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21265 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21266 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21267 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21268 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21269 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21270 (atan2l): Likewise.
21271 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21272 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21273 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21274 libm_alias_ldouble.
21275 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21276 (cosl): Likewise.
21277 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21278 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21279 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21280 (expl): Likewise.
21281 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21282 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21283 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21284 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21285 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21286 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21287 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21288 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21289 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21290 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21291 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21292 libm_alias_ldouble.
21293 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21294 libm_alias_ldouble_other.
21295 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21296 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21297 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21298 libm_alias_ldouble.
21299 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21300 libm_alias_ldouble_other.
21301 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21302 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21303 * sysdeps/ia64/fpu/w_lgammal_main.c
21304 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21305 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21306
21307 2017-11-23 Florian Weimer <fweimer@redhat.com>
21308
21309 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21310 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21311 alike. Remove freeres marker.
21312 * malloc/arena.c (arena_thread_freeres): Call
21313 tcache_thread_shutdown.
21314
21315 2017-11-23 Florian Weimer <fweimer@redhat.com>
21316
21317 [BZ #22459]
21318 Export nscd hash function as __nss_hash.
21319 * include/nss.h (__nss_hash): Declare.
21320 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21321 symbol.
21322 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21323 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21324 of __nscd_hash.
21325 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21326 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21327 * nss/Makefiles (routines): Add nss_hash.
21328 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21329 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21330 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21331 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21332
21333 2017-11-23 Florian Weimer <fweimer@redhat.com>
21334
21335 [BZ #22478]
21336 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21337 Return error code, not -1.
21338 * signal/tst-sigwait-eintr.c: New file.
21339 * signal/Makefile (tests): Add tst-sigwait-eintr.
21340
21341 2017-11-23 Florian Weimer <fweimer@redhat.com>
21342
21343 Linux: Add memfd_create system call wrapper
21344 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21345 tst-memfd_create.
21346 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
21347 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
21348 [__USE_GNU] (memfd_create): Declare.
21349 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
21350 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
21351 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
21352 * sysdeps/unix/sysv/linux/**.abilist: Update.
21353 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21354
21355 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21356
21357 * localedata/gen-locale.sh: Fix typo in variable name.
21358
21359 * resolv/res_debug.c (p_secstodate): Condition definition on
21360 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21361 directly as __p_secstodate, and as a compat symbol. Do not use
21362 libresolv_hidden_def.
21363 * resolv/resolv.h (p_secstodate): Remove macro and function
21364 declaration.
21365 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21366 using p_secstodate.
21367 * include/resolv.h (__p_secstodate): Do not use
21368 libresolv_hidden_proto.
21369 * resolv/Makefile (tests): Move tst-p_secstodate to ....
21370 (tests-internal): ... here.
21371 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
21372 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
21373 and declare and use __p_secstodate and use compat_symbol_reference
21374 in that case.
21375 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
21376 implementation returning 77.
21377
21378 [BZ #22463]
21379 * resolv/res_debug.c: Include <libc-diag.h>.
21380 (p_secstodate): Assert time_t at least as wide as u_long. On
21381 overflow, use integer seconds since the epoch as output, or use
21382 "<overflow>" as output and set errno to EOVERFLOW if integer
21383 seconds since the epoch would be 14 or more characters.
21384 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
21385 for sprintf call.
21386 * resolv/tst-p_secstodate.c: New file.
21387 * resolv/Makefile (tests): Add tst-p_secstodate.
21388 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
21389
21390 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
21391 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
21392 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
21393
21394 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
21395
21396 * posix/regcomp.c (init_word_char): Add comments.
21397
21398 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21399
21400 [BZ #22447]
21401 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
21402 strlen to compute length of ut_user and set trailing NUL byte of
21403 result explicitly.
21404
21405 2017-11-21 Mike FABIAN <mfabian@redhat.com>
21406
21407 [BZ #15537]
21408 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
21409 using “copy "iso14651_t1"” and then implementing the
21410 collation rules for lv from CLDR on top of that.
21411 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
21412 of locales to be built for testing.
21413 * lv_LV.UTF-8.in: New file with test data to test the Latvian
21414 sorting.
21415
21416 2017-11-21 Joseph Myers <joseph@codesourcery.com>
21417
21418 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21419 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
21420 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
21421 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
21422 [__USE_MISC] (MADV_HWPOISON): New macro.
21423 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
21424
21425 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21426
21427 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
21428 -Wmissing-braces on GCC 4.9.
21429
21430 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21431
21432 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
21433 * sysdeps/s390/s390-32/start.S (_start): Likewise
21434 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
21435 (thread_start): Likewise.
21436 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
21437 (thread_start): Likewise.
21438 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
21439 (__makecontext_ret): Likewise.
21440 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
21441 (__makecontext_ret): Likewise.
21442
21443 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21444
21445 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
21446 __wcschrnul): Remove attribute_hidden.
21447
21448 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
21449
21450 regex: don't assume uint64_t or uint32_t
21451 This avoids -Werror=overflow errors for 32-bit systems in
21452 the 64-bit case. Problem reported by Joseph Myers in:
21453 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
21454 Also, when this code is used in Gnulib it ports to platforms
21455 that lack uint64_t and uint32_t. The C standard doesn't guarantee
21456 them, and on some 32-bit compilers there is no uint64_t.
21457 Problem reported by Gianluigi Tiesi in:
21458 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
21459 * posix/regcomp.c (init_word_char): Don't assume that the types
21460 uint64_t and uint32_t exist. Adapted from Gnulib patch
21461 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
21462 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
21463
21464 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
21465
21466 * sysdeps/aarch64/memset-reg.h: New file.
21467 * sysdeps/aarch64/memset.S: Use it.
21468 (__memset): Rename to MEMSET macro.
21469 [ZVA_MACRO]: Use zva_macro.
21470 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21471 Add memset_generic and memset_falkor.
21472 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21473 (__libc_ifunc_impl_list): Add memset ifuncs.
21474 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
21475 local variable zva_size.
21476 * sysdeps/aarch64/multiarch/memset.c: New file.
21477 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
21478 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
21479 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
21480 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
21481 (DCZID_DZP_MASK): New macro.
21482 (DCZID_BS_MASK): Likewise.
21483 (init_cpu_features): Read and set zva_size.
21484 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
21485 (struct cpu_features): New member zva_size.
21486
21487 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
21488 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
21489 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
21490
21491 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
21492 backwards. Fix timing computation.
21493 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
21494 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
21495 on memset by N at a time. Fix timing computation.
21496
21497 2017-11-20 Florian Weimer <fweimer@redhat.com>
21498
21499 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
21500 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
21501
21502 2017-11-19 Florian Weimer <fweimer@redhat.com>
21503
21504 manual: Document mprotect
21505 * manual/memory.texi (Memory Protection): New section.
21506 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
21507 documentation of PROT_* flags and reference the Memory Protection
21508 section instead.
21509
21510 2017-11-19 Florian Weimer <fweimer@redhat.com>
21511
21512 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
21513 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
21514 (Scatter-Gather): ... to here. Remove misleading comment.
21515
21516 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
21517
21518 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
21519 style.
21520
21521 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
21522 when /proc/<pid>/setgroups does not exist.
21523
21524 2017-11-18 Florian Weimer <fweimer@redhat.com>
21525
21526 * sysdeps/unix/sysv/linux/tst-ttyname.c
21527 (become_root_in_mount_ns): Remove.
21528 (do_in_chroot_1): Call support_enter_mount_namespace.
21529 (do_in_chroot_2): Likewise.
21530 (do_test): Call support_become_root early.
21531
21532 2017-11-18 Florian Weimer <fweimer@redhat.com>
21533
21534 * support/namespace.h (support_enter_mount_namespace): Declare.
21535 * support/support_enter_mount_namespace.c: New file.
21536 * support/Makefile (libsupport-routines): Add
21537 support_enter_mount_namespace.
21538
21539 2017-11-18 Florian Weimer <fweimer@redhat.com>
21540
21541 * support/temp_file.c (support_create_temp_directory): Use
21542 test_dir and do not rely on the presence of the XXXXXX suffix.
21543 * support/temp_file.h (support_create_temp_directory): Update
21544 comment.
21545 * support/tst-xreadlink.c (do_test): Adjust.
21546 * support/support_chroot.c (support_chroot_create): Likewise.
21547
21548 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21549
21550 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
21551 macro.
21552 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
21553 htm-no-suspend.
21554
21555 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21556
21557 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21558 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21559 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21560 (ceill): Define using libm_alias_ldouble.
21561 * sysdeps/x86_64/fpu/s_copysignl.S: Include
21562 <libm-alias-ldouble.h>.
21563 (copysignl): Define using libm_alias_ldouble.
21564 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21565 (fabsl): Define using libm_alias_ldouble.
21566 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21567 (floorl): Define using libm_alias_ldouble.
21568 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21569 (fmaxl): Define using libm_alias_ldouble.
21570 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21571 (fminl): Define using libm_alias_ldouble.
21572 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21573 (llrintl): Define using libm_alias_ldouble.
21574 (lrintl): Likewise.
21575 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
21576 <libm-alias-ldouble.h>.
21577 (nearbyintl): Define using libm_alias_ldouble.
21578 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21579 (truncl): Define using libm_alias_ldouble.
21580 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
21581 <libm-alias-ldouble.h>.
21582 (lrintl): Define using libm_alias_ldouble.
21583
21584 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21585 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21586 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
21587 (asinhl): Define using libm_alias_ldouble.
21588 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
21589 (atanl): Define using libm_alias_ldouble.
21590 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
21591 (cbrtl): Define using libm_alias_ldouble.
21592 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21593 (ceill): Define using libm_alias_ldouble.
21594 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
21595 (copysignl): Define using libm_alias_ldouble.
21596 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21597 (fabsl): Define using libm_alias_ldouble.
21598 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21599 (floorl): Define using libm_alias_ldouble.
21600 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21601 (fmaxl): Define using libm_alias_ldouble.
21602 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21603 (fminl): Define using libm_alias_ldouble.
21604 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
21605 (frexpl): Define using libm_alias_ldouble.
21606 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21607 (llrintl): Define using libm_alias_ldouble.
21608 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
21609 (logbl): Define using libm_alias_ldouble.
21610 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
21611 (lrintl): Define using libm_alias_ldouble.
21612 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
21613 (nearbyintl): Define using libm_alias_ldouble.
21614 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
21615 (nextafterl): Define using libm_alias_ldouble.
21616 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
21617 (remquol): Define using libm_alias_ldouble.
21618 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
21619 (rintl): Define using libm_alias_ldouble.
21620 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21621 (truncl): Define using libm_alias_ldouble.
21622 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21623 (fmaxl): Define using libm_alias_ldouble.
21624 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21625 (fminl): Define using libm_alias_ldouble.
21626
21627 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
21628 to C syntax instead of availability and properties of types.
21629 * bits/floatn.h [!__ASSEMBLER]: Likewise.
21630 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
21631 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
21632 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
21633 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
21634 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
21635
21636 2017-11-17 Florian Weimer <fweimer@redhat.com>
21637
21638 support_become_root: Enable file creation in namespaces.
21639 * support/support_become_root.c (setup_mapping): New function.
21640 (support_become_root): Call it.
21641
21642 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21643
21644 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
21645 macro.
21646
21647 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21648
21649 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
21650 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
21651
21652 2017-11-16 Joseph Myers <joseph@codesourcery.com>
21653
21654 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
21655
21656 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21657 version to 4.14.
21658
21659 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
21660
21661 * INSTALL: Fix botched up regeneration.
21662
21663 * NEWS: Update sourceare link to https.
21664 * configure.ac: Likewise.
21665 * crypt/md5test-giant.c: Likewise.
21666 * dlfcn/bug-atexit1.c: Likewise.
21667 * dlfcn/bug-atexit2.c: Likewise.
21668 * localedata/README: Likewise.
21669 * malloc/tst-mallocfork.c: Likewise.
21670 * manual/install.texi: Likewise.
21671 * nptl/tst-pthread-getattr.c: Likewise.
21672 * stdio-common/tst-fgets.c: Likewise.
21673 * stdio-common/tst-fwrite.c: Likewise.
21674 * sunrpc/Makefile: Likewise.
21675 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
21676 * wcsmbs/tst-mbrtowc2.c: Likewise.
21677 * configure: Regenerate.
21678 * INSTALL: Regenerate.
21679
21680 2017-11-15 Martin Sebor <msebor@redhat.com>
21681
21682 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
21683 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
21684 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
21685
21686 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21687
21688 [BZ #22145]
21689 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
21690 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
21691
21692 [BZ #22145]
21693 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
21694 Defer is_pty check until end of the function.
21695 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21696
21697 [BZ #22145]
21698 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
21699 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
21700 (ttyname): Likewise.
21701 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
21702 (__ttyname_r): Likewise.
21703
21704 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
21705 int to bool.
21706
21707 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
21708
21709 * manual/terminal.texi (Is It a Terminal):
21710 Mention ENODEV for ttyname and ttyname_r.
21711
21712 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21713
21714 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
21715 constant and macro.
21716
21717 * sysdeps/unix/sysv/linux/bits/mman-linux.h
21718 [__USE_MISC] (MADV_WIPEONFORK): New macro.
21719 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21720 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21721 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
21722 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21723
21724 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21725
21726 * signal/sigrelse.c (sigrelse): Optimize implementation.
21727
21728 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
21729 (__sigpause): Rely on __sigsuspend to implement single thread
21730 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
21731
21732 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21733
21734 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
21735 kernel version to 4.14.
21736
21737 2017-11-15 Steve Ellcey <sellcey@cavium.com>
21738
21739 [BZ #22442]
21740 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
21741 Check if ifname is too long.
21742
21743 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21744
21745 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
21746
21747 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21748
21749 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
21750 was accidentally lost.
21751
21752 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21753
21754 * localedata/locales/az_IR: Add standard copyright header.
21755
21756 2017-11-15 Florian Weimer <fweimer@redhat.com>
21757
21758 [BZ #22439]
21759 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
21760 not just the top one. Output a new "subheaps" statistic.
21761
21762 2017-11-15 Florian Weimer <fweimer@redhat.com>
21763
21764 [BZ #22408]
21765 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
21766 under the per-arena lock.
21767 * malloc/Makefile (tests): Add tst-malloc_info.
21768 (tst-malloc_info): Link with libpthread.
21769 * malloc/tst-malloc_info.c: New file.
21770
21771 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21772
21773 [BZ #21660]
21774 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
21775 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
21776 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
21777 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
21778 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
21779 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
21780 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
21781 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
21782 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
21783 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
21784 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
21785 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
21786 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
21787 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
21788 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
21789 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
21790 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
21791 (__floating_type): Likewise.
21792 (__real_integer_type): Likewise.
21793 (__complex_integer_type): Likewise.
21794 (__expr_is_real): Likewise.
21795 (__tgmath_real_type_sub): Likewise.
21796 (__tgmath_real_type): Likewise.
21797 (__tgmath_complex_type_sub): Likewise.
21798 (__tgmath_complex_type): Likewise.
21799 (__TGMATH_F128): Likewise.
21800 (__TGMATH_CF128): Likewise.
21801 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
21802 new macros.
21803 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
21804 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
21805 Likewise.
21806 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
21807 Likewise.
21808 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
21809 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
21810 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
21811 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
21812 Likewise.
21813 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
21814 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
21815 Likewise.
21816 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
21817 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
21818 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
21819 Likewise.
21820 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
21821 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
21822 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
21823 (cimag): Likewise.
21824 (creal): Likewise.
21825
21826 2017-11-14 Joseph Myers <joseph@codesourcery.com>
21827
21828 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
21829 for stpncpy calls for GCC 8.
21830 (test_strncat): Disable -Wstringop-truncation warning for strncat
21831 calls for GCC 8. Disable -Wstringop-overflow= warning for one
21832 strncat call for GCC 7.
21833 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
21834 calls for GCC 8.
21835 (test_memcmp): Use memcpy instead of strncpy for calls not copying
21836 trailing NUL.
21837
21838 * string/bug-strncat1.c: Include <libc-diag.h>.
21839 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
21840
21841 2017-11-13 Claude Paroz <claude@2xlibre.net>
21842
21843 [BZ #22387]
21844 * localedata/locales/aa_DJ: Improved readibility by replacing
21845 <Uxxxx> sequences in the ASCII printable range by their ASCII
21846 character equivalents.
21847 * localedata/locales/aa_ER: Likewise.
21848 * localedata/locales/aa_ER@saaho: Likewise.
21849 * localedata/locales/aa_ET: Likewise.
21850 * localedata/locales/af_ZA: Likewise.
21851 * localedata/locales/agr_PE: Likewise.
21852 * localedata/locales/ak_GH: Likewise.
21853 * localedata/locales/am_ET: Likewise.
21854 * localedata/locales/anp_IN: Likewise.
21855 * localedata/locales/ar_AE: Likewise.
21856 * localedata/locales/ar_BH: Likewise.
21857 * localedata/locales/ar_DZ: Likewise.
21858 * localedata/locales/ar_EG: Likewise.
21859 * localedata/locales/ar_IN: Likewise.
21860 * localedata/locales/ar_IQ: Likewise.
21861 * localedata/locales/ar_JO: Likewise.
21862 * localedata/locales/ar_KW: Likewise.
21863 * localedata/locales/ar_LB: Likewise.
21864 * localedata/locales/ar_LY: Likewise.
21865 * localedata/locales/ar_MA: Likewise.
21866 * localedata/locales/ar_OM: Likewise.
21867 * localedata/locales/ar_QA: Likewise.
21868 * localedata/locales/ar_SA: Likewise.
21869 * localedata/locales/ar_SD: Likewise.
21870 * localedata/locales/ar_SS: Likewise.
21871 * localedata/locales/ar_SY: Likewise.
21872 * localedata/locales/ar_TN: Likewise.
21873 * localedata/locales/ar_YE: Likewise.
21874 * localedata/locales/as_IN: Likewise.
21875 * localedata/locales/ast_ES: Likewise.
21876 * localedata/locales/ayc_PE: Likewise.
21877 * localedata/locales/az_AZ: Likewise.
21878 * localedata/locales/az_IR: Likewise.
21879 * localedata/locales/be_BY: Likewise.
21880 * localedata/locales/be_BY@latin: Likewise.
21881 * localedata/locales/bem_ZM: Likewise.
21882 * localedata/locales/ber_DZ: Likewise.
21883 * localedata/locales/ber_MA: Likewise.
21884 * localedata/locales/bg_BG: Likewise.
21885 * localedata/locales/bhb_IN: Likewise.
21886 * localedata/locales/bho_IN: Likewise.
21887 * localedata/locales/bi_VU: Likewise.
21888 * localedata/locales/bn_BD: Likewise.
21889 * localedata/locales/bn_IN: Likewise.
21890 * localedata/locales/bo_CN: Likewise.
21891 * localedata/locales/bo_IN: Likewise.
21892 * localedata/locales/br_FR: Likewise.
21893 * localedata/locales/brx_IN: Likewise.
21894 * localedata/locales/bs_BA: Likewise.
21895 * localedata/locales/byn_ER: Likewise.
21896 * localedata/locales/ca_AD: Likewise.
21897 * localedata/locales/ca_ES: Likewise.
21898 * localedata/locales/ca_FR: Likewise.
21899 * localedata/locales/ca_IT: Likewise.
21900 * localedata/locales/ce_RU: Likewise.
21901 * localedata/locales/chr_US: Likewise.
21902 * localedata/locales/cmn_TW: Likewise.
21903 * localedata/locales/crh_UA: Likewise.
21904 * localedata/locales/cs_CZ: Likewise.
21905 * localedata/locales/csb_PL: Likewise.
21906 * localedata/locales/cv_RU: Likewise.
21907 * localedata/locales/cy_GB: Likewise.
21908 * localedata/locales/da_DK: Likewise.
21909 * localedata/locales/de_AT: Likewise.
21910 * localedata/locales/de_BE: Likewise.
21911 * localedata/locales/de_CH: Likewise.
21912 * localedata/locales/de_DE: Likewise.
21913 * localedata/locales/de_IT: Likewise.
21914 * localedata/locales/de_LI: Likewise.
21915 * localedata/locales/de_LU: Likewise.
21916 * localedata/locales/doi_IN: Likewise.
21917 * localedata/locales/dv_MV: Likewise.
21918 * localedata/locales/dz_BT: Likewise.
21919 * localedata/locales/el_CY: Likewise.
21920 * localedata/locales/el_GR: Likewise.
21921 * localedata/locales/en_AG: Likewise.
21922 * localedata/locales/en_AU: Likewise.
21923 * localedata/locales/en_BW: Likewise.
21924 * localedata/locales/en_CA: Likewise.
21925 * localedata/locales/en_DK: Likewise.
21926 * localedata/locales/en_GB: Likewise.
21927 * localedata/locales/en_HK: Likewise.
21928 * localedata/locales/en_IE: Likewise.
21929 * localedata/locales/en_IL: Likewise.
21930 * localedata/locales/en_IN: Likewise.
21931 * localedata/locales/en_NG: Likewise.
21932 * localedata/locales/en_NZ: Likewise.
21933 * localedata/locales/en_PH: Likewise.
21934 * localedata/locales/en_SG: Likewise.
21935 * localedata/locales/en_US: Likewise.
21936 * localedata/locales/en_ZA: Likewise.
21937 * localedata/locales/en_ZM: Likewise.
21938 * localedata/locales/en_ZW: Likewise.
21939 * localedata/locales/eo: Likewise.
21940 * localedata/locales/es_AR: Likewise.
21941 * localedata/locales/es_BO: Likewise.
21942 * localedata/locales/es_CL: Likewise.
21943 * localedata/locales/es_CO: Likewise.
21944 * localedata/locales/es_CR: Likewise.
21945 * localedata/locales/es_CU: Likewise.
21946 * localedata/locales/es_DO: Likewise.
21947 * localedata/locales/es_EC: Likewise.
21948 * localedata/locales/es_ES: Likewise.
21949 * localedata/locales/es_GT: Likewise.
21950 * localedata/locales/es_HN: Likewise.
21951 * localedata/locales/es_MX: Likewise.
21952 * localedata/locales/es_NI: Likewise.
21953 * localedata/locales/es_PA: Likewise.
21954 * localedata/locales/es_PE: Likewise.
21955 * localedata/locales/es_PR: Likewise.
21956 * localedata/locales/es_PY: Likewise.
21957 * localedata/locales/es_SV: Likewise.
21958 * localedata/locales/es_US: Likewise.
21959 * localedata/locales/es_UY: Likewise.
21960 * localedata/locales/es_VE: Likewise.
21961 * localedata/locales/et_EE: Likewise.
21962 * localedata/locales/eu_ES: Likewise.
21963 * localedata/locales/eu_ES@euro: Likewise.
21964 * localedata/locales/fa_IR: Likewise.
21965 * localedata/locales/ff_SN: Likewise.
21966 * localedata/locales/fi_FI: Likewise.
21967 * localedata/locales/fil_PH: Likewise.
21968 * localedata/locales/fo_FO: Likewise.
21969 * localedata/locales/fr_BE: Likewise.
21970 * localedata/locales/fr_CA: Likewise.
21971 * localedata/locales/fr_CH: Likewise.
21972 * localedata/locales/fr_FR: Likewise.
21973 * localedata/locales/fr_LU: Likewise.
21974 * localedata/locales/fur_IT: Likewise.
21975 * localedata/locales/fy_DE: Likewise.
21976 * localedata/locales/fy_NL: Likewise.
21977 * localedata/locales/ga_IE: Likewise.
21978 * localedata/locales/gd_GB: Likewise.
21979 * localedata/locales/gez_ER: Likewise.
21980 * localedata/locales/gez_ET: Likewise.
21981 * localedata/locales/gl_ES: Likewise.
21982 * localedata/locales/gu_IN: Likewise.
21983 * localedata/locales/gv_GB: Likewise.
21984 * localedata/locales/ha_NG: Likewise.
21985 * localedata/locales/hak_TW: Likewise.
21986 * localedata/locales/he_IL: Likewise.
21987 * localedata/locales/hi_IN: Likewise.
21988 * localedata/locales/hif_FJ: Likewise.
21989 * localedata/locales/hne_IN: Likewise.
21990 * localedata/locales/hr_HR: Likewise.
21991 * localedata/locales/hsb_DE: Likewise.
21992 * localedata/locales/ht_HT: Likewise.
21993 * localedata/locales/hu_HU: Likewise.
21994 * localedata/locales/hy_AM: Likewise.
21995 * localedata/locales/i18n: Likewise.
21996 * localedata/locales/ia_FR: Likewise.
21997 * localedata/locales/id_ID: Likewise.
21998 * localedata/locales/ig_NG: Likewise.
21999 * localedata/locales/ik_CA: Likewise.
22000 * localedata/locales/is_IS: Likewise.
22001 * localedata/locales/it_CH: Likewise.
22002 * localedata/locales/it_IT: Likewise.
22003 * localedata/locales/iu_CA: Likewise.
22004 * localedata/locales/ja_JP: Likewise.
22005 * localedata/locales/ka_GE: Likewise.
22006 * localedata/locales/kk_KZ: Likewise.
22007 * localedata/locales/kl_GL: Likewise.
22008 * localedata/locales/kn_IN: Likewise.
22009 * localedata/locales/ko_KR: Likewise.
22010 * localedata/locales/kok_IN: Likewise.
22011 * localedata/locales/ks_IN: Likewise.
22012 * localedata/locales/ks_IN@devanagari: Likewise.
22013 * localedata/locales/ku_TR: Likewise.
22014 * localedata/locales/kw_GB: Likewise.
22015 * localedata/locales/ky_KG: Likewise.
22016 * localedata/locales/lb_LU: Likewise.
22017 * localedata/locales/lg_UG: Likewise.
22018 * localedata/locales/li_BE: Likewise.
22019 * localedata/locales/li_NL: Likewise.
22020 * localedata/locales/lij_IT: Likewise.
22021 * localedata/locales/ln_CD: Likewise.
22022 * localedata/locales/lo_LA: Likewise.
22023 * localedata/locales/lt_LT: Likewise.
22024 * localedata/locales/lv_LV: Likewise.
22025 * localedata/locales/lzh_TW: Likewise.
22026 * localedata/locales/mag_IN: Likewise.
22027 * localedata/locales/mai_IN: Likewise.
22028 * localedata/locales/mg_MG: Likewise.
22029 * localedata/locales/mhr_RU: Likewise.
22030 * localedata/locales/mi_NZ: Likewise.
22031 * localedata/locales/mk_MK: Likewise.
22032 * localedata/locales/ml_IN: Likewise.
22033 * localedata/locales/mn_MN: Likewise.
22034 * localedata/locales/mni_IN: Likewise.
22035 * localedata/locales/mr_IN: Likewise.
22036 * localedata/locales/ms_MY: Likewise.
22037 * localedata/locales/mt_MT: Likewise.
22038 * localedata/locales/my_MM: Likewise.
22039 * localedata/locales/nan_TW: Likewise.
22040 * localedata/locales/nan_TW@latin: Likewise.
22041 * localedata/locales/nb_NO: Likewise.
22042 * localedata/locales/nds_DE: Likewise.
22043 * localedata/locales/nds_NL: Likewise.
22044 * localedata/locales/ne_NP: Likewise.
22045 * localedata/locales/nhn_MX: Likewise.
22046 * localedata/locales/niu_NU: Likewise.
22047 * localedata/locales/niu_NZ: Likewise.
22048 * localedata/locales/nl_AW: Likewise.
22049 * localedata/locales/nl_BE: Likewise.
22050 * localedata/locales/nl_NL: Likewise.
22051 * localedata/locales/nn_NO: Likewise.
22052 * localedata/locales/nr_ZA: Likewise.
22053 * localedata/locales/nso_ZA: Likewise.
22054 * localedata/locales/oc_FR: Likewise.
22055 * localedata/locales/om_ET: Likewise.
22056 * localedata/locales/om_KE: Likewise.
22057 * localedata/locales/or_IN: Likewise.
22058 * localedata/locales/os_RU: Likewise.
22059 * localedata/locales/pa_IN: Likewise.
22060 * localedata/locales/pa_PK: Likewise.
22061 * localedata/locales/pap_AW: Likewise.
22062 * localedata/locales/pap_CW: Likewise.
22063 * localedata/locales/pl_PL: Likewise.
22064 * localedata/locales/ps_AF: Likewise.
22065 * localedata/locales/pt_BR: Likewise.
22066 * localedata/locales/pt_PT: Likewise.
22067 * localedata/locales/quz_PE: Likewise.
22068 * localedata/locales/raj_IN: Likewise.
22069 * localedata/locales/ro_RO: Likewise.
22070 * localedata/locales/ru_RU: Likewise.
22071 * localedata/locales/ru_UA: Likewise.
22072 * localedata/locales/rw_RW: Likewise.
22073 * localedata/locales/sa_IN: Likewise.
22074 * localedata/locales/sat_IN: Likewise.
22075 * localedata/locales/sc_IT: Likewise.
22076 * localedata/locales/sd_IN: Likewise.
22077 * localedata/locales/sd_IN@devanagari: Likewise.
22078 * localedata/locales/se_NO: Likewise.
22079 * localedata/locales/sgs_LT: Likewise.
22080 * localedata/locales/shs_CA: Likewise.
22081 * localedata/locales/si_LK: Likewise.
22082 * localedata/locales/sid_ET: Likewise.
22083 * localedata/locales/sk_SK: Likewise.
22084 * localedata/locales/sl_SI: Likewise.
22085 * localedata/locales/sm_WS: Likewise.
22086 * localedata/locales/so_DJ: Likewise.
22087 * localedata/locales/so_ET: Likewise.
22088 * localedata/locales/so_KE: Likewise.
22089 * localedata/locales/so_SO: Likewise.
22090 * localedata/locales/sq_AL: Likewise.
22091 * localedata/locales/sq_MK: Likewise.
22092 * localedata/locales/sr_ME: Likewise.
22093 * localedata/locales/sr_RS: Likewise.
22094 * localedata/locales/sr_RS@latin: Likewise.
22095 * localedata/locales/ss_ZA: Likewise.
22096 * localedata/locales/st_ZA: Likewise.
22097 * localedata/locales/sv_FI: Likewise.
22098 * localedata/locales/sv_SE: Likewise.
22099 * localedata/locales/sw_KE: Likewise.
22100 * localedata/locales/sw_TZ: Likewise.
22101 * localedata/locales/szl_PL: Likewise.
22102 * localedata/locales/ta_IN: Likewise.
22103 * localedata/locales/ta_LK: Likewise.
22104 * localedata/locales/tcy_IN: Likewise.
22105 * localedata/locales/te_IN: Likewise.
22106 * localedata/locales/tg_TJ: Likewise.
22107 * localedata/locales/th_TH: Likewise.
22108 * localedata/locales/the_NP: Likewise.
22109 * localedata/locales/ti_ER: Likewise.
22110 * localedata/locales/ti_ET: Likewise.
22111 * localedata/locales/tig_ER: Likewise.
22112 * localedata/locales/tk_TM: Likewise.
22113 * localedata/locales/tl_PH: Likewise.
22114 * localedata/locales/tn_ZA: Likewise.
22115 * localedata/locales/to_TO: Likewise.
22116 * localedata/locales/tpi_PG: Likewise.
22117 * localedata/locales/tr_CY: Likewise.
22118 * localedata/locales/tr_TR: Likewise.
22119 * localedata/locales/ts_ZA: Likewise.
22120 * localedata/locales/tt_RU: Likewise.
22121 * localedata/locales/tt_RU@iqtelif: Likewise.
22122 * localedata/locales/ug_CN: Likewise.
22123 * localedata/locales/uk_UA: Likewise.
22124 * localedata/locales/unm_US: Likewise.
22125 * localedata/locales/ur_IN: Likewise.
22126 * localedata/locales/ur_PK: Likewise.
22127 * localedata/locales/uz_UZ: Likewise.
22128 * localedata/locales/uz_UZ@cyrillic: Likewise.
22129 * localedata/locales/ve_ZA: Likewise.
22130 * localedata/locales/vi_VN: Likewise.
22131 * localedata/locales/wa_BE: Likewise.
22132 * localedata/locales/wae_CH: Likewise.
22133 * localedata/locales/wal_ET: Likewise.
22134 * localedata/locales/wo_SN: Likewise.
22135 * localedata/locales/xh_ZA: Likewise.
22136 * localedata/locales/yi_US: Likewise.
22137 * localedata/locales/yo_NG: Likewise.
22138 * localedata/locales/yue_HK: Likewise.
22139 * localedata/locales/yuw_PG: Likewise.
22140 * localedata/locales/zh_CN: Likewise.
22141 * localedata/locales/zh_HK: Likewise.
22142 * localedata/locales/zh_SG: Likewise.
22143 * localedata/locales/zh_TW: Likewise.
22144 * localedata/locales/zu_ZA: Likewise.
22145
22146 2017-11-13 Florian Weimer <fweimer@redhat.com>
22147
22148 * support/next_to_fault.h, support/next_to_fault.c: New files.
22149 * support/Makefile (libsupport-routines): Add next_to_fault.
22150 * resolv/tst-inet_pton.c (struct next_to_fault)
22151 (next_to_fault_allocate, next_to_fault_free): Remove.
22152 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22153
22154 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22155
22156 * elf/dl-support.c: Include <dl-procruntime.c>.
22157 * include/link.h: Include <link_map.h>.
22158 * sysdeps/generic/dl-procruntime.c: New file.
22159 * sysdeps/generic/link_map.h: Likewise.
22160 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22161 the writable ld.so namespace.
22162
22163 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22164
22165 timezone: pacify GCC -Wstringop-truncation
22166 Problem reported by Martin Sebor in:
22167 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22168 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22169
22170 2017-11-12 Florian Weimer <fweimer@redhat.com>
22171
22172 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22173 tst-xreadlink.
22174 (tests): Add tst-xreadlink.
22175 * support/support.h (xstrndup): Declare.
22176 * support/xunistd.h (xunlink, xreadlink): Declare.
22177 * support/temp_file.h (support_create_temp_directory): Declare.
22178 * support/temp_file.c (support_create_temp_directory): New function.
22179 * support/support_chroot.c (support_chroot_create): Use it.
22180 * support/xreadlink.c: New file.
22181 * support/xstrndup.c: Likewise.
22182 * support/xunlink.c: Likewise.
22183 * support/tst-xreadlink.c: Likewise.
22184
22185 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22186
22187 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22188
22189 2017-11-11 Florian Weimer <fweimer@redhat.com>
22190
22191 [BZ #22409]
22192 [BZ #22412]
22193 * resolv/res_comp.c (printable_string, binary_hnok)
22194 (binary_leading_dash): New functions.
22195 (res_hnok): Reimplement using these functions and ns_name_pton.
22196 (res_ownok): Likewise.
22197 (res_mailok): Reimplement using printable_string, ns_name_pton and
22198 binary_hnok.
22199 (res_dnok): Reimplement using printable_string and ns_name_pton.
22200 * resolv/tst-res_hnok.c (tests): Add additional tests.
22201 (LETTERDIGITS, PRINTABLE): Define.
22202 (do_test): Adjust one_char results.
22203
22204 2017-11-11 Florian Weimer <fweimer@redhat.com>
22205
22206 [BZ #22413]
22207 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22208 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22209
22210 2017-11-11 Florian Weimer <fweimer@redhat.com>
22211
22212 * resolv/tst-ns_name_pton.c: New file.
22213 * resolv/Makefile (tests): Add tst-ns_name_pton.
22214 (tst-ns_name_pton): Link against libresolv.
22215
22216 2017-11-11 Florian Weimer <fweimer@redhat.com>
22217
22218 * resolv/tst-res_hnok.c: New file.
22219 * resolv/Makefile (tests): Add tst-res_hnok.
22220 (tst-res_hnok): Link against libresolv.
22221
22222 2017-11-11 Florian Weimer <fweimer@redhat.com>
22223
22224 * resolv/tst-resolv-network.c: Use test framework instead explicit
22225 main function.
22226
22227 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22228
22229 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22230 <jmp_buf-macros.h>.
22231 [!_ISOMAC] (STR_HELPER): New.
22232 [!_ISOMAC] (STR): Likewise.
22233 [!_ISOMAC] (TEST_SIZE): Likewise.
22234 [!_ISOMAC] (TEST_ALIGN): Likewise.
22235 [!_ISOMAC] (TEST_OFFSET): Likewise.
22236 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22237 field offsets of jmp_buf as well as sigjmp_buf.
22238 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22239 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22240 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22241 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22242 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22243 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22244 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22245 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22246 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22247 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22248 Likewise.
22249 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22250 Likewise.
22251 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22252 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22253 Likewise.
22254 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22255 Likewise.
22256 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22257 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22258 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22259 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22260 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22261 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22262 Likewise.
22263 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22264 Likewise.
22265 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22266 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22267 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22268
22269 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22270
22271 * include/float.h
22272 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22273 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22274 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22275 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22276 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22277 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22278 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22279 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22280 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22281 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22282 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22283 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22284 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22285 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22286 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22287 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22288 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22289 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22290 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22291 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22292 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22293 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22294 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22295 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22296 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22297 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22298 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22299 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22300 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22301 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22302 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22303 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22304 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22305 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22306 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22307 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22308 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22309 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22310 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22311 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22312 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22313 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22314 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22315 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22316 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22317 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22318 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22319 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22320 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22321 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22322 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22323 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22324 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22325 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22326 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22327 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22328 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22329 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22330 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22331 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22332 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22333 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22334 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22335 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22336 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22337 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22338 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22339 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22340 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22341 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22342 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22343 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22344 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22345 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
22346 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22347 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
22348 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22349 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
22350 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22351 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
22352 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22353 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22354 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22355 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22356 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22357 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22358 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22359 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22360
22361 * stdlib/tst-strtod.h (F16): New macro.
22362 (F32): Likewise.
22363 (F64): Likewise.
22364 (F32X): Likewise.
22365 (F64X): Likewise.
22366 (F128X): Likewise.
22367 (IF_FLOAT16): Likewise.
22368 (IF_FLOAT32): Likewise.
22369 (IF_FLOAT64): Likewise.
22370 (IF_FLOAT32X): Likewise.
22371 (IF_FLOAT64X): Likewise.
22372 (IF_FLOAT128X): Likewise.
22373 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
22374 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
22375 (STRTOD_TEST_FOREACH): Likewise.
22376 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
22377 (CHOOSE_f64): Likewise.
22378 (CHOOSE_f32x): Likewise.
22379 (CHOOSE_f64x): Likewise.
22380
22381 2017-11-07 Andreas Schwab <schwab@suse.de>
22382
22383 * nptl/Makefile (tests-internal): Remove tst-typesizes.
22384
22385 2017-11-07 Mike FABIAN <mfabian@redhat.com>
22386
22387 [BZ #22403]
22388 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
22389 to be escaped.
22390 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
22391 to be escaped.
22392
22393 2017-11-07 Claude Paroz <claude@2xlibre.net>
22394
22395 [BZ #22403]
22396 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
22397 to be escaped.
22398 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
22399 to be escaped.
22400 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
22401 to be escaped.
22402
22403 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22404
22405 [BZ #22298]
22406 * nptl/allocatestack.c (allocate_stack): Check if
22407 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
22408 __PTHREAD_MUTEX_HAVE_PREV is defined.
22409 * nptl/descr.h (pthread): Likewise.
22410 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
22411 Likewise.
22412 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22413 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22414 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
22415 * sysdeps/nptl/bits/thread-shared-types.h
22416 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22417 defines.
22418 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
22419 of __WORDSIZE for internal layout.
22420 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
22421 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
22422 instead of __WORDSIZE whether to use an union for __spins and __list
22423 fields.
22424 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
22425 case.
22426 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
22427 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22428 defines.
22429 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
22430 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22431 Likewise.
22432 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
22433 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22434 Likewise.
22435 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
22436 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22437 Likewise.
22438 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
22439 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22440 Likewise.
22441 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
22442 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22443 Likewise.
22444 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
22445 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22446 Likewise.
22447 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
22448 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22449 Likewise.
22450 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
22451 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22452 Likewise.
22453 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
22454 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22455 Likewise.
22456 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
22457 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22458 Likewise.
22459 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
22460 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22461 Likewise.
22462 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
22463 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22464 Likewise.
22465 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
22466 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22467 Likewise.
22468 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
22469 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22470 Likewise.
22471
22472 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
22473 New macros.
22474 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
22475 checks for expected input type size.
22476 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22477 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22478 Likewise.
22479 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22480 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
22481 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
22482 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
22483 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22484 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
22485 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
22486 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
22487 superflous runtime assert check.
22488 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
22489 Likewise.
22490 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
22491 Likewise.
22492 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22493 Likewise.
22494 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
22495 Likewise.
22496 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
22497 Likewise.
22498 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
22499 Likewise.
22500 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
22501 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
22502 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
22503 Likewise.
22504 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
22505 Likewise.
22506 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
22507 Likewise.
22508 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
22509 Likewise.
22510 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
22511 Likewise.
22512 * nptl/pthread_attr_setinheritsched.c
22513 (__pthread_attr_setinheritsched): Likewise.
22514 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
22515 Likewise.
22516 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
22517 Likewise.
22518 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
22519 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
22520 __old_pthread_attr_setstack): Likewise.
22521 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
22522 Likewise.
22523 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
22524 Likewise.
22525 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
22526 Likewise.
22527 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
22528 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
22529 Likewise.
22530 * nptl/tst-typesizes.c: Remove file.
22531
22532 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
22533 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
22534 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
22535 checks for internal pthread_mutex_t offsets.
22536 * sysdeps/aarch64/nptl/pthread-offsets.h
22537 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
22538 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
22539 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
22540 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
22541 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
22542 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
22543 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
22544 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
22545 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
22546 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
22547 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
22548 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
22549 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
22550 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
22551 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
22552 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
22553 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
22554 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
22555
22556 2017-11-07 Florian Weimer <fweimer@redhat.com>
22557
22558 * bits/mman-linux.h: Move ...
22559 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
22560 comment.
22561 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
22562 outdated comment.
22563
22564 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22565
22566 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
22567 Redefine STRNLEN as __strnlen_power8.
22568
22569 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22570
22571 * signal/sighold.c (sighold): Optimize implementation.
22572
22573 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
22574 __NR_rt_sigqueueinfo.
22575
22576 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
22577 __sigtimedwait.
22578 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
22579 assume __NR_rt_sigtimedwait.
22580 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
22581 and add LIBC_CANCEL_HANDLED for cancellation marking.
22582 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22583
22584 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22585 (sysdeps_routines): Add memchr_noneon.
22586 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
22587 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
22588 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
22589 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
22590 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
22591 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
22592 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
22593
22594 * sysdeps/arm/arm-ifunc.h: New file.
22595 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
22596 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
22597 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
22598 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
22599 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
22600 (__memcpy_neon): Avoid create hidden alias.
22601 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
22602 (__memcpy_vfp): Likewise.
22603 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22604 (sysdep_routines): Add memcpy_arm.
22605 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
22606
22607 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
22608
22609 [BZ #22362]
22610 * Makerules (make-link-multidir): New.
22611 * config.make.in (multidir): New.
22612 * configure.ac (libc_cv_multidir): New. AC_SUBST.
22613 * configure: Regenerated.
22614 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
22615 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
22616 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
22617 New target.
22618
22619 2017-11-06 Joseph Myers <joseph@codesourcery.com>
22620
22621 [BZ #22402]
22622 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
22623 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
22624
22625 2017-11-04 Mike FABIAN <mfabian@redhat.com>
22626
22627 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
22628 to be escaped.
22629
22630 2017-11-04 Florian Weimer <fweimer@redhat.com>
22631
22632 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
22633
22634 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22635
22636 * math/math.h [__HAVE_DISTINCT_FLOAT16
22637 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22638 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22639 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22640 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
22641 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
22642 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
22643 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22644 (__MATH_TG_F32): New macro.
22645 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22646 (__MATH_TG_F64X): Likewise.
22647 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22648 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
22649
22650 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
22651
22652 * po/de.po: Update translations.
22653 * po/ru.po: Likewise.
22654
22655 2017-11-03 Florian Weimer <fweimer@redhat.com>
22656
22657 * manual/filesys.texi (Hard Links): Document linkat.
22658
22659 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22660
22661 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
22662 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22663 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22664 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22665 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22666 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22667 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
22668 the same as _Float128.
22669 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22670 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22671 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
22672
22673 * stdlib/stdlib.h
22674 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
22675 Declare.
22676 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
22677 Likewise.
22678 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
22679 Likewise.
22680 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22681 (strtof32x): Likewise.
22682 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22683 (strtof64x): Likewise.
22684 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22685 (strtof128x): Likewise.
22686 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22687 (strfromf16): Likewise.
22688 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22689 (strfromf32): Likewise.
22690 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22691 (strfromf64): Likewise.
22692 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22693 (strfromf32x): Likewise.
22694 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22695 (strfromf64x): Likewise.
22696 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22697 (strfromf128x): Likewise.
22698 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
22699 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
22700 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
22701 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
22702 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
22703 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
22704
22705 2017-11-03 Richard Henderson <rth@twiddle.net>
22706
22707 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
22708
22709 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22710
22711 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
22712
22713 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22714
22715 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
22716 DT_TLSDESC_GOT initialization.
22717 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
22718 (_dl_tlsdesc_resolve_hold): Likewise.
22719 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
22720 (_dl_tlsdesc_resolve_hold): Likewise.
22721 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
22722 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22723
22724 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22725
22726 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
22727
22728 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22729
22730 [BZ #18572]
22731 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
22732 non-lazily for R_ARM_TLS_DESC.
22733
22734 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22735
22736 [BZ #17078]
22737 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
22738 R_ARM_TLS_DESC case.
22739 (elf_machine_lazy_rel): Remove the prelink check.
22740
22741 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22742
22743 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
22744 DT_TLSDESC_GOT initialization.
22745 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
22746 (_dl_tlsdesc_resolve_rela): Likewise.
22747 (_dl_tlsdesc_resolve_hold): Likewise.
22748 (_dl_tlsdesc_undefweak): Remove ldar.
22749 (_dl_tlsdesc_dynamic): Likewise.
22750 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
22751 (_dl_tlsdesc_resolve_rela): Likewise.
22752 (_dl_tlsdesc_resolve_hold): Likewise.
22753 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
22754 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22755 (_dl_tlsdesc_resolve_rela): Likewise.
22756 (_dl_tlsdesc_resolve_hold): Likewise.
22757
22758 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22759
22760 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
22761 binding and initialization non-lazily for R_AARCH64_TLSDESC.
22762
22763 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22764
22765 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
22766 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
22767
22768 2017-11-02 Joseph Myers <joseph@codesourcery.com>
22769
22770 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
22771 Declare.
22772 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
22773 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
22774 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
22775 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
22776 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
22777 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
22778 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
22779 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
22780 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
22781 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
22782 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
22783
22784 2017-11-02 Mike FABIAN <mfabian@redhat.com>
22785
22786 [BZ #22382]
22787 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
22788 * localedata/locales/tpi_PG: Add standard header.
22789
22790 2017-11-02 Florian Weimer <fweimer@redhat.com>
22791
22792 test-errno-linux: quotactl can fail with EPERM in containers.
22793 * sysdeps/unix/sysv/linux/test-errno-linux.c
22794 (LIST, LIST_FORWARD): New macros.
22795 (check_error_in_list): New function.
22796 (test_wrp_rv): Accept list of permitted error codes.
22797 (test_wrp_rv2): Remove.
22798 (test_wrp): Call test_wrp_rv with list of error codes.
22799 (test_wrp2): Accept list of error codes.
22800 (do_test): Adjust. Allow EPERM for quotactl.
22801
22802 2017-11-02 Florian Weimer <fweimer@redhat.com>
22803
22804 * stdio-common/bug16.c (do_test): Use array_length.
22805 * stdio-common/errlist.c (_sys_nerr): Likewise.
22806 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
22807 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
22808 * stdio-common/psiginfo.c (psiginfo): Use array_length.
22809 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
22810 (do_test): Use array_length.
22811 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
22812 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
22813 * stdio-common/tst-printf-round.c (do_test): Likewise.
22814 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
22815 (CHECK): Use array_length.
22816 * stdio-common/tstdiomisc.c (t3, F): Likewise.
22817 * stdio-common/tstscanf.c (main): Likewise.
22818 * stdio-common/vfprintf.c (process_string_arg): Likewise.
22819
22820 2017-11-02 Florian Weimer <fweimer@redhat.com>
22821
22822 Add array_length and array_end macros.
22823 * include/array_length.h: New file.
22824
22825 2017-11-02 Florian Weimer <fweimer@redhat.com>
22826
22827 [BZ #22332]
22828 * posix/tst-glob-tilde.c (do_noescape): New variable.
22829 (one_test): Process it.
22830 (do_test): Set do_noescape. Add unescaping test case.
22831
22832 2017-11-01 Joseph Myers <joseph@codesourcery.com>
22833
22834 * math/complex.h
22835 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
22836 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
22837 with appropriate macros defined and undefined.
22838 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
22839 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22840 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
22841 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22842 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
22843 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22844 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
22845 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22846 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
22847 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22848
22849 * math/complex.h
22850 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
22851 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
22852 that for long double. Do not condition define and undefine of
22853 _Mdouble_complex_ on [__CFLOAT128].
22854
22855 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
22856
22857 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22858 of <sysdeps/generic/sysdep.h>.
22859 (ALIGNARG): Removed.
22860 (ASM_SIZE_DIRECTIVE): Likewise.
22861 (ENTRY): Likewise.
22862 (END): Likewise.
22863 (ENTRY_CHK): Likewise.
22864 (END_CHK): Likewise.
22865 (syscall_error): Likewise.
22866 (mcount): Likewise.
22867 (PSEUDO_END): Likewise.
22868 (L): Likewise.
22869 (atom_text_section): Likewise.
22870 * sysdeps/x86/sysdep.h: New file.
22871 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22872 of <sysdeps/generic/sysdep.h>.
22873 (ALIGNARG): Removed.
22874 (ASM_SIZE_DIRECTIVE): Likewise.
22875 (ENTRY): Likewise.
22876 (END): Likewise.
22877 (ENTRY_CHK): Likewise.
22878 (END_CHK): Likewise.
22879 (syscall_error): Likewise.
22880 (mcount): Likewise.
22881 (PSEUDO_END): Likewise.
22882 (L): Likewise.
22883 (atom_text_section): Likewise.
22884
22885 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
22886
22887 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
22888 category of LC_CTYPE set to "i18n:2012".
22889 * localedata/locales/i18n_ctype: Regenerate.
22890
22891 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
22892
22893 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
22894 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
22895 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
22896 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
22897
22898 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
22899 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
22900 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
22901 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
22902
22903 2017-10-31 Joseph Myers <joseph@codesourcery.com>
22904
22905 * math/complex.h
22906 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
22907 New macro.
22908 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
22909 Likewise.
22910 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
22911 Likewise.
22912 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22913 (CMPLXF32X): Likewise.
22914 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22915 (CMPLXF64X): Likewise.
22916 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22917 (CMPLXF128X): Likewise.
22918
22919 * math/math.h
22920 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
22921 (__MATH_EVAL_FMT2): Define to add 0.0f.
22922
22923 2017-10-31 Alan Modra <amodra@gmail.com>
22924
22925 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
22926 include sysdep.h.
22927 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
22928 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
22929 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
22930 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
22931 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
22932 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
22933 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
22934 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
22935 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
22936 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
22937 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
22938 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
22939 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
22940 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
22941 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
22942 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
22943 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
22944 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
22945 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
22946 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
22947 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
22948 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
22949 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
22950 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
22951 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
22952 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
22953 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
22954 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
22955 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
22956 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
22957 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
22958 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
22959 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
22960 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
22961 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
22962 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
22963 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
22964 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
22965 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
22966 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
22967 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
22968 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
22969 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
22970 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
22971 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
22972 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
22973 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
22974 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
22975 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
22976 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
22977 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
22978 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
22979 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
22980 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
22981 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
22982 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
22983 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
22984 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
22985 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
22986 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
22987 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
22988 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
22989 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
22990 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
22991 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
22992 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
22993 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
22994 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
22995 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
22996
22997 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
22998 include sysdep.h and math_ldbl_opt.h.
22999
23000 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23001 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
23002 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23003 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23004 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23005 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23006 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23007 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23008 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23009 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23010 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23011 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23012 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23013 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23014 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
23015 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
23016 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
23017 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
23018 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
23019 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
23020 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
23021 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
23022 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23023 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23024 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23025 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23026
23027 2017-10-31 Alan Modra <amodra@gmail.com>
23028
23029 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23030 string/strncase_l.c, not string/strncase.c.
23031 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23032 (libc_hidden_def): Redefine.
23033
23034 2017-10-31 Alan Modra <amodra@gmail.com>
23035
23036 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23037 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23038 (__strcasecmp): Don't define.
23039
23040 2017-10-31 Alan Modra <amodra@gmail.com>
23041
23042 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23043 IS_IN (libc).
23044 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23045 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23046 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23047
23048 2017-10-31 Alan Modra <amodra@gmail.com>
23049
23050 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23051 USE_AS_STPNCPY.
23052
23053 2017-10-31 Alan Modra <amodra@gmail.com>
23054
23055 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23056 Redefine only when SHARED.
23057
23058 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23059
23060 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23061 Include <bits/math-finite.h> with appropriate macros defined and
23062 undefined.
23063 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23064 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23065 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23066 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23067 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23068
23069 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23070 [!_Mlong_double_] (_Mlong_double_): Likewise.
23071 [!_Mfloat16_] (_Mfloat16_): Likewise.
23072 [!_Mfloat32_] (_Mfloat32_): Likewise.
23073 [!_Mfloat64_] (_Mfloat64_): Likewise.
23074 [!_Mfloat128_] (_Mfloat128_): Likewise.
23075 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23076 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23077 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23078 (_Mdouble_): Define without indirection through those macros.
23079 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23080 [!_Mfloat128_] (_Mfloat128_): Likewise.
23081 [_Mlong_double_] (_Mlong_double_): Likewise.
23082 (_Mdouble_): Define without indirection through those macros.
23083 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23084 not add -D_Mlong_double_=double.
23085 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23086 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23087
23088 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23089
23090 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23091
23092 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23093
23094 * sysdeps/x86/libc-start.c: Reformat.
23095
23096 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23097
23098 [BZ #22353]
23099 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23100 (1): Renamed to ...
23101 (L(Src0)): This.
23102 (L(Src1)): New.
23103 (L(Src2)): Likewise.
23104 (L(1)): Renamed to ...
23105 (L(Src3)): This.
23106
23107 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23108
23109 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23110 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23111 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23112 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23113 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23114 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23115 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23116 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23117 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23118 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23119 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23120 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23121 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23122 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23123 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23124 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23125 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23126 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23127 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23128 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23129 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23130 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23131 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23132 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23133 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23134 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23135 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23136 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23137 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23138 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23139 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23140 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23141 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23142 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23143 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23144 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23145 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23146 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23147 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23148 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23149 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23150 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23151 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23152 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23153 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23154 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23155 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23156 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23157 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23158 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23159 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23160 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23161 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23162 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23163 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23164 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23165 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23166 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23167 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23168 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23169 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23170 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23171 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23172 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23173 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23174 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23175
23176 2017-10-30 Florian Weimer <fweimer@redhat.com>
23177
23178 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23179 always defined.
23180 * io/tst-mkdirat.c (do_test): Likewise.
23181 * io/tst-mkfifoat.c (do_test): Likewise.
23182 * io/tst-mknodat.c (do_test): Likewise.
23183 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23184 * locale/programs/locale.c (select_dirs): Likewise.
23185 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23186 * posix/bug-glob2.c (my_readdir): Likewise.
23187 * posix/tst-dir.c (main): Likewise.
23188 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23189 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23190
23191 2017-10-30 Florian Weimer <fweimer@redhat.com>
23192
23193 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23194 just __USE_GNU.
23195
23196 2017-10-30 Florian Weimer <fweimer@redhat.com>
23197
23198 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23199 Convert to support/test-driver.c.
23200 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23201 New macro parameters.
23202 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23203 * posix/tst-gnuglob.c: New file.
23204 * posix/tst-gnuglob64.c: Likewise.
23205 * posix/Makefile (tests): Add tst-gnuglob64.
23206
23207 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23208
23209 [BZ #19485]
23210 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23211 and use a better translation for March in “mon”.
23212 * localedata/locales/csb_PL: Use more ASCII to improve the
23213 readability of the source.
23214
23215 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23216
23217 [BZ #13953]
23218 * localedata/locales/km_KH: Use ASCII as much
23219 as possible for better readability of the source and
23220 remove useless comments.
23221 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23222 was commented out and apparently wrong anyway because it was
23223 using Lao characters. If Buddhist era should be used
23224 for km_KH, a native speaker should write the correct formaat
23225 for Khmer.
23226 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23227 (According to CLDR, the first weekday for Cambodia is Sunday).
23228 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23229 (These were using Lao characters which must be wrong. If we get
23230 the correct data from a native speaker, we could add it back, until
23231 then it is better not to have name_mr and name_mrs at all than
23232 having it wrong).
23233
23234 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23235
23236 * locale/loadlocale.c: Correct size of
23237 _nl_value_type_LC_<category> arrays.
23238
23239 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23240
23241 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23242 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23243 with appropriate macros defined and undefined.
23244 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23245 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23246 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23247 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23248 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23249
23250 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23251
23252 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23253 "-O2 -march=i586".
23254
23255 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23256
23257 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23258 with lowercase letters to make it agree with CLDR.
23259
23260 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23261
23262 [BZ #15260]
23263 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23264 first letters of yesstr and nostr in yesexpr and noexpr,
23265 not for the full words.
23266 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23267 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23268 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23269 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23270 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23271 first letters of yesstr and nostr in yesexpr and noexpr,
23272 until now only English was matched in yesexpr and noexpr.
23273 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23274 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23275 fil but not for tl. As tl and fil are very similar, using fil
23276 is probably better than using English.
23277
23278 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23279
23280 [BZ #21706]
23281 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23282 in yesstr and nostr.
23283
23284 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23285
23286 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23287 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23288 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23289 Likewise.
23290 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23291 Likewise.
23292 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23293 Likewise.
23294 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23295 Likewise.
23296 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23297 (SNANF128X): Likewise.
23298
23299 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23300 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23301 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23302 (HUGE_VAL_F32): Likewise.
23303 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23304 (HUGE_VAL_F64): Likewise.
23305 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23306 (HUGE_VAL_F32X): Likewise.
23307 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23308 (HUGE_VAL_F64X): Likewise.
23309 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23310 (HUGE_VAL_F128X): Likewise.
23311
23312 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23313
23314 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23315 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23316 for the br_FR locale.
23317
23318 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23319
23320 [BZ #21706]
23321 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23322
23323 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23324
23325 * locale/programs/record-status.h: Define globals, and function
23326 prototypes. Move function bodies...
23327 * locale/programs/record-status.c: ... to here. New file.
23328 * iconv/Makefile (iconv_prog-modules): Add record-status.
23329 * locale/Makefile (lib-modules): Likewise.
23330 * iconv/iconv_prog.c: Remove verbose.
23331 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23332 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23333 record a warning about ASCII compatibility.
23334 * locale/programs/ld-monetary.c (monetary_finish): If
23335 warn_int_curr_symbol is true then record a warning about the symbol
23336 not being in our ISO 4217 list.
23337 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23338 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23339 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23340 (OPT_NO_WARN): Define.
23341 (OPT_WARN): Define.
23342 (options): Add entry for --no-warnings, and --warnings.
23343 (set_warnings): New function to enable/disable warnings.
23344 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23345 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
23346 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
23347 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
23348 Pass flags to generate_locale.
23349 (generate_locale): Accept new flag argument and pass it to localedef
23350 invocation.
23351 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
23352 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
23353
23354 * localedata/Makefile (test-input-data): Use full file name.
23355 * localedata/da_DK.in: Rename to...
23356 * localedata/da_DK.ISO-8859-1.in: ...this.
23357 * localedata/de_DE.in: Rename to...
23358 * localedata/de_DE.ISO-8859-1.in: ...this.
23359 * localedata/en_US.in: Rename to...
23360 * localedata/en_US.ISO-8859-1.in: ...this.
23361 * localedata/fr_FR.in: Rename to...
23362 * localedata/fr_FR.UTF-8.in: ... this.
23363 * localedata/hr_HR.in: Rename to...
23364 * localedata/hr_HR.ISO-8859-2.in: ...this.
23365 * localedata/hu_HU.in: Rename to...
23366 * localedata/hu_HU.UTF-8.in: ...this.
23367 * localedata/si_LK.in: Rename to...
23368 * localedata/si_LK.UTF-8.in: ...this.
23369 * localedata/sv_SE.in: Rename to...
23370 * localedata/sv_SE.ISO-8859-1.in: ...this.
23371 * localedata/tr_TR.in: Rename to...
23372 * localedata/tr_TR.UTF-8.in: ...this.
23373 * localedata/uk_UA.in: Rename to...
23374 * localedata/uk_UA.UTF-8.in: ...this.
23375 * localedata/sort-test.sh: Test file is locale name with the
23376 suffix.
23377
23378 * localedata/unicode-gen/Makefile (check_i18n): Rename to
23379 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
23380 file.
23381 * localedata/locales/i18n_ctype: Regenerate.
23382 * localedata/locales/tr_TR: Likewise.
23383 * localedata/locales/translit_circle: Likewise.
23384 * localedata/locales/translit_cjk_compat: Likewise.
23385 * localedata/locales/translit_combining: Likewise.
23386 * localedata/locales/translit_compat: Likewise.
23387 * localedata/locales/translit_font: Likewise.
23388 * localedata/locales/translit_fraction: Likewise.
23389
23390 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23391
23392 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
23393 lxvd2x/stxvd2x with lvx/stvx.
23394 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
23395
23396 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
23397
23398 * include/alloc_buffer.h: Replace "if if " with "if " in
23399 comments.
23400 * sysdeps/mips/memcpy.S: Likkewise.
23401 * sysdeps/mips/memset.S: Likewise.
23402 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23403 Likewise.
23404 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
23405 Likewise.
23406 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
23407 Likewise.
23408
23409 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23410
23411 [BZ #15261]
23412 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
23413 yesexpr and noexpr.
23414 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23415 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23416 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23417 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23418 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23419 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23420 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23421
23422 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23423
23424 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
23425 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23426 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23427 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23428 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23429 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
23430 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23431 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23432 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23433 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23434 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23435 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23436
23437 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23438
23439 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
23440 as possible for better readability of the source.
23441 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
23442 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
23443 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
23444 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
23445 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
23446 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
23447 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
23448 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
23449 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23450 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
23451 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
23452 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
23453 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
23454 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
23455 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
23456 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
23457 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
23458 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
23459 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
23460 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
23461 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
23462 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
23463 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
23464 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
23465 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
23466 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
23467 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
23468 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
23469 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
23470 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
23471 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
23472 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23473 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
23474 * localedata/locales/en_US (LC_MESSAGES): Likewise.
23475 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
23476 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
23477 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
23478 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
23479 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
23480 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
23481 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
23482 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
23483 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
23484 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
23485 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
23486 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
23487 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
23488 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
23489 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
23490 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
23491 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
23492 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
23493 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
23494 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23495 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23496 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
23497 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
23498 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23499 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
23500 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
23501 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
23502 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
23503 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
23504 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
23505 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
23506 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
23507 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
23508 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
23509 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
23510 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
23511 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
23512 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
23513 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
23514 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
23515 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23516 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
23517 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
23518 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
23519 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
23520 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
23521 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
23522 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
23523 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
23524 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23525 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
23526 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
23527 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
23528 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23529 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
23530 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
23531 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
23532 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
23533 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23534 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
23535 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
23536 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23537 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
23538 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23539 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
23540 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
23541 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
23542 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
23543 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
23544 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
23545 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
23546 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
23547 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
23548 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
23549 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
23550 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
23551 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
23552 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
23553 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23554 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
23555 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
23556 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
23557 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
23558 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
23559 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
23560 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
23561 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
23562 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
23563 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
23564 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
23565 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
23566 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
23567 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
23568 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
23569 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
23570 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
23571 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
23572 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
23573 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
23574 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
23575 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
23576 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
23577 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
23578 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
23579 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
23580 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
23581 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
23582 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
23583 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
23584 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
23585 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
23586 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23587 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
23588 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
23589 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
23590 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
23591 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
23592 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
23593 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
23594 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
23595 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23596 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
23597 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
23598 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
23599 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
23600 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
23601 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
23602 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
23603 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
23604 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
23605 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
23606 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23607 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
23608 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
23609 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
23610 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
23611 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23612 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23613 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23614 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
23615
23616 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23617
23618 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
23619 (Use first letters of yesstr and nostr correctly instead of using
23620 full words).
23621
23622 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23623
23624 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
23625 (Use first letters of yesstr and nostr correctly).
23626
23627 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23628
23629 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
23630 also check for the first characters of yesstr and nostr.
23631 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
23632 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
23633
23634 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23635
23636 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
23637 also check for Chinese characters.
23638
23639 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23640
23641 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
23642 match also for the contents of yesstr and nostr. As the first letter
23643 of yesstr and nostr is equal, checking only for the first letter
23644 is not enough.
23645
23646 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23647
23648 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
23649 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
23650
23651 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23652
23653 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
23654 of main contributor.
23655
23656 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23657
23658 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
23659 instead of using English.
23660
23661 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23662
23663 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
23664 by including the first letters of nostr and yesexpr in the regexp.
23665 Also make it more readable by using ASCII where possible.
23666
23667 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23668
23669 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
23670 the first letter of nostr in the regexp. It agrees with CLDR now.
23671 Also make it more readable by using ASCII where possible.
23672
23673 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23674
23675 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
23676 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
23677 these strings contain a U+17D6 (which somewhat looks like a colon)
23678 instead of a real colon to separate the full words for “yes”
23679 and “no” from the single letter responses.
23680
23681 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23682
23683 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
23684 it agree with CLDR (include the first letter of yesstr).
23685 Also make it more readable by using ASCII where possible.
23686
23687 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23688
23689 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
23690 and improve yesexpr and noexpr. The yesstr and nostr apparently
23691 came from CLDR. And CLDR has a bug there: these strings contain
23692 a U+0903 (which looks like a colon) instead of a real colon
23693 to separate the full words for “yes” and “no” from the single
23694 letter responses.
23695
23696 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23697
23698 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
23699 letters of the full yesstr and nostr in yesexpr and noexpr.
23700
23701 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23702
23703 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
23704 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
23705 * localedata/locales/an_ES: Make source more readable by using ASCII
23706 where possible.
23707
23708 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23709
23710 [BZ #20952]
23711 * localedata/locales/yuw_PG: New file.
23712 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
23713 * locale/iso-639.def: Add Yau (Uruwa).
23714
23715 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23716
23717 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
23718
23719 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23720
23721 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
23722 (__libc_realloc): Likewise.
23723 (_mid_memalign): Likewise.
23724 (__libc_calloc): Likewise.
23725
23726 2017-10-23 Mike FABIAN <mfabian@redhat.com>
23727
23728 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
23729 by adding the generic +1 and -0 as in all other locales.
23730 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
23731 day names and make it more readable by using ASCII where possible.
23732
23733 2017-10-24 Joseph Myers <joseph@codesourcery.com>
23734
23735 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
23736 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
23737
23738 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23739
23740 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
23741 WNOHANG in waitpid call.
23742
23743 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
23744
23745 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
23746 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
23747
23748 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
23749 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
23750 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
23751 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
23752 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
23753 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
23754 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
23755 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
23756 variables.
23757
23758 2017-10-23 Michael Collison <michael.collison@arm.com>
23759
23760 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
23761 with __builtin_sqrt.
23762 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
23763 with __builtin_sqrtf.
23764 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
23765 with __builtin_ceil.
23766 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
23767 with __builtin_ceilf.
23768 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
23769 with __builtin_floor.
23770 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
23771 with __builtin_floorf.
23772 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
23773 with __builtin_fma.
23774 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
23775 with __builtin_fmaf.
23776 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
23777 with __builtin_fmax.
23778 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
23779 with __builtin_fmaxf.
23780 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
23781 with __builtin_fmin.
23782 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
23783 with __builtin_fminf.
23784 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
23785 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
23786 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
23787 with builtin_rint and conversion to int.
23788 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
23789 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
23790 with builtin_llround.
23791 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
23792 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
23793 with builtin_rint and conversion to long int.
23794 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
23795 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
23796 with builtin_lround.
23797 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
23798 with builtin_lroundf.
23799 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
23800 statements with __builtin_nearbyint.
23801 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
23802 statements with __builtin_nearbyintf.
23803 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
23804 with __builtin_rint.
23805 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
23806 with __builtin_rintf.
23807 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
23808 with __builtin_round.
23809 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
23810 with __builtin_roundf.
23811 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
23812 with __builtin_trunc.
23813 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
23814 with __builtin_truncf.
23815 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
23816 and s_l[l]round[f].c too.
23817
23818 2017-10-23 Alan Modra <amodra@gmail.com>
23819
23820 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
23821 Adjust stack after restoring regs. Add missing LR cfi_restore.
23822
23823 2017-10-23 Alan Modra <amodra@gmail.com>
23824
23825 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
23826 Move LR save and frame setup/teardown and LR restore to
23827 immediately around memset call. Provide cfi.
23828
23829 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23830
23831 * sysdeps/i386/fpu/e_powf.S: Removed.
23832 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
23833 * sysdeps/i386/fpu/w_powf.c: Likewise.
23834 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
23835 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23836 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23837 Add e_powf-sse2.
23838 (CFLAGS-e_powf-sse2.c): New.
23839 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
23840 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
23841
23842 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23843
23844 * sysdeps/i386/fpu/e_log2f.S: Removed.
23845 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
23846 * sysdeps/i386/fpu/w_log2f.c: Likewise.
23847 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
23848 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23849 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23850 Add e_log2f-sse2.
23851 (CFLAGS-e_log2f-sse2.c): New.
23852 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
23853 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
23854
23855 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23856
23857 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23858 Add e_powf-fma.
23859 (CFLAGS-e_powf-fma.c): New.
23860 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
23861 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
23862
23863 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23864
23865 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23866 Add e_log2f-fma.
23867 (CFLAGS-e_log2f-fma.c): New.
23868 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
23869 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
23870
23871 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23872
23873 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23874 Add e_logf-fma.
23875 (CFLAGS-e_logf-fma.c): New.
23876 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
23877 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
23878
23879 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23880
23881 * sysdeps/i386/fpu/e_logf.S: Removed.
23882 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
23883 * sysdeps/i386/fpu/w_logf.c: Likewise.
23884 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
23885 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
23886 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23887 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23888 Add e_logf-sse2.
23889 (CFLAGS-e_logf-sse2.c): New.
23890 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
23891 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
23892
23893 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23894
23895 * sysdeps/i386/fpu/e_exp2f.S: Removed.
23896 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
23897 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
23898 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23899 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23900 Add e_exp2f-sse2.
23901 (CFLAGS-e_exp2f-sse2.c): New.
23902 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
23903 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
23904
23905 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23906
23907 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23908 Add e_exp2f-fma.
23909 (CFLAGS-e_exp2f-fma.c): New.
23910 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
23911 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
23912
23913 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23914
23915 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
23916 * sysdeps/i386/fpu/e_expf.S: Likewise.
23917 * sysdeps/i386/fpu/math_errf.c: Likewise.
23918 * sysdeps/i386/fpu/w_expf.c: Likewise.
23919 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
23920 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
23921 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
23922 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
23923 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23924 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23925 Remove e_expf-ia32.
23926 (CFLAGS-e_expf-sse2.c): New.
23927 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
23928 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
23929
23930 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23931
23932 * sysdeps/x86_64/fpu/e_expf.S: Removed.
23933 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
23934 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
23935 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
23936 e_expf.c.
23937 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
23938 New.
23939 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
23940 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
23941 Renamed to ...
23942 (__redirect_expf): This.
23943 (SYMBOL_NAME): Changed to expf.
23944 (__ieee754_expf): Renamed to ...
23945 (__expf): This.
23946 (__GI___expf): This.
23947 (__ieee754_expf): Add strong_alias.
23948 (__expf_finite): Likewise.
23949 (__expf): New.
23950 Include <sysdeps/ieee754/flt-32/e_expf.c>.
23951
23952 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
23953
23954 [BZ #22332]
23955 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
23956 unescaping.
23957
23958 2017-10-21 Florian Weimer <fweimer@redhat.com>
23959
23960 * posix/Makefile (tests): Add tst-glob-tilde.
23961 (tests-special): Add tst-glob-tilde-mem.out
23962 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
23963 (tst-glob-tilde-mem.out): Add mtrace check.
23964 * posix/tst-glob-tilde.c: New file.
23965
23966 2017-10-20 Joseph Myers <joseph@codesourcery.com>
23967
23968 * bits/floatn-common.h: New file.
23969 * math/Makefile (headers): Add bits/floatn-common.h.
23970 * bits/floatn.h: Include <bits/floatn-common.h>.
23971 * sysdeps/ia64/bits/floatn.h: Likewise.
23972 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
23973 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
23974 * sysdeps/powerpc/bits/floatn.h: Likewise.
23975 * sysdeps/x86/bits/floatn.h: Likewise.
23976
23977 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23978
23979 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
23980 indicates whether compiler emits an warning for alias for
23981 functions with incompatible types.
23982
23983 [BZ #22273]
23984 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
23985 the auxiliary process is terminated by a signal before calling _exit
23986 or execve.
23987
23988 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
23989
23990 [BZ #21265]
23991 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
23992 New.
23993 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
23994 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
23995 and bit_arch_XSAVEC_Usable if needed.
23996 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
23997 and bit_arch_Use_dl_runtime_resolve_opt.
23998 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
23999 Removed.
24000 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24001 (bit_arch_Prefer_No_AVX512): Updated.
24002 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24003 (bit_arch_XSAVEC_Usable): New.
24004 (STATE_SAVE_OFFSET): Likewise.
24005 (STATE_SAVE_MASK): Likewise.
24006 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24007 (cpu_features): Add xsave_state_size and xsave_state_full_size.
24008 (index_arch_Use_dl_runtime_resolve_opt): Removed.
24009 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24010 (index_arch_XSAVEC_Usable): New.
24011 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24012 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
24013 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24014 is enabled.
24015 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
24016 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
24017 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
24018 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
24019 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
24020 _dl_runtime_resolve_xsavec.
24021 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
24022 Removed.
24023 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24024 instead of VEC_SIZE.
24025 (REGISTER_SAVE_BND0): Removed.
24026 (REGISTER_SAVE_BND1): Likewise.
24027 (REGISTER_SAVE_BND3): Likewise.
24028 (REGISTER_SAVE_RAX): Always defined to 0.
24029 (VMOV): Removed.
24030 (_dl_runtime_resolve_avx): Likewise.
24031 (_dl_runtime_resolve_avx_slow): Likewise.
24032 (_dl_runtime_resolve_avx_opt): Likewise.
24033 (_dl_runtime_resolve_avx512): Likewise.
24034 (_dl_runtime_resolve_avx512_opt): Likewise.
24035 (_dl_runtime_resolve_sse): Likewise.
24036 (_dl_runtime_resolve_sse_vex): Likewise.
24037 (USE_FXSAVE): New.
24038 (_dl_runtime_resolve_fxsave): Likewise.
24039 (USE_XSAVE): Likewise.
24040 (_dl_runtime_resolve_xsave): Likewise.
24041 (USE_XSAVEC): Likewise.
24042 (_dl_runtime_resolve_xsavec): Likewise.
24043 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24044 Removed.
24045 (_dl_runtime_resolve_avx512_opt): Likewise.
24046 (_dl_runtime_resolve_avx): Likewise.
24047 (_dl_runtime_resolve_avx_opt): Likewise.
24048 (_dl_runtime_resolve_sse): Likewise.
24049 (_dl_runtime_resolve_sse_vex): Likewise.
24050 (_dl_runtime_resolve_fxsave): New.
24051 (_dl_runtime_resolve_xsave): Likewise.
24052 (_dl_runtime_resolve_xsavec): Likewise.
24053
24054 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24055
24056 [BZ #22320]
24057 CVE-2017-15670
24058 * posix/glob.c (__glob): Fix one-byte overflow.
24059
24060 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24061
24062 * malloc/malloc.c (sysdep-cancel.h): Add include.
24063
24064 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24065
24066 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24067
24068 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24069
24070 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24071 (tests): Remove $(objpfx)ga_test depdendency.
24072 * resolv/ga_test.c: Remove file.
24073
24074 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24075
24076 [BZ #18812]
24077 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24078 * localedata/locales/kab_DZ: New file.
24079
24080 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24081
24082 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24083 _dl_relocate_static_pie instead of _dl_start to compute load
24084 address in static PIE.
24085
24086 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24087
24088 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24089
24090 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24091
24092 [BZ #13605]
24093 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24094 * localedata/locales/shn_MM: New file.
24095
24096 2017-10-20 Florian Weimer <fweimer@redhat.com>
24097
24098 [BZ #22321]
24099 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24100 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24101 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24102 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24103 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24104 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24105
24106 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24107
24108 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24109
24110 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24111
24112 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24113
24114 [BZ #22322]
24115 * sysdeps/mips/bits/long-double.h: Move to ....
24116 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24117
24118 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24119
24120 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24121
24122 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24123 H.J. Lu <hongjiu.lu@intel.com>
24124
24125 [BZ #22299]
24126 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24127 GLRO(dl_platform) to NULL.
24128 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24129 (modules-names): Add tst-platformmod-1 and
24130 x86_64/tst-platformmod-2.
24131 (CFLAGS-tst-platform-1.c): New.
24132 (CFLAGS-tst-platformmod-1.c): Likewise.
24133 (CFLAGS-tst-platformmod-2.c): Likewise.
24134 (LDFLAGS-tst-platformmod-2.so): Likewise.
24135 ($(objpfx)tst-platform-1): Likewise.
24136 ($(objpfx)tst-platform-1.out): Likewise.
24137 (tst-platform-1-ENV): Likewise.
24138 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24139 * sysdeps/x86_64/tst-platform-1.c: New file.
24140 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24141 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24142
24143 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24144
24145 [BZ #13994]
24146 * locale/iso-639.def: Add Karbi.
24147 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24148 * localedata/locales/mjw_IN: New file.
24149
24150 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24151
24152 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24153 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24154 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24155 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24156 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24157 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24158 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24159 <bits/floatn.h>.
24160 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24161 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24162 * manual/math.texi (Mathematics): Document additional architecture
24163 support for _Float128.
24164 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24165 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24166 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24167 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24168 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24169 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24170 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24171 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24172 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24173 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24174 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24175 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24176 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24177 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24178 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24179
24180 2017-10-18 Renlin Li <renlin.li@arm.com>
24181
24182 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24183 _DYNAMIC symbol to calculate load address.
24184
24185 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24186
24187 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24188 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24189 summary bits.
24190 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24191 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24192
24193 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24194
24195 [BZ #16777]
24196 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24197 and improve readability by using more ASCII.
24198 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24199 and improve readability by using more ASCII.
24200
24201 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24202
24203 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24204 not all targets support atomics on bool.
24205
24206 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24207
24208 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24209 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24210 __f128.
24211 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24212 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24213 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24214 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24215 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24216 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24217
24218 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24219
24220 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24221 defines.
24222
24223 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24224
24225 [BZ #22159]
24226 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24227 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24228 (do_check_remalloced_chunk): Fix build bug.
24229 (do_check_malloc_state): Add assert that checks arena->top.
24230 (malloc_consolidate): Remove initialization.
24231 (int_mallinfo): Remove call to malloc_consolidate.
24232 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24233
24234 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24235
24236 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24237 (have_fastchunks): Remove.
24238 (clear_fastchunks): Remove.
24239 (set_fastchunks): Remove.
24240 (malloc_state): Add have_fastchunks.
24241 (malloc_init_state): Use have_fastchunks.
24242 (do_check_malloc_state): Remove incorrect invariant checks.
24243 (_int_malloc): Use have_fastchunks.
24244 (_int_free): Likewise.
24245 (malloc_consolidate): Likewise.
24246
24247 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24248
24249 * malloc/malloc.c (tcache_put): Inline.
24250 (tcache_get): Inline.
24251
24252 2017-10-17 Jordi Mallach <jordi@gnu.org>
24253
24254 Aurelien Jarno <aurelien@aurel32.net>
24255 [BZ #2522]
24256 * localedata/locales/ca_ES@valencia: New file.
24257 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24258
24259 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24260
24261 [BZ #22296]
24262 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24263 < 6.x
24264
24265 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24266
24267 * scripts/build-many-glibcs.py (Context.add_all_configs):
24268 Add arm-linux-gnueabihf multiarch extra_glibcs.
24269
24270 * sysdeps/generic/ifunc-init.h: New file.
24271 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24272
24273 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24274
24275 [BZ #22019]
24276 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24277 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24278 * stdlib/tst-strfmon_l.c: adapt test case.
24279
24280 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24281
24282 * sysdeps/generic/float128-abi.h: New file.
24283 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24284 non-__prefixed symbols to ....
24285 * math/Versions: ... here. Include <float128-abi.h>.
24286 * stdlib/Versions ... and here. Include <float128-abi.h>
24287
24288 2017-10-16 Florian Weimer <fweimer@redhat.com>
24289
24290 * version.h (VERSION): Switch to ".9000" as the development
24291 version suffix.
24292
24293 2017-10-16 Florian Weimer <fweimer@redhat.com>
24294
24295 [BZ #22050]
24296 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24297 compat_symbol_reference to access non-default version.
24298
24299 2017-10-16 Florian Weimer <fweimer@redhat.com>
24300
24301 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24302
24303 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24304
24305 * include/shlib-compat.h (compat_symbol_reference): Update
24306 comment.
24307
24308 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24309
24310 * math/Makefile (test-types): Add
24311 $(type-float128-$(float128-alias-fcts)).
24312 * math/test-float128.h (TYPE_STR): Define conditional on
24313 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24314 (ULP_IDX): Likewise.
24315 (ULP_I_IDX): Likewise.
24316
24317 * stdlib/strtold.c: Include <bits/floatn.h>
24318 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24319 and later undefine as macro. Define as weak alias if
24320 [!USE_WIDE_CHAR].
24321 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24322 and later undefine as macro. Define as weak alias if
24323 [USE_WIDE_CHAR].
24324 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24325 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24326 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24327 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24328 Define and later undefine as macro. Define as weak alias if
24329 [USE_WIDE_CHAR].
24330 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24331 <bits/floatn.h>.
24332 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24333 Define and later undefine as macro. Define as weak alias if
24334 [!USE_WIDE_CHAR].
24335 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24336 Define and later undefine as macro. Define as weak alias if
24337 [USE_WIDE_CHAR].
24338
24339 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24340
24341 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24342 record_verbose messages.
24343
24344 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24345
24346 [BZ #22052]
24347 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
24348 to silence -O3 -Wall warning with GCC 7.
24349
24350 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
24351
24352 * Makeconfig (+link-static-before-libc): Use the first of
24353 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24354 * gmon/Makefile (tests): Add tst-gmon-static.
24355 (tests-static): Likewise.
24356 (CFLAGS-tst-gmon-static.c): New.
24357 (CRT-tst-gmon-static): Likewise.
24358 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24359 (tst-gmon-static-ENV): Likewise.
24360 (tests-special): Likewise.
24361 ($(objpfx)tst-gmon-static.out): Likewise.
24362 (clean-tst-gmon-static-data): Likewise.
24363 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24364 * gmon/tst-gmon-static-gprof.sh: New file.
24365 * gmon/tst-gmon-static.c: Likewise.
24366
24367 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24368
24369 [BZ #22295]
24370 * locale/programs/linereader.c (get_string): Don't warn on
24371 non-symbolic character.
24372
24373 [BZ #22294]
24374 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
24375 int_curr_symbol.
24376
24377 [BZ #22292]
24378 * locale/programs/record-status.h: New file
24379 * locale/programs/locale.c: Add comment.
24380 * locale/programs/charmap-dir.c: Don't include error.h.
24381 (charmap_opendir): Use record_error.
24382 * locale/programs/charmap.c: Don't include error.h.
24383 (charmap_read): Use record_error, and record_warning.
24384 (parse_charmap): Likewise.
24385 * locale/programs/ld-address.c: Don't include error.h.
24386 (address_finish): Use record_error, and record_warning.
24387 * locale/programs/ld-collate.c: Don't include error.h.
24388 (collate_finish): Use record_error, and record_error_at_line.
24389 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
24390 (ctype_class_new): Likewise.
24391 (ctype_map_new): Likewise.
24392 (set_one_default): Likewise.
24393 (set_class_defaults): Likewise.
24394 (translit_flatten): Likewise.
24395 (allocate_arrays): Use record_error, and record_verbose.
24396 * locale/programs/ld-identification.c: Don't include error.h.
24397 (indentation_finish): Use record_error and record_warning.
24398 * locale/programs/ld-measurement.c: Don't include error.h.
24399 (measurement_finish): Use record_error.
24400 * locale/programs/ld-messages.c
24401 (message_finish): Likewise.
24402 * locale/programs/ld-monetary.c
24403 (monetary_finish): Likewise.
24404 * locale/programs/ld-name.c (name_finish): Use record_error
24405 and record_warning.
24406 * locale/programs/ld-numeric.c
24407 (numeric_finish): Use record_error.
24408 * locale/programs/ld-paper.c: Don't include error.h.
24409 (paper_finish): Use record_error.
24410 * locale/programs/ld-telephone.c: Don't include error.h.
24411 (telephone_finish): Use record_error.
24412 * locale/programs/ld-time.c (time_finish): Likewise.
24413 * locale/programs/linereader.h (lr_error): Make inline func.
24414 * locale/programs/localedef.c: Define recorded_warning_count,
24415 and recorded_error_count.
24416 (main): Use record_error. Use recorded_error_count and
24417 recorded_warning_count to issue correct error returns.
24418 (add_to_readlist): Use record_error.
24419 (find_locale): Likewise.
24420 (load_locale): Likewise.
24421 * locale/programs/localedef.h: Remove be_quiet
24422 and WITH_CUR_LOCALE.
24423 * locale/programs/locarchive.c (compare_from_file): Use
24424 record_error.
24425 * locale/programs/locfile.c (write_locale_data): Use
24426 record_error.
24427 * locale/programs/repertoire.c: Dont include error.h.
24428 (repertoire_complain): Use record_error.
24429 * localedata/tst-fmon.sh: Expect failures from localedef.
24430 * localedata/tst-locale.sh: Likewise.
24431 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
24432
24433 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
24434 (REPORTS): Likewise.
24435 (check): Likewise.
24436 (i18n): Rename to...
24437 (i18n_ctype): ...this.
24438 (i18n-report): Rename to...
24439 (i18n_ctype-report): ...this.
24440 * localedata/locales/i18n_ctype: Regenerate.
24441 * localedata/locales/i18n: copy i18n_ctype.
24442
24443 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24444
24445 * stdlib/strfroml.c: Include <bits/floatn.h>.
24446 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
24447 Define before include of <stdlib.h> and undefine afterwards, then
24448 define as weak alias.
24449
24450 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
24451 Undefine and restore default definition. Use
24452 libm_alias_ldouble_other.
24453
24454 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
24455
24456 [BZ #22153]
24457 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
24458 in coredumps.
24459
24460 2017-10-13 James Clarke <jrtc27@jrtc27.com>
24461
24462 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24463 Assign sym_map to be map for local symbols, as TLS relocations
24464 use sym_map to determine whether the symbol is defined and to
24465 extract the TLS information.
24466 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24467 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24468
24469 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24470
24471 [BZ #22189]
24472 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
24473 (math_force_eval): Add powerpc version.
24474
24475 [BZ #22142]
24476 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
24477 -DBL_MAX.
24478 (do_test): Likewise.
24479 * stdio-common/tst-printf.sh: Likewise.
24480 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
24481 ifdef clause in order to set the carry bit right. Replace r0 by
24482 0 without changing the behavior.
24483
24484 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24485
24486 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
24487 <libm-alias-ldouble.h>.
24488 (fabsl): Define using libm_alias_ldouble.
24489 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
24490 <libm-alias-ldouble.h>.
24491 (fabsl): Define using libm_alias_ldouble.
24492
24493 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
24494 Remove conditional code.
24495
24496 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
24497 Rename to __clog10_internal_l.
24498 (__clog10_internal_l): Define aliases using
24499 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
24500 with __clog10.
24501
24502 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24503
24504 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
24505 * benchtests/sincosf-inputs: New file.
24506 * benchtests/cosf-inputs: New file.
24507 * benchtests/sinf-inputs: New file.
24508
24509 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24510
24511 * posix/tst-spawn.c (do_test): Wait for both children.
24512
24513 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
24514
24515 [BZ #22284]
24516 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
24517 tests-pie): Add tst-gmon-pie.
24518 (CFLAGS-tst-gmon-pie.c): New.
24519 (CRT-tst-gmon-pie): Likewise.
24520 (tst-gmon-pie-ENV): Likewise.
24521 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
24522 ($(objpfx)tst-gmon-pie.out): Likewise.
24523 (clean-tst-gmon-pie-data): Likewise.
24524 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
24525 * gmon/gmon.c [PIC]: Include <link.h>.
24526 [PIC] (callback): New function.
24527 (write_hist): Add an argument for load address. Subtract load
24528 address from PCs.
24529 (write_call_graph): Likewise.
24530 (write_gmon): Call __dl_iterate_phdr to get load address, pass
24531 it to write_hist and write_call_graph.
24532 * gmon/tst-gmon-pie.c: New file.
24533
24534 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24535
24536 * math/Makefile (test-types-basic): New variable.
24537 (test-types): Likewise.
24538 (libm-test-support): Use $(test-types) instead of $(types).
24539 (libm-tests-base-normal): Likewise.
24540 (libm-tests-base-finite): Likewise.
24541 (libm-tests-base-inline): Likewise.
24542 (generated): Likewise.
24543 ($(objpfx)libm-test-support-$(t).c): Likewise.
24544 (libm-tests-for-type iterator): Likewise.
24545 (libm-test-support iterator): Likewise.
24546 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
24547 (ulp_idx): Use ULP_IDX.
24548 * math/test-ldouble.h: Include <float.h>.
24549 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
24550 (ULP_IDX): New macro.
24551 (ULP_I_IDX): Likewise.
24552 * math/test-double.h (ULP_IDX): Likewise.
24553 (ULP_I_IDX): Likewise.
24554 * math/test-float.h (ULP_IDX): Likewise.
24555 (ULP_I_IDX): Likewise.
24556 * math/test-float128.h (ULP_IDX): Likewise.
24557 (ULP_I_IDX): Likewise.
24558
24559 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24560
24561 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
24562 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24563 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24564 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
24565 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24566 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
24567 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
24568 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24569 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24570 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24571 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
24572 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24573 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24574 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24575 (SINGLE_THREAD_BY_GLOBAL): Define.
24576 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24577 Likewise.
24578 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24579 Likewise.
24580 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24581 Likewise.
24582 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24583 Likewise.
24584 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
24585 (SINGLE_THREAD_BY_GLOBAL): Likewise.
24586 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24587 Likewise.
24588
24589 2017-10-11 Andreas Schwab <schwab@suse.de>
24590
24591 * nis/Makefile (aux): Remove.
24592 * nscd/Makefile (aux): Add nscd_hash.
24593 (nscd-modules): Likewise.
24594 ($(objpfx)nscd): Don't depend on libnsl.
24595 * nscd/nscd_hash.c: New file.
24596 * nscd/nscd_hash.h: Likewise.
24597 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
24598 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
24599 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
24600 instead of <nis/rpcsvc/nis.h>.
24601 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
24602
24603 2017-10-11 Florian Weimer <fweimer@redhat.com>
24604
24605 [BZ #22078]
24606 Avoid large NSS buffers with many addresses, aliases.
24607 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
24608 using dynarrays and struct alloc_buffer.
24609 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
24610 (tst-nss-files-hosts-multi): Link with -ldl.
24611 * nss/tst-nss-files-hosts-multi.c: New file.
24612
24613 2017-10-11 Florian Weimer <fweimer@redhat.com>
24614
24615 [BZ #18023]
24616 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
24617 scratch_buffer. Eliminate gotos.
24618
24619 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24620
24621 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
24622 libm_alias_ldouble_other.
24623 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
24624 undefine and redefine.
24625 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
24626 (exp10l): Do not define here.
24627 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
24628 (weak_alias): Undefine and redefine.
24629 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
24630 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
24631 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
24632 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
24633
24634 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
24635 [!__fma] (fma): Define using libm_alias_double.
24636 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
24637 [!__fmaf] (fmaf): Define using libm_alias_float.
24638 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
24639 (fmal): Define using libm_alias_ldouble.
24640
24641 2017-10-10 Joseph Myers <joseph@codesourcery.com>
24642
24643 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
24644 New macro.
24645 (libm_alias_double_other): Likewise.
24646 (libm_alias_double_r): Use libm_alias_double_other_r.
24647 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
24648 New macro.
24649 (libm_alias_float_other): Likewise.
24650 (libm_alias_float_r): Use libm_alias_float_other_r.
24651 * sysdeps/generic/libm-alias-float128.h
24652 (libm_alias_float128_other_r): New macro.
24653 (libm_alias_float128_other): Likewise.
24654 (libm_alias_float128_r): Use libm_alias_float128_other_r.
24655 * sysdeps/generic/libm-alias-ldouble.h
24656 (libm_alias_ldouble_other_r): New macro.
24657 (libm_alias_ldouble_other): Likewise.
24658 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24659 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24660 (libm_alias_double_other_r): New macro.
24661 (libm_alias_double_other): Likewise.
24662 (libm_alias_double_r): Use libm_alias_double_other_r.
24663 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24664 (libm_alias_ldouble_other_r): New macro.
24665 (libm_alias_ldouble_other): Likewise.
24666 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24667 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
24668 [!USE_AS_COMPAT]: Use libm_alias_double_other.
24669 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
24670 [!USE_AS_COMPAT]: Use libm_alias_float_other.
24671 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
24672 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
24673 * math/w_exp2f.c: Use libm_alias_float_other.
24674 * math/w_expf.c: Likewise.
24675 * math/w_log2f.c: Likewise.
24676 * math/w_logf.c: Likewise.
24677 * math/w_powf.c: Likewise.
24678 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
24679 [!__exp2f]: Use libm_alias_float_other.
24680 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
24681 [!__expf]: Use libm_alias_float_other.
24682 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
24683 [!__log2f]: Use libm_alias_float_other.
24684 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
24685 [!__logf]: Use libm_alias_float_other.
24686 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
24687 [!__powf]: Use libm_alias_float_other.
24688
24689 2017-10-10 Florian Weimer <fweimer@redhat.com>
24690
24691 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
24692 function.
24693 (_nss_files_gethostbyname3_r): Call it.
24694
24695 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24696
24697 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
24698 error. Remove default definition of declare_mgen_alias.
24699 [!declare_mgen_alias_r]: Likewise.
24700 * sysdeps/generic/math-type-macros-double.h
24701 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
24702 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
24703 (declare_mgen_alias_r): Likewise.
24704 * sysdeps/generic/math-type-macros-float128.h
24705 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24706 * sysdeps/generic/math-type-macros-ldouble.h
24707 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24708 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
24709 macro.
24710 (declare_mgen_alias_r_s): Likewise.
24711 (declare_mgen_alias_r): Likewise.
24712 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
24713 (lgamma_r): Define using libm_alias_double_r.
24714 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
24715 (lgammaf_r): Define using libm_alias_float_r.
24716 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
24717 (lgammal_r): Define using libm_alias_ldouble_r.
24718 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
24719 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
24720
24721 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24722
24723 * lib/glob.c (__glob_pattern_type): Remove now-spurious
24724 extern declaration.
24725
24726 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24727
24728 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
24729
24730 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
24731
24732 [BZ #21326]
24733 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
24734 [__cplusplus >= 201103] (__USE_ISOC99): Define.
24735 * math/Makefile (test-math-cxx11): New test.
24736 * math/test-math-cxx11.cc: New file.
24737
24738 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
24739
24740 * login/openpty.c (openpty): Close slave pty file descriptor on error.
24741
24742 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
24743 call to allocate the slave pty file descriptor.
24744
24745 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24746
24747 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
24748 [!__fma] (fma): Define using libm_alias_double.
24749 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
24750 [!__fma] (fma): Define using libm_alias_double.
24751
24752 * sysdeps/ieee754/float128/float128_private.h: Include
24753 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
24754 (libm_alias_ldouble_r): Undefine and redefine.
24755 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
24756 <libm-alias-ldouble.h>.
24757 (asinhl): Define using libm_alias_ldouble.
24758 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
24759 <libm-alias-ldouble.h>.
24760 (atanl): Define using libm_alias_ldouble.
24761 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
24762 <libm-alias-ldouble.h>.
24763 (cbrtl): Define using libm_alias_ldouble.
24764 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
24765 <libm-alias-ldouble.h>.
24766 (ceill): Define using libm_alias_ldouble.
24767 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
24768 <libm-alias-ldouble.h>.
24769 (copysignl): Define using libm_alias_ldouble.
24770 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
24771 <libm-alias-ldouble.h>.
24772 (cosl): Define using libm_alias_ldouble.
24773 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
24774 <libm-alias-ldouble.h>.
24775 (erfl): Define using libm_alias_ldouble.
24776 (erfcl): Likewise.
24777 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
24778 <libm-alias-ldouble.h>.
24779 (expm1l): Define using libm_alias_ldouble.
24780 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
24781 <libm-alias-ldouble.h>.
24782 (fabsl): Define using libm_alias_ldouble.
24783 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
24784 <libm-alias-ldouble.h>.
24785 (floorl): Define using libm_alias_ldouble.
24786 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
24787 <libm-alias-ldouble.h>.
24788 (fmal): Define using libm_alias_ldouble.
24789 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
24790 <libm-alias-ldouble.h>.
24791 (frexpl): Define using libm_alias_ldouble.
24792 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
24793 libm_alias_ldouble.
24794 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
24795 <libm-alias-ldouble.h>.
24796 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
24797 libm_alias_ldouble.
24798 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
24799 <libm-alias-ldouble.h>.
24800 (getpayloadl): Define using libm_alias_ldouble.
24801 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
24802 <libm-alias-ldouble.h>.
24803 (llrintl): Define using libm_alias_ldouble.
24804 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
24805 <libm-alias-ldouble.h>.
24806 (llroundl): Define using libm_alias_ldouble.
24807 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
24808 <libm-alias-ldouble.h>.
24809 (logbl): Define using libm_alias_ldouble.
24810 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
24811 <libm-alias-ldouble.h>.
24812 (lrintl): Define using libm_alias_ldouble.
24813 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
24814 <libm-alias-ldouble.h>.
24815 (lroundl): Define using libm_alias_ldouble.
24816 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
24817 <libm-alias-ldouble.h>.
24818 (modfl): Define using libm_alias_ldouble.
24819 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
24820 <libm-alias-ldouble.h>.
24821 (nearbyintl): Define using libm_alias_ldouble.
24822 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
24823 <libm-alias-ldouble.h>.
24824 (nextafterl): Define using libm_alias_ldouble.
24825 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
24826 <libm-alias-ldouble.h>.
24827 (nextupl): Define using libm_alias_ldouble.
24828 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
24829 <libm-alias-ldouble.h>.
24830 (remquol): Define using libm_alias_ldouble.
24831 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
24832 <libm-alias-ldouble.h>.
24833 (rintl): Define using libm_alias_ldouble.
24834 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
24835 <libm-alias-ldouble.h>.
24836 (roundevenl): Define using libm_alias_ldouble.
24837 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
24838 <libm-alias-ldouble.h>.
24839 (roundl): Define using libm_alias_ldouble.
24840 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
24841 using libm_alias_ldouble.
24842 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
24843 <libm-alias-ldouble.h>.
24844 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
24845 Define using libm_alias_ldouble.
24846 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
24847 <libm-alias-ldouble.h>.
24848 (sincosl): Define using libm_alias_ldouble.
24849 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
24850 <libm-alias-ldouble.h>.
24851 (sinl): Define using libm_alias_ldouble.
24852 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
24853 <libm-alias-ldouble.h>.
24854 (tanhl): Define using libm_alias_ldouble.
24855 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
24856 <libm-alias-ldouble.h>.
24857 (tanl): Define using libm_alias_ldouble.
24858 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
24859 <libm-alias-ldouble.h>.
24860 (totalorderl): Define using libm_alias_ldouble.
24861 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
24862 <libm-alias-ldouble.h>.
24863 (totalordermagl): Define using libm_alias_ldouble.
24864 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
24865 <libm-alias-ldouble.h>.
24866 (truncl): Define using libm_alias_ldouble.
24867 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
24868 libm_alias_ldouble.
24869 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
24870 libm_alias_ldouble.
24871 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
24872 <libm-alias-ldouble.h>.
24873 (weak_alias): Do not undefine and redefine.
24874 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24875 (copysignl): Define with long_double_symbol only if [IS_IN
24876 (libc)].
24877 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
24878 <libm-alias-ldouble.h>.
24879 (weak_alias): Do not undefine and redefine.
24880 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24881 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
24882 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
24883 <libm-alias-ldouble.h>.
24884 (weak_alias): Do not undefine and redefine.
24885 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24886 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
24887 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
24888 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
24889 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
24890 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
24891 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
24892 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
24893 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
24894 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
24895 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
24896 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
24897 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
24898 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
24899 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
24900 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
24901 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
24902 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
24903 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
24904 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
24905 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
24906 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
24907 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
24908 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
24909 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
24910 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
24911
24912 2017-10-06 Carlos O'Donell <carlos@redhat.com>
24913
24914 [BZ #22111]
24915 * malloc/malloc.c (tcache_shutting_down): Use bool type.
24916 (tcache_thread_freeres): Set tcache_shutting_down before
24917 freeing the tcache.
24918 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
24919 * malloc/tst-malloc-tcache-leak.c: New file.
24920
24921 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24922
24923 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
24924 back to powerpc32 file.
24925 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
24926 (memrchr): Add __memrchr_power8 to ifunc list.
24927 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
24928 extra bytes for unaligned inputs.
24929
24930 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24931
24932 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
24933 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
24934 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
24935 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24936 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24937
24938 2017-10-05 Joseph Myers <joseph@codesourcery.com>
24939
24940 * sysdeps/arm/libm-test-ulps: Update.
24941
24942 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
24943 <libm-alias-ldouble.h>.
24944 (asinhl): Define using libm_alias_ldouble.
24945 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
24946 <libm-alias-ldouble.h>.
24947 (cbrtl): Define using libm_alias_ldouble.
24948 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
24949 <libm-alias-ldouble.h>.
24950 (copysignl): Define using libm_alias_ldouble.
24951 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
24952 <libm-alias-ldouble.h>.
24953 (cosl): Define using libm_alias_ldouble.
24954 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
24955 <libm-alias-ldouble.h>.
24956 (erfl): Define using libm_alias_ldouble.
24957 (erfcl): Likewise.
24958 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
24959 <libm-alias-ldouble.h>.
24960 (fmal): Define using libm_alias_ldouble.
24961 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
24962 <libm-alias-ldouble.h>.
24963 (frexpl): Define using libm_alias_ldouble.
24964 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
24965 libm_alias_ldouble.
24966 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
24967 <libm-alias-ldouble.h>.
24968 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
24969 libm_alias_ldouble.
24970 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
24971 <libm-alias-ldouble.h>.
24972 (getpayloadl): Define using libm_alias_ldouble.
24973 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
24974 <libm-alias-ldouble.h>.
24975 (llrintl): Define using libm_alias_ldouble.
24976 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
24977 <libm-alias-ldouble.h>.
24978 (llroundl): Define using libm_alias_ldouble.
24979 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
24980 <libm-alias-ldouble.h>.
24981 (lrintl): Define using libm_alias_ldouble.
24982 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
24983 <libm-alias-ldouble.h>.
24984 (lroundl): Define using libm_alias_ldouble.
24985 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
24986 <libm-alias-ldouble.h>.
24987 (modfl): Define using libm_alias_ldouble.
24988 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
24989 <libm-alias-ldouble.h>.
24990 (nextupl): Define using libm_alias_ldouble.
24991 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
24992 <libm-alias-ldouble.h>.
24993 (remquol): Define using libm_alias_ldouble.
24994 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
24995 <libm-alias-ldouble.h>.
24996 (roundevenl): Define using libm_alias_ldouble.
24997 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
24998 <libm-alias-ldouble.h>.
24999 (roundl): Define using libm_alias_ldouble.
25000 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25001 using libm_alias_ldouble.
25002 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25003 <libm-alias-ldouble.h>.
25004 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25005 <libm-alias-ldouble.h>.
25006 (setpayloadsigl): Define using libm_alias_ldouble.
25007 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25008 <libm-alias-ldouble.h>.
25009 (sincosl): Define using libm_alias_ldouble.
25010 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25011 <libm-alias-ldouble.h>.
25012 (sinl): Define using libm_alias_ldouble.
25013 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25014 <libm-alias-ldouble.h>.
25015 (tanhl): Define using libm_alias_ldouble.
25016 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
25017 <libm-alias-ldouble.h>.
25018 (tanl): Define using libm_alias_ldouble.
25019 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
25020 <libm-alias-ldouble.h>.
25021 (totalorderl): Define using libm_alias_ldouble.
25022 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25023 <libm-alias-ldouble.h>.
25024 (totalordermagl): Define using libm_alias_ldouble.
25025 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25026 libm_alias_ldouble.
25027 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25028 libm_alias_ldouble.
25029
25030 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25031
25032 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25033 memmove_falkor.
25034 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25035 (__libc_ifunc_impl_list): Likewise.
25036 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25037 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25038
25039 * benchtests/bench-memmove-walk.c: New file.
25040 * benchtests/Makefile (string-benchset): Add it.
25041
25042 * benchtests/bench-memset-walk.c: New file.
25043 * benchtests/Makefile (string-benchset): Add it.
25044
25045 * benchtests/bench-memcpy-walk.c: New file.
25046 * benchtests/Makefile (string-benchset): Add it.
25047
25048 2017-10-05 Florian Weimer <fweimer@redhat.com>
25049
25050 nscd: Eliminate compilation time dependency in the build output.
25051 * nscd/nscd_stat.c (STATDATA_VERSION)
25052 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25053 (STATDATA_VERSION_FULL): New macro definitions.
25054 (compilation): Remove.
25055 (struct statdata): Adjust version member.
25056 (send_stats): Set version from STATDATA_VERSION_FULL.
25057 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25058
25059 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25060
25061 * configure.ac (--enable-add-ons): Remove option.
25062 (machine): Do not mention add-ons in comment.
25063 (LIBC_PRECONFIGURE): Likewise.
25064 (add_ons): Remove variable and sanity checks and logic to locate
25065 add-ons.
25066 (add_ons_automatic): Remove variable.
25067 (configured_add_ons): Likewise.
25068 (add_ons_sfx): Likewise.
25069 (add_ons_pfx): Likewise.
25070 (add_on_subdirs): Likewise.
25071 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25072 consideration of add-ons in Implies handling.
25073 (sysdeps_add_ons): Likewise.
25074 * configure: Regenerated.
25075 * libidn/configure.ac: Remove.
25076 * libidn/configure: Likewise.
25077 * sysdeps/unix/inet/configure.ac: New file.
25078 * sysdeps/unix/inet/configure: New generated file.
25079 * sysdeps/unix/inet/Subdirs: Add libidn.
25080 * Makeconfig (sysdeps-srcdirs): Remove variable.
25081 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25082 ($(common-objpfx)config.status): Do not depend on add-on files.
25083 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25084 comment.
25085 (all-subdirs): Do not include $(add-on-subdirs).
25086 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25087 * config.make.in (add-ons): Remove variable.
25088 (add-on-subdirs): Likewise.
25089 (sysdeps-add-ons): Likewise.
25090 * manual/Makefile (add-chapters): Remove.
25091 ($(objpfx)texis): Do not depend on $(add-chapters).
25092 (nonexamples): Do not handle $(add-chapters).
25093 (examples): Do not handle $(add-ons).
25094 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25095 libc-texinfo.sh.
25096 * manual/install.texi (Installation): Do not mention add-ons.
25097 (--enable-add-ons): Do not document configure option.
25098 * INSTALL: Regenerated.
25099 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25100 * manual/maint.texi (Hierarchy Conventions): Do not mention
25101 add-ons.
25102 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25103 --enable-add-ons.
25104 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25105 add-ons.
25106 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25107 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25108
25109 2017-10-05 Andreas Schwab <schwab@suse.de>
25110
25111 [BZ #15142]
25112 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25113 (_IO_flush_all_lockp): Always lock list_all_lock.
25114 (_IO_flush_all_linebuffered): Likewise.
25115 (_IO_unbuffer_all): Likewise.
25116
25117 2017-10-05 Florian Weimer <fweimer@redhat.com>
25118
25119 [BZ #15436]
25120 Do not flush stdio streams on abort.
25121 * stdlib/abort.c (fflush): Remove macro definition.
25122 (abort): Remove stages related to stdio flushing.
25123
25124 2017-10-05 Florian Weimer <fweimer@redhat.com>
25125
25126 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25127
25128 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25129
25130 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25131
25132 2017-10-05 Florian Weimer <fweimer@redhat.com>
25133
25134 * support/support_format_hostent.c (support_format_hostent): Add
25135 more error information for NETDB_INTERNAL.
25136
25137 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25138
25139 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25140 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25141 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25142 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25143 AC_DEFINE if multi-arch is enabled.
25144 * sysdeps/i386/configure: Regenerated.
25145
25146 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25147
25148 * Makeconfig (+link-static-before-libc): Use
25149 $(DEFAULT-LDFLAGS-$(@F)).
25150 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25151 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25152 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25153
25154 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25155
25156 * elf/Makefile (tests): Add tst-main1.
25157 (modules-names): Add tst-main1mod.
25158 ($(objpfx)tst-main1): New.
25159 (CRT-tst-main1): Likewise.
25160 (LDFLAGS-tst-main1): Likewise.
25161 (LDLIBS-tst-main1): Likewise.
25162 (tst-main1mod.so-no-z-defs): Likewise.
25163 * elf/tst-main1.c: New file.
25164 * elf/tst-main1mod.c: Likewise.
25165
25166 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25167
25168 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25169
25170 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25171
25172 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25173 (fma): Define using libm_alias_double.
25174 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25175 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25176 <math_ldbl_opt.h>.
25177 (fmal): Do not define as compat symbol here.
25178 * sysdeps/alpha/fpu/s_fma.c: New file.
25179
25180 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25181
25182 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25183
25184 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25185
25186 [BZ #22229]
25187 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25188 <math_ldbl_opt.h>
25189 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25190 and libc.
25191 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25192 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25193 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25194 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25195 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25196 Include <math_ldbl_opt.h>
25197 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25198 and libc.
25199 (compat_symbol): Undefine and redefine.
25200 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25201 <math_ldbl_opt.h>
25202 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25203 (compat_symbol): Undefine and redefine.
25204 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25205 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25206 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25207 GLIBC_2_1 for libm.
25208 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25209 GLIBC_2.0 copysignl symbol.
25210 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25211 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25212
25213 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25214
25215 2017-10-04 Florian Weimer <fweimer@redhat.com>
25216
25217 * scripts/check-local-headers.sh: Ignore nspr4 header file
25218 directory in addition to nspr.
25219
25220 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25221
25222 [BZ #17956]
25223 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25224 * configure: Regenerate.
25225 * crypt/Makefile (nss-cpp-flags): New variable.
25226 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25227 (CPPFLAGS-md5-crypt.c): Use it.
25228 * scripts/check-local-headers.sh: Ignore nspr header file
25229 directory.
25230
25231 2017-10-04 Andreas Schwab <schwab@suse.de>
25232
25233 * nis/Makefile (services): Remove compat.
25234 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25235 ($(objpfx)libnss_compat.so): Remove rule.
25236 * nis/Versions (libnss_compat): Remove.
25237 * nss/Makefile (services): Add compat.
25238 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25239 * nss/Versions (libnss_compat): Define.
25240 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25241 Don't include <rpc/types.h>. Replace bool_t by bool.
25242 * nss/nss_compat/compat-initgroups.c: Likewise.
25243 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25244 instead of <rpcsrv/ypclnt.h>.
25245 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25246 yp_get_default_domain.
25247 * nss/nss_compat/compat-pwd.c: Likewise.
25248 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25249 yp_get_default_domain.
25250 * nss/nss_compat/nisdomain.c: New file.
25251 * nss/nss_compat/nisdomain.h: Likewise.
25252
25253 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25254
25255 [BZ #22244]
25256 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25257 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25258
25259 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25260
25261 [BZ #22243]
25262 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25263 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25264
25265 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25266
25267 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25268 "movl main@GOTOFF(%ebx), %eax".
25269
25270 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25271
25272 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25273 allow undefined _DYNAMIC in PIE libc.a.
25274 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25275 Likewse.
25276
25277 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25278
25279 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25280 check _DYNAMIC.
25281
25282 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25283
25284 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25285 check _DYNAMIC.
25286
25287 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25288
25289 * math/test-math-iscanonical.cc (error): Replace bool with int.
25290
25291 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25292
25293 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25294 (modf): Define using libm_alias_double, only if [!__modf].
25295 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25296 <libm-alias-double.h>.
25297 (modf): Define using libm_alias_double, only if [!__modf].
25298 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25299 compat symbol here.
25300 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25301 (weak_alias): Do not undefine and redefine.
25302 (strong_alias): Likewise.
25303 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25304 (weak_alias): Likewise.
25305 (strong_alias): Likewise.
25306
25307 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25308 (logb): Define using libm_alias_double, only if [!__logb].
25309 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25310 <libm-alias-double.h>.
25311 (logb): Define using libm_alias_double, only if [!__logb].
25312 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25313 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25314 (weak_alias): Do not undefine and redefine.
25315 (strong_alias): Likewise.
25316 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25317 (weak_alias): Likewise.
25318 (strong_alias): Likewise.
25319
25320 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25321
25322 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25323 Check SHARED instead PIC.
25324
25325 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25326
25327 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25328 [!__fmaf] (fmaf): Define using libm_alias_float.
25329
25330 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25331 (frexp): Define using libm_alias_double.
25332 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25333 <libm-alias-double.h>.
25334 (frexp): Define using libm_alias_double.
25335 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25336 compat symbol here.
25337
25338 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25339
25340 [BZ #22235]
25341 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25342 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25343 (CFLAGS-test-math-iscanonical.cc): New variable.
25344 * math/test-math-iscanonical.cc: New file.
25345 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
25346 Provide a C++ implementation based on function overloading,
25347 rather than using __MATH_TG, which uses C-only builtins.
25348 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
25349 Likewise.
25350 * sysdeps/powerpc/powerpc64le/Makefile
25351 (CFLAGS-test-math-iscanonical.cc): New variable.
25352
25353 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25354
25355 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25356 (ceil): Define using libm_alias_double.
25357 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25358 (floor): Define using libm_alias_double.
25359 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25360 <libm-alias-double.h>.
25361 (llround): Define using libm_alias_double.
25362 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25363 <libm-alias-double.h>.
25364 (lround): Define using libm_alias_double.
25365 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25366 <libm-alias-double.h>.
25367 (nearbyint): Define using libm_alias_double.
25368 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25369 <libm-alias-double.h>.
25370 (remquo): Define using libm_alias_double.
25371 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
25372 (rint): Define using libm_alias_double.
25373 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
25374 (round): Define using libm_alias_double.
25375 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
25376 (trunc): Define using libm_alias_double.
25377 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
25378 <libm-alias-double.h>.
25379 (ceil): Define using libm_alias_double.
25380 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
25381 <libm-alias-double.h>.
25382 (floor): Define using libm_alias_double.
25383 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
25384 <libm-alias-double.h>.
25385 (llround): Define using libm_alias_double.
25386 [_LP64] (lround): Likewise.
25387 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
25388 <libm-alias-double.h>.
25389 [!_LP64] (lround): Define using libm_alias_double.
25390 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
25391 <libm-alias-double.h>.
25392 (nearbyint): Define using libm_alias_double.
25393 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
25394 <libm-alias-double.h>.
25395 (remquo): Define using libm_alias_double.
25396 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
25397 <libm-alias-double.h>.
25398 (rint): Define using libm_alias_double.
25399 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
25400 <libm-alias-double.h>.
25401 (round): Define using libm_alias_double.
25402 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
25403 <libm-alias-double.h>.
25404 (trunc): Define using libm_alias_double.
25405 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
25406 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
25407 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
25408 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
25409 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
25410 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
25411 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
25412 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
25413 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
25414
25415 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25416
25417 * math/w_remainder.c: New file.
25418 * math/w_remainderf.c: New file.
25419 * math/w_remainderl.c: New file.
25420
25421 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25422
25423 * elf/rtld.c (BOOTSTRAP_MAP): New.
25424 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
25425 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25426 Likewise.
25427 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25428 Likewise.
25429 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25430 Likewise.
25431
25432 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25433
25434 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
25435 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
25436 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
25437 rtld_hidden_data_ver): Define to empty.
25438 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
25439 __assert_perror_fail): Likewise.
25440 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25441 (__rewinddir): Likewise.
25442 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25443 (__profile_frequency): Likewise.
25444 * include/setjmp.h (__sigsetjmp): Likewise.
25445 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
25446 __libc_sigaction): Likewise.
25447 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
25448 not set hidden attribute.
25449 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
25450 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
25451 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
25452 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
25453 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
25454 __fxstatat64): Likewise.
25455 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25456 (__uname): Likewise.
25457 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25458 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
25459 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
25460 (NO_RTLD_HIDDEN): Set.
25461 * sysdeps/mach/hurd/configure: Refresh.
25462 * config.h.in: Refresh.
25463
25464 2017-10-02 Joseph Myers <joseph@codesourcery.com>
25465
25466 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
25467 (atan): Define using libm_alias_double.
25468 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
25469 (tan): Define using libm_alias_double.
25470 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
25471 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
25472
25473 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
25474 define as weak alias of __atan. Do not define any aliases if
25475 [__atan].
25476 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
25477 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
25478 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
25479 as weak alias of __tan. Do not define any aliases if [__tan].
25480 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
25481 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
25482 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
25483 __atan.
25484 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
25485 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
25486 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
25487 and define as weak alias of __atan.
25488 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
25489 __atan.
25490 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
25491 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
25492 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
25493 define as weak alias of __tan.
25494
25495 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25496
25497 * math/w_lgamma.c: New file.
25498 * math/w_lgammaf.c: New file.
25499 * math/w_lgammal.c: New file.
25500
25501 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25502
25503 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
25504 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
25505 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
25506 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
25507 * sysdeps/ieee754/flt-32/w_logf.c: New file.
25508 * sysdeps/ieee754/flt-32/w_powf.c: New file.
25509 * sysdeps/i386/fpu/w_log2f.c: New file.
25510 * sysdeps/i386/fpu/w_logf.c: New file.
25511 * sysdeps/i386/fpu/w_powf.c: New file.
25512 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
25513 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
25514 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
25515
25516 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25517 H.J. Lu <hongjiu.lu@intel.com>
25518
25519 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
25520 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
25521 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
25522 * sysdeps/ieee754/flt-32/w_expf.c: New file.
25523 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
25524 the new expf code.
25525 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
25526 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
25527 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
25528 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
25529 * sysdeps/i386/fpu/w_exp2f.c: New file.
25530 * sysdeps/i386/fpu/w_expf.c: New file.
25531 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
25532 * sysdeps/x86_64/fpu/w_expf.c: New file.
25533
25534 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25535
25536 * math/Versions (logf): New libm symbol at GLIBC_2.27.
25537 (log2f): Likewise.
25538 (powf): Likewise.
25539 * math/w_log2f.c: New file.
25540 * math/w_logf.c: New file.
25541 * math/w_powf.c: New file.
25542 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
25543 * math/w_logf_compat.c (__logf_compat): Likewise.
25544 * math/w_powf_compat.c (__powf_compat): Likewise.
25545 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
25546 * sysdeps/ia64/fpu/e_logf.S: Likewise.
25547 * sysdeps/ia64/fpu/e_powf.S: Likewise.
25548 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
25549 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25550 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25551 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25552 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25553 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25554 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25555 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25556 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25557 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25558 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25559 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25560 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25561 Likewise.
25562 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25563 Likewise.
25564 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25565 Likewise.
25566 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25567 Likewise.
25568 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25569 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25570 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25571 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25572 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25573 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25574 Likewise.
25575 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25576 Likewise.
25577 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25578 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25579 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25580
25581 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25582
25583 * sysdeps/powerpc/powerpc64/multiarch/Makefile
25584 (sysdep_routines): Add memrchr_power8.
25585 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
25586 (memrchr): Add __memrchr_power8 to list of memrchr functions.
25587 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
25588 New file.
25589 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25590 (memrchr): Add __memrchr_power8 to ifunc list.
25591 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
25592
25593 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25594
25595 [BZ #18822]
25596 * sysdeps/unix/sysv/linux/posix_fadvise64.c
25597 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
25598 libc_hidden_def.
25599 * sysdeps/unix/sysv/linux/posix_fallocate64.c
25600 (__posix_fallocate64_l64): Likewise.
25601
25602 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25603
25604 [BZ #18822]
25605 * sysdeps/unix/sysv/linux/sched_setaffinity.c
25606 (__sched_setaffinity_new): Add libc_hidden_proto and
25607 libc_hidden_def.
25608
25609 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25610
25611 [BZ #18822]
25612 * include/glob.h (__glob64): Add libc_hidden_proto.
25613 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
25614 libc_hidden_def.
25615
25616 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25617
25618 [BZ #18822]
25619 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
25620 attribute_hidden.
25621
25622 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25623
25624 [BZ #18822]
25625 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
25626
25627 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25628
25629 [BZ #18822]
25630 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
25631 libc_hidden_def.
25632
25633 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25634
25635 [BZ #18822]
25636 * csu/version.c (__libc_print_version): Add attribute_hidden.
25637
25638 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25639
25640 [BZ #18822]
25641 * include/libc-internal.h (__init_misc): Add attribute_hidden.
25642
25643 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25644
25645 [BZ #18822]
25646 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
25647
25648 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25649
25650 [BZ #18822]
25651 * nscd/nscd_helper.c (__nis_hash): New prototype.
25652
25653 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25654
25655 [BZ #18822]
25656 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
25657 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
25658 libc_hidden_def.
25659 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
25660 * termios/tcgetattr.c (__tcgetattr): Likewise.
25661
25662 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25663
25664 [BZ #18822]
25665 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
25666 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
25667 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
25668 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
25669 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
25670
25671 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25672
25673 [BZ #18822]
25674 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
25675
25676 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25677
25678 [BZ #18822]
25679 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
25680 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
25681
25682 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25683
25684 [BZ #18822]
25685 * intl/hash-string.h (__hash_string): Add attribute_hidden.
25686
25687 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25688
25689 [BZ #18822]
25690 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
25691 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
25692
25693 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25694
25695 [BZ #18822]
25696 * include/ifreq.h: New file.
25697 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
25698 (__ifreq): Likewise.
25699 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
25700 (__ifreq): Likewise.
25701
25702 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25703
25704 [BZ #18822]
25705 * include/idna.h: New file.
25706 * inet/getnameinfo.c: Include <idna.h> instead of
25707 <libidn/idna.h>.
25708 (__idna_to_unicode_lzlz): Removed.
25709 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
25710 <libidn/idna.h>.
25711 (__idna_to_ascii_lz): Removed.
25712 (__idna_to_unicode_lzlz): Likewise.
25713
25714 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25715
25716 [BZ #18822]
25717 * include/plural-exp.h: New file.
25718 * intl/plural-exp.c: Include <plural-exp.h> instead of
25719 "plural-exp.h".
25720
25721 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25722
25723 [BZ #18822]
25724 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
25725 "getsourcefilter.h".
25726 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
25727 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
25728 "getsourcefilter.h".
25729 (__get_sol): Removed.
25730
25731 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25732
25733 [BZ #18822]
25734 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
25735 to ...
25736 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
25737
25738 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25739
25740 [BZ #18822]
25741 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
25742 attribute_hidden.
25743
25744 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25745
25746 [BZ #18822]
25747 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
25748
25749 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25750
25751 [BZ #18822]
25752 * include/search.h (__tdestroy): Add libc_hidden_proto.
25753 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
25754
25755 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25756
25757 [BZ #18822]
25758 * include/assert.h (__assert_fail_base): Add attribute_hidden.
25759
25760 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25761
25762 [BZ #18822]
25763 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
25764 attribute_hidden.
25765
25766 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25767
25768 [BZ #18822]
25769 * include/signal.h (__kill): Add libc_hidden_proto.
25770 (__sigblock): Likewise.
25771 (__sigprocmask): Likewise.
25772 (__sigaltstack): Likewise.
25773 * signal/kill.c (__kill): Add libc_hidden_def.
25774 * signal/sigblock.c (__sigblock): Likewise.
25775 * signal/sigprocmask.c (__sigprocmask): Likewise.
25776 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
25777 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
25778 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
25779 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
25780 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
25781 Likewise.
25782 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
25783 Likewise.
25784 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
25785 (__sigprocmask): Likewise.
25786 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
25787 Likewise.
25788 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
25789 (__sigprocmask): Likewise.
25790 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
25791 Likewise.
25792
25793 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25794
25795 [BZ #18822]
25796 * include/string.h (__strsep): Add libc_hidden_proto.
25797 * string/strsep.c (__strsep): Add libc_hidden_def.
25798
25799 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25800
25801 [BZ #18822]
25802 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
25803 attribute_hidden.
25804 (__spawni): Likewise.
25805
25806 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25807
25808 [BZ #18822]
25809 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
25810 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
25811 libc_hidden_def.
25812
25813 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25814
25815 [BZ #18822]
25816 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
25817
25818 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25819
25820 [BZ #18822]
25821 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
25822 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
25823 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
25824 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
25825 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
25826 Likewise.
25827 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
25828 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
25829
25830 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25831
25832 [BZ #18822]
25833 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
25834 (__dcigettext): Likewise.
25835
25836 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25837
25838 [BZ #18822]
25839 * include/sys/sysinfo.h (__get_nprocs_conf): Add
25840 libc_hidden_proto.
25841 (__get_nprocs): Likewise.
25842 (__get_phys_pages): Likewise.
25843 (__get_avphys_pages): Likewise.
25844 (__get_child_max): Add attribute_hidden.
25845 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
25846 (__get_nprocs): Likewise.
25847 (__get_phys_pages): Likewise.
25848 (__get_avphys_pages): Likewise.
25849 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
25850 libc_hidden_def.
25851 (__get_nprocs): Likewise.
25852 (__get_phys_pages): Likewise.
25853 (__get_avphys_pages): Likewise.
25854 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
25855 libc_hidden_def.
25856 (__get_nprocs_conf): Likewise.
25857 (__get_phys_pages): Likewise.
25858 (__get_avphys_pages): Likewise.
25859
25860 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25861
25862 [BZ #18822]
25863 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
25864 attribute_hidden.
25865 (__netlink_close): Likewise.
25866 (__netlink_free_handle): Likewise.
25867 (__netlink_request): Likewise.
25868
25869 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25870
25871 [BZ #18822]
25872 * include/rpc/rpc.h (__rpc_thread_variables): Add
25873 attribute_hidden.
25874 (__rpc_thread_svc_cleanup): Likewise.
25875 (__rpc_thread_clnt_cleanup): Likewise.
25876 (__rpc_thread_key_cleanup): Likewise.
25877
25878 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25879
25880 [BZ #18822]
25881 * include/sys/uio.h (__readv): Add libc_hidden_proto.
25882 (__writev): Likewise.
25883 * misc/readv.c (__readv): Add libc_hidden_def.
25884 * misc/writev.c (__writev): Likewise.
25885 * sysdeps/posix/readv.c (__readv): Likewise.
25886 * sysdeps/posix/writev.c (__writev): Likewise.
25887 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
25888 (__readv): Likewise.
25889 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
25890 (__writev): Likewise.
25891
25892 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25893
25894 [BZ #18822]
25895 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
25896 (__regcomp): Add libc_hidden_proto.
25897 (__regexec): Likewise.
25898 (__regfree): Likewise.
25899 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
25900 (__regfree): Likewise.
25901 * posix/regexec.c (__regexec): Likewise.
25902
25903 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25904
25905 [BZ #18822]
25906 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
25907 (__getutent): Likewise.
25908 (__getutid): Likewise.
25909 (__getutline): Likewise.
25910 (__pututline): Likewise.
25911 (__getutent_r): Likewise.
25912 (__getutid_r): Likewise.
25913 (__getutline_r): Likewise.
25914 (__utmpname): Add attribute_hidden.
25915 (__setutent): Likewise.
25916 (__endutent): Likewise.
25917 * login/getutent.c (__getutent): Add libc_hidden_def.
25918 * login/getutent_r.c (__getutent_r): Likewise.
25919 (__pututline): Likewise.
25920 * login/getutid.c (__getutid): Likewise.
25921 * login/getutid_r.c (__getutid_r): Likewise.
25922 * login/getutline.c (__getutline): Likewise.
25923 * login/getutline_r.c (__getutline_r): Likewise.
25924 * login/updwtmp.c (__updwtmp): Likewise.
25925
25926 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25927
25928 [BZ #18822]
25929 * include/dirent.h (__opendir): Always add attribute_hidden.
25930 (__fdopendir): Likewise.
25931 (__closedir): Likewise.
25932 (__readdir): Likewise.
25933 (__readdir64): Add libc_hidden_proto.
25934 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
25935 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
25936 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
25937 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
25938 New alias.
25939
25940 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25941
25942 [BZ #18822]
25943 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
25944 * include/netdb.h (__gethostbyaddr_r): Likewise.
25945 (__gethostbyname_r): Likewise.
25946 (__gethostbyname2_r): Likewise.
25947 (__getnetbyaddr_r): Likewise.
25948 (__getnetbyname_r): Likewise.
25949 (__getservbyname_r): Likewise.
25950 (__getservbyport_r): Likewise.
25951 (__getprotobyname_r): Likewise.
25952 (__getprotobynumber_r): Likewise.
25953 (__getnetgrent_r): Likewise.
25954 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
25955 (__getrpcbynumber_r): Likewise.
25956 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
25957
25958 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25959
25960 [BZ #18822]
25961 * include/stdio.h (__fcloseall): Add attribute_hidden.
25962 (__getline): Likewise.
25963 (__path_search): Likewise.
25964 (__gen_tempname): Likewise.
25965 (__libc_message): Likewise.
25966 (__flockfile): Likewise.
25967 (__funlockfile): Likewise.
25968 (__fxprintf): Likewise.
25969 (__fxprintf_nocancel): Likewise.
25970
25971 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25972
25973 [BZ #18822]
25974 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
25975 (__sgetsgent_r): Likewise.
25976
25977 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25978
25979 [BZ #18822]
25980 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
25981 (__statfs64): Likewise.
25982 (__fstatfs64): Likewise.
25983 * include/sys/statvfs.h (__statvfs64): Likewise.
25984 (__fstatvfs64): Likewise.
25985 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
25986 (__statfs_filesize_max): Likewise.
25987 (__statfs_symlinks): Likewise.
25988 (__statfs_chown_restricted): Likewise.
25989
25990 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25991
25992 [BZ #18822]
25993 * include/time.h (__tzstring): Add attribute_hidden.
25994 (__tzfile_read): Likewise.
25995 (__tzfile_compute): Likewise.
25996 (__tzfile_default): Likewise.
25997 (__tzset_parse_tz): Likewise.
25998 (__offtime): Likewise.
25999 (__asctime_r): Likewise.
26000 (__tzset): Likewise.
26001 (__tz_convert): Likewise.
26002 (__getdate_r): Likewise.
26003 (__getclktck): Likewise.
26004
26005 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26006
26007 [BZ #18822]
26008 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26009 (__nscd_unmap): Likewise.
26010 (__nscd_cache_search): Likewise.
26011 (__nscd_get_nl_timestamp): Likewise.
26012 (__nscd_getpwnam_r): Likewise.
26013 (__nscd_getpwuid_r): Likewise.
26014 (__nscd_getgrnam_r): Likewise.
26015 (__nscd_getgrgid_r): Likewise.
26016 (__nscd_gethostbyname_r): Likewise.
26017 (__nscd_gethostbyname2_r): Likewise.
26018 (__nscd_gethostbyaddr_r): Likewise.
26019 (__nscd_getai): Likewise.
26020 (__nscd_getgrouplist): Likewise.
26021 (__nscd_getservbyname_r): Likewise.
26022 (__nscd_getservbyport_r): Likewise.
26023 (__nscd_innetgr): Likewise.
26024 (__nscd_setnetgrent): Likewise.
26025
26026 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26027
26028 [BZ #18822]
26029 * include/gmp.h: Declare internal functions only if _ISOMAC is
26030 undefined.
26031 (__mpn_extract_double): Add attribute_hidden.
26032 (__mpn_extract_long_double): Likewise.
26033 (__mpn_extract_float128): Likewise.
26034 (__mpn_construct_float): Likewise.
26035 (__mpn_construct_double): Likewise.
26036 (__mpn_construct_long_double): Likewise.
26037 (__mpn_construct_float128): Likewise.
26038 (mpn_add_1): Likewise.
26039 (mpn_addmul_1): Likewise.
26040 (mpn_add_n): Likewise.
26041 (mpn_cmp): Likewise.
26042 (mpn_divrem): Likewise.
26043 (mpn_lshift): Likewise.
26044 (mpn_mul): Likewise.
26045 (mpn_mul_1): Likewise.
26046 (mpn_rshift): Likewise.
26047 (mpn_sub_1): Likewise.
26048 (mpn_submul_1): Likewise.
26049 (mpn_sub_n): Likewise.
26050
26051 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26052
26053 [BZ #18822]
26054 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26055 (__wcscat): Likewise.
26056 (__btowc): Likewise.
26057 (__wcrtomb): Likewise.
26058 (__mbsrtowcs): Likewise.
26059 (__wcsrtombs): Likewise.
26060 (__mbsnrtowcs): Likewise.
26061 (__wcsnrtombs): Likewise.
26062 (__wcsncpy): Likewise.
26063 (__wcpncpy): Likewise.
26064 (__wmemcpy): Likewise.
26065 (__wmempcpy): Likewise.
26066 (__wmemmove): Likewise.
26067 (__wcschrnul): Likewise.
26068 (__vfwscanf): Likewise.
26069 (__vswprintf): Likewise.
26070 (__fwprintf): Likewise.
26071 (__vfwprintf): Likewise.
26072
26073 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26074
26075 [BZ #18822]
26076 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26077 (__getgrgid_r): Likewise.
26078 (__getgrnam_r): Likewise.
26079 * include/pwd.h (__getpwuid_r): Likewise.
26080 (__getpwnam_r): Likewise.
26081 (__fgetpwent_r): Likewise.
26082 * include/shadow.h (__getspnam_r): Likewise.
26083 (__sgetspent_r): Likewise.
26084 (__fgetspent_r): Likewise.
26085
26086 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26087
26088 [BZ #18822]
26089 * include/unistd.h (__access): Add attribute_hidden.
26090 (__lseek64): Likewise.
26091 (__libc_pread64): Likewise.
26092 (__pipe2): Likewise.
26093 (__sleep): Likewise.
26094 (__chdir): Likewise.
26095 (__fchdir): Likewise.
26096 (__getcwd): Likewise.
26097 (__rmdir): Likewise.
26098 (__execvpe): Likewise.
26099 (__execve): Likewise.
26100 (__setsid): Likewise.
26101 (__getuid): Likewise.
26102 (__geteuid): Likewise.
26103 (__getgid): Likewise.
26104 (__getegid): Likewise.
26105 (__getgroups): Likewise.
26106 (__group_member): Likewise.
26107 (__ttyname_r): Likewise.
26108 (__isatty): Likewise.
26109 (__readlink): Likewise.
26110 (__unlink): Likewise.
26111 (__gethostname): Likewise.
26112 (__profil): Likewise.
26113 (__getdtablesize): Likewise.
26114 (__brk): Likewise.
26115 (__ftruncate): Likewise.
26116 (__ftruncate64): Likewise.
26117
26118 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26119
26120 [BZ #18822]
26121 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26122 * argp/argp-fs-xinl.c: Likewise.
26123 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26124 * argp/argp-parse.c: Include <argp.h>.
26125 * argp/argp-xinl.c: Likewise.
26126 * include/argp-fmtstream.h: New file.
26127 * include/argp.h (__argp_error): Add attribute_hidden.
26128 (__argp_failure): Likewise.
26129 (__argp_input): Likewise.
26130 (__argp_state_help): Likewise.
26131
26132 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26133
26134 [BZ #18822]
26135 * include/wchar.h (____wcstof_l_internal): New prototype.
26136 (____wcstod_l_internal): Likewise.
26137 (____wcstold_l_internal): Likewise.
26138 (____wcstol_l_internal): Likewise.
26139 (____wcstoul_l_internal): Likewise.
26140 (____wcstoll_l_internal): Likewise.
26141 (____wcstoull_l_internal): Likewise.
26142 (____wcstof128_l_internal): Likewise.
26143 * sysdeps/ieee754/float128/wcstof128.c
26144 (____wcstof128_l_internal): Removed.
26145 * sysdeps/ieee754/float128/wcstof128_l.c
26146 (____wcstof128_l_internal): Likewise.
26147 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26148 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26149 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26150 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26151 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26152 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26153 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26154 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26155 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26156 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26157
26158 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26159
26160 [BZ #18822]
26161 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26162 instead of <sys/statvfs.h>.
26163 (__internal_statvfs): Removed.
26164 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26165 instead of <sys/statvfs.h>.
26166 (__internal_statvfs64): Removed.
26167 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26168 "internal_statvfs.h" instead of <sys/statvfs.h>.
26169 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26170 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26171 instead of <sys/statvfs.h>.
26172 (__internal_statvfs): Removed.
26173 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26174 instead of <sys/statvfs.h>.
26175 (__internal_statvfs64): Removed.
26176
26177 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26178
26179 [BZ #18822]
26180 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26181 (__gconv_close): Likewise.
26182 (__gconv): Likewise.
26183 (__gconv_find_transform): Likewise.
26184 (__gconv_lookup_cache): Likewise.
26185 (__gconv_compare_alias_cache): Likewise.
26186 (__gconv_load_cache): Likewise.
26187 (__gconv_get_path): Likewise.
26188 (__gconv_close_transform): Likewise.
26189 (__gconv_release_cache): Likewise.
26190 (__gconv_find_shlib): Likewise.
26191 (__gconv_release_shlib): Likewise.
26192 (__gconv_get_builtin_trans): Likewise.
26193 (__gconv_compare_alias): Likewise.
26194 * include/dlfcn.h (_dlerror_run): Likewise.
26195 * include/stdio.h (__fortify_fail_abort): Likewise.
26196 * include/time.h (__tz_compute): Likewise.
26197 (__strptime_internal): Likewise.
26198 * intl/gettextP.h (_nl_find_domain): Likewise.
26199 (_nl_load_domain): Likewise.
26200 (_nl_find_msg): Likewise.
26201 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26202 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26203 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26204 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26205 (__gai_find_request): Likewise.
26206 (__gai_remove_request): Likewise.
26207 (__gai_notify): Likewise.
26208 (__gai_notify_only): Likewise.
26209 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26210 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26211 (_dl_non_dynamic_init): Likewise.
26212 (_dl_aux_init): Likewise.
26213 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26214 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26215 Likewise.
26216 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26217 (__wcsmbs_clone_conv): Likewise.
26218 (__wcsmbs_named_conv): Likewise.
26219
26220 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26221
26222 [BZ #18822]
26223 * include/stdlib.h (__random): Add attribute_hidden.
26224 (__random_r): Likewise.
26225 (__srandom_r): Likewise.
26226 (__initstate_r): Likewise.
26227 (__setstate_r): Likewise.
26228 (__erand48_r): Likewise.
26229 (__nrand48_r): Likewise.
26230 (__jrand48_r): Likewise.
26231 (__srand48_r): Likewise.
26232 (__seed48_r): Likewise.
26233 (__lcong48_r): Likewise.
26234 (__drand48_iterate): Likewise.
26235 (__setenv): Likewise.
26236 (__unsetenv): Likewise.
26237 (__clearenv): Likewise.
26238 (__ptsname_r): Likewise.
26239 (__posix_openpt): Likewise.
26240 (__add_to_environ): Likewise.
26241 (__realpath): Add libc_hidden_proto.
26242 (__ecvt_r): Likewise.
26243 (__fcvt_r): Likewise.
26244 (__qecvt_r): Likewise.
26245 (__qfcvt_r): Likewise.
26246 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26247 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26248
26249 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26250
26251 [BZ #18822]
26252 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26253 * include/time.h (__mktime_internal): Likewise.
26254 * libio/iolibio.h (__fopen_internal): Likewise.
26255
26256 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26257
26258 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26259 pointer in frame.
26260 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26261 Correct offset used to restore PIC register.
26262
26263 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26264
26265 [BZ libc/22165]
26266 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26267 code to load address of __getcontext_ret when generating PIC code.
26268
26269 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26270
26271 * elf/Makefile (tests-static-internal): Add
26272 tst-tls1-static-non-pie.
26273 (LDFLAGS-tst-tls1-static-non-pie): New.
26274 * elf/tst-tls1-static-non-pie.c: New file.
26275
26276 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26277
26278 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26279 (asinh): Define using libm_alias_double.
26280 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26281 (cbrt): Define using libm_alias_double.
26282 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26283 <libm-alias-double.h>.
26284 (copysign): Define using libm_alias_double.
26285 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26286 (erf): Define using libm_alias_double.
26287 (erfc): Likewise.
26288 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26289 (expm1): Define using libm_alias_double.
26290 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26291 (fabs): Define using libm_alias_double.
26292 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26293 libm_alias_double.
26294 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26295 <libm-alias-double.h>.
26296 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26297 libm_alias_double.
26298 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26299 <libm-alias-double.h>.
26300 (getpayload): Define using libm_alias_double.
26301 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26302 <libm-alias-double.h>.
26303 (llrint): Define using libm_alias_double.
26304 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26305 (lrint): Define using libm_alias_double.
26306 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26307 <libm-alias-double.h>.
26308 (nextup): Define using libm_alias_double.
26309 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26310 <libm-alias-double.h>.
26311 (roundeven): Define using libm_alias_double.
26312 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26313 libm_alias_double.
26314 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26315 <libm-alias-double.h>.
26316 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26317 using libm_alias_double.
26318 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26319 (cos): Define using libm_alias_double.
26320 (sin): Likewise.
26321 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26322 <libm-alias-double.h>.
26323 (sincos): Define using libm_alias_double.
26324 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26325 (tanh): Define using libm_alias_double.
26326 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26327 <libm-alias-double.h>.
26328 (totalorder): Define using libm_alias_double.
26329 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26330 <libm-alias-double.h>.
26331 (totalordermag): Define using libm_alias_double.
26332 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26333 libm_alias_double.
26334 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26335 libm_alias_double.
26336 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26337 <libm-alias-double.h>.
26338 (getpayload): Define using libm_alias_double.
26339 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26340 <libm-alias-double.h>.
26341 (roundeven): Define using libm_alias_double.
26342 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26343 <libm-alias-double.h>.
26344 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26345 <libm-alias-double.h>.
26346 (totalorder): Define using libm_alias_double.
26347 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
26348 <libm-alias-double.h>.
26349 (totalordermag): Define using libm_alias_double.
26350 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
26351 libc compat symbol here.
26352 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
26353 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26354 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26355 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26356 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26357 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26358 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26359 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26360 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26361 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26362
26363 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26364
26365 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26366 _dl_relocate_static_pie instead of _dl_start to compute load
26367 address in static PIE. Return 0 if _DYNAMIC is undefined for
26368 static executable.
26369
26370 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26371
26372 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
26373 _DYNAMIC is undefined for static executable.
26374
26375 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26376
26377 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
26378
26379 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26380
26381 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26382
26383 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26384
26385 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
26386 (__ieee754_lgamma_r): Use fabs rather than __fabs.
26387 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
26388 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
26389 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
26390 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
26391 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
26392 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
26393 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
26394 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26395 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
26396 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
26397 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26398 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26399 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
26400 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
26401 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
26402
26403 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26404
26405 * math/bits/cmathcalls.h (cimag): Remove inline.
26406 (creal): Remove inline.
26407 (conj): Remove inline.
26408
26409 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26410
26411 * math/Makefile (type-float-routines): Add e_powf_log2_data.
26412 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
26413 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
26414 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
26415 (issignalingf_inline): Likewise.
26416 (POWF_LOG2_TABLE_BITS): Likewise.
26417 (POWF_LOG2_POLY_ORDER): Likewise.
26418 (POWF_SCALE_BITS): Likewise.
26419 (POWF_SCALE): Likewise.
26420 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
26421 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
26422 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
26423
26424 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26425
26426 * math/Makefile (type-float-routines): Add e_log2f_data.
26427 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
26428 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
26429 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
26430 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
26431 * sysdeps/i386/fpu/e_log2f_data.c: New file.
26432 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
26433 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
26434
26435 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26436
26437 * math/Makefile (type-float-routines): Add e_logf_data.
26438 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
26439 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
26440 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
26441 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
26442 * sysdeps/i386/fpu/e_logf_data.c: New file.
26443 * sysdeps/ia64/fpu/e_logf_data.c: New file.
26444 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
26445
26446 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
26447
26448 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
26449 undefined _DYNAMIC in PIE libc.a.
26450 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26451 Likewse.
26452
26453 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26454
26455 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
26456 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
26457 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
26458 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
26459 (__signbit): Remove.
26460 (__signbitl): Remove.
26461 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
26462 (__signbit): Remove.
26463 (__signbitl): Remove.
26464 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
26465 (__signbit): Remove.
26466 (__signbitl): Remove.
26467 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
26468 (__signbit): Remove.
26469 (__signbitl): Remove.
26470 * sysdeps/tile/bits/mathinline.h: Delete file.
26471 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
26472 (__signbit): Remove.
26473 (__signbitl): Remove.
26474
26475 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26476
26477 * math/math.h: Improve handling of C99 isgreater macros.
26478 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
26479 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
26480 * sysdeps/powerpc/bits/mathinline.h: Likewise.
26481 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
26482 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
26483
26484 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
26485
26486 * sysdeps/aarch64/libm-test-ulps: Update.
26487
26488 2017-09-28 Joseph Myers <joseph@codesourcery.com>
26489
26490 [BZ #22225]
26491 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
26492 math_opt_barrier on argument when doing arithmetic on it.
26493 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
26494 Likewise. Use math_force_eval not math_opt_barrier after
26495 arithmetic.
26496 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
26497 math_opt_barrier on argument when doing arithmetic on it.
26498 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
26499 Likewise.
26500
26501 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
26502
26503 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
26504 libc_hidden_def.
26505 (__freeifaddrs): Likewise.
26506
26507 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
26508
26509 * include/dirent.h (__dirfd): New declaration.
26510 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
26511 alias.
26512 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
26513 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
26514 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
26515 * include/unistd.h (__revoke): New declaration.
26516 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
26517 alias.
26518 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
26519 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
26520 revoke.
26521 * include/dirent.h (__seekdir): New declaration.
26522 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
26523 redefine as weak alias.
26524 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
26525 of seekdir.
26526 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
26527 and use libc_hidden_def on them.
26528 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
26529 them.
26530 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
26531 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
26532 instead of getifaddrs and freeifaddrs.
26533
26534 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26535
26536 [BZ #18822]
26537 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
26538 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
26539 (__dso_handle): Remove declaration.
26540 * dlfcn/tstatexit.c (__dso_handle): Removed.
26541 (main): Don't check __dso_handle.
26542 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
26543 (main): Don't check __dso_handle.
26544 * include/dso_handle.h: New file.
26545 * malloc/mtrace.c: Include <dso_handle.h>.
26546 (mtrace): Pass __dso_handle directly.
26547 * nptl/pthread_atfork.c: Include <dso_handle.h>.
26548 (__dso_handle): Remove declaration.
26549 (__pthread_atfork): Pass __dso_handle directly.
26550 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
26551 (__dso_handle): Removed.
26552 * posix/wordexp-test.c: Include <dso_handle.h>.
26553 (__dso_handle): Remove declaration.
26554 (__app_register_atfork): Pass __dso_handle directly.
26555 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
26556 (__dso_handle): Remove declaration.
26557 (at_quick_exit): Pass __dso_handle directly.
26558 * stdlib/atexit.c: Include <dso_handle.h>.
26559 (__dso_handle): Remove declaration.
26560 (atexit): Pass __dso_handle directly.
26561 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
26562 (__dso_handle): Removed.
26563
26564 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26565
26566 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
26567 using VDSO.
26568
26569 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
26570
26571 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
26572 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
26573 values to correct default value for given type.
26574
26575 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26576
26577 [BZ #22101]
26578 * elf/Makefile (tests): Add tst-debug1.
26579 ($(objpfx)tst-debug1): New.
26580 ($(objpfx)tst-debug1.out): Likewise.
26581 ($(objpfx)tst-debug1mod1.so): Likewise.
26582 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
26583 with p_filesz == 0.
26584 * elf/tst-debug1.c: New file.
26585
26586 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26587
26588 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
26589 Define using __ifunc.
26590
26591 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26592
26593 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
26594 exp2f() values.
26595
26596 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26597
26598 [BZ #22156]
26599 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
26600
26601 2017-09-26 Florian Weimer <fweimer@redhat.com>
26602
26603 * resolv/Makefile (tests-internal): Fix typo in comment.
26604
26605 2017-09-26 Florian Weimer <fweimer@redhat.com>
26606
26607 * resolv/nss_dns/dns-host.c: Fix typo in comment.
26608
26609 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26610
26611 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
26612 Use an union instead of a max_align_t array for __space,
26613 so that __space is the same size on all platforms.
26614 * malloc/scratch_buffer_grow_preserve.c
26615 (__libc_scratch_buffer_grow_preserve): Likewise.
26616
26617 [BZ #22183]
26618 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
26619 version to 2.
26620 * posix/Makefile (routines): Add glob-lstat-compat and
26621 glob64-lstat-compat.
26622 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
26623 * posix/glob-lstat-compat.c: New file.
26624 * posix/glob64-lstat-compat.c: Likewise.
26625 * posix/tst-glob_lstat_compat.c: Likewise.
26626 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
26627 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
26628 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
26629 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
26630 Likewise.
26631 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
26632 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
26633 * posix/glob.c (glob_lstat): New function.
26634 (glob): Rename to __glob and add versioned symbol to 2.27.
26635 (glob_in_dir): Use glob_lstat.
26636 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
26637 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
26638 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
26639 2.27.
26640 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
26641 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
26642 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
26643 gl_lstat on glob call.
26644 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
26645 and glob64 symbols.
26646 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26647 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
26648 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
26649 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
26650 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
26651 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
26652 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
26653 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
26654 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
26655 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26656 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26657 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
26658 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
26659 Likewise.
26660 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
26661 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
26662 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26663 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26664 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
26665 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26666 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26667 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
26668 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
26669 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
26670 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
26671 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
26672
26673 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
26674
26675 * configure.ac (AS): Require binutils 2.25 or later.
26676 * configure: Regenerated.
26677
26678 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
26679
26680 [BZ #22207]
26681 * stdlib/test-atexit-race-common.c (do_test): Minimize required
26682 VM size.
26683
26684 2017-09-25 DJ Delorie <dj@redhat.com>
26685
26686 [BZ #22161]
26687 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
26688 resetting timeout.
26689
26690 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
26691
26692 * sysdeps/ieee754/dbl-64/sincos32.h
26693 [SINCCOS32_H]: Remove define.
26694 [SINCOS32_H]: Define.
26695
26696 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26697
26698 * math/Versions (expf): New libm symbol at GLIBC_2.27.
26699 (exp2f): Likewise.
26700 * math/w_exp2f.c: New file.
26701 * math/w_expf.c: New file.
26702 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
26703 * math/w_expf_compat.c (__expf_compat): Likewise.
26704 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
26705 * sysdeps/ia64/fpu/e_expf.S: Likewise.
26706 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26707 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26708 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26709 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26710 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26711 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26712 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26713 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26714 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26715 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26716 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26717 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26718 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26719 Likewise.
26720 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26721 Likewise.
26722 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26723 Likewise.
26724 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26725 Likewise.
26726 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26727 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26728 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26729 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26730 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26731 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26732 Likewise.
26733 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26734 Likewise.
26735 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26736 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26737 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26738
26739 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26740
26741 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
26742 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
26743 (roundtoint, converttoint): Likewise.
26744 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
26745 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
26746 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
26747 * sysdeps/ieee754/flt-32/math_config.h: New file.
26748 * sysdeps/ieee754/flt-32/math_errf.c: New file.
26749 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
26750 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
26751 * sysdeps/i386/fpu/math_errf.c: New file.
26752 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
26753 * sysdeps/ia64/fpu/math_errf.c: New file.
26754 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
26755 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
26756
26757 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
26758
26759 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
26760 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
26761 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
26762 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
26763 to make sure that these symbols are defined.
26764 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
26765 of <limits.h>
26766 (__need_NULL): Do not define.
26767 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
26768 alignment.
26769 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
26770 CMGROUP_MAX, cmsgcred): Do not define.
26771 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
26772 NULL.
26773 * bits/socket.h: Likewise.
26774 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
26775 __gettimeofday instead of gettimeofday.
26776 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
26777 instead of settimeofday.
26778
26779 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26780
26781 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
26782 (asinhf): Define using libm_alias_float.
26783 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
26784 (atanf): Define using libm_alias_float.
26785 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
26786 (cbrtf): Define using libm_alias_float.
26787 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
26788 (ceilf): Define using libm_alias_float.
26789 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
26790 <libm-alias-float.h>.
26791 (copysignf): Define using libm_alias_float.
26792 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
26793 (cosf): Define using libm_alias_float.
26794 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
26795 (erff): Define using libm_alias_float.
26796 (erfcf): Likewise.
26797 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
26798 (expm1f): Define using libm_alias_float.
26799 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
26800 (fabsf): Define using libm_alias_float.
26801 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
26802 (floorf): Define using libm_alias_float.
26803 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
26804 (frexpf): Define using libm_alias_float.
26805 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
26806 libm_alias_float.
26807 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
26808 <libm-alias-float.h>.
26809 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
26810 libm_alias_float.
26811 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
26812 <libm-alias-float.h>.
26813 (getpayloadf): Define using libm_alias_float.
26814 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
26815 <libm-alias-float.h>.
26816 (llrintf): Define using libm_alias_float.
26817 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
26818 <libm-alias-float.h>.
26819 (llroundf): Define using libm_alias_float.
26820 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
26821 (logbf): Define using libm_alias_float.
26822 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
26823 (lrintf): Define using libm_alias_float.
26824 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
26825 (lroundf): Define using libm_alias_float.
26826 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
26827 (modff): Define using libm_alias_float.
26828 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
26829 <libm-alias-float.h>.
26830 (nearbyintf): Define using libm_alias_float.
26831 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
26832 <libm-alias-float.h>.
26833 (nextafterf): Define using libm_alias_float.
26834 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
26835 <libm-alias-float.h>.
26836 (nextupf): Define using libm_alias_float.
26837 * sysdeps/ieee754/flt-32/s_remquof.c: Include
26838 <libm-alias-float.h>.
26839 (remquof): Define using libm_alias_float.
26840 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
26841 (rintf): Define using libm_alias_float.
26842 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
26843 <libm-alias-float.h>.
26844 (roundevenf): Define using libm_alias_float.
26845 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
26846 (roundf): Define using libm_alias_float.
26847 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
26848 using libm_alias_float.
26849 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
26850 <libm-alias-float.h>.
26851 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
26852 Define using libm_alias_float.
26853 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
26854 <libm-alias-float.h>.
26855 (sincosf): Define using libm_alias_float.
26856 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
26857 (sinf): Define using libm_alias_float.
26858 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
26859 (tanf): Define using libm_alias_float.
26860 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
26861 (tanhf): Define using libm_alias_float.
26862 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
26863 <libm-alias-float.h>.
26864 (totalorderf): Define using libm_alias_float.
26865 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
26866 <libm-alias-float.h>.
26867 (totalordermagf): Define using libm_alias_float.
26868 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
26869 (truncf): Define using libm_alias_float.
26870 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
26871 libm_alias_float.
26872 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
26873 libm_alias_float.
26874
26875 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26876
26877 [BZ #22146]
26878 math/math.h: Let fpclassify use the builtin in C++ mode, even
26879 when optimazing for size.
26880
26881 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26882
26883 * csu/Makefile (generated): Do not add version-info.h.
26884 (before-compile): Likewise.
26885 (all-Banner-files): Remove variable.
26886 ($(objpfx)version-info.h): Remove rule.
26887 * csu/version.c (banner): Do not include "version-info.h".
26888 * libidn/Banner: Remove.
26889 * manual/contrib.texi (Simon Josefsson): New entry.
26890
26891 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26892
26893 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
26894 Remove conditionals on LDBL_MANT_DIG.
26895 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26896 (__ieee754_lgammal_r): Likewise.
26897
26898 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26899
26900 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
26901 _Float128 and L().
26902 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
26903 _Float128 and L(). Replace _Float128 with long double and L(x)
26904 with xL, throughout the file.
26905 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26906 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26907 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26908 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26909
26910 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26911
26912 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
26913 sysdeps/ieee754/ldbl-128ibm.
26914 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
26915 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
26916 of including it. Keep _Float128 and L() intact. These will be
26917 reviewed by a separate patch.
26918 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26919 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26920 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26921 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26922
26923 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26924
26925 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
26926 (__finitef128): Define to __redirect___finitef128.
26927 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
26928 (__isinff128): Define to __redirect___isinff128.
26929 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
26930 (__isnanf128): Define to __redirect___isnanf128.
26931
26932 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26933
26934 * sysdeps/powerpc/powerpc64le/Makefile
26935 (CFLAGS-tst-strtod-nan-locale.c): New variable.
26936 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
26937
26938 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
26939 Carlos O'Donell <carlos@redhat.com>
26940
26941 [BZ #22180]
26942 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
26943 * stdlib/test-dlclose-exit-race.c: New file.
26944 * stdlib/test-dlclose-exit-race-helper.c: New file.
26945 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
26946
26947 2017-09-21 Joseph Myers <joseph@codesourcery.com>
26948
26949 * crypt/Banner: Remove file.
26950 * nptl/Banner: Likewise.
26951 * resolv/Banner: Likewise.
26952 * soft-fp/Banner: Likewise.
26953 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
26954 ($(objpfx)version.d): Remove dependency on banner.h.
26955 ($(objpfx)version.os): Likewise.
26956 * nptl/version.c (banner): Do not include banner.h.
26957 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
26958 Jelinek and BIND code.
26959
26960 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
26961 Carlos O'Donell <carlos@redhat.com>
26962
26963 * support/xdlfcn.h: New file.
26964 * support/xdlfcn.c: New file.
26965 * support/Makefile (libsupport-routines): Add xdlfcn.
26966 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
26967
26968 2017-09-20 Joseph Myers <joseph@codesourcery.com>
26969
26970 [BZ #20142]
26971 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26972 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
26973 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
26974 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
26975 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
26976 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
26977 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
26978 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
26979
26980 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
26981 Ricky Zhou <rickyz@google.com>
26982 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
26983
26984 [BZ #14333]
26985 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
26986 Remove atomics.
26987 (__new_exitfn): Fail registration when we finished at_exit processing.
26988 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
26989 * stdlib/on_exit.c (__on_exit): Likewise.
26990 * stdlib/exit.c (__exit_funcs_done): New variable.
26991 (__run_exit_handlers): Use __exit_funcs_lock.
26992 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
26993 declarations.
26994 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
26995 (test-cxa_atexit-race, test-on_exit-race): New tests.
26996 * stdlib/test-atexit-race-common.c: New file.
26997 * stdlib/test-atexit-race.c: New file.
26998 * stdlib/test-at_quick_exit-race.c: New file.
26999 * stdlib/test-cxa_atexit-race.c: New file.
27000 * stdlib/test-on_exit-race.c: New file.
27001
27002 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
27003
27004 * benchtests/Makefile: Add exp2f and log2f benchmarks.
27005 * benchtests/exp2f-inputs: Copy of expf-inputs.
27006 * benchtests/log2f-inputs: Copy of logf-inputs.
27007
27008 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27009
27010 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27011 Explicitly take address of first element of array arguments in
27012 call to INLINE_SYSCALL.
27013
27014 2017-09-19 Andreas Schwab <schwab@suse.de>
27015
27016 [BZ #22134]
27017 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
27018 execveat first.
27019 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
27020 unimplemented.
27021 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
27022 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27023 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27024 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27025 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27026 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27027 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27028 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27029 * posix/Makefile (tests): Add tst-fexecve.
27030 * posix/tst-fexecve.c: New file.
27031
27032 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27033
27034 * benchtests/Makefile: Add logf benchmark.
27035 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27036
27037 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27038
27039 * benchtests/Makefile: Add expf benchmark.
27040 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27041
27042 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27043
27044 * csu/Makefile: Add -funwind-tables to libc-start.c.
27045 * debug/Makefile: Add -funwind-tables to backtrace.c.
27046 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27047 * sysdeps/arm/Makefile: Likewise.
27048 * sysdeps/i386/Makefile: Likewise.
27049 * sysdeps/m68k/Makefile: Likewise.
27050 * sysdeps/mips/Makefile: Likewise.
27051 * sysdeps/nios2/Makefile: Likewise.
27052 * sysdeps/sh/Makefile: Likewise.
27053 * sysdeps/sparc/Makefile: Likewise.
27054
27055 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27056
27057 * benchtests/Makefile (bench-math): Add trunc and truncf.
27058 (CFLAGS-bench-trunc.c): New variable.
27059 (CFLAGS-bench-truncf.c): Likewise.
27060 * benchtests/trunc-inputs: New file.
27061 * benchtests/truncf-inputs: Likewise.
27062
27063 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27064
27065 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27066
27067 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27068
27069 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27070 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27071 redefine.
27072 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27073 (exp10l): Define as weak alias.
27074 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27075 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27076 and redefine.
27077 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27078 (remainderl): Define as weak alias.
27079
27080 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27081 (fmal): Define using libm_alias_ldouble.
27082 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27083 (acoshl): Define using libm_alias_ldouble.
27084 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27085 (acosl): Define using libm_alias_ldouble.
27086 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27087 (asinl): Define using libm_alias_ldouble.
27088 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27089 (atan2l): Define using libm_alias_ldouble.
27090 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27091 (atanhl): Define using libm_alias_ldouble.
27092 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27093 (coshl): Define using libm_alias_ldouble.
27094 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27095 (exp10l): Define using libm_alias_ldouble.
27096 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27097 (exp2l): Define using libm_alias_ldouble.
27098 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27099 (expl): Define using libm_alias_ldouble.
27100 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27101 (fmodl): Define using libm_alias_ldouble.
27102 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27103 (hypotl): Define using libm_alias_ldouble.
27104 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27105 (j0l): Define using libm_alias_ldouble.
27106 (y0l): Likewise.
27107 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27108 (j1l): Define using libm_alias_ldouble.
27109 (y1l): Likewise.
27110 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27111 (jnl): Define using libm_alias_ldouble.
27112 (ynl): Likewise.
27113 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27114 (log10l): Define using libm_alias_ldouble.
27115 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27116 (log2l): Define using libm_alias_ldouble.
27117 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27118 (logl): Define using libm_alias_ldouble.
27119 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27120 (powl): Define using libm_alias_ldouble.
27121 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27122 (remainderl): Define using libm_alias_ldouble.
27123 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27124 (sinhl): Define using libm_alias_ldouble.
27125 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27126 (sqrtl): Define using libm_alias_ldouble.
27127 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27128 (tgammal): Define using libm_alias_ldouble.
27129 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27130 (exp10l): Do not use long_double_symbol here.
27131 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27132 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27133 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27134 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27135 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27136 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27137 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27138 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27139 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27140 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27141 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27142 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27143 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27144 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27145 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27146 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27147 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27148 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27149 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27150 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27151 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27152 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27153
27154 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27155
27156 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27157 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27158
27159 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27160
27161 * io/read.c (read): Add libc_hidden_weak.
27162 * sysdeps/mach/hurd/read.c (read): Likewise.
27163 * io/write.c (write): Likewise.
27164 * sysdeps/mach/hurd/write.c (write): Likewise.
27165 * io/pread64.c (__pread64): Likewise.
27166 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27167 * posix/pread64.c (__pread64): Add libc_hidden_def.
27168
27169 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27170
27171 * benchtests/scripts/compare_strings.py: New option -g.
27172 (draw_graph): Print a message that a graph is being generated.
27173 (process_results): Generate graph only if -g is passed.
27174 (main): Process option -g.
27175
27176 * benchtests/scripts/compare_strings.py (process_results):
27177 Better spacing for output.
27178
27179 * benchtests/scripts/compare_strings.py: Use argparse.
27180 * benchtests/README: Document existence of compare_strings.py.
27181
27182 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27183
27184 * math/s_fma.c: Include <libm-alias-double.h>.
27185 (fma): Define using libm_alias_double.
27186 * math/s_nextafter.c: Include <libm-alias-double.h>.
27187 (nextafter): Define using libm_alias_double.
27188 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27189 (acos): Define using libm_alias_double.
27190 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27191 (aocsh): Define using libm_alias_double.
27192 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27193 (asin): Define using libm_alias_double.
27194 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27195 (atan2): Define using libm_alias_double.
27196 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27197 (atanh): Define using libm_alias_double.
27198 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27199 (cosh): Define using libm_alias_double.
27200 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27201 (exp10): Define using libm_alias_double.
27202 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27203 (exp2): Define using libm_alias_double.
27204 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27205 (exp): Define using libm_alias_double.
27206 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27207 (fmod): Define using libm_alias_double.
27208 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27209 (hypot): Define using libm_alias_double.
27210 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27211 (j0): Define using libm_alias_double.
27212 (y0): Likewise.
27213 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27214 (j1): Define using libm_alias_double.
27215 (y1): Likewise.
27216 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27217 (jn): Define using libm_alias_double.
27218 (yn): Likewise.
27219 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27220 (log10): Define using libm_alias_double.
27221 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27222 (log2): Define using libm_alias_double.
27223 * math/w_log_compat.c: Include <libm-alias-double.h>.
27224 (log): Define using libm_alias_double.
27225 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27226 (pow): Define using libm_alias_double.
27227 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27228 (remainder): Define using libm_alias_double.
27229 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27230 (sinh): Define using libm_alias_double.
27231 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27232 (sqrt): Define using libm_alias_double.
27233 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27234 (tgamma): Define using libm_alias_double.
27235 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27236 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27237 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27238 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27239 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27240 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27241 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27242 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27243 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27244 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27245 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27246 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27247 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27248 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27249 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27250 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27251 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27252 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27253 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27254 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27255 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27256 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27257 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27258 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27259 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27260
27261 * math/e_acoshl.c: Remove.
27262 * math/e_acosl.c: Likewise.
27263 * math/e_asinl.c: Likewise.
27264 * math/e_atan2l.c: Likewise.
27265 * math/e_atanhl.c: Likewise.
27266 * math/e_coshl.c: Likewise.
27267 * math/e_expl.c: Likewise.
27268 * math/e_fmodl.c: Likewise.
27269 * math/e_gammal_r.c: Likewise.
27270 * math/e_hypotl.c: Likewise.
27271 * math/e_j0l.c: Likewise.
27272 * math/e_j1l.c: Likewise.
27273 * math/e_jnl.c: Likewise.
27274 * math/e_lgammal_r.c: Likewise.
27275 * math/e_log10l.c: Likewise.
27276 * math/e_log2l.c: Likewise.
27277 * math/e_logl.c: Likewise.
27278 * math/e_powl.c: Likewise.
27279 * math/e_rem_pio2l.c: Likewise.
27280 * math/e_sinhl.c: Likewise.
27281 * math/e_sqrtf128.c: Likewise.
27282 * math/e_sqrtl.c: Likewise.
27283 * math/k_cosl.c: Likewise.
27284 * math/k_sinl.c: Likewise.
27285 * math/k_tanl.c: Likewise.
27286 * math/s_asinhl.c: Likewise.
27287 * math/s_atanl.c: Likewise.
27288 * math/s_cbrtl.c: Likewise.
27289 * math/s_erfl.c: Likewise.
27290 * math/s_expm1l.c: Likewise.
27291 * math/s_log1pl.c: Likewise.
27292 * math/s_tanhl.c: Likewise.
27293
27294 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27295
27296 [BZ #21745]
27297 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27298 [$(subdir) = math] (sysdep_calls): New variable. Has the
27299 previous contents of sysdep_routines, but re-sorted..
27300 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27301 sysdep_calls.
27302 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27303 defined in sysdep_calls and replace by the respective m_* names.
27304 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27305 (compat_symbol): Undefine to avoid duplicated compat symbols in
27306 libc.
27307
27308 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27309
27310 * math/s_fmaf.c: Include <libm-alias-float.h>.
27311 (fmaf): Define using libm_alias_float.
27312 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27313 (acosf): Define using libm_alias_float.
27314 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27315 (acoshf): Define using libm_alias_float.
27316 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27317 (asinf): Define using libm_alias_float.
27318 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27319 (atan2f): Define using libm_alias_float.
27320 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27321 (atanhf): Define using libm_alias_float.
27322 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27323 (coshf): Define using libm_alias_float.
27324 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27325 (exp10f): Define using libm_alias_float.
27326 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27327 (fmodf): Define using libm_alias_float.
27328 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27329 (hypotf): Define using libm_alias_float.
27330 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27331 (j0f): Define using libm_alias_float.
27332 (y0f): Likewise.
27333 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27334 (j1f): Define using libm_alias_float.
27335 (y1f): Likewise.
27336 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27337 (jnf): Define using libm_alias_float.
27338 (ynf): Likewise.
27339 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27340 (log10f): Define using libm_alias_float.
27341 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27342 (log2f): Define using libm_alias_float.
27343 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27344 (logf): Define using libm_alias_float.
27345 * math/w_powf_compat.c: Include <libm-alias-float.h>.
27346 (powf): Define using libm_alias_float.
27347 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
27348 (remainderf): Define using libm_alias_float.
27349 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
27350 (sinhf): Define using libm_alias_float.
27351 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
27352 (sqrtf): Define using libm_alias_float.
27353 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27354 (tgammaf): Define using libm_alias_float.
27355
27356 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27357
27358 * include/math.h (roundeven): Change hidden_proto call to
27359 __roundeven.
27360 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27361 alias.
27362 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27363 (y0): Rename to __y0 and define as weak alias.
27364 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27365 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27366 alias.
27367 (y0f): Rename to __y0f and define as weak alias.
27368 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27369 alias.
27370 [NO_LONG_DOUBLE] (__j1l): New strong alias.
27371 (y1): Rename to __y1 and define as weak alias.
27372 [NO_LONG_DOUBLE] (__y1l): New strong alias.
27373 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
27374 alias.
27375 (y1f): Rename to __y1f and define as weak alias.
27376 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
27377 alias.
27378 [NO_LONG_DOUBLE] (__jnl): New strong alias.
27379 (yn): Rename to __yn and define as weak alias.
27380 [NO_LONG_DOUBLE] (__ynl): New strong alias.
27381 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
27382 alias.
27383 (ynf): Rename to __ynf and define as weak alias.
27384 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
27385 (fromfp): Define as weak alias.
27386 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
27387 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
27388 (fromfpx): Define as weak alias.
27389 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
27390 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
27391 __getpayload and define as weak alias.
27392 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27393 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
27394 __roundeven and define as weak alias.
27395 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27396 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
27397 __setpayload.
27398 (setpayload): Define as weak alias.
27399 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
27400 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
27401 __setpayloadsig.
27402 (setpayloadsig): Define as weak alias.
27403 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
27404 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
27405 __totalorder and define as weak alias.
27406 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27407 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
27408 to __totalordermag and define as weak alias.
27409 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27410 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
27411 (ufromfp): Define as weak alias.
27412 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
27413 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
27414 __ufromfpx.
27415 (ufromfpx): Define as weak alias.
27416 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
27417 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
27418 Rename to __getpayload and define as weak alias.
27419 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27420 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
27421 Rename to __roundeven and define as weak alias.
27422 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27423 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
27424 Rename to __totalorder and define as weak alias.
27425 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27426 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
27427 (totalordermag): Rename to __totalordermag and define as weak
27428 alias.
27429 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27430 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
27431 macro.
27432 (__roundevenl): Likewise.
27433 (__totalorderl): Likewise.
27434 (__totalordermagl): Likewise
27435 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
27436 __fromfpf128.
27437 (fromfpf128): Define as weak alias.
27438 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
27439 __fromfpxf128.
27440 (fromfpxf128): Define as weak alias.
27441 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
27442 __setpayloadf128.
27443 (setpayloadf128): Define as weak alias.
27444 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
27445 __setpayloadsigf128.
27446 (setpayloadsigf128): Define as weak alias.
27447 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
27448 __ufromfpf128.
27449 (ufromfpf128): Define as weak alias.
27450 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
27451 __ufromfpxf128.
27452 (ufromfpxf128): Define as weak alias.
27453 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
27454 (fromfpf): Define as weak alias.
27455 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
27456 __fromfpxf.
27457 (fromfpxf): Define as weak alias.
27458 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
27459 __getpayloadf and define as weak alias.
27460 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
27461 __roundevenf and define as weak alias.
27462 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
27463 __setpayloadf.
27464 (setpayloadf): Define as weak alias.
27465 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
27466 __setpayloadsigf.
27467 (setpayloadsigf): Define as weak alias.
27468 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
27469 __totalorderf and define as weak alias.
27470 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
27471 Rename to __totalordermagf and define as weak alias.
27472 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
27473 __ufromfpf.
27474 (ufromfpf): Define as weak alias.
27475 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
27476 __ufromfpxf.
27477 (ufromfpxf): Define as weak alias.
27478 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
27479 __fromfpl.
27480 (fromfpl): Define as weak alias.
27481 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
27482 __fromfpxl.
27483 (fromfpxl): Define as weak alias.
27484 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
27485 to __getpayloadl and define as weak alias.
27486 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
27487 __roundevenl and define as weak alias.
27488 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
27489 __setpayloadl.
27490 (setpayloadl): Define as weak alias.
27491 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
27492 __setpayloadsigl.
27493 (setpayloadsigl): Define as weak alias.
27494 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
27495 to __totalorderl and define as weak alias.
27496 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
27497 Rename to __totalordermagl and define as weak alias.
27498 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
27499 __ufromfpl.
27500 (ufromfpl): Define as weak alias.
27501 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
27502 __ufromfpxl.
27503 (ufromfpxl): Define as weak alias.
27504 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
27505 __fromfpl.
27506 (fromfpl): Define as weak alias.
27507 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
27508 __fromfpxl.
27509 (fromfpxl): Define as weak alias.
27510 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
27511 Rename to __getpayloadl and define as weak alias.
27512 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
27513 to __roundevenl and define as weak alias. Call __roundeven
27514 instead of roundeven.
27515 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
27516 __setpayloadl.
27517 (setpayloadl): Define as weak alias.
27518 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
27519 __setpayloadsigl.
27520 (setpayloadsigl): Define as weak alias.
27521 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
27522 Rename to __totalorderl and define as weak alias.
27523 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
27524 Rename to __totalordermagl and define as weak alias.
27525 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
27526 __ufromfpl.
27527 (ufromfpl): Define as weak alias.
27528 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
27529 __ufromfpxl.
27530 (ufromfpxl): Define as weak alias.
27531 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
27532 __fromfpl.
27533 (fromfpl): Define as weak alias.
27534 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
27535 __fromfpxl.
27536 (fromfpxl): Define as weak alias.
27537 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
27538 __getpayloadl and define as weak alias.
27539 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
27540 __roundevenl and define as weak alias.
27541 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
27542 __setpayloadl.
27543 (setpayloadl): Define as weak alias.
27544 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
27545 __setpayloadsigl.
27546 (setpayloadsigl): Define as weak alias.
27547 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
27548 __totalorderl and define as weak alias.
27549 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
27550 Rename to __totalordermagl and define as weak alias.
27551 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
27552 __ufromfpl.
27553 (ufromfpl): Define as weak alias.
27554 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
27555 __ufromfpxl.
27556 (ufromfpxl): Define as weak alias.
27557
27558 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
27559
27560 * benchtests/bench-string.h (realloc_bufs): New function.
27561 (test_init): Call it.
27562 * benchtests/bench-memset-large.c (do_test): Likewise.
27563 * benchtests/bench-memset.c (do_test): Likewise.
27564
27565 * benchtests/bench-memset-large.c: Print output in JSON
27566 format.
27567 * benchtests/bench-memset.c: Likewise.
27568
27569 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27570
27571 [BZ #21084]
27572 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
27573 * iconvdata/Makefile: Add IBM858.
27574 * iconvdata/gconv-modules: Likewise.
27575 * iconvdata/tst-tables.sh: Likewise.
27576 * iconvdata/ibm858.c: New file.
27577 * localedata/charmaps/IBM858: Likewise.
27578
27579 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
27580
27581 [BZ #22023]
27582 * locales/niu_NZ (LC_TIME): copy "niu_NU".
27583 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
27584
27585 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27586
27587 [BZ #22112]
27588 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
27589 and add tel_int_fmt.
27590
27591 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27592
27593 * sysdeps/generic/libm-alias-float128.h: New file.
27594 * sysdeps/generic/math-type-macros-float128.h: Include
27595 <libm-alias-float128.h>.
27596 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27597
27598 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27599
27600 * sysdeps/generic/libm-alias-ldouble.h: New file.
27601 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
27602 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
27603 * sysdeps/generic/math-type-macros-ldouble.h: Include
27604 <libm-alias-ldouble.h>.
27605 [!declare_mgen_alias] (declare_mgen_alias): Define to use
27606 libm_alias_ldouble.
27607
27608 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
27609
27610 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
27611 * math/w_exp_compat.c: ... here.
27612 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
27613 * math/w_expf_compat.c: ... here.
27614 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
27615 * math/w_expl_compat.c: ... here.
27616 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
27617 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
27618 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
27619 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27620
27621 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27622
27623 * math/w_scalbln_template.c (strong_alias): Do not undefine and
27624 redefine.
27625 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
27626 macro.
27627 (ldexpl): Only define as compat symbol for libc, not libm.
27628 (scalbnl): Define as compat symbol for libc here.
27629 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
27630 define for [IS_IN (libc)].
27631 (__ldexpl_2): Remove alias.
27632 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
27633 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
27634 name in long_double_symbol call.
27635 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
27636 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
27637 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
27638 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
27639 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
27640 Remove macro.
27641 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
27642 Define as compat symbol.
27643
27644 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27645
27646 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
27647 * sysdeps/unix/sysv/linux/alpha/Makefile
27648 [$(subdir) = csu] (sysdep_routines): Remove rule.
27649
27650 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27651
27652 * sysdeps/generic/libm-alias-double.h: New file.
27653 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
27654 * sysdeps/generic/math-type-macros-double.h: Include
27655 <libm-alias-double.h>.
27656 [declare_mgen_alias] (declare_mgen_alias): Define to use
27657 libm_alias_double.
27658 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
27659 (M_LIBM_NEED_COMPAT): Remove macro.
27660 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
27661 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
27662 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
27663 code.
27664 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27665 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27666 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27667 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27668 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27669 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27670 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27671 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27672 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27673 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27674 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27675 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27676 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27677 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27678 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27679 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27680 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27681 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27682 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27683 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27684 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27685 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27686 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27687 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27688 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27689 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27690 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27691 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
27692 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
27693 macro.
27694 (declare_mgen_alias): New macro.
27695 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
27696 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
27697 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
27698 (M_LIBM_NEED_COMPAT): Remove macro.
27699 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
27700 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
27701 <first-versions.h>.
27702 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
27703 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
27704
27705 2017-09-12 Joseph Myers <joseph@codesourcery.com>
27706
27707 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
27708 (declare_mgen_alias_2): Remove.
27709 * sysdeps/generic/math-type-macros-double.h
27710 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
27711 Likewise.
27712 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
27713 alias.
27714 (ldexp): Define with declare_mgen_alias.
27715 (scalbn): Likewise.
27716
27717 2017-09-12 Steve Ellcey <sellcey@cavium.com>
27718
27719 * grp/initgroups.c: Include config.h.
27720 (DEFAULT_CONFIG): New macro.
27721 (internal_getgrouplist): Use DEFAULT_CONFIG.
27722 * nscd/initgrcache.c (addinitgroupsX): Likewise.
27723 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
27724 (DEFAULT_DEFCONFIG): New macro.
27725 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
27726 * nss/grp-lookup.c: Include config.h
27727 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
27728 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
27729 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
27730 * manual/nss.texi: Update default values section.
27731
27732 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
27733
27734 [BZ #21967]
27735 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
27736 New.
27737 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
27738 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27739 Handle MathVec_Prefer_No_AVX512.
27740 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
27741 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
27742 is set.
27743
27744 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
27745
27746 * posix/sched_primax.c (__sched_get_priority_max): Add
27747 libc_hidden_def.
27748 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
27749 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
27750 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
27751 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
27752 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
27753 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
27754 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
27755 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
27756 Add aliases.
27757
27758 2017-09-11 Joseph Myers <joseph@codesourcery.com>
27759
27760 * sysdeps/generic/libm-alias-float.h: New file.
27761 * sysdeps/generic/math-type-macros-float.h: Include
27762 <libm-alias-float.h>.
27763 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27764
27765 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
27766
27767 [BZ #22093]
27768 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
27769 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
27770 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
27771 (HWCAP_IMPORTANT): Likewise.
27772 (HWCAP_X86_64): New enum.
27773 (HWCAP_X86_AVX512_1): Updated.
27774 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
27775 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
27776 (modules-names): Add x86_64/tst-x86_64mod-1.
27777 (LDFLAGS-tst-x86_64mod-1.so): New.
27778 ($(objpfx)tst-x86_64-1): Likewise.
27779 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
27780 (tst-x86_64-1-clean): Likewise.
27781 * sysdeps/x86_64/tst-x86_64-1.c: New file.
27782 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
27783
27784 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
27785
27786 * po/sv.po: Update translations.
27787 * po/fr.po: Likewise.
27788
27789 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
27790
27791 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
27792 seconds.
27793 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
27794 seconds.
27795 * elf/rtld-Rules: Fix $(error) use.
27796
27797 2017-09-09 Mike FABIAN <mfabian@redhat.com>
27798
27799 [BZ #14925]
27800 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
27801 * locale/iso-639.def: Change “Bengali” to “Bangla”.
27802 * localedata/locales/bn_BD: “Bengali” was still used in some
27803 comments. Change it to “Bangla”.
27804
27805 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
27806
27807 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
27808
27809 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27810
27811 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
27812 thunderx2t99p1 to list of cpu names.
27813 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
27814 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
27815
27816 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27817
27818 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
27819 Use strcmp instead of tunable_is_name.
27820
27821 2017-09-08 Joseph Myers <joseph@codesourcery.com>
27822
27823 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27824 (F_GET_RW_HINT): New macro.
27825 [__USE_GNU] (F_SET_RW_HINT): Likewise.
27826 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
27827 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
27828 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
27829 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
27830 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
27831 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
27832 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
27833 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
27834
27835 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27836 (F_ADD_SEALS): New macro.
27837 [__USE_GNU] (F_GET_SEALS): Likewise.
27838 [__USE_GNU] (F_SEAL_SEAL): Likewise.
27839 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
27840 [__USE_GNU] (F_SEAL_GROW): Likewise.
27841 [__USE_GNU] (F_SEAL_WRITE): Likewise.
27842
27843 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27844
27845 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
27846 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
27847 * posix/glob_internal.h (__glob_pattern_type):
27848 * posix/glob.c (glob):
27849 * posix/glob_pattern_p.c (__glob_pattern_p):
27850 Use them.
27851
27852 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
27853 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
27854 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
27855 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
27856 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27857 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
27858 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
27859 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
27860 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27861 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
27862 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27863 * sysdeps/wordsize-64/glob.c: Likewise.
27864 * sysdeps/wordsize-64/glob64.c: Likewise.
27865 * sysdeps/wordsize-64/globfree.c: Likewise.
27866 * sysdeps/wordsize-64/globfree64.c: Likewise.
27867 * sysdeps/unix/sysv/linux/glob.c: New file.
27868 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
27869 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
27870 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
27871 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27872 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
27873 adds !GLOB_NO_OLD_VERSION as an extra condition.
27874 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
27875 using relative path instead of absolute one.
27876 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
27877 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
27878 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
27879 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
27880 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
27881 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
27882
27883 [BZ #1062]
27884 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
27885 (glob): Use the same scratch buffer for both getlogin_r and
27886 getpwnam_r. Don’t require preallocation of the login name. This
27887 simplifies storage allocation, and corrects the handling of
27888 long login names.
27889
27890 [BZ #1062]
27891 * posix/glob.c (glob): Port recent patches to platforms
27892 lacking getpwnam_r.
27893 (glob): Fix longstanding misuse of errno after getpwnam_r, which
27894 returns an error number rather than setting errno.
27895
27896 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
27897 instead of GCC extension.
27898 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
27899 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
27900 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
27901
27902 [BZ #866]
27903 [BZ #1062]
27904 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
27905 * posix/bug-glob1.c: Remove file.
27906 * posix/tst-glob_symlinks.c: New file.
27907 * posix/glob.c (__lstat64): New macro.
27908 (is_dir): New function.
27909 (glob, glob_in_dir): Match symlinks even if they are dangling.
27910 (link_stat, link_exists_p): Remove. All uses removed.
27911
27912 [BZ #1062]
27913 [BZ #19971]
27914 * posix/glob.c (struct readdir_result): Remove skip_entry member.
27915 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
27916 All uses removed.
27917
27918 [BZ #1062]
27919 CVE-2017-15671
27920 * posix/Makefile (routines): Add globfree, globfree64, and
27921 glob_pattern_p.
27922 * posix/flexmember.h: New file.
27923 * posix/glob_internal.h: Likewise.
27924 * posix/glob_pattern_p.c: Likewise.
27925 * posix/globfree.c: Likewise.
27926 * posix/globfree64.c: Likewise.
27927 * sysdeps/gnu/globfree64.c: Likewise.
27928 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
27929 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27930 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
27931 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27932 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27933 * sysdeps/wordsize-64/globfree.c: Likewise.
27934 * sysdeps/wordsize-64/globfree64.c: Likewise.
27935 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
27936 [NDEBUG): Remove comments.
27937 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
27938 (dirent_type): New type. Use uint_fast8_t not
27939 uint8_t, as C99 does not require uint8_t.
27940 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
27941 (struct readdir_result): Use dirent_type. Do not define skip_entry
27942 unless it is needed; this saves a byte on platforms lacking d_ino.
27943 (readdir_result_type, readdir_result_skip_entry):
27944 New functions, replacing ...
27945 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
27946 these functions, which were removed. This makes the callers
27947 easier to read. All callers changed.
27948 (D_INO_TO_RESULT): Now empty if there is no d_ino.
27949 (size_add_wrapv, glob_use_alloca): New static functions.
27950 (glob, glob_in_dir): Check for size_t overflow in several places,
27951 and fix some size_t checks that were not quite right.
27952 Remove old code using SHELL since Bash no longer
27953 uses this.
27954 (glob, prefix_array): Separate MS code better.
27955 (glob_in_dir): Remove old Amiga and VMS code.
27956 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
27957 separate files.
27958 (glob_in_dir): Do not rely on undefined behavior in accessing
27959 struct members beyond their bounds. Use a flexible array member
27960 instead
27961 (link_stat): Rename from link_exists2_p and return -1/0 instead of
27962 0/1. Caller changed.
27963 (glob): Fix memory leaks.
27964 * posix/glob64 (globfree64): Move to separate file.
27965 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
27966 (globfree64): Remove hidden alias.
27967 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
27968 oldglob.
27969 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
27970 separate file.
27971 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
27972 define.
27973 Move compat code to separate file.
27974 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
27975 separate file.
27976
27977 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
27978
27979 * resolv/tst-resolv-qtypes.c (domain): Changed to
27980 "const char domain[] =".
27981
27982 2017-09-07 Joseph Myers <joseph@codesourcery.com>
27983
27984 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
27985 version to 3.1.6.
27986
27987 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
27988 (TCP_MD5SIG_EXT): Likewise.
27989 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
27990 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
27991 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
27992
27993 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
27994
27995 2017-09-07 Mike FABIAN <mfabian@redhat.com>
27996
27997 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
27998
27999 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
28000
28001 [BZ #22100]
28002 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28003
28004 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28005
28006 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28007 before assuming that the file is empty. Avoid testing buffer content
28008 when nread == 0.
28009
28010 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28011
28012 [BZ #18858]
28013 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28014 Remove define.
28015 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
28016 Likewise.
28017 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
28018 Likewise.
28019 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
28020 Likewise.
28021 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28022 Likewise.
28023 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28024 Likewise.
28025 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28026 Likewise.
28027
28028 2017-09-06 Florian Weimer <fweimer@redhat.com>
28029
28030 * malloc/dynarray_emplace_enlarge.c
28031 (__libc_dynarray_emplace_enlarge): Add missing else.
28032
28033 2017-09-06 Florian Weimer <fweimer@redhat.com>
28034
28035 [BZ #22096]
28036 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28037 case of failure to obtain the global conf object.
28038
28039 2017-09-06 Florian Weimer <fweimer@redhat.com>
28040
28041 [BZ #22095]
28042 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28043 dynarray allocation failure.
28044
28045 2017-09-06 Florian Weimer <fweimer@redhat.com>
28046
28047 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28048 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28049 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28050 New functions.
28051 (response): Call them. Add 'p', '6' flag processing.
28052 (test_reverse): New function.
28053 (test_get2_any): Call it.
28054 (test_no_inet6): Add 'p' test.
28055 (test_inet6): Likewise.
28056
28057 2017-09-06 Florian Weimer <fweimer@redhat.com>
28058
28059 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28060 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28061 the QNAME.
28062 (test_gai): Adjust query names. Add additional tests.
28063 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28064 test_get2. Adjust query names. Add additional tests.
28065 (test_no_inet6): New function, extracted from threadfunc.
28066 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28067 Add additional tests.
28068
28069 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28070
28071 [BZ #22070]
28072 * localedata/unicode-gen/utf8_gen.py: Set the width for
28073 characters with Prepended_Concatenation_Mark property to 1
28074 * localedata/charmaps/UTF-8: Updated using the improved script.
28075
28076 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28077
28078 [BZ #21750]
28079 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28080 use the range notation for all ranges of neighbouring characters
28081 with the same width.
28082
28083 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28084
28085 * sysdeps/generic/math-type-macros-double.h: Include
28086 <math-svid-compat.h>.
28087 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28088 * sysdeps/generic/math-type-macros-float.h: Include
28089 <math-svid-compat.h>.
28090 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28091 * sysdeps/generic/math-type-macros-ldouble.h: Include
28092 <math-svid-compat.h>.
28093 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28094 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28095 condition.
28096 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28097 * math/w_acosf_compat.c: Likewise.
28098 * math/w_acosh_compat.c: Likewise.
28099 * math/w_acoshf_compat.c: Likewise.
28100 * math/w_acoshl_compat.c: Likewise.
28101 * math/w_acosl_compat.c: Likewise.
28102 * math/w_asin_compat.c: Likewise.
28103 * math/w_asinf_compat.c: Likewise.
28104 * math/w_asinl_compat.c: Likewise.
28105 * math/w_atan2_compat.c: Likewise.
28106 * math/w_atan2f_compat.c: Likewise.
28107 * math/w_atan2l_compat.c: Likewise.
28108 * math/w_atanh_compat.c: Likewise.
28109 * math/w_atanhf_compat.c: Likewise.
28110 * math/w_atanhl_compat.c: Likewise.
28111 * math/w_cosh_compat.c: Likewise.
28112 * math/w_coshf_compat.c: Likewise.
28113 * math/w_coshl_compat.c: Likewise.
28114 * math/w_exp10_compat.c: Likewise.
28115 * math/w_exp10f_compat.c: Likewise.
28116 * math/w_exp10l_compat.c: Likewise.
28117 * math/w_exp2_compat.c: Likewise.
28118 * math/w_exp2f_compat.c: Likewise.
28119 * math/w_exp2l_compat.c: Likewise.
28120 * math/w_fmod_compat.c: Likewise.
28121 * math/w_fmodf_compat.c: Likewise.
28122 * math/w_fmodl_compat.c: Likewise.
28123 * math/w_hypot_compat.c: Likewise.
28124 * math/w_hypotf_compat.c: Likewise.
28125 * math/w_hypotl_compat.c: Likewise.
28126 * math/w_j0_compat.c: Likewise.
28127 * math/w_j0f_compat.c: Likewise.
28128 * math/w_j0l_compat.c: Likewise.
28129 * math/w_j1_compat.c: Likewise.
28130 * math/w_j1f_compat.c: Likewise.
28131 * math/w_j1l_compat.c: Likewise.
28132 * math/w_jn_compat.c: Likewise.
28133 * math/w_jnf_compat.c: Likewise.
28134 * math/w_jnl_compat.c: Likewise.
28135 * math/w_lgamma_r_compat.c: Likewise.
28136 * math/w_lgammaf_r_compat.c: Likewise.
28137 * math/w_lgammal_r_compat.c: Likewise.
28138 * math/w_log10_compat.c: Likewise.
28139 * math/w_log10f_compat.c: Likewise.
28140 * math/w_log10l_compat.c: Likewise.
28141 * math/w_log2_compat.c: Likewise.
28142 * math/w_log2f_compat.c: Likewise.
28143 * math/w_log2l_compat.c: Likewise.
28144 * math/w_log_compat.c: Likewise.
28145 * math/w_logf_compat.c: Likewise.
28146 * math/w_logl_compat.c: Likewise.
28147 * math/w_pow_compat.c: Likewise.
28148 * math/w_powf_compat.c: Likewise.
28149 * math/w_powl_compat.c: Likewise.
28150 * math/w_remainder_compat.c: Likewise.
28151 * math/w_remainderf_compat.c: Likewise.
28152 * math/w_remainderl_compat.c: Likewise.
28153 * math/w_sinh_compat.c: Likewise.
28154 * math/w_sinhf_compat.c: Likewise.
28155 * math/w_sinhl_compat.c: Likewise.
28156 * math/w_sqrt_compat.c: Likewise.
28157 * math/w_sqrtf_compat.c: Likewise.
28158 * math/w_sqrtl_compat.c: Likewise.
28159 * math/w_tgamma_compat.c: Likewise.
28160 * math/w_tgammaf_compat.c: Likewise.
28161 * math/w_tgammal_compat.c: Likewise.
28162 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28163 [LIBM_SVID_COMPAT].
28164 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28165 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28166 [LIBM_SVID_COMPAT].
28167 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28168 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28169 [LIBM_SVID_COMPAT].
28170 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28171 * sysdeps/i386/fpu/w_sqrt.c: New file.
28172 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28173 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28174 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28175 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28176 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28177 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28178 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28179 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28180 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28181 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28182 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28183 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28184 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28185 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28186 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28187 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28188 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28189 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28190 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28191 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28192 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28193 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28194 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28195 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28196 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28197 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28198 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28199 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28200 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28201 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28202 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28203 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28204 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28205 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28206 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28207 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28208 * sysdeps/ia64/fpu/w_log.c: Likewise.
28209 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28210 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28211 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28212 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28213 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28214 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28215 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28216 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28217 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28218 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28219 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28220 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28221 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28222 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28223 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28224 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28225 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28226 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28227 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28228 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28229 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28230 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28231 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28232 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28233 [LIBM_SVID_COMPAT].
28234 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28235 * sysdeps/ieee754/k_standard.c: Likewise.
28236 * sysdeps/ieee754/k_standardf.c: Likewise.
28237 * sysdeps/ieee754/k_standardl.c: Likewise.
28238 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28239 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28240 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28241 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28242 long_double_symbol call on [LIBM_SVID_COMPAT].
28243 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28244 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28245 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28246 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28247 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28248 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28249 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28250 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28251 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28252 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28253 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28254 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28255 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28256 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28257 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28258 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28259 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28260 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28261 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28262 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28263 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28264 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28265
28266 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28267
28268 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28269 * malloc/tst-mallocstate.c: Convert from test-skeleton
28270 to test-driver. Ifdef code using TEST_COMPAT macro.
28271 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28272 * math/test-matherr.c: Likewise.
28273
28274 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28275
28276 [BZ #22086]
28277 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28278 comparing word with byte-swapped constant.
28279
28280 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28281
28282 [BZ #20498]
28283 * locale/iso-639.def: add Miskito.
28284 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28285 * localedata/locales/miq_NI: New file.
28286
28287 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28288
28289 [BZ #18822]
28290 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28291 (__mkdir): Likewise.
28292 * io/chmod.c (__chmod): Add libc_hidden_def.
28293 * io/mkdir.c (__mkdir): Likewise.
28294 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28295 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28296 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28297 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28298
28299 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28300
28301 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28302 version to 4.13.
28303
28304 [BZ #22082]
28305 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28306 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28307
28308 2017-09-04 Florian Weimer <fweimer@redhat.com>
28309
28310 * math/math.h: Issue warning if log is defined.
28311
28312 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28313
28314 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28315 kernel version to 4.13.
28316
28317 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28318
28319 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28320 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28321 parameter.
28322 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28323 just <bits/types.h>.
28324 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28325 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28326 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28327 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28328 * misc/preadv2.c: Include <errno.h>.
28329 * misc/preadv64v2.c: Include <errno.h>.
28330 * misc/pwritev2.c: Include <errno.h>.
28331 * misc/pwritev64v2.c: Include <errno.h>.
28332 * sysdeps/posix/preadv2.c: Include <errno.h>.
28333 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28334 Fix <unistd.h> inclusion.
28335 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28336 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28337 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28338 __strtoul_internal): New functions.
28339 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28340 * sysdeps/posix/system.c: Include <sigsetops.h>.
28341 * sysdeps/mach/hurd/i386/Makefile
28342 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28343 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28344 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28345 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
28346 __feraiseexcept_renamed to feraiseexcept instead of
28347 __GI_feraiseexcept.
28348 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
28349 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
28350 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
28351 RWF_NOWAIT): Define to 0 if undefined already.
28352 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
28353 boils down to 0.
28354 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28355 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28356
28357 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28358
28359 * manual/math.texi (pow10): Do not document.
28360 (pow10f): Likewise.
28361 (pow10l): Likewise.
28362 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28363 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28364 * math/libm-test-exp10.inc (pow10_test): Remove.
28365 (do_test): Do not call pow10.
28366 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28367 [NO_LONG_DOUBLE] (pow10l): Likewise.
28368 * math/w_exp10f_compat.c (pow10f): Likewise.
28369 * math/w_exp10l_compat.c (pow10l): Likewise.
28370 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
28371 (pow10): Make into compat symbol.
28372 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
28373 (pow10f): Make into compat symbol.
28374 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
28375 (pow10l): Make into compat symbol.
28376 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
28377 pow10.
28378 (CFLAGS-nldbl-pow10.c): Remove variable..
28379 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
28380 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
28381 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
28382 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
28383 Undefine and redefine.
28384 (pow10l): Make into compat symbol.
28385 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
28386 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
28387 * sysdeps/arm/libm-test-ulps: Likewise.
28388 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
28389 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
28390 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28391 * sysdeps/microblaze/libm-test-ulps: Likewise.
28392 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
28393 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28394 * sysdeps/nios2/libm-test-ulps: Likewise.
28395 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28396 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
28397 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
28398 * sysdeps/sh/libm-test-ulps: Likewise.
28399 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
28400 * sysdeps/tile/libm-test-ulps: Likewise.
28401 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28402
28403 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28404
28405 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
28406
28407 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28408
28409 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
28410 "../ChangeLog.old/ChangeLog.8".
28411 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
28412 "../ChangeLog.old/ChangeLog.14".
28413
28414 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28415
28416 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
28417 Threads Library.
28418
28419 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28420
28421 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
28422
28423 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28424
28425 * csu/version.c (banner): Remove "by Roland McGrath et al.".
28426 * nptl/Banner: Remove "by Ulrich Drepper et al.".
28427
28428 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28429
28430 * stdlib/tst-atexit-common.c (do_test): Test support for at least
28431 32 atexit handlers.
28432
28433 2017-09-01 Zack Weinberg <zackw@panix.com>
28434
28435 * math/math.h (HUGE_VAL): Improve commentary.
28436
28437 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28438 Andreas Schwab <schwab@suse.de>
28439
28440 [BZ #21530]
28441 * include/stdio.h (__gen_tempfd): New function.
28442 * stdio-common/Makefile (routines): Add gentempfd.
28443 * stdio-common/gentempfd.c: New file.
28444 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
28445 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
28446 unnamed file first.
28447
28448 2017-09-01 Florian Weimer <fweimer@redhat.com>
28449
28450 [BZ #21915]
28451 [BZ #21922]
28452 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
28453 result to determine success or failure, not the errno value.
28454 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
28455 (tst-nss-files-hosts-erange): Link with -ldl.
28456 * nss/tst-nss-files-hosts-erange.c: New file.
28457 * nss/tst-resolv-basic.c (response): Handle nodata.example.
28458 (do_test): Add NO_DATA tests.
28459 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
28460 (do_test): Call it.
28461
28462 2017-09-01 Florian Weimer <fweimer@redhat.com>
28463
28464 [BZ #21922]
28465 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
28466 coming from gethostbyname2_r.
28467
28468 2017-09-01 Florian Weimer <fweimer@redhat.com>
28469
28470 * support/namespace.h (struct support_chroot_configuration): Add
28471 hosts, host_conf.
28472 (struct support_chroot): Add path_hosts, path_host_conf.
28473 * support/support_chroot.c (write_file): New function.
28474 (support_chroot_create): Call it to process /etc/resolv.conf,
28475 /etc/hosts, /etc/host.conf.
28476 (support_chroot_free): Update.
28477
28478 2017-09-01 Florian Weimer <fweimer@redhat.com>
28479
28480 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
28481 status indicates it is set.
28482
28483 2017-09-01 Florian Weimer <fweimer@redhat.com>
28484
28485 [BZ #20532]
28486 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
28487 function lookup failures more reliable.
28488
28489 2017-09-01 Florian Weimer <fweimer@redhat.com>
28490
28491 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
28492 (getcanonname): Likewise.
28493 (gaih_inet): Likewise.
28494
28495 2017-09-01 Florian Weimer <fweimer@redhat.com>
28496
28497 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
28498 (getcanonname): Likewise.
28499 (gaih_inet): Likewise.
28500
28501 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28502 Richard Henderson <rth@twiddle.net>
28503
28504 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
28505 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
28506 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
28507 (IREG_SIZE, OREG_SIZE): New macros.
28508 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
28509 (IREG_SIZE, OREG_SIZE): New macros.
28510 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
28511 (IREG_SIZE): New macro.
28512 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
28513 (IREG_SIZE): New macro.
28514 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
28515 New includes.
28516 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
28517 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28518 (__CONCATX): Handle exceptions correctly on large values that may
28519 set FE_INVALID.
28520 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
28521 Initialize if not already set.
28522 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28523
28524 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28525
28526 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
28527 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
28528 Likewise.
28529 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
28530 Likewise.
28531 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
28532 Likewise.
28533 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
28534 Likewise.
28535 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
28536 Likewise.
28537 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
28538 Likewise.
28539 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
28540 Likewise.
28541 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
28542 (NO_CANCELLATION): Likewise.
28543 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
28544 Likewise.
28545 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
28546 Likewise.
28547 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
28548 Likewise.
28549 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
28550 (NO_CANCELLATION): Likewise.
28551 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
28552 (NO_CANCELLATION): Likewise.
28553 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
28554 Likewise
28555 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
28556 Likewise.
28557 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
28558 Likewise.
28559 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
28560 Likewise.
28561 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
28562 hidden prototype.
28563 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
28564 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
28565
28566 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28567
28568 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
28569 in resolver call.
28570
28571 2017-08-31 Florian Weimer <fweimer@redhat.com>
28572
28573 * include/libc-symbols.h (internal_function): Remove.
28574
28575 2017-08-31 Florian Weimer <fweimer@redhat.com>
28576
28577 * stdlib/fmtmsg.c (internal_addseverity): Remove
28578 internal_function.
28579
28580 2017-08-31 Florian Weimer <fweimer@redhat.com>
28581
28582 * stdio-common/printf_fp.c (group_number): Remove
28583 internal_function.
28584 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
28585
28586 2017-08-31 Florian Weimer <fweimer@redhat.com>
28587
28588 * posix/fnmatch.c (internal_function): Remove definition.
28589 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
28590 * posix/regcomp.c (peek_token, init_word_char)
28591 (duplicate_node_closure, fetch_token, peek_token)
28592 (peek_token_bracket, build_range_exp, build_collating_symbol):
28593 Likewise.
28594 * posix/regex_internal.c (re_string_construct_common)
28595 (create_ci_newstate, create_cd_newstate, re_string_allocate)
28596 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
28597 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
28598 (re_string_translate_buffer, re_string_reconstruct)
28599 (re_string_peek_byte_case, re_string_fetch_byte_case)
28600 (re_string_destruct, re_string_context_at, re_node_set_alloc)
28601 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
28602 (re_node_set_add_intersect, re_node_set_init_union)
28603 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
28604 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
28605 (re_dfa_add_node, calc_state_hash, re_acquire_state)
28606 (re_acquire_state_context): Likewise.
28607 * posix/regex_internal.h (internal_function): Remove definition.
28608 (re_string_realloc_buffers, build_wcs_buffer)
28609 (build_wcs_upper_buffer, build_upper_buffer)
28610 (re_string_translate_buffer, re_string_context_at)
28611 (re_string_char_size_at, re_string_wchar_at)
28612 (re_string_elem_size_at): Likewise.
28613 * posix/regexec.c (match_ctx_init, match_ctx_clean)
28614 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
28615 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
28616 (re_search_internal, re_search_2_stub, re_search_stub)
28617 (re_copy_regs, prune_impossible_nodes, check_matching)
28618 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
28619 (free_fail_stack_return, sift_states_iter_mb)
28620 (sift_states_backward, build_sifted_states)
28621 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
28622 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
28623 (check_subexp_limits, sift_states_bkref, merge_state_array)
28624 (find_recover_state, transit_state, merge_state_with_log)
28625 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
28626 (transit_state_mb, transit_state_bkref, get_subexp)
28627 (get_subexp_sub, find_subexp_node, check_arrival)
28628 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
28629 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
28630 (check_node_accept_bytes, find_collation_sequence_value)
28631 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
28632 (acquire_init_state_context, check_halt_node_context)
28633 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
28634 (sub_epsilon_src_nodes): Likewise.
28635 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
28636 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
28637 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
28638 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
28639 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
28640 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
28641 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
28642 * sysdeps/posix/ttyname.c (getttyname): Likewise.
28643 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
28644 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
28645 (PREADV): Likewise.
28646 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
28647 (PREADV): Likewise.
28648 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
28649 (PWRITEV): Likewise.
28650 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
28651 (PWRITEV): Likewise.
28652 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
28653 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
28654
28655 2017-08-31 Florian Weimer <fweimer@redhat.com>
28656
28657 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
28658 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
28659 Remove internal_function.
28660 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
28661 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
28662 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
28663 (__deallocate_stack, __libc_pthread_init)
28664 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
28665 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
28666 (__libc_disable_asynccancel, __librt_disable_asynccancel):
28667 Likewise.
28668 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
28669 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
28670 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
28671 Likewise.
28672 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
28673 (__pthread_mutex_unlock_usercnt): Likewise.
28674
28675 2017-08-31 Florian Weimer <fweimer@redhat.com>
28676
28677 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
28678 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
28679 (fts_safe_changedir): Remove internal_function.
28680 * io/ftw.c (internal_function): Remove definition.
28681 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
28682
28683 2017-08-31 Florian Weimer <fweimer@redhat.com>
28684
28685 * inet/deadline.c (__deadline_current_time)
28686 (__deadline_from_timeval, __deadline_to_ms): Remove
28687 internal_function.
28688 * inet/getnameinfo.c (nrl_domainname): Likewise.
28689 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
28690 * inet/inet6_option.c (add_pad): Likewise.
28691 * inet/net-internal.h (__deadline_current_time)
28692 (__deadline_from_timeval, __deadline_to_ms): Likewise.
28693 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
28694 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
28695 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
28696
28697 2017-08-31 Joseph Myers <joseph@codesourcery.com>
28698
28699 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
28700 include <bits/nan.h>.
28701 * math/Makefile (headers): Remove bits/nan.h.
28702 * bits/nan.h: Remove.
28703 * sysdeps/ieee754/bits/nan.h: Likewise.
28704 * sysdeps/mips/bits/nan.h: Likewise.
28705
28706 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
28707 not include <bits/inf.h>.
28708 * math/Makefile (headers): Remove bits/inf.h.
28709 * bits/inf.h: Remove.
28710 * sysdeps/ieee754/bits/inf.h: Likewise.
28711
28712 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
28713 bits/huge_vall.h or bits/huge_val_flt128.h.
28714 (HUGE_VAL): Define directly here.
28715 [__USE_ISOC99] (HUGE_VALF): Likewise.
28716 [__USE_ISOC99] (HUGE_VALL): Likewise.
28717 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28718 (HUGE_VAL_F128): Likewise.
28719 * math/Makefile (headers): Remove bits/huge_val.h,
28720 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
28721 * bits/huge_val.h: Remove.
28722 * bits/huge_val_flt128.h: Likewise.
28723 * bits/huge_valf.h: Likewise.
28724 * bits/huge_vall.h: Likewise.
28725 * sysdeps/ia64/bits/huge_vall.h: Likewise.
28726 * sysdeps/ieee754/bits/huge_val.h: Likewise.
28727 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
28728 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
28729 * sysdeps/sh/bits/huge_val.h: Likewise.
28730 * sysdeps/sparc/bits/huge_vall.h: Likewise.
28731 * sysdeps/x86/bits/huge_vall.h: Likewise.
28732
28733 2017-08-31 Florian Weimer <fweimer@redhat.com>
28734
28735 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
28736 internal_function.
28737 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
28738 Likewise.
28739 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
28740 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
28741 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
28742 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
28743 * elf/dl-fini.c (_dl_sort_fini): Likewise.
28744 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
28745 * elf/dl-libc.c (dlerror_run): Likewise.
28746 * elf/dl-load.c (add_name_to_object, decompose_rpath)
28747 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
28748 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
28749 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
28750 Likewise.
28751 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
28752 (_dl_higher_prime_number, _dl_strtoul): Likewise.
28753 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
28754 * elf/dl-profile.c (_dl_start_profile): Likewise.
28755 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
28756 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
28757 Likewise.
28758 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
28759 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
28760 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
28761 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
28762 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
28763 (_dl_allocate_tls_storage): Likewise.
28764 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
28765 (_dl_check_all_versions): Likewise.
28766 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
28767 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
28768 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
28769 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28770 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
28771 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
28772 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
28773 internal_function from __dl_start.
28774 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
28775 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
28776 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
28777 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
28778 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
28779 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
28780 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
28781 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
28782 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
28783 (_dl_next_ld_env_entry, _dl_important_hwcaps)
28784 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
28785 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
28786 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
28787 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
28788 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
28789 Likewise.
28790 (struct rtld_global_ro): Remove internal_function from the
28791 _dl_lookup_symbol_x member.
28792 (_dl_symbol_value): Remove. No longer defined anywhere.
28793 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
28794 internal_function.
28795 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28796 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28797 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
28798 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
28799 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
28800 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
28801 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
28802 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
28803 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
28804 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
28805 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28806 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28807
28808 2017-08-31 Florian Weimer <fweimer@redhat.com>
28809
28810 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
28811 Remove internal_function.
28812 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28813 Likewise.
28814 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28815 Likewise.
28816
28817 2017-08-31 Florian Weimer <fweimer@redhat.com>
28818
28819 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
28820 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
28821 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
28822
28823 2017-08-31 Florian Weimer <fweimer@redhat.com>
28824
28825 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
28826 (__gai_enqueue_request): Remove internal_function.
28827 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
28828 (__gai_remove_request, __gai_notify, __gai_notify_only)
28829 (__gai_sigqueue): Likewise.
28830 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
28831 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
28832 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
28833 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
28834 Likewise.
28835
28836 2017-08-31 Florian Weimer <fweimer@redhat.com>
28837
28838 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
28839 * include/dirent.h (__opendirat, __getdents, __getdents64)
28840 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
28841 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
28842 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
28843 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28844 Likewise.
28845 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
28846
28847 2017-08-31 Florian Weimer <fweimer@redhat.com>
28848
28849 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
28850 internal_function.
28851 (GETCWD_RETURN_TYPE): Likewise.
28852
28853 2017-08-31 Florian Weimer <fweimer@redhat.com>
28854
28855 * include/time.h (__tz_compute, __strptime_internal): Remove
28856 internal_function.
28857 * time/strptime_l.c (__strptime_internal): Likewise.
28858 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
28859
28860 2017-08-31 Florian Weimer <fweimer@redhat.com>
28861
28862 * iconv/gconv.c (__gconv): Remove internal_function.
28863 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
28864 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
28865 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
28866 (__gconv_release_cache): Likewise.
28867 * iconv/gconv_close.c (__gconv_close): Likewise.
28868 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
28869 (read_conf_file, __gconv_get_path): Likewise.
28870 * iconv/gconv_db.c (derivation_lookup, add_derivation)
28871 (__gconv_release_step, gen_steps, increment_counter)
28872 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
28873 (__gconv_close_transform, free_modules_db): Likewise.
28874 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
28875 Likewise.
28876 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
28877 (__gconv_find_transform, __gconv_lookup_cache)
28878 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
28879 (__gconv_close_transform, __gconv_release_cache)
28880 (__gconv_loaded_object, __gconv_release_shlib)
28881 (__gconv_compare_alias): Likewise.
28882 * iconv/gconv_open.c (__gconv_open): Likewise.
28883 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
28884 * iconv/iconvconfig.c (add_module): Likewise.
28885 * intl/dcigettext.c (plural_lookup, guess_category_value)
28886 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
28887 * intl/eval-plural.h (plural_eval): Likewise.
28888 * intl/finddomain.c (_nl_find_domain): Likewise.
28889 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
28890 (_nl_load_domain, _nl_find_msg): Likewise.
28891 (internal_function): Remove definition.
28892 * intl/loadinfo.h (internal_function): Likewise.
28893 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
28894 internal_function.
28895 * intl/localealias.c (internal_function): Remove definition.
28896 (read_alias_file): Remove internal_function.
28897 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
28898 * intl/plural-exp.h (internal_function): Remove definition.
28899 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
28900 internal_function.
28901 * intl/plural.c: Regenerate.
28902 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
28903 * locale/coll-lookup.c (__collidx_table_lookup)
28904 (__collseq_table_lookup): Likewise.
28905 * locale/coll-lookup.h (__collidx_table_lookup)
28906 (__collseq_table_lookup): Likewise.
28907 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
28908 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
28909 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
28910 (_nl_unload_locale): Likewise.
28911 * locale/localeinfo.h (struct __locale_data): Remove
28912 internal_function from cleanup member.
28913 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
28914 (_nl_remove_locale, _nl_load_locale_from_archive)
28915 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
28916 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
28917 (_nl_cleanup_time): Remove internal_function.
28918 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
28919 (_nl_parse_alt_digit): Likewise.
28920 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
28921 (_nl_select_era_entry): Likewise.
28922 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
28923 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28924 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28925 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28926 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28927
28928 2017-08-31 Florian Weimer <fweimer@redhat.com>
28929
28930 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
28931 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28932 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
28933 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
28934 Likewise.
28935 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
28936 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
28937 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
28938 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
28939 Likewise.
28940 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
28941
28942 2017-08-31 Florian Weimer <fweimer@redhat.com>
28943
28944 * misc/getttyent.c (skip, value): Remove internal_function.
28945 * misc/syslog.c (openlog_internal): Likewise.
28946 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
28947
28948 2017-08-31 Florian Weimer <fweimer@redhat.com>
28949
28950 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
28951 (__nss_rewrite_field): Remove internal_function.
28952 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
28953 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
28954 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
28955 * nss/nsswitch.c (nss_parse_file, nss_getline)
28956 (nss_parse_service_list, nss_new_service): Likewise.
28957 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
28958 * nss/valid_field.c (__nss_valid_field): Likewise.
28959 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
28960
28961 2017-08-31 Florian Weimer <fweimer@redhat.com>
28962
28963 * malloc/arena.c (__malloc_fork_lock_parent)
28964 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
28965 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
28966 internal_function from defintions.
28967 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
28968 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
28969 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
28970 internal_function from declarations.
28971 * malloc/malloc.c (internal_function): Do not define.
28972 (mem2mem_check): Remove internal_function from declaration.
28973 (munmap_chunk, mremap_chunk): Remove internal_function.
28974 * malloc/mtrace.c (tr_where): Likewise.
28975
28976 2017-08-31 Florian Weimer <fweimer@redhat.com>
28977
28978 * include/rpc/pmap_clnt.h (__get_socket): Remove
28979 internal_function.
28980 * sunrpc/auth_des.c (synchronize): Likewise.
28981 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
28982 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
28983 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
28984 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
28985 (key_call): Likewise.
28986 * sunrpc/pm_getport.c (__get_socket): Likewise.
28987 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
28988 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
28989 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
28990 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
28991 (invalidate): Likewise.
28992 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
28993 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
28994 (set_input_fragment, get_input_bytes): Likewise.
28995
28996 2017-08-31 Florian Weimer <fweimer@redhat.com>
28997
28998 * malloc/malloc.c (_int_free): Remove locked variable and related
28999 asserts.
29000
29001 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
29002
29003 [BZ #22051]
29004 * Makerules (build-module-helper-objlist): Filter out
29005 $(elf-objpfx)sofini.os.
29006 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29007 needed.
29008
29009 2017-08-31 Florian Weimer <fweimer@redhat.com>
29010
29011 * libio/fcloseall.c: Assume weak_alias is defined.
29012 * libio/feof.c: Likewise.
29013 * libio/fileno.c: Likewise.
29014 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
29015 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29016 definitions.
29017 (_IO_file_open): Call __open directly.
29018 (_IO_new_file_sync): Assume ESPIPE is defined.
29019 (_IO_file_seekoff_maybe_mmap): Call __read directly.
29020 (_IO_new_file_write): Call __write directly.
29021 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
29022 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29023 * libio/genops.c: Assume _LIBC is defined.
29024 (save_for_backup): Remove internal_function.
29025 * libio/getc.c: Assume weak_alias is defined.
29026 * libio/getwc.c: Likewise.
29027 * libio/iofclose.c: Assume _LIBC is defined.
29028 * libio/iofdopen.c: Likewise.
29029 (_IO_fcntl): Remove macro definition.
29030 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29031 Call __fcntl directly.
29032 * libio/iofflush.c: Assume weak_alias is defined.
29033 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29034 defined.
29035 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29036 * libio/iofgets.c: Likewise.
29037 * libio/iofopen.c: Assume _LIBC is defined.
29038 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29039 * libio/iofputs.c: Assume weak_alias is defined.
29040 * libio/iofread.c: Likewise.
29041 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29042 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29043 * libio/ioftell.c: Assume weak_alias is defined.
29044 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29045 * libio/iofwide.c: Assume _LIBC is defined.
29046 (_IO_fwide): Drop SHARED conditional because it is implied by
29047 SHLIB_COMPAT.
29048 * libio/iofwrite.c: Assume weak_alias is defined.
29049 * libio/iogetdelim.c: Likewise.
29050 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29051 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29052 (_IO_getwline): Call __wmemcpy directly.
29053 * libio/iopopen.c: Assume _LIBC is defined.
29054 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29055 (_IO_close): Remove macro definitions.
29056 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29057 _exit directly.
29058 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29059 directly.
29060 * libio/ioputs.c: Assume weak_alias is defined.
29061 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29062 * libio/iosetbuffer.c: Assume weak_alias is defined.
29063 * libio/iosetvbuf.c: Likewise.
29064 * libio/ioungetc.c: Likewise.
29065 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29066 libc_hidden_def, libc_hidden_weak, NULL are defined.
29067 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29068 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29069 defined.
29070 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29071 definitions.
29072 (_IO_old_file_init_internal): Drop SHARED conditional because it
29073 is implied by SHLIB_COMPAT.
29074 (_IO_old_file_fopen): Call __open directly.
29075 (_IO_old_file_sync): Assume ESPIPE is defined.
29076 (_IO_old_file_write): Call __write directly.
29077 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29078 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29079 Call __fcntl directly.
29080 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29081 (_IO_old_fgetpos): Assume EIO is defined.
29082 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29083 (_IO_old_fgetpos64): Assume EIO is defined.
29084 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29085 (_IO_old_fsetpos): Assume EIO is defined.
29086 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29087 (_IO_old_fsetpos64): Assume EIO is defined.
29088 * libio/oldiopopen.c: Assume _LIBC is defined.
29089 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29090 (_IO_close): Remove macro definitions.
29091 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29092 directly.
29093 (_IO_old_proc_close): Call __close, __waitpid directly.
29094 * libio/put.c: Assume weak_alias is defined.
29095 * libio/stdfiles.c: Assume _LIBC is defined.
29096 * libio/stdio.c: Likewise.
29097 * libio/wfileops.c: Likewise.
29098 (_IO_wfile_sync): Assume ESPIPE is defined.
29099 * libio/wgenops.c: Assume _LIBC is defined.
29100 (save_for_wbackup): Remove internal_function.
29101
29102 2017-08-31 Florian Weimer <fweimer@redhat.com>
29103
29104 * malloc/malloc.c (top_check): Change return type to void. Remove
29105 internal_function.
29106 * malloc/hooks.c (top_check): Likewise.
29107 (malloc_check, realloc_check, memalign_check): Adjust.
29108
29109 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29110
29111 [BZ #21457]
29112 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29113 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29114 sigcontext and namespace requirements.
29115 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29116 * sysdeps/m68k/sys/ucontext.h: Likewise.
29117 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29118 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29119 <bits/sigcontext.h>.
29120 (__ctx): Define earlier.
29121 (mcontext_t): Define structure contents rather than using struct
29122 sigcontext.
29123 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29124 __glibc_reserved1 instead of __reserved.
29125 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29126 <bits/sigcontext.h>.
29127 (__ctx): Define earlier.
29128 (mcontext_t): Define structure contents rather than using struct
29129 sigcontext.
29130 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29131 mcontext_t instead of struct sigcontext.
29132 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29133 <bits/sigcontext.h>.
29134 (__ctx): Define earlier.
29135 (mcontext_t): Define structure contents rather than using struct
29136 sigcontext.
29137 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29138 <bits/sigcontext.h>.
29139 (__ctx): Define earlier.
29140 (mcontext_t): Define structure contents rather than using struct
29141 sigcontext.
29142 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29143 mcontext_t instead of struct sigcontext.
29144 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29145 mcontext_t instead of struct sigcontext.
29146 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29147 <bits/sigcontext.h>.
29148 (__ctx): New macro.
29149 (struct __ia64_fpreg_mcontext): New type.
29150 (mcontext_t): Define structure contents rather than using struct
29151 sigcontext.
29152 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29153 (uc_sigmask): Define using __ctx.
29154 (uc_stack): Likewise.
29155 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29156 <bits/sigcontext.h>.
29157 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29158 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29159 <bits/sigcontext.h>.
29160 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29161 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29162 <bits/sigcontext.h>.
29163 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29164 <bits/sigcontext.h>.
29165 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29166 <bits/sigcontext.h>.
29167 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29168 <bits/sigcontext.h>.
29169 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29170 <bits/sigcontext.h>.
29171 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29172 <bits/sigcontext.h>.
29173 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29174 <bits/sigcontext.h>.
29175 (__ctx): Define earlier.
29176 (mcontext_t): Define structure contents rather than using struct
29177 sigcontext.
29178 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29179 <bits/sigcontext.h>. Include <bits/types.h>.
29180 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29181 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29182 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29183 (test-xfail-UNIX98/signal.h/conform): Likewise.
29184 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29185 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29186 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29187 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29188 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29189 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29190 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29191 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29192 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29193
29194 2017-08-30 Florian Weimer <fweimer@redhat.com>
29195
29196 * malloc/dynarray_emplace_enlarge.c
29197 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29198 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29199 * malloc/tst-dynarray.c (test_long_overflow): New function.
29200 (do_test): Call it.
29201
29202 2017-08-30 Florian Weimer <fweimer@redhat.com>
29203
29204 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29205 (set_arena_corrupt): Remove definitions.
29206 (mtrim): Do not check for corrupt arena.
29207 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29208 Likewise.
29209
29210 2017-08-30 Florian Weimer <fweimer@redhat.com>
29211
29212 [BZ #21754]
29213 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29214 check_action.
29215 (ptmalloc_init): Do not set or use check_action.
29216 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29217 call to malloc_printerr. Remove return statement.
29218 (free_check): Likewise. Remove arena unlock.
29219 (top_check): Update comment. Adjust call to malloc_printerr.
29220 Remove heap repair code.
29221 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29222 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29223 (sysmalloc): Adjust call to malloc_printerr.
29224 (munmap_chunk, __libc_realloc): Likewise. Remove return
29225 statement.
29226 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29227 Remove errout label and corresponding gotos.
29228 (_int_free): Likewise. Remove arena unlock.
29229 (do_set_mallopt_check): Do not set check_action.
29230 (malloc_printerr): Adjust parameter list. Do not mark arena as
29231 corrupt.
29232 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29233 comment.
29234 * manual/probes.texi (Memory Allocation Probes): Remove
29235 memory_mallopt_check_action.
29236
29237 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29238
29239 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29240 Use pointer to uint64_t instead of long int for sp.
29241
29242 2017-08-30 Florian Weimer <fweimer@redhat.com>
29243
29244 [BZ #21754]
29245 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29246 without printing a backtrace. Do not leak any information in the
29247 error message.
29248 * manual/memory.texi (Heap Consistency Checking): Update.
29249 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29250
29251 2017-08-30 Florian Weimer <fweimer@redhat.com>
29252
29253 Do not scale NPTL tests with available number of CPUs.
29254 * nptl/tst-cond16.c (count): Set to constant value of 8.
29255 * nptl/tst-cond18.c (count): Likewise.
29256
29257 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29258
29259 [BZ #22035]
29260 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29261 Define to take a second argument that is a macro that
29262 concatentates a suffix, not the suffix itself.
29263 (__CONCAT_d): New macro.
29264 (__CONCAT_f): Likewise.
29265 (__CONCAT_l): Likewise.
29266
29267 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29268
29269 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29270 by child.
29271
29272 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29273 Aurelien Jarno <aurelien@aurel32.net>
29274 Maciej W. Rozycki <macro@imgtec.com>
29275
29276 [BZ #21956]
29277 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29278 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29279 `mips16-syscall6' and `mips16-syscall7'.
29280 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29281 (CFLAGS-mips16-syscall7.c): Remove.
29282 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29283 Remove `__mips16_syscall5', `__mips16_syscall6' and
29284 `__mips16_syscall7'.
29285 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29286 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29287 `__mips_syscall_return'.
29288 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29289 (__mips16_syscall1): Likewise.
29290 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29291 (__mips16_syscall2): Likewise.
29292 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29293 (__mips16_syscall3): Likewise.
29294 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29295 (__mips16_syscall4): Likewise.
29296 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29297 Remove.
29298 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29299 Remove.
29300 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29301 Remove.
29302 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29303 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29304 `__mips16_syscall5'. Remove prototype.
29305 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29306 `__mips16_syscall6'. Remove prototype.
29307 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29308 `__mips16_syscall7'. Remove prototype.
29309 (__nomips16, __mips16_syscall_return): Move to...
29310 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29311 (__nomips16, __mips_syscall_return): ... here.
29312 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29313 `__mips16_syscall_return' to `__mips_syscall_return'.
29314 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29315 `internal_syscall##nr'.
29316 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29317 `internal_syscall##nr'.
29318 (FORCE_FRAME_POINTER): Remove.
29319 (__mips_syscall5): New prototype.
29320 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29321 (__mips_syscall6): New prototype.
29322 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29323 (__mips_syscall7): New prototype.
29324 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29325 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29326 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29327 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29328 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29329 (sysdep_routines): Add libc-do-syscall.
29330 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29331 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29332
29333 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29334
29335 [BZ #21672]
29336 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29337 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29338 (advise_stack_range): New function.
29339 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29340 stack non required to advise_stack_range at allocatestack.c
29341
29342 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29343
29344 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29345
29346 2017-08-29 Florian Weimer <fweimer@redhat.com>
29347
29348 [BZ #22026]
29349 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
29350 __end_fct. Mangle __end_fct after setting it to NULL.
29351 * iconv/Makefile (tests): Add tst-gconv-init-failure.
29352 (modules-names, modules-names-tests): Add
29353 tst-gconv-init-failure-mod.
29354 (gconv-modules): New target.
29355 (tst-gconv-init-failure-mod.so): Link against libsupport.
29356 (tst-gconv-init-failure): Depend on gconv-modules,
29357 tst-gconv-init-failure-mod.so.
29358 * iconv/tst-gconv-init-failure-mod.c: New file.
29359 * iconv/tst-gconv-init-failure.c: Likewise.
29360 * iconv/test-gconv-modules: Likewise.
29361
29362 2017-08-29 Florian Weimer <fweimer@redhat.com>
29363
29364 [BZ #22025]
29365 * iconv/gconv_db.c (free_derivation): Remove redundant
29366 parentheses.
29367 (gen_steps): Unconditionally mangle __btowc_fct after
29368 initialization.
29369 (increment_counter): Likewise. Do not call init_fct for internal
29370 modules.
29371
29372 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29373
29374 [BZ #22028]
29375 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29376 (_MSUF_): Remove macro.
29377 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
29378 Likewise.
29379 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29380 (__REDIRFROM_X): New macro.
29381 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
29382 Likewise.
29383 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
29384 (__REDIRTO_X): Likewise.
29385 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
29386 arguments.
29387 (__MATH_REDIRCALL_2): Likewise.
29388 (__MATH_REDIRCALL_INTERNAL): Likewise.
29389 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29390 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
29391 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
29392 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29393 * math/test-finite-macros.c: New file.
29394 * math/Makefile (tests): Add test-finite-macros.
29395 (CFLAGS-test-finite-macros.c): New variable.
29396
29397 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
29398 Jeff Law <law@redhat.com>
29399
29400 [BZ #22025]
29401 Mangle NULL pointers in iconv/gconv.
29402 * iconv/gconv_cache.c (find_module): Demangle init_fct before
29403 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
29404 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
29405 is non-NULL before demangling the end_fct. Check for NULL
29406 end_fct after demangling.
29407 (__gconv_release_step): Demangle the end_fct before checking
29408 it for NULL. Remove assert on __shlibc_handle != NULL.
29409 (gen_steps): Don't check btowc_fct for NULL before mangling.
29410 Demangle init_fct before checking for NULL.
29411 (increment_counter): Likewise.
29412 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
29413 end_fct for NULL before mangling.
29414 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
29415 for NULL.
29416
29417 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
29418
29419 [BZ #21971]
29420 * locale/iso-639.def: add Morisyen.
29421
29422 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29423
29424 [BZ #21930]
29425 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
29426 (iszero): New C++ implementation that does not use
29427 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
29428 signaling nans are enabled, since __builtin_types_compatible_p
29429 is a C-only feature.
29430 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
29431 defined, include ieee754_float128.h for access to the union and
29432 member ieee854_float128.ieee.
29433 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
29434 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
29435 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29436 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
29437 options of test-math-zero on powerpc64le.
29438
29439 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
29440
29441 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29442 Change double to float.
29443
29444 2017-08-28 Joseph Myers <joseph@codesourcery.com>
29445
29446 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
29447 unconditional.
29448 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
29449 conditional code; define contents only for [LIBM_SVID_COMPAT].
29450
29451 2017-08-28 Florian Weimer <fweimer@redhat.com>
29452
29453 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
29454 (abi-lp64_be-options): Remove.
29455 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
29456 (abi-hard-options): Likewise.
29457 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
29458 (abi-o32_hard-options, abi-o32_soft_2008-options)
29459 (abi-o32_hard_2008-options, abi-n32_soft-options)
29460 (abi-n32_hard-options, abi-n32_soft_2008-options)
29461 (abi-n32_hard_2008-options, abi-n64_soft-options)
29462 (abi-n64_hard-options, abi-n64_soft_2008-options)
29463 (abi-n64_hard_2008-options): Likewise.
29464 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
29465 (abi-64-v1-options, abi-64-v2-options): Likewise.
29466 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
29467 (abi-64-options): Likewise.
29468 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
29469 (abi-64-options): Likewise.
29470 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
29471 (abi-64-options): Likewise.
29472 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
29473 (abi-64-options, abi-x32-options): Likewise.
29474
29475 2017-08-28 Florian Weimer <fweimer@redhat.com>
29476
29477 Store supported list of SYS_* system calls in the source tree.
29478 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
29479 (bits/syscall.h): Generate from list file.
29480 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
29481 [$(subdir) = misc] (tests): Add tst-syscall-list.
29482 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
29483 [$(subdir) = misc] (tst-syscall-list-macros.list)
29484 [$(subdir) = misc] (tst-syscall-list-nr.list)
29485 (tst-syscall-list-sys.list): Helper targets for new
29486 tst-syscall-list test.
29487 [$(subdir) = misc] (tst-syscall-list.out): Run test script
29488 tst-syscall-list.sh.
29489 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
29490 target. Do not include bits/syscall.d.
29491 [$(subdir) = misc] (generated): Do not update.
29492 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
29493 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
29494 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
29495 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
29496
29497 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
29498
29499 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
29500 (tst-cxa_atexit, tst-on_exit): Likewise.
29501 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
29502 tst-cxa_atexit, and tst-on_exit.
29503 * stdlib/tst-atexit-common.c: New file.
29504 * stdlib/tst-atexit.c: New file.
29505 * stdlib/tst-at_quick_exit.c: New file.
29506 * stdlib/tst-cxa_atexit.c: New file.
29507 * stdlib/tst-on_exit.c: New file.
29508
29509 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29510
29511 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
29512 * mach/stack_chk_fail_local.c: New file.
29513 * hurd/stack_chk_fail_local.c: New file.
29514 * mach/Machrules ($(interface-library)-routines): Add
29515 stack_chk_fail_local.
29516 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
29517 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
29518 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
29519 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
29520 * hurd/Makefile (CFLAGS-hurdstartup.o,
29521 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
29522
29523 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
29524
29525 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
29526 (index_cpu_*, index_arch_*): Removed.
29527
29528 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29529
29530 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
29531 Use uint64_t instead of unsigned long.
29532
29533 2017-08-25 Joseph Myers <joseph@codesourcery.com>
29534
29535 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
29536 [__HAVE_DISTINCT_FLOAT128].
29537
29538 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
29539 of <bits/math-finite.h>.
29540 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
29541 inclusion of <bits/math-finite.h>.
29542 * math/bits/math-finite.h (__REDIRTO_X): Do not define
29543 conditionally on [__MATH_DECLARING_LDOUBLE && defined
29544 __NO_LONG_DOUBLE_MATH].
29545 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
29546 (__MATH_REDIRCALL_2): Likewise.
29547 (__MATH_REDIRCALL_INTERNAL): Likewise.
29548 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29549 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
29550 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29551
29552 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
29553 Remove file.
29554 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
29555 Likewise.
29556 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
29557 Likewise.
29558 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
29559 Likewise.
29560 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
29561 Likewise.
29562 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
29563 Likewise.
29564 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
29565 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
29566 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
29567 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
29568 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
29569 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
29570 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
29571 w_sqrtf_compat-ppc32.
29572
29573 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29574
29575 * math/math.h [defined __cplusplus] (issignaling): In the long
29576 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
29577 is not defined. Call __issignaling, otherwise.
29578
29579 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29580
29581 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
29582 syscall definitions and replace __builtin_expect with __glibc_likely.
29583 * sysdeps/unix/syscall-template.S: Update comment about cancellable
29584 syscall.
29585 (SYSCALL_CANCELLABLE): Removedefinition
29586 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
29587 definition.
29588 (PSEUDO_END): Likewise.
29589 [IS_IN (libpthread)] (CENABLE): Likewise.
29590 [IS_IN (libpthread)] (CDISABLE): Likewise.
29591 [IS_IN (libc)] (CENABLE): Likewise.
29592 [IS_IN (libc)] (CENABLE): Likewise.
29593 [IS_IN (librt)] (CDISABLE): Likewise.
29594 [IS_IN (librt)] (CDISABLE): Likewise.
29595 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29596 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
29597 definition.
29598 (PSEUDO_END): Likewise.
29599 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
29600 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
29601 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29602 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29603 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29604 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29605 (CENABLE): Likewise.
29606 (CDISABLE): Likewise.
29607 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29608 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
29609 defintion.
29610 (PSEUDO_END): Likewise.
29611 [IS_IN (libpthread)] (CENABLE): Likewise.
29612 [IS_IN (libpthread)] (CDISABLE): Likewise.
29613 [IS_IN (libc)] (CENABLE): Likewise.
29614 [IS_IN (libc)] (CENABLE): Likewise.
29615 [IS_IN (librt)] (CDISABLE): Likewise.
29616 [IS_IN (librt)] (CDISABLE): Likewise.
29617 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29618 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
29619 definition.
29620 (PSEUDO_END): Likewise.
29621 [IS_IN (libpthread)] (CENABLE): Likewise.
29622 [IS_IN (libpthread)] (CDISABLE): Likewise.
29623 [IS_IN (libc)] (CENABLE): Likewise.
29624 [IS_IN (libc)] (CENABLE): Likewise.
29625 [IS_IN (librt)] (CDISABLE): Likewise.
29626 [IS_IN (librt)] (CDISABLE): Likewise.
29627 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29628 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
29629 definition.
29630 (PSEUDO_END): Likewise.
29631 [IS_IN (libpthread)] (CENABLE): Likewise.
29632 [IS_IN (libpthread)] (CDISABLE): Likewise.
29633 [IS_IN (libc)] (CENABLE): Likewise.
29634 [IS_IN (libc)] (CENABLE): Likewise.
29635 [IS_IN (librt)] (CDISABLE): Likewise.
29636 [IS_IN (librt)] (CDISABLE): Likewise.
29637 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29638 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
29639 definition.
29640 (PSEUDO_END): Likewise.
29641 [IS_IN (libpthread)] (CENABLE): Likewise.
29642 [IS_IN (libpthread)] (CDISABLE): Likewise.
29643 [IS_IN (libc)] (CENABLE): Likewise.
29644 [IS_IN (libc)] (CENABLE): Likewise.
29645 [IS_IN (librt)] (CDISABLE): Likewise.
29646 [IS_IN (librt)] (CDISABLE): Likewise.
29647 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29648 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
29649 definition.
29650 (PSEUDO_END): Likewise.
29651 [IS_IN (libpthread)] (CENABLE): Likewise.
29652 [IS_IN (libpthread)] (CDISABLE): Likewise.
29653 [IS_IN (libc)] (CENABLE): Likewise.
29654 [IS_IN (libc)] (CENABLE): Likewise.
29655 [IS_IN (librt)] (CDISABLE): Likewise.
29656 [IS_IN (librt)] (CDISABLE): Likewise.
29657 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29658 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
29659 definition.
29660 (PSEUDO_END): Likewise.
29661 [IS_IN (libpthread)] (CENABLE): Likewise.
29662 [IS_IN (libpthread)] (CDISABLE): Likewise.
29663 [IS_IN (libc)] (CENABLE): Likewise.
29664 [IS_IN (libc)] (CENABLE): Likewise.
29665 [IS_IN (librt)] (CDISABLE): Likewise.
29666 [IS_IN (librt)] (CDISABLE): Likewise.
29667 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29668 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
29669 Remove definition.
29670 (PSEUDO_END): Likewise.
29671 [IS_IN (libpthread)] (CENABLE): Likewise.
29672 [IS_IN (libpthread)] (CDISABLE): Likewise.
29673 [IS_IN (libc)] (CENABLE): Likewise.
29674 [IS_IN (libc)] (CENABLE): Likewise.
29675 [IS_IN (librt)] (CDISABLE): Likewise.
29676 [IS_IN (librt)] (CDISABLE): Likewise.
29677 (SINGLE_THREAD_P): Likewise.
29678 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
29679 definition.
29680 (PSEUDO_END): Likewise.
29681 [IS_IN (libpthread)] (CENABLE): Likewise.
29682 [IS_IN (libpthread)] (CDISABLE): Likewise.
29683 [IS_IN (libc)] (CENABLE): Likewise.
29684 [IS_IN (libc)] (CENABLE): Likewise.
29685 [IS_IN (librt)] (CDISABLE): Likewise.
29686 [IS_IN (librt)] (CDISABLE): Likewise.
29687 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29688 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
29689 definition.
29690 (PSEUDO_END): Likewise.
29691 [IS_IN (libpthread)] (CENABLE): Likewise.
29692 [IS_IN (libpthread)] (CDISABLE): Likewise.
29693 [IS_IN (libc)] (CENABLE): Likewise.
29694 [IS_IN (libc)] (CENABLE): Likewise.
29695 [IS_IN (librt)] (CDISABLE): Likewise.
29696 [IS_IN (librt)] (CDISABLE): Likewise.
29697 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29698 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
29699 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
29700 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
29701 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
29702 definition.
29703 (PSEUDO_END): Likewise.
29704 [IS_IN (libpthread)] (CENABLE): Likewise.
29705 [IS_IN (libpthread)] (CDISABLE): Likewise.
29706 [IS_IN (libc)] (CENABLE): Likewise.
29707 [IS_IN (libc)] (CENABLE): Likewise.
29708 [IS_IN (librt)] (CDISABLE): Likewise.
29709 [IS_IN (librt)] (CDISABLE): Likewise.
29710 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29711 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
29712 definition.
29713 (PSEUDO_END): Likewise.
29714 [IS_IN (libpthread)] (CENABLE): Likewise.
29715 [IS_IN (libpthread)] (CDISABLE): Likewise.
29716 [IS_IN (libc)] (CENABLE): Likewise.
29717 [IS_IN (libc)] (CENABLE): Likewise.
29718 [IS_IN (librt)] (CDISABLE): Likewise.
29719 [IS_IN (librt)] (CDISABLE): Likewise.
29720 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29721 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
29722 definition.
29723 (PSEUDO_END): Likewise.
29724 [IS_IN (libpthread)] (CENABLE): Likewise.
29725 [IS_IN (libpthread)] (CDISABLE): Likewise.
29726 [IS_IN (libc)] (CENABLE): Likewise.
29727 [IS_IN (libc)] (CENABLE): Likewise.
29728 [IS_IN (librt)] (CDISABLE): Likewise.
29729 [IS_IN (librt)] (CDISABLE): Likewise.
29730 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29731 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
29732 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
29733 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
29734 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
29735 definition.
29736 (PSEUDO_END): Likewise.
29737 [IS_IN (libpthread)] (CENABLE): Likewise.
29738 [IS_IN (libpthread)] (CDISABLE): Likewise.
29739 [IS_IN (libc)] (CENABLE): Likewise.
29740 [IS_IN (libc)] (CENABLE): Likewise.
29741 [IS_IN (librt)] (CDISABLE): Likewise.
29742 [IS_IN (librt)] (CDISABLE): Likewise.
29743 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29744 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
29745 definition.
29746 (PSEUDO_END): Likewise.
29747 [IS_IN (libpthread)] (CENABLE): Likewise.
29748 [IS_IN (libpthread)] (CDISABLE): Likewise.
29749 [IS_IN (libc)] (CENABLE): Likewise.
29750 [IS_IN (libc)] (CENABLE): Likewise.
29751 [IS_IN (librt)] (CDISABLE): Likewise.
29752 [IS_IN (librt)] (CDISABLE): Likewise.
29753 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29754
29755 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
29756
29757 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
29758
29759 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29760
29761 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29762
29763 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29764
29765 [BZ #21982]
29766 * string/stratcliff.c (do_test): Declare size, nchars, inner,
29767 middle and outer with size_t instead of int. Repleace %d and
29768 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
29769 "MAX (outer, nchars - 64)" to support unsigned outer and
29770 nchars. Also exit loop when outer == 0.
29771
29772 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29773
29774 * include/fcntl.h (__fcntl_nocancel): Remove definition.
29775 * include/signal.h (__sigsuspend_nocancel): Likewise.
29776 * include/time.h (__nanosleep_nocancel): Likewise.
29777 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
29778 * login/utmp_file.c: Include non cancellable syscall header.
29779 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
29780 prototype.
29781
29782 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29783
29784 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
29785 .byte sequences with AVX512F instructions.
29786 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
29787 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
29788 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
29789 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
29790 Likewise.
29791 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29792 Likewise.
29793
29794 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
29795 Steve Ellcey <sellcey@cavium.com>
29796
29797 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
29798 Use PTR_REG macro in cmp instruction.
29799
29800 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29801
29802 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
29803 Change the return type of the ifunc resolver to match the return
29804 type of the target function.
29805
29806 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29807
29808 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
29809 (preadv64): Likewise.
29810 (pwrite64(: Likewise.
29811 (pwritev64): Likewise.
29812
29813 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
29814 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
29815 (LOAD_ARGS_0): Likewise.
29816 (LOAD_ARGS_1): Likewise.
29817 (LOAD_ARGS_2): Likewise.
29818 (LOAD_ARGS_3): Likewise.
29819 (LOAD_ARGS_4): Likewise.
29820 (LOAD_ARGS_5): Likewise.
29821 (LOAD_ARGS_6): Likewise.
29822 (LOAD_REGS_0): Likewise.
29823 (LOAD_REGS_1): Likewise.
29824 (LOAD_REGS_2): Likewise.
29825 (LOAD_REGS_3): Likewise.
29826 (LOAD_REGS_4): Likewise.
29827 (LOAD_REGS_5): Likewise.
29828 (LOAD_REGS_6): Likewise.
29829 (ASM_ARGS_0): Likewise.
29830 (ASM_ARGS_1): Likewise.
29831 (ASM_ARGS_2): Likewise.
29832 (ASM_ARGS_3): Likewise.
29833 (ASM_ARGS_4): Likewise.
29834 (ASM_ARGS_5): Likewise.
29835 (ASM_ARGS_6): Likewise.
29836 (LOAD_ARGS_TYPES_1): Likewise.
29837 (LOAD_ARGS_TYPES_2): Likewise.
29838 (LOAD_ARGS_TYPES_3): Likewise.
29839 (LOAD_ARGS_TYPES_4): Likewise.
29840 (LOAD_ARGS_TYPES_5): Likewise.
29841 (LOAD_ARGS_TYPES_6): Likewise.
29842 (LOAD_REGS_TYPES_1): Likewise.
29843 (LOAD_REGS_TYPES_2): Likewise.
29844 (LOAD_REGS_TYPES_3): Likewise.
29845 (LOAD_REGS_TYPES_4): Likewise.
29846 (LOAD_REGS_TYPES_5): Likewise.
29847 (LOAD_REGS_TYPES_6): Likewise.
29848 (TYPEFY): New define.
29849 (ARGIFY): Likewise.
29850 (internal_syscall0): Likewise.
29851 (internal_syscall1): Likewise.
29852 (internal_syscall2): Likewise.
29853 (internal_syscall3): Likewise.
29854 (internal_syscall4): Likewise.
29855 (internal_syscall5): Likewise.
29856 (internal_syscall6): Likewise.
29857 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
29858 (INTERNAL_SYSCALL_NCS): Remove define.
29859 (internal_syscall1): Add define.
29860
29861 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29862
29863 * math/w_remainder_compat.c: Remove duplicate inclusion of
29864 math-svid-compat.h.
29865 * math/w_remainderf_compat.c: Likewise.
29866 * math/w_remainderl_compat.c: Likewise.
29867
29868 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29869
29870 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29871
29872 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29873
29874 [BZ #21684]
29875 * math/tgmath.h (__floating_type): Simplify definitions.
29876 (__real_integer_type): New macro.
29877 (__complex_integer_type): Likewise.
29878 (__expr_is_real): Likewise.
29879 (__tgmath_real_type_sub): Update comment to describe handling of
29880 complex types.
29881 (__tgmath_complex_type_sub): New macro.
29882 (__tgmath_complex_type): Likewise.
29883 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29884 (__TGMATH_CF128): Use __expr_is_real.
29885 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
29886 __expr_is_real.
29887 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29888 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
29889 * math/gen-tgmath-tests.py (Type.create_type): Create complex
29890 integer types.
29891
29892 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29893
29894 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
29895 macro.
29896 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
29897 alias.
29898 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
29899 Likewise.
29900
29901 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
29902 nanosleep_not_cancel with __nanosleep_nocancel.
29903 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
29904 (__nanosleep_nocancel): New macro.
29905 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
29906 function.
29907 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
29908 macro.
29909 (__nanosleep_nocancel): New prototype.
29910
29911 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
29912 pause_not_cancel with __pause_nocancel.
29913 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
29914 (__pause_nocancel): New macro.
29915 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
29916 macro.
29917 (__pause_nocancel): New prototype.
29918 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
29919
29920 2017-08-22 Martin Sebor <msebor@redhat.com>
29921
29922 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
29923 to return a pointer to the same type as the target function.
29924
29925 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29926
29927 [BZ #18822]
29928 [BZ #21986]
29929 * include/printf.h (__printf_fphex): Add attribute_hidden.
29930 (__guess_grouping): New prototype.
29931 * stdio-common/printf_fp.c (__guess_grouping): Removed.
29932 * stdio-common/reg-printf.c (__register_printf_specifier): Add
29933 libc_hidden_proto and libc_hidden_def.
29934 * stdlib/strfmon_l.c (__guess_grouping): Removed.
29935 (__vstrfmon_l): Remove the third argument passed to
29936 __guess_grouping.
29937
29938 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29939
29940 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
29941 definition for issignaling that does not rely on __MATH_TG,
29942 since __MATH_TG uses __builtin_types_compatible_p, which is only
29943 available in C mode.
29944 (CFLAGS-test-math-issignaling.cc): New variable.
29945 * math/Makefile [CXX] (tests): Add test-math-issignaling.
29946 * math/test-math-issignaling.cc: New test for C++ implementation
29947 of type-generic issignaling.
29948 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29949 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
29950 options of test-math-issignaling on powerpc64le.
29951
29952 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29953
29954 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
29955 building libc.a.
29956 (hidden_proto): Likewise.
29957 (hidden_tls_proto): Likewise.
29958 (__hidden_proto): Likewise.
29959
29960 2017-08-22 Florian Weimer <fweimer@redhat.com>
29961
29962 math: Statically link tests of internal functionality.
29963 * math/Makefile (tests): Remove atest-exp, atest-sincos,
29964 atest-exp2.
29965 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
29966 (gmp-objs): Remove assignment.
29967 (atest-exp, atest-sincos, atest-exp2): Remove targets.
29968
29969 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29970
29971 [BZ #21987]
29972 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
29973 and copy to ...
29974 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
29975 ... here.
29976 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
29977 ... and here.
29978
29979 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
29980 variable definitions above inclusion of ../Rules.
29981
29982 2017-08-21 Joseph Myers <joseph@codesourcery.com>
29983
29984 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
29985 case calling __builtin_unreachable.
29986
29987 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29988
29989 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
29990 __waitpid_nocancel.
29991 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
29992 (__waitpid_nocancel): New macro.
29993 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
29994 macro.
29995 (__waitpid_nocancel): Replace macro with a function.
29996 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
29997 function.
29998
29999 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30000 __fcntl_nocancel.
30001 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30002 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30003
30004 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30005 __writev_nocancel_nostatus.
30006 (write_call_graph): Likewise.
30007 (write_bb_counts): Likewise.
30008 * resolv/herror.c (herror): Likewise.
30009 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30010 macro.
30011 (__writev_nocancel_nostatus): New macro.
30012 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30013 Remove macro.
30014 (__writev_nocancel_nostatus): New function.
30015
30016 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30017
30018 Revert:
30019 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30020
30021 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30022 building libc.a.
30023 (hidden_proto): Likewise.
30024 (hidden_tls_proto): Likewise.
30025 (__hidden_proto): Likewise.
30026
30027 [BZ #21973]
30028 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30029 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30030 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30031 Likewise.
30032 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30033 Likewise.
30034 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30035 Likewise.
30036 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30037 Likewise.
30038 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30039 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30040 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30041 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30042 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30043 GLIBC_2.0 sqrtl symbol.
30044
30045 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30046 [__USE_MISC] (_LIB_VERSION): Likewise.
30047 [__USE_MISC] (struct exception): Likewise.
30048 [__USE_MISC] (matherr): Likewise.
30049 [__USE_MISC] (DOMAIN): Likewise.
30050 [__USE_MISC] (SING): Likewise.
30051 [__USE_MISC] (OVERFLOW): Likewise.
30052 [__USE_MISC] (UNDERFLOW): Likewise.
30053 [__USE_MISC] (TLOSS): Likewise.
30054 [__USE_MISC] (PLOSS): Likewise.
30055 [__USE_MISC] (HUGE): Likewise.
30056 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30057 * math/math-svid-compat.h: New file.
30058 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30059 and matherrl.
30060 * include/math.h [!_ISOMAC] (__matherr): Remove.
30061 * manual/arith.texi (FP Exceptions): Do not document matherr.
30062 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30063 (tests-internal): New variable.
30064 (install-lib): Do not add libieee.a.
30065 (non-lib.a): Likewise.
30066 (extra-objs): Do not add libieee.a and ieee-math.o.
30067 (CPPFLAGS-s_lib_version.c): Remove variable.
30068 ($(objpfx)libieee.a): Remove rule.
30069 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30070 * math/ieee-math.c: Remove.
30071 * math/libm-test-support.c (matherr): Remove.
30072 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30073 and license notices. Include <math-svid-compat.h> and
30074 <shlib-compat.h>.
30075 (matherr): Undefine as macro. Use compat_symbol_reference.
30076 (_LIB_VERSION): Likewise.
30077 * math/test-matherr-2.c: New file.
30078 * math/test-matherr-3.c: Likewise.
30079 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30080 declaration.
30081 (__kernel_standard_f): Likewise.
30082 (__kernel_standard_l): Likewise.
30083 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30084 <math_private.h>. Include <math-svid-compat.h>.
30085 (_LIB_VERSION): Undefine as macro.
30086 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30087 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30088 [LIBM_SVID_COMPAT], use compat_symbol.
30089 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30090 <math_private.h>. Include <math-svid-compat.h>.
30091 (matherr): Undefine as macro.
30092 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30093 compat_symbol.
30094 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30095 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30096 compat_symbol_reference.
30097 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30098 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30099 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30100 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30101 (MATHERR_D): Remove declaration.
30102 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30103 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30104 [LIBM_BUILD] (pmatherrf): Likewise.
30105 [LIBM_BUILD] (pmatherr): Likewise.
30106 [LIBM_BUILD] (pmatherrl): Likewise.
30107 (DOMAIN): Likewise.
30108 (SING): Likewise.
30109 (OVERFLOW): Likewise.
30110 (UNDERFLOW): Likewise.
30111 (TLOSS): Likewise.
30112 (PLOSS): Likewise.
30113 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30114 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30115 compat_symbol.
30116 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30117 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30118 compat_symbol.
30119 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30120 * math/w_acos_compat.c: Likewise.
30121 * math/w_acosf_compat.c: Likewise.
30122 * math/w_acosh_compat.c: Likewise.
30123 * math/w_acoshf_compat.c: Likewise.
30124 * math/w_acoshl_compat.c: Likewise.
30125 * math/w_acosl_compat.c: Likewise.
30126 * math/w_asin_compat.c: Likewise.
30127 * math/w_asinf_compat.c: Likewise.
30128 * math/w_asinl_compat.c: Likewise.
30129 * math/w_atan2_compat.c: Likewise.
30130 * math/w_atan2f_compat.c: Likewise.
30131 * math/w_atan2l_compat.c: Likewise.
30132 * math/w_atanh_compat.c: Likewise.
30133 * math/w_atanhf_compat.c: Likewise.
30134 * math/w_atanhl_compat.c: Likewise.
30135 * math/w_cosh_compat.c: Likewise.
30136 * math/w_coshf_compat.c: Likewise.
30137 * math/w_coshl_compat.c: Likewise.
30138 * math/w_exp10_compat.c: Likewise.
30139 * math/w_exp10f_compat.c: Likewise.
30140 * math/w_exp10l_compat.c: Likewise.
30141 * math/w_exp2_compat.c: Likewise.
30142 * math/w_exp2f_compat.c: Likewise.
30143 * math/w_exp2l_compat.c: Likewise.
30144 * math/w_fmod_compat.c: Likewise.
30145 * math/w_fmodf_compat.c: Likewise.
30146 * math/w_fmodl_compat.c: Likewise.
30147 * math/w_hypot_compat.c: Likewise.
30148 * math/w_hypotf_compat.c: Likewise.
30149 * math/w_hypotl_compat.c: Likewise.
30150 * math/w_j0_compat.c: Likewise.
30151 * math/w_j0f_compat.c: Likewise.
30152 * math/w_j0l_compat.c: Likewise.
30153 * math/w_j1_compat.c: Likewise.
30154 * math/w_j1f_compat.c: Likewise.
30155 * math/w_j1l_compat.c: Likewise.
30156 * math/w_jn_compat.c: Likewise.
30157 * math/w_jnf_compat.c: Likewise.
30158 * math/w_jnl_compat.c: Likewise.
30159 * math/w_lgamma_main.c: Likewise.
30160 * math/w_lgamma_r_compat.c: Likewise.
30161 * math/w_lgammaf_main.c: Likewise.
30162 * math/w_lgammaf_r_compat.c: Likewise.
30163 * math/w_lgammal_main.c: Likewise.
30164 * math/w_lgammal_r_compat.c: Likewise.
30165 * math/w_log10_compat.c: Likewise.
30166 * math/w_log10f_compat.c: Likewise.
30167 * math/w_log10l_compat.c: Likewise.
30168 * math/w_log2_compat.c: Likewise.
30169 * math/w_log2f_compat.c: Likewise.
30170 * math/w_log2l_compat.c: Likewise.
30171 * math/w_log_compat.c: Likewise.
30172 * math/w_logf_compat.c: Likewise.
30173 * math/w_logl_compat.c: Likewise.
30174 * math/w_pow_compat.c: Likewise.
30175 * math/w_powf_compat.c: Likewise.
30176 * math/w_powl_compat.c: Likewise.
30177 * math/w_remainder_compat.c: Likewise.
30178 * math/w_remainderf_compat.c: Likewise.
30179 * math/w_remainderl_compat.c: Likewise.
30180 * math/w_scalb_compat.c: Likewise.
30181 * math/w_scalbf_compat.c: Likewise.
30182 * math/w_scalbl_compat.c: Likewise.
30183 * math/w_sinh_compat.c: Likewise.
30184 * math/w_sinhf_compat.c: Likewise.
30185 * math/w_sinhl_compat.c: Likewise.
30186 * math/w_sqrt_compat.c: Likewise.
30187 * math/w_sqrtf_compat.c: Likewise.
30188 * math/w_sqrtl_compat.c: Likewise.
30189 * math/w_tgamma_compat.c: Likewise.
30190 * math/w_tgammaf_compat.c: Likewise.
30191 * math/w_tgammal_compat.c: Likewise.
30192 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30193 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30194 * sysdeps/ieee754/k_standard.c: Likewise.
30195 * sysdeps/ieee754/k_standardf.c: Likewise.
30196 * sysdeps/ieee754/k_standardl.c: Likewise.
30197 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30198 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30199 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30200 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30201 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30202 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30203 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30204 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30205 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30206 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30207 Likewise.
30208 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30209 Likewise.
30210 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30211 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30212 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30213 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30214
30215 2017-08-21 Florian Weimer <fweimer@redhat.com>
30216
30217 [BZ #21864]
30218 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30219 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30220 Move before inclusion of ../Rules.
30221
30222 2017-08-21 Florian Weimer <fweimer@redhat.com>
30223
30224 [BZ #21972]
30225 * assert/assert.h (assert): Use static_cast (bool) for C++.
30226 Use the ternary operator in the warning branch for GNU C.
30227 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30228 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30229 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30230 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30231 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30232
30233 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30234
30235 [BZ #18822]
30236 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30237 (__syscall_clock_gettime): Add attribute_hidden.
30238 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30239 (__start_context): Likewise.
30240
30241 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30242
30243 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30244 building libc.a.
30245 (hidden_proto): Likewise.
30246 (hidden_tls_proto): Likewise.
30247 (__hidden_proto): Likewise.
30248
30249 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30250
30251 * include/libc-symbols.h (attribute_hidden): Enable hidden
30252 visibility in libc.a compiled with PIE.
30253
30254 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30255
30256 [BZ #18822]
30257 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30258 Add attribute_hidden.
30259
30260 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30261
30262 [BZ #21864]
30263 * Makerules (all-nonlib): Add $(others-extras).
30264 * catgets/Makefile (others-extras): New.
30265 * elf/Makefile (others-extras): Likewise.
30266 * nss/Makefile (others-extras): Likewise.
30267
30268 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30269
30270 [BZ #18822]
30271 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30272 * elf/dl-open.c: Include <libc-internal.h>.
30273 (__libc_multiple_libcs): Removed.
30274 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30275 <hp-timing.h>.
30276 * include/libc-internal.h (__libc_multiple_libcs): New.
30277 * misc/sbrk.c: Include <libc-internal.h>.
30278 (__libc_multiple_libcs): Removed.
30279
30280 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30281
30282 [BZ #18822]
30283 * grp/initgroups.c (__nss_group_database): Removed.
30284 (__nss_initgroups_database): Likewise.
30285 * nscd/gai.c (__nss_hosts_database): Likewise.
30286 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30287 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30288 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30289 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30290 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30291 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30292 attribute_hidden.
30293 * nss/nsswitch.c (__nss_database_custom): Define only if
30294 USE_NSCD is defined.
30295 (__nss_configure_lookup): Use __nss_database_custom only if
30296 USE_NSCD is defined.
30297 * nss/nsswitch.h (__nss_database_custom): Declare only if
30298 USE_NSCD is defined. Add attribute_hidden.
30299 (__nss_setent): Add attribute_hidden.
30300 (__nss_endent): Likewise.
30301 (__nss_getent_r): Likewise.
30302 (__nss_getent): Likewise.
30303 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30304
30305 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30306
30307 [BZ #18822]
30308 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30309 libc_hidden_proto and libc_hidden_def.
30310
30311 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30312
30313 [BZ #18822]
30314 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30315 Add libc_hidden_proto.
30316 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30317 Add libc_hidden_def.
30318
30319 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30320
30321 [BZ #21974]
30322 * gmon/Makefile (routines): Remove bb_init_func and
30323 bb_exit_func.
30324 (elide-routines.os): Removed.
30325 * gmon/bb_exit_func.c: Likewise.
30326 * gmon/bb_init_func.c: Likewise.
30327 * include/sys/gmon.h (__bb): Likewise.
30328 (__bb_init_func): Likewise.
30329 (__bb_exit_func): Likewise.
30330 * sysdeps/alpha/bb_init_func.S: Likewise.
30331
30332 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30333
30334 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30335 * include/setjmp.h (____longjmp_chk): Here. Add
30336 attribute_hidden.
30337
30338 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30339
30340 [BZ #18822]
30341 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30342 attribute_hidden.
30343 (__strspn_sse2): Likewise.
30344
30345 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30346
30347 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
30348 (close_not_cancel_no_status): Likewise.
30349 (__close_nocancel): New macro.
30350 (__close_nocancel_nostatus): Likewise.
30351 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
30352 macro.
30353 (close_not_cancel): Likewise.
30354 (close_not_cancel_no_status): Likewise.
30355 (__close_nocancel): New prototype.
30356 (__close_nocancel_nostatus): New function.
30357 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30358 * catgets/open_catalog.c (__open_catalog): Replace
30359 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30360 * gmon/gmon.c (write_gmon): Likewise.
30361 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30362 * intl/loadmsgcat.c (close): Likewise.
30363 * io/ftw.c (open_dir_stream): Likewise.
30364 (ftw_startup): Likewise.
30365 * libio/fileops.c (_IO_file_open): Likewise.
30366 (_IO_file_close_mmap): Likewise.
30367 (_IO_file_close): Likewise.
30368 * libio/iopopen.c (_IO_dup2): Likewise.
30369 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30370 * locale/loadlocale.c (_nl_load_locale): Likewise.
30371 * login/utmp_file.c (pututline_file): Likewise.
30372 (endutent_file): Likewise.
30373 * misc/daemon.c (daemon): Likewise.
30374 * nscd/nscd_getai.c (__nscd_getai): Likewise.
30375 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30376 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30377 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30378 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30379 * nscd/nscd_helper.c (open_socket): Likewise.
30380 (__nscd_open_socket): Likewise.
30381 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
30382 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
30383 (__nscd_innetgr): Likewise.
30384 * nss/nss_db/db-open.c (internal_setent): Likewise.
30385 * resolv/res-close.c (__res_iclose): Likewise.
30386 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
30387 * sysdeps/posix/closedir.c (__closedir): Likewise.
30388 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
30389 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30390 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30391 (opendir_tail): Likewise.
30392 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30393 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
30394 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
30395 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
30396 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30397 (gethostid): Likewise.
30398 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30399 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30400 Likewise.
30401 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30402 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
30403 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30404 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30405 Likewise.
30406 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
30407 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
30408 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30409 Likewise.
30410 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
30411 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30412 Likewise.
30413 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30414 Likewise.
30415 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30416 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30417 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30418 __close_nocancel.
30419
30420 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
30421 (openat_not_cancel_3): Likewise.
30422 (openat64_not_cancel_3): Likewise).
30423 (openat_not_cancel_3): Likewise).
30424 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
30425 macro.
30426 (openat_not_cancel_3): Likewise.
30427 (openat64_not_cancel): Likewise.
30428 (openat64_not_cancel_3): Likewise.
30429 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
30430 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
30431 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
30432 __open{64}_nocancel.
30433 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30434 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30435 * sysdeps/posix/opendir.c (__opendirat): Likewise.
30436
30437 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30438
30439 [BZ #18822]
30440 * include/argz.h (__argz_create_sep): New function prototype.
30441 (__argz_append): Likewise.
30442 (__argz_add): Likewise.
30443 (__argz_add_sep): Likewise.
30444 (__argz_delete): Likewise.
30445 (__argz_insert): Likewise.
30446 (__argz_replace): Likewise.
30447 * string/argz.h (__argz_create_sep): Removed.
30448 (__argz_append): Likewise.
30449 (__argz_add): Likewise.
30450 (__argz_add_sep): Likewise.
30451 (__argz_delete): Likewise.
30452 (__argz_insert): Likewise.
30453 (__argz_replace): Likewise.
30454
30455 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30456
30457 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
30458 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
30459 (GNU_PROPERTY_STACK_SIZE): Likewie.
30460 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
30461 (GNU_PROPERTY_LOPROC): Likewise.
30462 (GNU_PROPERTY_HIPROC): Likewise.
30463 (GNU_PROPERTY_LOUSER): Likewise.
30464 (GNU_PROPERTY_HIUSER): Likewise.
30465 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
30466 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
30467 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
30468 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
30469 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
30470 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
30471 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
30472 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
30473 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
30474 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
30475 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
30476 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
30477 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
30478 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
30479 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
30480 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
30481 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
30482 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
30483 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
30484 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
30485 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
30486 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
30487 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
30488
30489 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30490
30491 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
30492 in C++ mode.
30493
30494 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30495
30496 [BZ #21930]
30497 * math/math.h (isinf): Check if in C or C++ mode before using
30498 __builtin_types_compatible_p, since this is a C mode feature.
30499
30500 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30501
30502 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
30503 (__write_nocancel): New macro.
30504 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
30505 Rewrite as a function prototype.
30506 (write_not_cancel): Remove macro.
30507 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
30508 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
30509 (write_gmon): Likewise.
30510 * libio/fileops.c (_IO_new_file_write): Likewise.
30511 * login/utmp_file.c (pututline_file): Likewise.
30512 (updwtmp_file): Likewise.
30513 * stdio-common/psiginfo.c (psiginfo): Likewise.
30514 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30515 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30516 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30517 Likewise.
30518 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30519 Likewise.
30520
30521 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
30522 (__read_nocancel): New macro.
30523 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30524 __read_nocancel.
30525 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
30526 macro.
30527 (__read_nocancel): New prototype.
30528 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
30529 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
30530 with __read_nocancel.
30531 * intl/loadmsgcat.c (read): Likewise.
30532 * libio/fileops.c (_IO_file_read): Likewise.
30533 * locale/loadlocale.c (_nl_load_locale): Likewise.
30534 * login/utmp_file.c (getutent_r_file): Likewise.
30535 (internal_getut_r): Likewise.
30536 (getutline_r_file): Likewise.
30537 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30538 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
30539 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30540 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30541 Likewise.
30542 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
30543 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30544 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30545 Likewise.
30546 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30547 Likewise.
30548 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30549 Likewise.
30550 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30551 Likewise.
30552 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30553
30554 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30555
30556 [BZ #21966]
30557 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
30558 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
30559 usable.
30560
30561 2017-08-17 DJ Delorie <dj@redhat.com>
30562
30563 * bug17079.c: Update to new test harness.
30564 * test-digits-dots.c: Likewise.
30565 * test-netdb.c: Likewise.
30566 * tst-field.c: Likewise.
30567 * tst-nss-getpwent.c: Likewise.
30568 * tst-nss-static.c: Likewise.
30569 * tst-nss-test1.c: Likewise.
30570 * tst-nss-test2.c: Likewise.
30571 * tst-nss-test3.c: Likewise.
30572 * tst-nss-test4.c: Likewise.
30573 * tst-nss-test5.c: Likewise.
30574
30575 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30576
30577 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
30578 (open_not_cancel_2): Likewise.
30579 (open_nocancel): New macro.
30580 (open64_nocancel): Likewise.
30581 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
30582 (open_not_cancel_2): Likewise.
30583 (__open_nocancel): New prototype.
30584 (__open64_nocancel): Likewise.
30585 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30586 __open_nocancel.
30587 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
30588 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
30589 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
30590 with __open_nocancel.
30591 * csu/check_fds.c (check_one_fd): Likewise.
30592 * gmon/gmon.c (write_gmon): Likewise.
30593 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
30594 * intl/loadmsgcat.c (open): Likewise.
30595 * libio/fileops.c (_IO_file_open): Likewise.
30596 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30597 * locale/loadlocale.c (_nl_load_locale): Likewise.
30598 * login/utmp_file.c (setutent_file): Likewise.
30599 * misc/daemon.c (daemon): Likewise.
30600 * nss/nss_db/db-open.c (internal_setent): Likewise.
30601 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30602 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
30603 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30604 (__opendir): Likewise.
30605 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30606 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30607 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30608 (gethostid): Likewise.
30609 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30610 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30611 Likewise.
30612 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30613 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
30614 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30615 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30616 Likewise.
30617 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30618 Likewise.
30619 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30620 Likewise.
30621 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
30622 Likewise.
30623 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30624 Likewise.
30625 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30626 Likewise.
30627 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30628 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30629
30630 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
30631
30632 * benchtests/bench-skeleton.c (main): Add support for
30633 latency benchmarking.
30634 * benchtests/scripts/bench.py: Add support for latency benchmarking.
30635
30636 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
30637
30638 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
30639 the startup object.
30640
30641 2017-08-17 Florian Weimer <fweimer@redhat.com>
30642
30643 * include/sys/socket.h (__opensock): Remove internal_function.
30644 * socket/opensock.c (__opensock): Likewise.
30645 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
30646
30647 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30648
30649 [BZ #21944]
30650 * signal/bits/types/__sigval_t.h: New file.
30651 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
30652 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
30653 and define sigval_t using __sigval_t.
30654 * include/bits/types/__sigval_t.h: New file.
30655 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
30656 instead of <bits/types/__sigval_t.h>.
30657 (struct sigevent): Use __sigval_t instead of sigval_t.
30658 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
30659 instead of <bits/types/__sigval_t.h>.
30660 (siginfo_t): Use __sigval_t instead of sigval_t.
30661 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
30662 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30663 (struct sigevent): Use __sigval_t instead of sigval_t.
30664 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
30665 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30666 (siginfo_t): Use __sigval_t instead of sigval_t.
30667 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
30668
30669 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30670
30671 * NEWS: Remove "[Add new features here]" for 2.27.
30672
30673 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30674
30675 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
30676 libc.so.
30677
30678 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30679
30680 * NEWS: Mention x86-64 FMA optimization.
30681
30682 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30683
30684 [BZ #21912]
30685 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30686 Add e_expf-fma.
30687 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
30688 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
30689 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
30690
30691 2017-08-16 Andreas Schwab <schwab@suse.de>
30692
30693 [BZ #16750]
30694 CVE-2009-5064
30695 * elf/ldd.bash.in: Never run file directly.
30696
30697 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
30698
30699 [BZ #21955]
30700 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
30701 (L(SP_INF_0)): Likewise.
30702
30703 2017-08-15 Florian Weimer <fweimer@redhat.com>
30704
30705 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
30706 run-built-tests.
30707
30708 2017-08-15 Florian Weimer <fweimer@redhat.com>
30709
30710 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
30711 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
30712 BROKEN_THREAD_SIGNALS code.
30713 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
30714 request_list): Remove caller_pid member used for
30715 BROKEN_THREAD_SIGNALS.
30716 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
30717 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30718 Remove BROKEN_THREAD_SIGNALS support.
30719 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
30720 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
30721
30722 2017-08-15 Florian Weimer <fweimer@redhat.com>
30723
30724 * gmon/Makefile (tests): Add tst-gmon.
30725 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
30726 Set.
30727 (tests-special): Add tst-gmon-prof.out.
30728 (tst-gmon.out): Depend on clean-tst-gmon-data.
30729 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
30730 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
30731 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
30732 startup object.
30733 * aclocal.m4 (GPROF): Set and substitute.
30734 * config.amke.in (GPROF): Set.
30735 * configure: Regenerate.
30736
30737 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
30738
30739 * elf/elf.h A (NT_PPC_TAR): New macro.
30740 (NT_PPC_PPR): Likewise.
30741 (NT_PPC_DSCR): Likewise.
30742 (NT_PPC_EBB): Likewise.
30743 (NT_PPC_PMU): Likewise.
30744 (NT_PPC_TM_CGPR): Likewise.
30745 (NT_PPC_TM_CFPR): Likewise.
30746 (NT_PPC_TM_CVMX): Likewise.
30747 (NT_PPC_TM_CVSX): Likewise.
30748 (NT_PPC_TM_SPR): Likewise.
30749 (NT_PPC_TM_CTAR): Likewise.
30750 (NT_PPC_TM_CPPR): Likewise.
30751 (NT_PPC_TM_CDSCR): Likewise.
30752
30753 2017-08-15 Florian Weimer <fweimer@redhat.com>
30754
30755 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
30756 regparm (2) instead of internal_function.
30757 (_MCOUNT_DECL): Adjust.
30758
30759 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
30760
30761 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
30762 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
30763
30764 2017-08-14 Joseph Myers <joseph@codesourcery.com>
30765
30766 * conform/data/sys/wait.h-data (si_value): Do not expect for
30767 XPG42.
30768
30769 2017-08-14 Florian Weimer <fweimer@redhat.com>
30770
30771 [BZ #21962]
30772 NSS: Create stubs for accidentally exported lookup functions.
30773 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
30774 Remove declaration.
30775 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
30776 (ether_hostton): Call __nss_ethers_lookup2 instead.
30777 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
30778 (ether_ntohost): Call __nss_ethers_lookup2 instead.
30779 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
30780 (setup): Call __nss_netgroup_lookup2 instead.
30781 * nss/Makefile (routines): Add compat-lookup.
30782 * nss/Versions (GLIBC_2.27): Add symbol version.
30783 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
30784 (DB_COMPAT_FCT): Remove.
30785 * nss/compat-lookup.c: New file.
30786 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
30787 from databases.def.
30788 * nss/service-lookup.c (NO_COMPAT): Remove definition.
30789 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
30790 (netname2user): Call __nss_publickey_lookup2 instead.
30791 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
30792 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
30793 instead.
30794
30795 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30796 Sergei Trofimovich <slyfox@inbox.ru>
30797
30798 [BZ #21908]
30799 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
30800 Rename to MMAP2_PAGE_UNIT.
30801 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
30802 __OFF_T_MATCHES_OFF64_T is not defined.
30803 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
30804 uint64_t.
30805 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
30806 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
30807
30808 2017-08-14 Florian Weimer <fweimer@redhat.com>
30809
30810 i386: Do not set internal_function.
30811 * config.h.in (USE_REGPARMS, internal_function): Remove.
30812 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
30813 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
30814
30815 2017-08-14 Florian Weimer <fweimer@redhat.com>
30816
30817 * elf/dl-init.c (_dl_init): Remove internal_function.
30818 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
30819 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
30820
30821 2017-08-14 Florian Weimer <fweimer@redhat.com>
30822
30823 * elf/rtld.c (_dl_start): Remove internal_function.
30824 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
30825 _dl_start.
30826
30827 2017-08-14 Florian Weimer <fweimer@redhat.com>
30828
30829 * elf/dl-fini.c (_dl_fini): Remove internal_function
30830 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
30831
30832 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
30833
30834 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
30835 (bit_cpu_SHSTK): Likewise.
30836 (index_cpu_IBT): Likewise.
30837 (index_cpu_SHSTK): Likewise.
30838 (reg_IBT): Likewise.
30839 (reg_SHSTK): Likewise.
30840 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30841 Handle index_cpu_IBT and index_cpu_SHSTK.
30842
30843 2017-08-14 Mike FABIAN <mfabian@redhat.com>
30844
30845 [BZ #19982]
30846 * po/fr.po: Fix spelling mistake.
30847
30848 2017-08-13 Florian Weimer <fweimer@redhat.com>
30849
30850 * elf/dl-addr.c (_dl_addr): Remove internal_function.
30851 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
30852 (_dl_catch_error, _dl_receive_error): Likewise.
30853 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
30854 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
30855 (_dl_deallocate_tls): Likewise.
30856 * include/dlfcn.h (_dl_addr): Likewise.
30857 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
30858 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
30859 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
30860 Likewise.
30861
30862 2017-08-13 Florian Weimer <fweimer@redhat.com>
30863
30864 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
30865 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
30866 internal_function.
30867 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
30868
30869 2017-08-13 Florian Weimer <fweimer@redhat.com>
30870
30871 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
30872 internal_function.
30873 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
30874 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
30875 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
30876 internal_function from _dl_make_stack_executable_hook member.
30877 (_dl_make_stack_executable): Remove internal_function.
30878 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
30879 Likewise.
30880 * sysdeps/unix/sysv/linux/dl-execstack.c
30881 (_dl_make_stack_executable): Likewise.
30882
30883 2017-08-13 Florian Weimer <fweimer@redhat.com>
30884
30885 * sysdeps/unix/sysv/linux/netlinkaccess.h
30886 (__netlink_assert_response): Remove internal_function.
30887 * sysdeps/unix/sysv/linux/netlink_assert_response.c
30888 (__netlink_assert_response): Likewise.
30889
30890 2017-08-13 Florian Weimer <fweimer@redhat.com>
30891
30892 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
30893 internal_function.
30894 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
30895
30896 2017-08-13 Florian Weimer <fweimer@redhat.com>
30897
30898 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
30899 internal_function.
30900 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
30901 * inet/netgroup.h (__internal_setnetgrent)
30902 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30903 * inet/getnetgrent_r.c (__internal_setnetgrent)
30904 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30905 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
30906 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
30907 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
30908 * nss/nsswitch.h (db_lookup_function): Likewise.
30909
30910 2017-08-13 Florian Weimer <fweimer@redhat.com>
30911
30912 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
30913 Remove internal_function.
30914 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
30915 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
30916 message argument on the stack.
30917 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
30918 Likeweise.
30919
30920 2017-08-12 Mike FABIAN <mfabian@redhat.com>
30921
30922 Adapt test case data to the changes in the thousands
30923 separators.
30924
30925 [BZ #20756]
30926 * localedata/tst-langinfo.sh: Adapt test case data.
30927 * stdlib/tst-strfmon_l.c: Likewise.
30928 * stdlib/tst-strtod4.c: Likewise.
30929 * stdlib/tst-strtod5i.c: Likewise.
30930
30931 2017-08-11 Florian Weimer <fweimer@redhat.com>
30932
30933 [BZ #21242]
30934 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
30935 Suppress pedantic warning resulting from statement expression.
30936 (__ASSERT_FUNCTION): Add missing __extension__.
30937
30938 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30939
30940 * benchtests/bench-memmove-large.c: Print output in JSON
30941 format.
30942 * benchtests/bench-memmove.c: Likewise.
30943
30944 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
30945 * benchtests/bench-memchr.c (do_one_test): Likewise.
30946 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
30947 * benchtests/bench-memcpy.c (do_one_test): Likewise.
30948 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
30949 * benchtests/bench-memmove.c (do_one_test): Likewise.
30950 * benchtests/bench-memset-large.c (do_one_test): Likewise.
30951 * benchtests/bench-memset.c (do_one_test): Likewise.
30952 * benchtests/bench-string.h (test_init): Remove memsets.
30953
30954 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
30955
30956 * manual/lang.texi
30957 (Computing the Width of an Integer Data Type): Rename section to
30958 "Width of an Integer Type". Remove inaccurate statement regarding
30959 lack of C language facilities for determining width of integer
30960 types, and reorder content to improve flow and context of
30961 discussion.
30962
30963 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
30964
30965 * lang.texi (va_copy): Change standard from ISO to C99.
30966 (__va_copy): Add standard and header annotation.
30967 Update description for clarity of origins and current use.
30968
30969 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30970
30971 [BZ #21941]
30972 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
30973 xssqrtqp requires operands to be in Vector Registers
30974 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
30975 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
30976 (__ieee754_sqrtf128): Likewise.
30977
30978 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
30979
30980 * sysdeps/aarch64/memcmp.S (memcmp):
30981 Rewrite of optimized memcmp.
30982
30983 2017-08-10 Florian Weimer <fweimer@redhat.com>
30984
30985 Introduce ld.so exceptions.
30986 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
30987 (_dl_exception_create, _dl_exception_create_format)
30988 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
30989 (_dl_catch_exception): Declare.
30990 (_dl_catch_error): Update comment.
30991 * elf/dl-error-skeleton.c (struct catch): Replace objname,
30992 errstring, malloced members with exception member.
30993 (_dl_out_of_memory): Remove.
30994 (fatal_error): New function, extracted from _dl_signal_error.
30995 (_dl_signal_exception, _dl_signal_cexception): New functions.
30996 (_dl_signal_error): Call _dl_exception_create to allocate an
30997 exception object.
30998 (_dl_catch_exception): New function, based on _dl_catch_error.
30999 (_dl_catch_error): Implement using _dl_catch_exception.
31000 * elf/dl-exception.c: New file.
31001 * elf/Makefile (dl-routines): Add dl-exception.
31002 (elide-routines.os): Likewise.
31003 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31004 _dl_exception_create_format, _dl_exception_free.
31005 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31006 _dl_signal_exception.
31007 * elf/dl-lookup.c (make_string): Remove.
31008 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31009 _dl_signal_cexception, _dl_exception_free.
31010 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31011 _dl_signal_exception.
31012 * elf/dl-sym.c (do_sym): Likewise.
31013 * elf/dl-version.c (make_string): Remove.
31014 (match_symbol): Use _dl_exception_create_format,
31015 _dl_signal_cexception, _dl_exception_free.
31016 (_dl_check_map_versions): Likewise.
31017 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
31018 _dl_catch_exception.
31019 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
31020 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
31021 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
31022 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31023 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31024 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31025 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31026 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31027 Likewise.
31028 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31029 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31030 (ld.so): Likewise.
31031 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31032 (ld.so): Likewise.
31033 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31034 Likewise.
31035 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31036 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31037 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31038 Likewise.
31039 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31040 Likewise.
31041 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31042
31043 2017-08-10 Florian Weimer <fweimer@redhat.com>
31044
31045 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31046 attribute_hidden, internal_function.
31047 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31048 internal_function.
31049
31050 2017-08-10 Florian Weimer <fweimer@redhat.com>
31051
31052 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31053 function which calls __builtin_unreachable.
31054
31055 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31056
31057 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31058 Indian monetary formatting
31059 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31060 test cases.
31061
31062 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31063
31064 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31065 Fix typo in comment.
31066
31067 [BZ #21928]
31068 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31069 PTRACE_SEIZE_DEVEL): Remove.
31070 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31071 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31072 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31073 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31074 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31075
31076 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31077
31078 * posix/bits/types.h (__qaddr_t): Remove.
31079
31080 [BZ #21457]
31081 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31082 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31083 __glibc_reserved1.
31084 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31085 (ucontext_t): Use __ctx with uc_flags.
31086 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31087 (__ctxt): Likewise.
31088 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31089 __glibc_reserved1.
31090 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31091 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31092 __glibc_reserved1.
31093 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31094 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31095 __glibc_reserved1.
31096 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31097 macro.
31098 (ucontext_t): Use __ctx with uc_flags.
31099 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31100 (ucontext_t): Use __ctx with uc_flags.
31101 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31102 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31103 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31104 (ucontext_t): Use __ctx with uc_flags.
31105 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31106 undefine further down.
31107 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31108 __glibc_reserved1.
31109 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31110 undefine further down.
31111 (ucontext_t): Use __ctx with uc_flags.
31112 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31113 undefine further down.
31114 (ucontext_t): Use __ctx with uc_flags.
31115 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31116 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31117 Rename uc_pad to __glibc_reserved1.
31118 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31119 undefine further down.
31120 (ucontext_t): Use __ctx with uc_flags.
31121 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31122 further down.
31123 (ucontext_t): Use __ctx with uc_flags.
31124 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31125 __ctx with uc_flags.
31126 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31127 (ucontext_t): Use __ctx with uc_flags.
31128 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31129 __ctx with uc_flags.
31130
31131 2017-08-09 Florian Weimer <fweimer@redhat.com>
31132
31133 [BZ #21932]
31134 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31135 before early return.
31136
31137 2017-08-09 Andreas Schwab <schwab@suse.de>
31138
31139 [BZ #21041]
31140 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31141 renamed alias.
31142
31143 [BZ #21041]
31144 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31145 tst-compat-forwarder.
31146 (modules-names): Add tst-compat-forwarder-mod.
31147 ($(objpfx)tst-compat-forwarder): Depend on
31148 $(objpfx)tst-compat-forwarder-mod.so.
31149 * nptl/tst-compat-forwarder.c: New file.
31150 * nptl/tst-compat-forwarder-mod.c: New file.
31151
31152 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31153
31154 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31155 comments.
31156
31157 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31158 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31159 memcpy_falkor.
31160 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31161 Bump.
31162 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31163 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31164 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31165 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31166 Add falkor.
31167 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31168 New macro.
31169
31170 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31171
31172 [BZ #759]
31173 * manual/setjmp.texi (getcontex): Document uc_stack value
31174 compatibility differences.
31175
31176 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31177
31178 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31179 (old_malloc_hook): Likewise.
31180 (old_memalign_hook): Likewise.
31181 (old_realloc_hook): Likewise.
31182 (struct hdr): Likewise.
31183 (flood): Likewise.
31184 (freehook): Likewise.
31185 (mallochook): Likewise.
31186 (memalignhook): Likewise.
31187 (reallochook): Likewise.
31188 (mprobe): Likewise.
31189 * malloc/mtrace.c (mallwatch): Likewise.
31190 (tr_old_free_hook): Likewise.
31191 (tr_old_malloc_hook): Likewise.
31192 (tr_old_realloc_hook): Likewise.
31193 (tr_old_memalign_hook): Likewise.
31194 (tr_where): Likewise.
31195 (lock_and_info): Likewise.
31196 (tr_freehook): Likewise.
31197 (tr_mallochook): Likewise.
31198 (tr_reallochook): Likewise.
31199 (tr_memalignhook): Likewise.
31200 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31201 * misc/mmap.c (__mmap): Likewise.
31202 * misc/mmap64.c (__mmap64): Likewise.
31203 * misc/mprotect.c (__mprotect): Likewise.
31204 * misc/msync.c (msync): Likewise.
31205 * misc/munmap.c (__munmap): Likewise.
31206 * posix/posix_madvise.c (posix_madvise): Likewise.
31207 * socket/send.c (__send): Likewise.
31208 * socket/sendto.c (__sendto): Likewise.
31209 * socket/setsockopt.c (__setsockopt): Likewise.
31210 * string/memcmp.c (__ptr_t): Remove macro.
31211 (MEMCMP): Use void * instead of ptr_t.
31212 * string/memrchr.c (__ptr_t): Remove macro.
31213 (__memrchr): Use void * instead of ptr_t.
31214 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31215 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31216 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31217 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31218 * sysdeps/mach/msync.c (msync): Likewise.
31219 * sysdeps/mach/munmap.c (__munmap): Likewise.
31220 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31221 Likewise.
31222 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31223 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31224 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31225 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31226 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31227 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31228 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31229 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31230 Likewise.
31231 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31232 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31233 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31234 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31235 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31236 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31237 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31238 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31239 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31240 Likewise.
31241 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31242 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31243 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31244 (MEMCMP): Use void * instead of ptr_t.
31245 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31246 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31247
31248 2017-08-08 Florian Weimer <fweimer@redhat.com>
31249
31250 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31251 return statement.
31252
31253 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31254
31255 [BZ #21913]
31256 * csu/libc-tls.c: Include <startup.h> first.
31257 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31258 * elf/dl-tunables.c: Include <startup.h> first.
31259 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31260 * sysdeps/generic/startup.h: New file.
31261 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31262 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31263 (I386_USE_SYSENTER): New. Defined to 0.
31264
31265 2017-08-08 Andreas Schwab <schwab@suse.de>
31266
31267 [BZ #21041]
31268 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31269 * nptl/pt-system.c (system): Likewise.
31270
31271 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31272
31273 [BZ #21780]
31274 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31275 EOPNOTSUPP.
31276 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31277 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31278 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31279 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31280 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31281 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31282 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31283
31284 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31285
31286 [BZ #21899]
31287 * bits/sigaction.h (struct sigaction): Define sa_handler and
31288 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31289 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31290 [__USE_XOPEN_EXTENDED].
31291 (SA_RESTART): Likewise.
31292 (SA_NODEFER): Likewise.
31293 (SA_RESETHAND): Likewise.
31294 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31295 (struct sigaction): Define sa_handler and sa_sigaction using union
31296 also for [__USE_XOPEN_EXTENDED].
31297 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31298 [__USE_XOPEN_EXTENDED].
31299 (SA_RESTART): Likewise.
31300 (SA_NODEFER): Likewise.
31301 (SA_RESETHAND): Likewise.
31302 * sysdeps/unix/sysv/linux/bits/sigaction.h
31303 (struct sigaction): Define sa_handler and sa_sigaction using union
31304 also for [__USE_XOPEN_EXTENDED].
31305 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31306 [__USE_XOPEN_EXTENDED].
31307 (SA_RESTART): Likewise.
31308 (SA_NODEFER): Likewise.
31309 (SA_RESETHAND): Likewise.
31310 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31311 (struct sigaction): Define sa_handler and sa_sigaction using union
31312 also for [__USE_XOPEN_EXTENDED].
31313 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31314 [__USE_XOPEN_EXTENDED].
31315 (SA_RESTART): Likewise.
31316 (SA_NODEFER): Likewise.
31317 (SA_RESETHAND): Likewise.
31318 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31319 (struct sigaction): Define sa_handler and sa_sigaction using union
31320 also for [__USE_XOPEN_EXTENDED].
31321 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31322 [__USE_XOPEN_EXTENDED].
31323 (SA_RESTART): Likewise.
31324 (SA_NODEFER): Likewise.
31325 (SA_RESETHAND): Likewise.
31326 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31327 (struct sigaction): Define sa_handler and sa_sigaction using union
31328 also for [__USE_XOPEN_EXTENDED].
31329 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31330 [__USE_XOPEN_EXTENDED].
31331 (SA_RESTART): Likewise.
31332 (SA_NODEFER): Likewise.
31333 (SA_RESETHAND): Likewise.
31334 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
31335 (struct sigaction): Define sa_handler and sa_sigaction using union
31336 also for [__USE_XOPEN_EXTENDED].
31337 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31338 [__USE_XOPEN_EXTENDED].
31339 (SA_RESTART): Likewise.
31340 (SA_NODEFER): Likewise.
31341 (SA_RESETHAND): Likewise.
31342 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
31343 (struct sigaction): Define sa_handler and sa_sigaction using union
31344 also for [__USE_XOPEN_EXTENDED].
31345 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31346 [__USE_XOPEN_EXTENDED].
31347 (SA_RESTART): Likewise.
31348 (SA_NODEFER): Likewise. Define directly rather than as alias.
31349 (SA_RESETHAND): Likewise.
31350 (SA_INTERRUPT): Define only for [__USE_MISC].
31351 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
31352 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
31353 [__USE_MISC].
31354 (SA_STACK): Define only for [__USE_MISC].
31355 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
31356 (struct sigaction): Define sa_handler and sa_sigaction using union
31357 also for [__USE_XOPEN_EXTENDED].
31358 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31359 [__USE_XOPEN_EXTENDED].
31360 (SA_RESTART): Likewise.
31361 (SA_NODEFER): Likewise.
31362 (SA_RESETHAND): Likewise.
31363 (SA_NOPTRACE): Define only for [__USE_MISC].
31364
31365 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31366 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31367 (struct catalog_info): Likewise.
31368 * inet/htontest.c (lo): Likewise.
31369 (foo): Likewise.
31370 * inet/inet_lnaof.c (inet_lnaof): Likewise.
31371 * inet/inet_net.c (inet_network): Likewise.
31372 * inet/inet_netof.c (inet_netof): Likewise.
31373 * inet/rcmd.c (__ivaliduser): Likewise.
31374 (iruserok): Likewise.
31375 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
31376 * locale/programs/locale-spec.c (locale_special): Likewise.
31377 * nis/nis_findserv.c (struct findserv_req): Likewise.
31378 (__nis_findfastest_with_timeout): Likewise.
31379 * nss/test-netdb.c (test_network): Likewise.
31380 * resolv/inet_neta.c (inet_neta): Likewise.
31381 * resolv/ns_date.c (ns_datetosecs): Likewise.
31382 (SECS_PER_DAY): Likewise.
31383 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
31384 Likewise.
31385 * resolv/res_comp.c (__putlong): Likewise.
31386 (__putshort): Likewise.
31387 (_getlong): Likewise.
31388 (_getshort): Likewise.
31389 * resolv/res_debug.c (p_time): Likewise.
31390 (precsize_ntoa): Likewise.
31391 (precsize_aton): Likewise.
31392 (latlon2ul): Likewise.
31393 (loc_aton): Likewise.
31394 (loc_ntoa): Likewise.
31395 * resolv/res_hconf.c (struct netaddr): Likewise.
31396 (_res_hconf_reorder_addrs): Likewise.
31397 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
31398 (clnttcp_control): Likewise.
31399 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31400 (clntudp_control): Likewise.
31401 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
31402 (clntunix_control): Likewise.
31403 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
31404 * sunrpc/rpc/auth.h (union des_block): Likewise.
31405 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
31406 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
31407 (xdrrec_create): Likewise.
31408 (xdrrec_endofrecord): Likewise.
31409 (flush_out): Likewise.
31410 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
31411 (xdrstdio_putlong): Likewise.
31412 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
31413 Likewise.
31414
31415 * misc/sys/cdefs.h (__long_double_t): Remove.
31416 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
31417 instead of __long_double_t,
31418 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
31419
31420 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
31421
31422 * benchtests/scripts/compare_strings.py: Avoid display error when
31423 running on a text terminal.
31424
31425 * benchtests/scripts/compare_strings.py (main): Add an
31426 optional -base option.
31427 (process_results): New argument base_func.
31428
31429 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
31430 hardcoding memcpy.
31431 * benchtests/bench-memcpy-large.c (test_name): Likewise.
31432 * benchtests/bench-memcpy-random.c (test_name): Likewise.
31433
31434 2017-08-07 Andreas Schwab <schwab@suse.de>
31435
31436 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
31437 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
31438 * intl/Makefile ($(objpfx)tst-gettext.out)
31439 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
31440 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
31441 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
31442 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
31443 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
31444 * posix/Makefile ($(objpfx)globtest.out)
31445 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
31446 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
31447 ($(objpfx)tst-printf.out): Likewise.
31448 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
31449 ($(objpfx)tst-setcontext3.out): Likewise.
31450
31451 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
31452
31453 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31454 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
31455 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
31456 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
31457 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
31458 and mptan-fma.
31459 (CFLAGS-doasin-fma.c): New.
31460 (CFLAGS-dosincos-fma.c): Likewise.
31461 (CFLAGS-e_asin-fma.c): Likewise.
31462 (CFLAGS-e_atan2-fma.c): Likewise.
31463 (CFLAGS-e_exp-fma.c): Likewise.
31464 (CFLAGS-e_log-fma.c): Likewise.
31465 (CFLAGS-e_pow-fma.c): Likewise.
31466 (CFLAGS-halfulp-fma.c): Likewise.
31467 (CFLAGS-mpa-fma.c): Likewise.
31468 (CFLAGS-mpatan-fma.c): Likewise.
31469 (CFLAGS-mpatan2-fma.c): Likewise.
31470 (CFLAGS-mpexp-fma.c): Likewise.
31471 (CFLAGS-mplog-fma.c): Likewise.
31472 (CFLAGS-mpsqrt-fma.c): Likewise.
31473 (CFLAGS-mptan-fma.c): Likewise.
31474 (CFLAGS-s_atan-fma.c): Likewise.
31475 (CFLAGS-sincos32-fma.c): Likewise.
31476 (CFLAGS-slowexp-fma.c): Likewise.
31477 (CFLAGS-slowpow-fma.c): Likewise.
31478 (CFLAGS-s_sin-fma.c): Likewise.
31479 (CFLAGS-s_tan-fma.c): Likewise.
31480 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
31481 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
31482 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
31483 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
31484 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
31485 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
31486 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
31487 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
31488 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
31489 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
31490 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
31491 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
31492 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
31493 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
31494 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
31495 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
31496 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
31497 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
31498 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
31499 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
31500 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
31501 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
31502 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
31503 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
31504 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
31505 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31506 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31507 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
31508 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31509 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31510 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31511
31512 2017-08-04 Joseph Myers <joseph@codesourcery.com>
31513
31514 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
31515 (min_of_type_f): New macro.
31516 (min_of_type_): Likewise.
31517 (min_of_type_l): Likewise.
31518 (min_of_type_f128): Likewise.
31519 (min_of_type): Define using __MATH_TG and taking an expression
31520 argument.
31521 (math_check_force_underflow): Pass expression instead of type to
31522 min_of_type.
31523 (math_check_force_underflow_nonneg): Likewise.
31524
31525 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31526
31527 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31528 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
31529 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
31530
31531 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31532
31533 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31534 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
31535 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
31536 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
31537 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
31538 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
31539 memcpy_chk-nonshared, mempcpy_chk-nonshared,
31540 memmove_chk-nonshared and memset_chk-nonshared
31541 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
31542 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
31543 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
31544 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
31545 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
31546 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
31547 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
31548 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
31549 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
31550 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
31551 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
31552 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
31553 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
31554 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
31555 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
31556 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
31557 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
31558 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
31559 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
31560 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
31561 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
31562 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
31563 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
31564 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
31565 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
31566 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
31567 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
31568 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
31569 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
31570 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
31571 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
31572 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
31573 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
31574 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31575 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31576 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
31577 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
31578 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
31579 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
31580 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
31581 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
31582 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
31583 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
31584 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
31585 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
31586 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
31587 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
31588 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
31589 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
31590 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
31591 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
31592 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
31593 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
31594 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
31595 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
31596 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
31597 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
31598 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
31599 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
31600 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
31601 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
31602 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
31603 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
31604 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
31605 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
31606 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
31607 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
31608 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
31609 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
31610 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
31611 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
31612 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
31613 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
31614 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
31615 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
31616 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
31617 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31618 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31619 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31620 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31621 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31622 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31623 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31624 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31625 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
31626 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
31627 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
31628 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
31629 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31630 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31631 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31632 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31633 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31634 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31635 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
31636 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
31637 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
31638 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
31639 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
31640 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
31641 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
31642 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
31643 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
31644 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
31645 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
31646 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
31647 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
31648 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
31649
31650 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31651
31652 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
31653 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
31654 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
31655 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
31656 svml_d_log2_core-sse2, svml_d_log4_core-sse,
31657 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
31658 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
31659 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
31660 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
31661 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
31662 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
31663 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
31664 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
31665 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
31666 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
31667 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
31668 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
31669 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
31670 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
31671 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
31672 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
31673 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
31674 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
31675 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
31676 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
31677 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
31678 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
31679 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
31680 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
31681 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
31682 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
31683 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
31684 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
31685 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
31686 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
31687 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
31688 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
31689 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
31690 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
31691 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
31692 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
31693 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
31694 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
31695 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
31696 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
31697 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
31698 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
31699 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
31700 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
31701 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
31702 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
31703 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
31704 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
31705 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
31706 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
31707 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
31708 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
31709 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
31710 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
31711 ...
31712 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
31713 Don't include <sysdep.h> nor <init-arch.h>.
31714 (_ZGVbN2v_cos): Removed.
31715 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
31716 ...
31717 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
31718 Don't include <sysdep.h> nor <init-arch.h>.
31719 (_ZGVdN4v_cos): Removed.
31720 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
31721 ...
31722 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
31723 Don't include <sysdep.h> nor <init-arch.h>.
31724 (_ZGVeN8v_cos): Removed.
31725 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
31726 ...
31727 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
31728 Don't include <sysdep.h> nor <init-arch.h>.
31729 (_ZGVbN2v_exp): Removed.
31730 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
31731 ...
31732 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
31733 Don't include <sysdep.h> nor <init-arch.h>.
31734 (_ZGVdN4v_exp): Removed.
31735 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
31736 ...
31737 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
31738 Don't include <sysdep.h> nor <init-arch.h>.
31739 (_ZGVeN8v_exp): Removed.
31740 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
31741 ...
31742 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
31743 Don't include <sysdep.h> nor <init-arch.h>.
31744 (_ZGVbN2v_log): Removed.
31745 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
31746 ...
31747 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
31748 Don't include <sysdep.h> nor <init-arch.h>.
31749 (_ZGVdN4v_log): Removed.
31750 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
31751 ...
31752 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
31753 Don't include <sysdep.h> nor <init-arch.h>.
31754 (_ZGVeN8v_log): Removed.
31755 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
31756 ...
31757 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
31758 Don't include <sysdep.h> nor <init-arch.h>.
31759 (_ZGVbN2vv_pow): Removed.
31760 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
31761 ...
31762 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
31763 Don't include <sysdep.h> nor <init-arch.h>.
31764 (_ZGVdN4vv_pow): Removed.
31765 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
31766 ...
31767 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
31768 Don't include <sysdep.h> nor <init-arch.h>.
31769 (_ZGVeN8vv_pow): Removed.
31770 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
31771 ...
31772 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
31773 Don't include <sysdep.h> nor <init-arch.h>.
31774 (_ZGVbN2v_sin): Removed.
31775 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
31776 ...
31777 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
31778 Don't include <sysdep.h> nor <init-arch.h>.
31779 (_ZGVbN4v_sin): Removed.
31780 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
31781 ...
31782 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
31783 Don't include <sysdep.h> nor <init-arch.h>.
31784 (_ZGVbN8v_sin): Removed.
31785 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
31786 ...
31787 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
31788 Don't include <sysdep.h> nor <init-arch.h>.
31789 (_ZGVbN2vvv_sincos): Removed.
31790 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
31791 ...
31792 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
31793 Don't include <sysdep.h> nor <init-arch.h>.
31794 (_ZGVdN4vvv_sincos): Removed.
31795 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
31796 ...
31797 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
31798 Don't include <sysdep.h> nor <init-arch.h>.
31799 (_ZGVeN8vvv_sincos): Removed.
31800 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
31801 ...
31802 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
31803 Don't include <sysdep.h> nor <init-arch.h>.
31804 (_ZGVeN16v_cosf): Removed.
31805 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
31806 ...
31807 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
31808 Don't include <sysdep.h> nor <init-arch.h>.
31809 (_ZGVbN4v_cosf): Removed.
31810 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
31811 ...
31812 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
31813 Don't include <sysdep.h> nor <init-arch.h>.
31814 (_ZGVdN8v_cosf): Removed.
31815 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
31816 ...
31817 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
31818 Don't include <sysdep.h> nor <init-arch.h>.
31819 (_ZGVeN16v_expf): Removed.
31820 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
31821 ...
31822 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
31823 Don't include <sysdep.h> nor <init-arch.h>.
31824 (_ZGVbN4v_expf): Removed.
31825 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
31826 ...
31827 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
31828 Don't include <sysdep.h> nor <init-arch.h>.
31829 (_ZGVdN8v_expf): Removed.
31830 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
31831 ...
31832 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
31833 Don't include <sysdep.h> nor <init-arch.h>.
31834 (_ZGVeN16v_logf): Removed.
31835 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
31836 ...
31837 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
31838 Don't include <sysdep.h> nor <init-arch.h>.
31839 (_ZGVbN4v_logf): Removed.
31840 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
31841 ...
31842 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
31843 Don't include <sysdep.h> nor <init-arch.h>.
31844 (_ZGVdN8v_logf): Removed.
31845 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
31846 ...
31847 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
31848 Don't include <sysdep.h> nor <init-arch.h>.
31849 (_ZGVeN16vv_powf): Removed.
31850 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
31851 ...
31852 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
31853 Don't include <sysdep.h> nor <init-arch.h>.
31854 (_ZGVbN4vv_powf): Removed.
31855 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
31856 ...
31857 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
31858 Don't include <sysdep.h> nor <init-arch.h>.
31859 (_ZGVdN8vv_powf): Removed.
31860 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
31861 ...
31862 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
31863 Don't include <sysdep.h> nor <init-arch.h>.
31864 (_ZGVeN16vvv_sincosf): Removed.
31865 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
31866 ...
31867 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
31868 Don't include <sysdep.h> nor <init-arch.h>.
31869 (_ZGVbN4vvv_sincosf): Removed.
31870 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
31871 ...
31872 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
31873 Don't include <sysdep.h> nor <init-arch.h>.
31874 (_ZGVdN8vvv_sincosf): Removed.
31875 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
31876 ...
31877 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
31878 Don't include <sysdep.h> nor <init-arch.h>.
31879 (_ZGVeN16v_sinf): Removed.
31880 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
31881 ...
31882 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
31883 Don't include <sysdep.h> nor <init-arch.h>.
31884 (_ZGVbN4v_sinf): Removed.
31885 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
31886 ...
31887 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
31888 Don't include <sysdep.h> nor <init-arch.h>.
31889 (_ZGVdN8v_sinf): Removed.
31890
31891 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31892
31893 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31894 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
31895 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
31896 s_rint-sse4_1 and s_rintf-sse4_1.
31897 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
31898 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
31899 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
31900 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
31901 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
31902 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
31903 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
31904 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
31905 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
31906 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
31907 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
31908 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31909 (__ceil): Removed.
31910 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
31911 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
31912 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31913 (__ceilf): Removed.
31914 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
31915 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
31916 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31917 (__floor): Removed.
31918 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
31919 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
31920 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31921 (__floorf): Removed.
31922 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
31923 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
31924 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31925 (__nearbyint): Removed.
31926 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
31927 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
31928 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31929 (__nearbyintf): Removed.
31930 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
31931 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
31932 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31933 (__rint): Removed.
31934 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
31935 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
31936 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31937 (__rintf): Removed.
31938
31939 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31940
31941 * sysdeps/i386/start.S (_start): Check Check PIC instead of
31942 SHARED. Avoid dynamic relocation against main in static PIE.
31943
31944 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31945
31946 [BZ #21815]
31947 * elf/Makefile (CFLAGS-tst-prelink.c): New.
31948 (LDFLAGS-tst-prelink): Likewise.
31949
31950 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31951
31952 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
31953 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
31954 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
31955 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
31956 (INTERNAL_SYSCALL_NCS): Likewise.
31957 (LOADARGS_1): Likewise.
31958 (LOADARGS_5): Likewise.
31959 (RESTOREARGS_1): Likewise.
31960 (RESTOREARGS_5): Likewise.
31961
31962 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31963
31964 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
31965 (MEMPCPY_SYMBOL): Likewise.
31966 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
31967 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
31968 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
31969 in libc.a.
31970 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
31971 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
31972 Likewise.
31973 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
31974 (__hidden_ver1): Don't use in libc.a.
31975 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
31976 (__mempcpy): Don't create a weak alias in libc.a.
31977 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
31978 libc.a.
31979 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
31980 (__hidden_ver1): Don't use in libc.a.
31981
31982 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31983
31984 * config.make.in (have-insert): New.
31985 * configure.ac (libc_cv_insert): New. Set to yes if linker
31986 supports INSERT in linker script.
31987 (AC_SUBST(libc_cv_insert): New.
31988 * configure: Regenerated.
31989 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
31990 if $(have-insert) == yes.
31991
31992 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31993
31994 * elf/Makefile (tests): Add vismain only if
31995 $(have-protected-data) == yes.
31996 (tests-pie): Likewise.
31997
31998 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31999
32000 [BZ #21871]
32001 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32002 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32003
32004 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32005
32006 [BZ #21790]
32007 * sysdeps/i386/i586/memset.S
32008 (__memset_zero_constant_len_parameter): Removed.
32009 * sysdeps/i386/i686/memset.S
32010 (__memset_zero_constant_len_parameter): Likewise.
32011 * sysdeps/i386/i686/multiarch/memset_chk.S
32012 (__memset_zero_constant_len_parameter): Likewise.
32013 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32014 Likewise.
32015
32016 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32017
32018 * stdlib/getentropy.c (getentropy): Change return type to int.
32019
32020 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32021
32022 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32023
32024 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32025
32026 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32027 u_intN_t.
32028 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32029 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32030 Likewise.
32031 (ieee_float_shape_type): Likewise.
32032 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32033 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32034 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32035 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32036 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32037 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32038 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32039 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32040 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32041 Likewise.
32042 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32043 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32044 (__ieee754_yn): Likewise.
32045 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32046 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32047 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32048 Likewise.
32049 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32050 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32051 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32052 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32053 (__erfc): Likewise.
32054 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32055 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32056 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32057 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32058 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32059 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32060 Likewise.
32061 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32062 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32063 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32064 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32065 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32066 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32067 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32068 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32069 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32070 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32071 (__issignaling): Likewise.
32072 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32073 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32074 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32075 Likewise.
32076 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32077 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32078 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32079 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32080 Likewise.
32081 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32082 Likewise.
32083 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32084 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32085 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32086 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32087 (__erfcf): Likewise.
32088 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32089 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32090 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32091 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32092 Likewise.
32093 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32094 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32095 Likewise.
32096 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32097 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32098 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32099 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32100 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32101 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32102 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32103 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32104 Likewise.
32105 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32106 Likewise.
32107 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32108 Likewise.
32109 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32110 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32111 Likewise.
32112 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32113 Likewise.
32114 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32115 (__ieee754_ynl): Likewise.
32116 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32117 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32118 Likewise.
32119 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32120 Likewise.
32121 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32122 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32123 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32124 Likewise.
32125 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32126 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32127 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32128 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32129 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32130 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32131 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32132 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32133 Likewise.
32134 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32135 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32136 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32137 Likewise.
32138 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32139 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32140 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32141 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32142 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32143 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32144 Likewise.
32145 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32146 Likewise.
32147 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32148 Likewise.
32149 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32150 Likewise.
32151 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32152 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32153 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32154 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32155 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32156 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32157 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32158 Likewise.
32159 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32160 Likewise.
32161 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32162 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32163 Likewise.
32164 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32165 (__ieee754_remainderl): Likewise.
32166 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32167 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32168 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32169 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32170 Likewise.
32171 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32172 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32173 Likewise.
32174 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32175 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32176 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32177 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32178 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32179 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32180 Likewise.
32181 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32182 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32183 (__ieee754_y0l): Likewise.
32184 (pzero): Likewise.
32185 (qzero): Likewise.
32186 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32187 (__ieee754_y1l): Likewise.
32188 (pone): Likewise.
32189 (qone): Likewise.
32190 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32191 (__ieee754_ynl): Likewise.
32192 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32193 (__ieee754_lgammal_r): Likewise.
32194 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32195 Likewise.
32196 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32197 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32198 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32199 (__erfcl): Likewise.
32200 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32201 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32202 Likewise.
32203 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32204 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32205 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32206 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32207 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32208 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32209 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32210 Likewise.
32211 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32212 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32213 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32214 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32215 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32216 Likewise.
32217 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32218 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32219 Likewise.
32220 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32221 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32222 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32223 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32224 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32225
32226 2017-08-03 Florian Weimer <fweimer@redhat.com>
32227
32228 [BZ #21885]
32229 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32230 on memory allocation failure.
32231
32232 2017-08-03 Alan Modra <amodra@gmail.com>
32233
32234 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32235 tst-tlsopt-powerpc.c with function name change and no test harness.
32236 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32237 Call tls_get_addr_opt_test.
32238 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32239 (modules-names): Add mod-tlsopt-powerpc.
32240 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32241 (tst-tlsopt-powerpc): Depend on .so.
32242 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32243 define. Expand use in TLS_GD and TLS_LD.
32244
32245 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32246
32247 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32248 function.
32249 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32250
32251 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32252
32253 [BZ #21686]
32254 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32255 comparing size with that of double.
32256 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32257 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32258 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32259 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32260 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32261 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32262 unsigned __int128 types.
32263
32264 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32265
32266 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32267 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32268 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32269 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32270 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32271
32272 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32273
32274 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32275
32276 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32277
32278 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32279 of SHARED.
32280 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32281 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32282 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32283 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32284 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32285 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32286 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32287
32288 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32289
32290 [BZ #21685]
32291 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32292 bit-field expressions passed to sizeof or typeof.
32293 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32294 (__TGMATH_F128): Likewise.
32295 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32296 (__TGMATH_CF128): Likewise.
32297 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32298 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32299 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32300 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32301 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32302 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32303 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32304 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32305 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32306 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32307 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32308 (__TGMATH_UNARY_IMAG): Likewise.
32309 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32310 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32311 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32312 type.
32313 (define_vars_for_type): Handle bit_field type specially.
32314 (Tests.__init__): Declare structure with bit-field element.
32315
32316 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32317
32318 [BZ #21791]
32319 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32320 (MEMCPY_CHK): Define only if SHARED is defined.
32321 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32322 Likewise.
32323 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32324 Likewise.
32325
32326 See ChangeLog.18 for earlier changes.