]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Add check for missing wrapper headers
[thirdparty/glibc.git] / ChangeLog
1 2019-02-15 Florian Weimer <fweimer@redhat.com>
2
3 Check that non-sysdeps headers have wrapper headers.
4 * scripts/check-wrapper-headers.py: New file.
5 * Makefile (tests-special): Add check-wrapper-headers.out.
6 (check-wrapper-headers.out): New target.
7 * Rules (tests-special): Add check-wrapper-headers.out.
8 (check-wrapper-headers.out): New target.
9
10 2019-02-15 Florian Weimer <fweimer@redhat.com>
11
12 Add missing header wrappers under include/.
13 * include/ar.h: New file.
14 * include/bits/mqueue2.h: Likewise.
15 * include/bits/stdio.h: Likewise.
16 * include/bits/stdio2.h: Likewise.
17 * include/fstab.h: Likewise.
18 * include/fts.h: Likewise.
19 * include/lastlog.h: Likewise.
20 * include/netinet/icmp6.h: Likewise.
21 * include/netinet/igmp.h: Likewise.
22 * include/netinet/ip6.h: Likewise.
23 * include/re_comp.h: Likewise.
24 * include/regexp.h: Likewise.
25 * include/rpcsvc/bootparam.h: Likewise.
26 * include/rpcsvc/yp_prot.h: Likewise.
27 * include/sys/random.h: Likewise.
28 * include/sys/stropts.h: Likewise.
29 * include/sys/ttychars.h: Likewise.
30 * include/sys/vfs.h: Likewise.
31 * include/wait.h: Likewise.
32
33 2019-02-15 Florian Weimer <fweimer@redhat.com>
34
35 * nptl_db/proc_service.h: Move to ...
36 * sysdeps/nptl/proc_service.h: ... here.
37 * nptl_db/thread_db.h: Move to ...
38 * sysdeps/nptl/thread_db.h: ... here.
39 * nptl/descr.h: Include <thread_db.h>.
40
41 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
42
43 * io/Makefile (tests): Add tst-lockf.
44 * io/lockf.c (lockf): Use __fcntl and only define for
45 !__OFF_T_MATCHES_OFF64_T.
46 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
47 __OFF_T_MATCHES_OFF64_T case.
48 * io/tst-lockf.c: New file.
49 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
50 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
51 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
52 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
53 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
54 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
55 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
56 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
57 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
58
59 2019-02-15 Florian Weimer <fweimer@redhat.com>
60
61 [BZ #24211]
62 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
63 pd->result after the thread descriptor has been freed.
64
65 2019-02-15 Joseph Myers <joseph@codesourcery.com>
66
67 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
68 from function return type.
69
70 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
71
72 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
73
74 * scripts/test_printers_common.py: Set TERM to a known harmless
75 value.
76
77 2019-02-14 Joseph Myers <joseph@codesourcery.com>
78
79 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
80 (xdr_u_int): Likewise.
81 (xdr_enum): Likewise.
82 (xdr_bytes): Reword fall-through comment.
83 (xdr_string): Likewise.
84
85 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
86
87 [BZ #2421]
88 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
89 (tests): Add tst-join8 tst-join9.
90 * nptl/lll_timedwait_tid.c: Remove file.
91 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
92 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
93 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
94 * nptl/pthread_join_common.c (timedwait_tid): New function.
95 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
96 is set.
97 * nptl/tst-join5.c (thread_join): New function.
98 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
99 check.
100 * nptl/tst-join8.c: New file.
101 * nptl/tst-join9.c: Likewise.
102 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
103 lll_futex_timed_wait_cancel): Add generic macros.
104 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
105 Remove definitions.
106 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
107 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
108 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
109 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
110 Remove function.
111 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
112 Likewise.
113 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
114 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
115 (lll_futex_timed_wait_cancel): New macro.
116
117 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
118
119 * benchtests/Makefile: Add malloc-simple benchmark.
120 * benchtests/bench-malloc-simple.c: New benchmark.
121
122 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
123
124 * benchtests/bench-memmove.c (do_one_test): Remove unused
125 ORIG_SRC.
126 (do_test): Adjust.
127 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
128 ORIG_SRC.
129 (do_test): Adjust.
130
131 2019-01-13 Jim Wilson <jimw@sifive.com>
132
133 [BZ #24040]
134 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
135 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
136 (func): New.
137 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
138 call func directly.
139 * nptl/Makefile (tests): Add tst-unwind-thread.
140 (CFLAGS-tst-unwind-thread.c): Define.
141 * nptl/tst-unwind-thread.c: New file.
142 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
143 as undefined.
144
145 2019-02-13 Joseph Myers <joseph@codesourcery.com>
146
147 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
148 comment wording.
149 * nis/nis_call.c (__do_niscall3): Likewise.
150
151 * catgets/gencat.c (normalize_line): Use braces around empty
152 'else' body.
153 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
154 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
155 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
156 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
157 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
158 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
159 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
160 definition.
161
162 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
163 execlp returns.
164
165 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
166
167 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
168 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
169 * benchtests/bench-strchr.c (stupid_strchr): Remove.
170 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
171 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
172 * benchtests/bench-strlen.c (builtin_strlen): Remove.
173 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
174 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
175 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
176 * benchtests/bench-strspn.c (stupid_strspn): Remove.
177 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
178 * benchtests/bench-bcopy.c: Delete file.
179 * benchtests/bench-bzero.c: Likewise.
180 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
181 (simple_memccpy): Remove.
182 (generic_memccpy): Add function.
183 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
184 * benchtests/bench-memmove.c (simple_bcopy): Remove.
185 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
186 (generic_mempcpy): Add new function.
187 * benchtests/bench-memset.c (simple_bzero): Remove.
188 (builtin_bzero): Remove.
189 (builtin_memset): Remove.
190 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
191 (generic_rawmemchr): Add new function.
192
193 2019-02-12 Florian Weimer <fweimer@redhat.com>
194
195 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
196
197 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
198
199 [BZ #24122]
200 * elf/Makefile (tests): Add tst-audit13.
201 (modules-names): Add tst-audit13mod1.
202 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
203 rule.
204 * elf/tst-audit13.c: New file.
205 * elf/tst-audit13mod1.c: Likewise.
206
207 2019-02-12 Florian Weimer <fweimer@redhat.com>
208
209 [BZ #24122]
210 * elf/rtld.c (unload_audit_module): New function.
211 (report_audit_module_load_error): Likewise.
212 (load_audit_module): Likewise. Extracted from dl_main. Call
213 _dl_close if the laversion symbol cannot be found. Use early
214 returns for error handling. Add malloc error check. Check for a
215 zero return value from la_version. Remove spurious comment about
216 static TLS initialization. Remove useless casts.
217 (notify_audit_modules_of_loaded_object): New function. Extracted
218 from dl_main.
219 (load_audit_module): Likewise.
220 (dl_main): Call load_audit_modules.
221
222 2019-02-12 Joseph Myers <joseph@codesourcery.com>
223
224 * elf/dl-exception.c (_dl_exception_create_format): Add
225 fall-through comments.
226 * elf/ldconfig.c (parse_conf_include): Likewise.
227 * elf/rtld.c (print_statistics): Likewise.
228 * locale/programs/charmap.c (parse_charmap): Likewise.
229 * misc/mntent_r.c (__getmntent_r): Likewise.
230 * posix/wordexp.c (parse_arith): Likewise.
231 (parse_backtick): Likewise.
232 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
233 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
234 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
235
236 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
237
238 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
239 Use float instead of double.
240
241 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
242
243 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
244
245 2019-02-08 Joseph Myers <joseph@codesourcery.com>
246
247 * sysdeps/powerpc/bits/mathinline.h: Remove.
248
249 2019-02-08 Florian Weimer <fweimer@redhat.com>
250
251 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
252 * math/bits/math-finite.h: Move to ...
253 * bits/math-finite.h: ... here.
254
255 2019-02-08 Florian Weimer <fweimer@redhat.com>
256
257 * sysdeps/generic/bits/unistd_ext.h: Move to ...
258 * bits/unistd_ext.h: here.
259
260 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
261
262 [BZ #21915]
263 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
264 * nss/tst-nss-files-hosts-long.c: New file.
265 * nss/tst-nss-files-hosts-long.root: New directory.
266 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
267 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
268
269 2019-02-08 Florian Weimer <fweimer@redhat.com>
270
271 * include/bits/unistd_ext.h: Remove file.
272 * posix/bits/unistd_ext.h: Move to ...
273 * sysdeps/generic/bits/unistd_ext.h: ... here.
274
275 2019-02-08 Florian Weimer <fweimer@redhat.com>
276
277 * include/bits/unistd_ext.h: New file.
278
279 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
280
281 * time/tst-strftime2.c: Use array_length macros instead of magic
282 numbers.
283
284 2019-02-08 Florian Weimer <fweimer@redhat.com>
285
286 [BZ #24161]
287 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
288 argument.
289 * nptl/register-atfork.c (__run_fork_handlers): Only perform
290 locking if the new do_locking argument is true.
291 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
292 __run_fork_handlers.
293
294 2019-02-08 Florian Weimer <fweimer@redhat.com>
295
296 [BZ #6399]
297 Linux: Add gettid system call wrapper.
298 * posix/Makefile (headers): Add bits/unistd_ext.h.
299 * posix/bits/unistd_ext.h: New file.
300 * posix/unistd.h: Include it.
301 * manual/process.texi (Process Identification): Document gettid.
302 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
303 tst-gettid, tst-gettid-kill.
304 (tst-gettid): Link with $(shared-thread-library).
305 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
306 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
307 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
308 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
309 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
310 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
311 Add gettid.
312 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
313 Likewise.
314 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
315 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
316 Likewise.
317 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
318 Likewise.
319 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
320 Likewise.
321 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
322 Likewise.
323 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
324 Likewise.
325 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
326 Likewise.
327 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
328 Likewise.
329 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
330 (GLIBC_2.30): Likewise.
331 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
332 (GLIBC_2.30): Likewise.
333 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
334 (GLIBC_2.30): Likewise.
335 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
336 (GLIBC_2.30): Likewise.
337 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
338 Likewise.
339 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
340 (GLIBC_2.30): Likewise.
341 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
342 (GLIBC_2.30): Likewise.
343 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
344 (GLIBC_2.30): Likewise.
345 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
346 (GLIBC_2.30): Likewise.
347 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
348 Likewise.
349 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
350 Likewise.
351 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
352 Likewise.
353 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
354 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
355 Likewise.
356 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
357 Likewise.
358 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
359 Likewise.
360 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
361 Likewise.
362 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
363
364 2019-02-07 Florian Weimer <fweimer@redhat.com>
365
366 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
367 compatibility symbols.
368
369 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
370
371 [BZ #24180]
372 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
373 Add compiler barriers and comments.
374
375 2019-02-07 Florian Weimer <fweimer@redhat.com>
376
377 * include/array_length.h (array_length): Do not use a statement
378 expression and _Static_assert, so that array_length can be used at
379 file scope and as a constant expression.
380
381 2019-02-07 Florian Weimer <fweimer@redhat.com>
382
383 * support/xdlfcn.h (xdlmopen): Declare.
384 * support/xdlmopen.c: New file.
385 * support/Makefile (libsupport-routines): Add xdlmopen.
386
387 2019-02-06 Joseph Myers <joseph@codesourcery.com>
388
389 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
390 before return type, without separate inline.
391 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
392 * elf/dl-tunables.h (tunable_is_name): Likewise.
393 * malloc/malloc.c (do_set_trim_threshold): Likewise.
394 (do_set_top_pad): Likewise.
395 (do_set_mmap_threshold): Likewise.
396 (do_set_mmaps_max): Likewise.
397 (do_set_mallopt_check): Likewise.
398 (do_set_perturb_byte): Likewise.
399 (do_set_arena_test): Likewise.
400 (do_set_arena_max): Likewise.
401 (do_set_tcache_max): Likewise.
402 (do_set_tcache_count): Likewise.
403 (do_set_tcache_unsorted_limit): Likewise.
404 * nis/nis_subr.c (count_dots): Likewise.
405 * nptl/allocatestack.c (advise_stack_range): Likewise.
406 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
407 (do_sin): Likewise.
408 (reduce_sincos): Likewise.
409 (do_sincos): Likewise.
410 * sysdeps/unix/sysv/linux/x86/elision-conf.c
411 (do_set_elision_enable): Likewise.
412 (TUNABLE_CALLBACK_FNDECL): Likewise.
413
414 2019-02-06 Florian Weimer <fweimer@redhat.com>
415
416 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
417 (xdlsym): Use dlerror to detect a NULL symbol.
418
419 2019-02-06 Florian Weimer <fweimer@redhat.com>
420
421 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
422 <stap-probe.h>.
423 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
424
425 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
426
427 * libio/tst-bz24153.c (wide): Use wide char format specifier.
428
429 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
430
431 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
432 __wmemcmp and weak alias to wmemcmp.
433
434 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
435
436 [BZ #23403]
437 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
438 TLS_TCB_AT_TP tls variant.
439 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
440 Add alignment checks.
441 * support/Makefile (libsupport-routines): Add xposix_memalign and
442 xpthread_setstack.
443 * support/support.h: Add xposix_memalign.
444 * support/xthread.h: Add xpthread_attr_setstack.
445 * support/xposix_memalign.c: New File.
446 * support/xpthread_attr_setstack.c: Likewise.
447
448 2019-02-05 Florian Weimer <fweimer@redhat.com>
449
450 [BZ #24164]
451 arm: Use "nr" constraint for Systemtap probes, to avoid the
452 compiler using memory operands for constants, due to the "o"
453 alternative in the default "nor" constraint.
454 * include/stap-probe.h [USE_STAP_PROBE]: Include
455 <stap-probe-machine.h>
456 * sysdeps/generic/stap-probe-machine.h: New file.
457 * sysdeps/arm/stap-probe-machine.h: Likewise.
458
459 2019-02-04 Joseph Myers <joseph@codesourcery.com>
460
461 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
462 with 0, not tcache->entries[tc_idx].
463
464 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
465 once.
466
467 2019-02-04 Andreas Schwab <schwab@suse.de>
468
469 [BZ #16976]
470 [BZ #17396]
471 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
472 looking up collating elements match against (wide) character
473 sequence instead of name. Correct alignment adjustment.
474 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
475 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
476 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
477 (LOCALES): Add cs_CZ.ISO-8859-2.
478 * posix/tst-fnmatch4.c: New file.
479 * posix/tst-fnmatch5.c: New file.
480 * include/wchar.h (__wmemcmp): Declare.
481 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
482 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
483 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
484 * sysdeps/s390/wmemcmp.c: Likewise.
485
486 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
487
488 [BZ #24155]
489 CVE-2019-7309
490 * NEWS: Updated for CVE-2019-7309.
491 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
492 upper 32 bits of RDX register for x32. Use unsigned Jcc
493 instructions, instead of signed.
494 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
495 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
496
497 2019-02-04 Florian Weimer <fweimer@redhat.com>
498
499 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
500 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
501 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
502 Likewise.
503 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
504 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
505 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
506 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
507 Likewise.
508 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
509 Likewise.
510 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
511 Likewise.
512 (posix_spawn_file_actions_addopen): Likewise.
513 (posix_spawn_file_actions_addclose): Likewise.
514 (posix_spawn_file_actions_adddup2): Likewise.
515 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
516 qualifiers.
517 (posix_spawn_file_actions_addfchdir_np): Likewise.
518
519 2019-02-04 David Newall <glibc@davidnewall.com>
520
521 elf: Implement --preload option for the dynamic linker.
522 * elf/rtld.c (preloadarg): New variable.
523 (handle_preload_list): Pass through “where” argument to
524 do_preload.
525 (dl_main): Handle "--preload" and add second call to
526 handle_preload_list.
527 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
528 (tst-rtld-preload-OBJS): Set variable.
529 (tst-rtld-preload.out): New target.
530 * elf/tst-rtld-preload.sh: New file.
531
532 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
533
534 * Makefile (testrun.sh): Exit in case of incorrect argument.
535
536 2019-02-04 Florian Weimer <fweimer@redhat.com>
537
538 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
539 alignment gaps.
540
541 2019-02-03 Florian Weimer <fweimer@redhat.com>
542
543 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
544 implicit overflow checks.
545
546 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
547
548 * stdlib/isomac.c: Include <unistd.h>.
549
550 2019-02-03 Florian Weimer <fweimer@redhat.com>
551
552 * include/time.h (__tzfile_default): Use int, not long int, for
553 the GMT offsets.
554 * time/tzfile.c (struct ttinfo): Change type of the offset member
555 to int.
556 (__tzfile_read): Remove useless cast.
557 (__tzfile_default): Adjust prototype.
558 * time/tzset.c (tz_rule): Change type of the offset member to int.
559 (parse_offset): Change the type of the sign variable to int.
560
561 2019-02-03 Florian Weimer <fweimer@redhat.com>
562
563 [BZ #24153]
564 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
565 * libio/getchar.c (getchar): Likewise.
566 * libio/getchar_u.c (getchar_unlocked): Likewise.
567 * libio/getwchar.c (getwchar): Likewise.
568 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
569 * libio/iogets.c (_IO_gets): Likewise.
570 * libio/vscanf.c (_IO_vscanf): Likewise.
571 * libio/vwscanf.c (__vwscanf): Likewise.
572 * libio/tst-bz24153.c: New file.
573 * libio/Makefile (tests): Add it.
574
575 2019-02-02 Florian Weimer <fweimer@redhat.com>
576
577 [BZ #14829]
578 * manual/resource.texi (Basic Scheduling Functions): Add
579 portability note. Change process to task throughout the section.
580 Remove incorrect comment about sched_yield as it affects
581 tasks/threads, not entire processes.
582 * sysdeps/unix/sysv/linux/bits/posix_opt.h
583 (_POSIX_PRIORITY_SCHEDULING): Update comment.
584
585 2019-02-01 Joseph Myers <joseph@codesourcery.com>
586
587 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
588 * configure: Regenerated.
589 * manual/install.texi (Tools for Compilation): Update minimum GCC
590 version.
591 * INSTALL: Regenerated.
592
593 2019-02-01 Florian Weimer <fweimer@redhat.com>
594
595 * support/support_test_compare_string.c
596 (support_test_compare_string): Use "string" in error message.
597 * support/tst-test_compare_string.c (do_test): Adjust.
598
599 2019-02-01 Florian Weimer <fweimer@redhat.com>
600
601 * support/support_format_address_family.c
602 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
603
604 2019-02-01 Florian Weimer <fweimer@redhat.com>
605
606 * manual/socket.texi (Internet Address Formats): Clarify the byte
607 order of struct sockaddr_in, struct sockaddr_in6. Document
608 sin6_flowinfo and sin6_scope_id.
609
610 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
611
612 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
613 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
614 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
615 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
616 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
617 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
618
619 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
620
621 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
622 [!MEMCHR](MEMCHR): Set to __memchr.
623 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
624 Add memchr_generic and memchr_nosimd.
625 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
626 (__libc_ifunc_impl_list): Add memchr ifuncs.
627 * sysdeps/aarch64/multiarch/memchr.c: New file.
628 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
629 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
630
631 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
632
633 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
634 Add memset_emag.
635 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
636 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
637 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
638 Add IS_EMAG check for ifunc dispatch.
639 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
640 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
641
642 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
643
644 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
645 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
646 Add emag.
647 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
648 New macro.
649
650 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
651
652 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
653
654 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
655
656 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
657 syscall-template file.
658
659 2019-01-31 Carlos O'Donell <carlos@redhat.com>
660 Torvald Riegel <triegel@redhat.com>
661 Rik Prohaska <prohaska7@gmail.com>
662
663 [BZ# 23844]
664 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
665 tst-rwlock-trywrlock-stall.
666 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
667 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
668 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
669 Set __wrphase_fute to 1 only if we started the write phase.
670 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
671 * nptl/tst-rwlock-trywrlock-stall.c: New file.
672 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
673 * support/xpthread_rwlock_destroy.c: New file.
674 * support/xthread.h: Declare xpthread_rwlock_destroy.
675
676 2019-02-01 Joseph Myers <joseph@codesourcery.com>
677
678 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
679 version to 4.0.2.
680
681 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
682
683 [BZ #24051]
684 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
685 * libio/fileops.c (_IO_new_file_underflow): Likewise
686 * libio/wfileops.c (_IO_wfile_underflow): Likewise
687 * libio/putchar.c (putchar): Likewise.
688 * libio/putchar_u.c (putchar_unlocked): Likewise.
689 * libio/putwchar.c (putchar): Likewise.
690 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
691 * libio/tst-bz24051.c: New test.
692 * libio/Makefile (tests): Add tst-bz24051
693
694 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
695
696 regex: fix read overrun [BZ #24114]
697 Problem found by AddressSanitizer, reported by Hongxu Chen in:
698 https://debbugs.gnu.org/34140
699 * posix/regexec.c (proceed_next_node):
700 Do not read past end of input buffer.
701
702 2019-01-31 Florian Weimer <fweimer@redhat.com>
703
704 [BZ #24059]
705 * nss/nss_files/files-alias.c (get_next_alias): Handle
706 continuation line without newline at the end.
707 * nss/tst-nss-files-alias-truncated.c: New file.
708 * nss/Makefile [$(build-shared)] (tests): Add
709 tst-nss-files-alias-truncated.
710 (tst-nss-files-alias-truncated): Link with libnss_files.so.
711 * support/namespace.h (struct support_chroot_configuration): Add
712 aliases member.
713 (struct support_chroot): Add path_aliases member.
714 * support/support_chroot.c (support_chroot_create): Handle
715 aliases.
716 (support_chroot_free): Free path_aliases.
717
718 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
719
720 * version.h (RELEASE): Set to "development".
721 (VERSION): Set to "2.29.9000".
722 * NEWS: Add section for 2.30.
723
724 * version.h (RELEASE): Set to "stable".
725 (VERSION): Set to "2.29".
726 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
727
728 * NEWS: Add the list of bugs fixed in 2.29.
729 * manual/contrib.texi: Update contributors list with some more
730 names.
731 * manual/install.texi: Update latest versions of packages
732 tested.
733 * INSTALL: Regenerated.
734
735 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
736
737 * po/be.po: Update translations.
738 * po/bg.po: Likewise.
739 * po/ca.po: Likewise.
740 * po/cs.po: Likewise.
741 * po/da.po: Likewise.
742 * po/de.po: Likewise.
743 * po/el.po: Likewise.
744 * po/eo.po: Likewise.
745 * po/es.po: Likewise.
746 * po/fi.po: Likewise.
747 * po/fr.po: Likewise.
748 * po/gl.po: Likewise.
749 * po/hr.po: Likewise.
750 * po/hu.po: Likewise.
751 * po/ia.po: Likewise.
752 * po/id.po: Likewise.
753 * po/it.po: Likewise.
754 * po/ja.po: Likewise.
755 * po/ko.po: Likewise.
756 * po/lt.po: Likewise.
757 * po/nb.po: Likewise.
758 * po/nl.po: Likewise.
759 * po/pl.po: Likewise.
760 * po/pt_BR.po: Likewise.
761 * po/ru.po: Likewise.
762 * po/rw.po: Likewise.
763 * po/sk.po: Likewise.
764 * po/sl.po: Likewise.
765 * po/sv.po: Likewise.
766 * po/tr.po: Likewise.
767 * po/uk.po: Likewise.
768 * po/vi.po: Likewise.
769 * po/zh_CN.po: Likewise.
770 * po/zh_TW.po: Likewise.
771
772 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
773
774 [BZ #24130]
775 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
776 of $f3 register on $y_is_neg path.
777
778 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
779
780 [BZ #24110]
781 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
782 sigaltstack.ss_flags.
783
784 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
785
786 [BZ #23758]
787 * manual/time.texi (strftime): Document "%Ey".
788 * time/strftime_l.c (__strftime_internal): Set the default width
789 padding with zero of "%Ey" to 2.
790
791 [BZ #24096]
792 * manual/time.texi (strftime): Document "%EC" and "%EY".
793 * time/Makefile (tests): Add tst-strftime2.
794 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
795 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
796 override padding for "%Ey".
797 If an optional flag ('_' or '-') is specified to "%EY", interpret the
798 "%Ey" in the subformat as if decorated with that flag.
799 * time/tst-strftime2.c: New file.
800
801 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
802
803 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
804 are not defined.
805
806 [BZ #24122]
807 * elf/Makefile (tests): Add tst-audit13.
808 (modules-names): Add tst-audit13mod1.
809 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
810 rule.
811 * elf/rtld.c (dl_main): Handle invalid audit module version.
812 * elf/tst-audit13.c: New file.
813 * elf/tst-audit13mod1.c: Likewise.
814
815 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
816
817 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
818 returned by __hurd_at_flags.
819 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
820 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
821 directly instead of __hurd_file_name_lookup.
822
823 2019-01-21 Joseph Myers <joseph@codesourcery.com>
824
825 * scripts/build-many-glibcs.py (Context.checkout): Default
826 binutils version to 2.32 branch.
827
828 2019-01-21 Florian Weimer <fweimer@redhat.com>
829
830 [BZ #20018]
831 CVE-2016-10739
832 resolv: Reject trailing characters in host names
833 * include/arpa/inet.h (__inet_aton_exact): Declare.
834 (inet_aton): Remove hidden prototype. No longer used internally.
835 * nscd/gai.c (__inet_aton): Do not define.
836 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
837 * nss/digits_dots.c (__inet_aton): Likewise.
838 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
839 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
840 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
841 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
842 (tst-resolv-trailing): Likewise.
843 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
844 libc.
845 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
846 Make static. Add endp parameter.
847 (__inet_aton_exact): New function.
848 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
849 (__inet_addr): Call inet_aton_end.
850 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
851 not just IPv6. Call __inet_aton_exact.
852 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
853 (tests): Make const. Add additional test cases with trailing
854 characters.
855 (do_test): Use array_length.
856 * resolv/tst-inet_aton_exact.c: New file.
857 * resolv/tst-resolv-trailing.c: Likewise.
858 * resolv/tst-resolv-nondecimal.c: Likewise.
859 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
860
861 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
862
863 [BZ# 24097]
864 CVE-2019-6488
865 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
866 Clear the upper 32 bits of RSI register.
867 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
868 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
869 and tst-size_t-wcsnlen.
870 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
871 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
872
873 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
874
875 [BZ# 24097]
876 CVE-2019-6488
877 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
878 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
879 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
880 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
881 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
882
883 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
884
885 [BZ# 24097]
886 CVE-2019-6488
887 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
888 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
889 * sysdeps/x86_64/strcmp.S: Likewise.
890 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
891 tst-size_t-strncmp and tst-size_t-wcsncmp.
892 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
893 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
894 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
895
896 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
897
898 [BZ# 24097]
899 CVE-2019-6488
900 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
901 RDX_LP for length. Clear the upper 32 bits of RDX register.
902 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
903 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
904 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
905 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
906
907 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
908
909 [BZ# 24097]
910 CVE-2019-6488
911 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
912 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
913 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
914 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
915
916 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
917
918 [BZ# 24097]
919 CVE-2019-6488
920 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
921 length. Clear the upper 32 bits of RDX register.
922 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
923 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
924 Likewise.
925 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
926 Likewise.
927 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
928 tst-size_t-wmemchr.
929 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
930
931 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
932
933 [BZ# 24097]
934 CVE-2019-6488
935 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
936 length. Clear the upper 32 bits of RDX register.
937 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
938 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
939 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
940 tst-size_t-wmemcmp.
941 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
942 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
943
944 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
945
946 [BZ# 24097]
947 CVE-2019-6488
948 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
949 upper 32 bits of RDX register.
950 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
951 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
952 tst-size_t-wmemchr.
953 * sysdeps/x86_64/x32/test-size_t.h: New file.
954 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
955 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
956
957 2019-01-18 Florian Weimer <fweimer@redhat.com>
958
959 [BZ #24112]
960 resolv: Do not send queries for non-host-names in nss_dns.
961 * resolv/nss_dns/dns-host.c (check_name): New function.
962 (_nss_dns_gethostbyname2_r): Use it.
963 (_nss_dns_gethostbyname_r): Likewise.
964 (_nss_dns_gethostbyname4_r): Likewise.
965
966 2019-01-21 Florian Weimer <fweimer@redhat.com>
967
968 * resolv/inet_addr.c: Reformat to GNU style.
969 (__inet_addr, __inet_aton): Update comment.
970
971 2019-01-18 Florian Weimer <fweimer@redhat.com>
972
973 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
974 ("malloc: Use current (C11-style) atomics for fastbin access").
975 This commit introduces a substantial performance regression on
976 POWER and Aarch64.
977 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
978 (REMOVE_FB): Define.
979 (_int_malloc): Use it and reindent.
980 (_int_free): Use CAS loop with
981 catomic_compare_and_exchange_val_rel.
982 (malloc_consolidate): Use atomic_exchange_acq.
983
984
985 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
986
987 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
988 -Wl,-z,now.
989 (LDFLAGS-tst-minsigstksz-2): Likewise.
990 (LDFLAGS-tst-minsigstksz-3): Likewise.
991 (LDFLAGS-tst-minsigstksz-3a): Likewise.
992 (LDFLAGS-tst-minsigstksz-4): Likewise.
993
994 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
995
996 * manual/time.texi (strftime): Fix the wording to "alternative" rather
997 than "alternate".
998
999 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
1000
1001 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
1002
1003 2019-01-16 Zack Weinberg <zackw@panix.com>
1004
1005 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
1006 (xget_sigstack_location): New test support functions.
1007 * support/xsigstack.c: New file, implementing them.
1008 * support/tst-xsigstack.c: New test for them.
1009 * support/Makefile: Update.
1010
1011 * signal/tst-minsigstksz-1.c
1012 * signal/tst-minsigstksz-2.c
1013 * signal/tst-minsigstksz-3.c
1014 * signal/tst-minsigstksz-3a.c
1015 * signal/tst-minsigstksz-4.c: New tests.
1016 * signal/Makefile: Run them.
1017
1018 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
1019
1020 * po/libc.pot: Regenerate.
1021
1022 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1023
1024 * math/libm-test-fma.inc (fma_test_data): Set
1025 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
1026
1027 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1028
1029 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
1030 (do_test): Changed __vector __int128_t to __vector unsigned int.
1031
1032 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1033
1034 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1035 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1036 stpcpy-avx2 and stpncpy-avx2.
1037 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1038 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1039 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1040 and __stpncpy_avx2.
1041 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1042 ifunc-strcpy.h}: rename header for a more generic name.
1043 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1044 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1045 AVX unaligned load is fast and vzeroupper is preferred.
1046 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1047 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1048 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1049 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1050 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1051 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1052
1053 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1054
1055 * argp/argp-help.c: Fix typo in comment.
1056 * misc/sys/cdefs.h: Likewise.
1057 * posix/regexec.c (sift_states_iter_mb): Likewise.
1058 * socket/sockatmark.c: Likewise.
1059 * socket/sys/socket.h: Likewise.
1060 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1061 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1062 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1063 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1064 * sysdeps/unix/sockatmark.c: Likewise.
1065 * time/strptime_l.c: Likewise.
1066
1067 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1068
1069 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1070 missing space after the cast of "_NL_CURRENT".
1071
1072 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1073
1074 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1075 ifdef to fix read of VSCR.
1076 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1077 tst-ucontext-ppc64-vscr.c to test list.
1078 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1079
1080 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1081
1082 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1083 fall-through.
1084
1085 2019-01-09 Jim Wilson <jimw@sifive.com>
1086
1087 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1088
1089 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1090
1091 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1092 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1093 __memcpy_falkor for ares.
1094 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1095 Add new define.
1096 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1097 Add ares cpu.
1098
1099 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1100
1101 [BZ #24066]
1102 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1103 4_FP_W_TYPEs are used for IEEE quad precision.
1104 * soft-fp/extendhftf2.c: Likewise.
1105 * soft-fp/extendsftf2.c: Likewise.
1106 * soft-fp/extendxftf2.c: Likewise.
1107 * soft-fp/trunctfdf2.c: Likewise.
1108 * soft-fp/trunctfhf2.c: Likewise.
1109 * soft-fp/trunctfsf2.c: Likewise.
1110 * soft-fp/trunctfxf2.c: Likewise.
1111 * sysdeps/alpha/ots_cvttx.c: Likewise.
1112 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1113 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1114 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1115 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1116 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1117 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1118 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1119 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1120 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1121 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1122 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1123 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1124 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1125 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1126 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1127 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1128 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1129
1130 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1131
1132 [BZ #24024]
1133 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1134 code with -fmath-errno.
1135 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1136 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1137 * string/test-strerror-errno.c: New file.
1138
1139 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1140
1141 [BZ #24046]
1142 * localedata/locales/en_US (date_fmt): Add, set to
1143 "%a %d %b %Y %r %Z".
1144
1145 2019-01-07 Florian Weimer <fweimer@redhat.com>
1146
1147 [BZ #24063]
1148 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1149 instead of @var{errno}.
1150 (Parsing of Integers): Likewise.
1151 (Parsing of Floats): Likewise.
1152 * manual/filesys.texi (Working with Directory Trees): Likewise.
1153 (Temporary Files): Likewise.
1154 * manual/job.texi (Terminal Access Functions): Likewise.
1155 * manual/llio.texi (Synchronizing I/O): Likewise.
1156 * manual/math.texi (SVID Random): Likewise.
1157 * manual/message.texi (The catgets Functions): Likewise.
1158 (Translation with gettext): Likewise.
1159 (Locating gettext catalog): Likewise.
1160 (Charset conversion in gettext): Likewise.
1161 * manual/nss.texi (NSS Module Function Internals): Likewise.
1162 * manual/search.texi (Hash Search Function): Likewise.
1163 * manual/setjmp.texi (System V contexts): Likewise.
1164 * manual/time.texi (Sleeping): Likewise.
1165 * manual/users.texi (Lookup User): Likewise.
1166 (Lookup Group): Likewise.
1167
1168 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1169
1170 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1171 fix typo.
1172
1173 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1174
1175 [BZ #19444]
1176 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1177 __builtin_unreachable for default case in switch.
1178 (__ieee754_yn): Likewise.
1179 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1180 (__ieee754_ynl): Likewise.
1181 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1182 (__ieee754_ynl): Likewise.
1183 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1184 (__ieee754_ynl): Likewise.
1185
1186 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1187
1188 * manual/maint.texi: Use @{ and @}.
1189
1190 2019-01-04 Florian Weimer <fweimer@redhat.com>
1191
1192 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1193 function.
1194 (do_in_chroot_1): Call it.
1195 (run_chroot_tests):
1196 Improve error reporting in case it is not possible to create a
1197 collision for the PTY name required by the test.
1198
1199 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1200
1201 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1202 lll_wait_tid with timeout.
1203 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1204 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1205 futex_reltimed_wait_cancelable for cancelabla mode.
1206 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1207 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1208 macros.
1209 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1210 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1211 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1212 SYSCALL_CANCEL_NCS): New macro.
1213 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1214 (lll_timedwait_tid): Remove macro.
1215 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1216 Likewise.
1217 (lll_timedwait_tid): Likewise.
1218 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1219 Likewise.
1220 (lll_timedwait_tid): Likewise.
1221 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1222 Likewise.
1223 (lll_timedwait_tid): Likewise.
1224 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1225 Use INTERNAL_SYSCALL_CANCEL.
1226 * sysdeps/unix/sysv/linux/futex-internal.h
1227 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1228 instead of __pthread_{enable,disable}_asynccancel.
1229 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1230 (lll_futex_wait_cancel): New macro.
1231
1232 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1233 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1234
1235 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1236 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1237
1238 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1239 in backtrace analysis.
1240 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1241 side-effects.
1242 (tf_send): Likewise.
1243
1244 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1245 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1246 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1247 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1248 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1249 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1250 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1251 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1252 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1253 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1254 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1255 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1256 Likewise.
1257 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1258 tst-cancel-wrappers.sh.
1259 (generated): Remove tst-cancel-wrappers.out.
1260 (tst-cancel-wrappers.out): Remove rule.
1261 * nptl/tst-cancel-wrappers.sh: Remove file.
1262
1263 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1264
1265 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1266 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1267 Update.
1268
1269 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1270
1271 [BZ #23640]
1272 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1273 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1274 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1275 close-on-exec reset for adddup2 file action.
1276 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1277
1278 2019-01-03 Zack Weinberg <zackw@panix.com>
1279
1280 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1281 parameter. Only use deprecated scanf when __USE_GNU is defined
1282 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1283 than 201103L, whichever is relevant for the language being compiled.
1284
1285 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1286 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1287 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1288 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1289 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1290
1291 * libio/iovsscanf.c
1292 * libio/fwscanf.c
1293 * libio/iovswscanf.c
1294 * libio/swscanf.c
1295 * libio/vscanf.c
1296 * libio/vwscanf.c
1297 * libio/wscanf.c
1298 * stdio-common/fscanf.c
1299 * stdio-common/scanf.c
1300 * stdio-common/vfscanf.c
1301 * stdio-common/vfwscanf.c
1302 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1303 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1304 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1305 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1306 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1307 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1308 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1309 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1310 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1311 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1312 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1313 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1314 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1315 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1316 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1317
1318 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1319 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1320 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1321 not sscanf.
1322 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1323 with a preprocessor macro.
1324
1325 * stdio-common/bug21.c, stdio-common/scanf14.c:
1326 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1327 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1328 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1329 to xscanf, xfscanf, xsscanf.
1330
1331 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1332 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1333 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1334 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1335 xfscanf, xsscanf.
1336 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1337 override feature selection macros or provide definitions of u_char etc.
1338 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1339 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1340 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1341 with -std=gnu89.
1342
1343 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1344
1345 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1346 bits/termios-misc.h.
1347 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1348 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1349 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1350 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1351 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1352 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1353
1354 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
1355 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1356 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
1357 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
1358 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
1359 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
1360 termios-misc.h.
1361 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
1362 (sysdep_headers): Add termios-misc.h.
1363
1364 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1365 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1366 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1367
1368 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1369 termios-tcflow.h.
1370 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1371 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1372 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1373 TCSAFLUSH): Move to termios-tcflow.h.
1374 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1375 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1376 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1377 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1378
1379 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1380 termios-c_lflag.h.
1381 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
1382 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
1383 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
1384 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
1385 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
1386 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
1387 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
1388 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
1389 Likewise.
1390 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1391 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1392 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1393 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1394
1395 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1396 termios-c_cflag.h.
1397 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
1398 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
1399 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
1400 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
1401 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
1402 termios-c_cflag.h.
1403 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1404 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1405 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1406 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1407
1408 [BZ #23783]
1409 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1410 termios-baud.h.
1411 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
1412 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
1413 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
1414 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
1415 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
1416 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
1417 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
1418 __MAX_BAUD): Move to termios-baud.h.
1419 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
1420 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
1421 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1422 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1423 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1424
1425 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
1426 termios-c_oflag.h.
1427 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
1428 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
1429 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
1430 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
1431 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
1432 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
1433 termios-c_oflag.h.
1434 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
1435 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
1436 FFR1): Likewise.
1437 [USE_MISC] (XTABS): Likewise.
1438 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1439 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1440 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1441 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
1442
1443 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1444 termios-c_iflag.h.
1445 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
1446 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
1447 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
1448 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
1449 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
1450 IUTF8): Move to termios-c_iflag.h.
1451 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1452 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1453 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1454 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1455
1456 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1457 termios-cc.h.
1458 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
1459 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
1460 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
1461 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
1462 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
1463 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
1464 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
1465 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
1466 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1467 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1468 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1469 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1470
1471 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
1472 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
1473 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
1474 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
1475 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1476 termios-struct.h.
1477 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
1478 termios-struct.h.
1479 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
1480 Likewise.
1481 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
1482 Likewise.
1483 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
1484 Likewise.
1485 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
1486 Likewise.
1487 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
1488 _HAVE_C_OSPEED): Define.
1489 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
1490 _HAVE_C_OSPEED): Likewise.
1491 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
1492 _HAVE_C_OSPEED): Likewise.
1493 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
1494 (cfsetospeed): Check for define value instead of existence.
1495 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
1496 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1497 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
1498 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1499 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
1500
1501 [BZ #17783]
1502 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
1503 Define.
1504 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1505 (TIOCSER_TEMT): Likewise.
1506 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
1507 (TEOCSER_TEMT): Likewise.
1508
1509 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
1510
1511 [BZ #24011]
1512 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
1513
1514 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1515
1516 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1517
1518 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1519
1520 * sysdeps/htl/pt-barrierattr-setpshared.c
1521 (pthread_barrierattr_setpshared): Add stub warning.
1522 * sysdeps/htl/pt-condattr-setpshared.c
1523 (pthread_condattr_setpshared): Likewise.
1524 * sysdeps/htl/pt-mutexattr-setpshared.c
1525 (pthread_mutexattr_setpshared): Likewise.
1526 * sysdeps/htl/pt-rwlockattr-setpshared.c
1527 (pthread_rwlockattr_setpshared): Likewise.
1528 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
1529 (pthread_mutexattr_setpshared): Likewise.
1530
1531 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1532
1533 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
1534 constants to match with Linux 4.20.
1535
1536 * sysdeps/mips/mips32/libm-test-ulps: Update.
1537 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
1538
1539 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
1540
1541 [BZ #24034]
1542 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
1543 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
1544 than __typeof (...) for the a_ptr variable.
1545
1546 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1547
1548 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
1549 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
1550 * libio/Makefile (tests): Add tst-sprintf-ub and
1551 tst-sprintf-chk-ub.
1552 (CFLAGS-tst-sprintf-ub.c): New variable.
1553 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
1554 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
1555 destination buffer and check for overflows in fortified mode.
1556 * libio/libioP.h (PRINTF_CHK): New macro.
1557 * libio/tst-sprintf-chk-ub.c: New file.
1558 * libio/tst-sprintf-ub.c: Likewise.
1559
1560 2019-01-02 Florian Weimer <fweimer@redhat.com>
1561
1562 [BZ #24018]
1563 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
1564 failure.
1565
1566 2019-01-02 Florian Weimer <fweimer@redhat.com>
1567
1568 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
1569
1570 2019-01-01 Joseph Myers <joseph@codesourcery.com>
1571
1572 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
1573 macro.
1574
1575 * sysdeps/unix/sysv/linux/netpacket/packet.h
1576 (PACKET_IGNORE_OUTGOING): New macro.
1577
1578 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
1579 macro.
1580
1581 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1582 version to 4.20.
1583 (riscv_flush_icache): New syscall.
1584
1585 * manual/texinfo.tex: Update to version 2018-12-28.17 with
1586 trailing whitespace removed.
1587 * scripts/config.guess: Update to version 2019-01-01.
1588 * scripts/config.sub: Update to version 2019-01-01.
1589 * scripts/move-if-change: Update from gnulib.
1590
1591 * NEWS: Update copyright dates.
1592 * catgets/gencat.c (print_version): Likewise.
1593 * csu/version.c (banner): Likewise.
1594 * debug/catchsegv.sh: Likewise.
1595 * debug/pcprofiledump.c (print_version): Likewise.
1596 * debug/xtrace.sh (do_version): Likewise.
1597 * elf/ldconfig.c (print_version): Likewise.
1598 * elf/ldd.bash.in: Likewise.
1599 * elf/pldd.c (print_version): Likewise.
1600 * elf/sotruss.sh: Likewise.
1601 * elf/sprof.c (print_version): Likewise.
1602 * iconv/iconv_prog.c (print_version): Likewise.
1603 * iconv/iconvconfig.c (print_version): Likewise.
1604 * locale/programs/locale.c (print_version): Likewise.
1605 * locale/programs/localedef.c (print_version): Likewise.
1606 * login/programs/pt_chown.c (print_version): Likewise.
1607 * malloc/memusage.sh (do_version): Likewise.
1608 * malloc/memusagestat.c (print_version): Likewise.
1609 * malloc/mtrace.pl: Likewise.
1610 * manual/libc.texinfo: Likewise.
1611 * nptl/version.c (banner): Likewise.
1612 * nscd/nscd.c (print_version): Likewise.
1613 * nss/getent.c (print_version): Likewise.
1614 * nss/makedb.c (print_version): Likewise.
1615 * posix/getconf.c (main): Likewise.
1616 * scripts/test-installation.pl: Likewise.
1617 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1618
1619 * All files with FSF copyright notices: Update copyright dates
1620 using scripts/update-copyrights.
1621 * locale/programs/charmap-kw.h: Regenerated.
1622 * locale/programs/locfile-kw.h: Likewise.
1623
1624 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1625
1626 * timezone/zdump.c: Update from tzcode 2018i.
1627 * timezone/zic.c: Likewise.
1628
1629 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
1630
1631 regex: improve Gnulib port to AIX
1632 From the glibc point of view, this removes duplicate macro
1633 definitions and is obviously safe.
1634 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
1635 * posix/regex_internal.h:
1636 (__attribute__, __attribute_warn_unused_result__):
1637 Remove; already defined elsewhere.
1638
1639 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
1640
1641 [BZ #24027]
1642 * malloc/malloc.c (_int_realloc): Always call memcpy for the
1643 copying operation. (ncopies had the wrong type, resulting in an
1644 integer wraparound and too few elements being copied.)
1645
1646 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
1647
1648 [BZ #24022]
1649 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
1650 <asm/syscalls.h> exists with __has_include__ before including it.
1651
1652 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1653
1654 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1655 version to 4.20.
1656
1657 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
1658
1659 * hurd/lookup-retry: Include <unistd.h>.
1660 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
1661 Release it on return. Handle "pid" magical lookup retry.
1662
1663 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1664
1665 [BZ #10496]
1666 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
1667 (t_fmt_ampm): Likewise.
1668 * localedata/locales/aa_ER (t_fmt): Likewise.
1669 (t_fmt_ampm): Likewise.
1670 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
1671 (t_fmt_ampm): Likewise.
1672 * localedata/locales/aa_ET (t_fmt): Likewise.
1673 (t_fmt_ampm): Likewise.
1674 * localedata/locales/am_ET (t_fmt): Likewise.
1675 (t_fmt_ampm): Likewise.
1676 * localedata/locales/byn_ER (t_fmt): Likewise.
1677 (t_fmt_ampm): Likewise.
1678 * localedata/locales/om_ET (t_fmt): Likewise.
1679 (t_fmt_ampm): Likewise.
1680 * localedata/locales/sid_ET (t_fmt): Likewise.
1681 (t_fmt_ampm): Likewise.
1682 * localedata/locales/so_DJ (t_fmt): Likewise.
1683 (t_fmt_ampm): Likewise.
1684 * localedata/locales/so_ET (t_fmt): Likewise.
1685 (t_fmt_ampm): Likewise.
1686 * localedata/locales/so_SO (t_fmt): Likewise.
1687 (t_fmt_ampm): Likewise.
1688 * localedata/locales/ti_ER (t_fmt): Likewise.
1689 (t_fmt_ampm): Likewise.
1690 * localedata/locales/ti_ET (t_fmt): Likewise.
1691 (t_fmt_ampm): Likewise.
1692 * localedata/locales/tig_ER (t_fmt): Likewise.
1693 (t_fmt_ampm): Likewise.
1694 * localedata/locales/wal_ET (t_fmt): Likewise.
1695 (t_fmt_ampm): Likewise.
1696
1697 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
1698 * localedata/locales/ar_IN (t_fmt): Likewise.
1699 * localedata/locales/bhb_IN (t_fmt): Likewise.
1700 * localedata/locales/bho_IN (t_fmt): Likewise.
1701 * localedata/locales/bi_VU (t_fmt): Likewise.
1702 * localedata/locales/bn_BD (t_fmt): Likewise.
1703 * localedata/locales/bn_IN (t_fmt): Likewise.
1704 * localedata/locales/brx_IN (t_fmt): Likewise.
1705 * localedata/locales/doi_IN (t_fmt): Likewise.
1706 * localedata/locales/en_HK (t_fmt): Likewise.
1707 (t_fmt_ampm): Likewise.
1708 * localedata/locales/en_IN (t_fmt): Likewise.
1709 * localedata/locales/en_PH (t_fmt): Likewise.
1710 * localedata/locales/gu_IN (t_fmt): Likewise.
1711 * localedata/locales/hi_IN (t_fmt): Likewise.
1712 * localedata/locales/hif_FJ (t_fmt): Likewise.
1713 * localedata/locales/hne_IN (t_fmt): Likewise.
1714 * localedata/locales/kn_IN (t_fmt): Likewise.
1715 * localedata/locales/kok_IN (t_fmt): Likewise.
1716 * localedata/locales/ks_IN (t_fmt): Likewise.
1717 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
1718 * localedata/locales/mag_IN (t_fmt): Likewise.
1719 * localedata/locales/mai_IN (t_fmt): Likewise.
1720 * localedata/locales/mjw_IN (t_fmt): Likewise.
1721 * localedata/locales/ml_IN (t_fmt): Likewise.
1722 * localedata/locales/mni_IN (t_fmt): Likewise.
1723 * localedata/locales/mr_IN (t_fmt): Likewise.
1724 * localedata/locales/ms_MY (t_fmt): Likewise.
1725 * localedata/locales/pa_IN (t_fmt): Likewise.
1726 * localedata/locales/raj_IN (t_fmt): Likewise.
1727 * localedata/locales/sa_IN (t_fmt): Likewise.
1728 * localedata/locales/sat_IN (t_fmt): Likewise.
1729 * localedata/locales/sd_IN (t_fmt): Likewise.
1730 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
1731 * localedata/locales/tcy_IN (t_fmt): Likewise.
1732 * localedata/locales/the_NP (t_fmt): Likewise.
1733 * localedata/locales/to_TO (t_fmt): Likewise.
1734 * localedata/locales/ur_IN (t_fmt): Likewise.
1735
1736 * localedata/locales/hif_FJ (d_t_fmt): Set to
1737 "%A %d %b %Y %I:%M:%S %p".
1738 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
1739
1740 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
1741 * localedata/locales/ar_BH (t_fmt): Likewise.
1742 * localedata/locales/ar_DZ (t_fmt): Likewise.
1743 * localedata/locales/ar_EG (t_fmt): Likewise.
1744 * localedata/locales/ar_IQ (t_fmt): Likewise.
1745 * localedata/locales/ar_JO (t_fmt): Likewise.
1746 * localedata/locales/ar_KW (t_fmt): Likewise.
1747 * localedata/locales/ar_LB (t_fmt): Likewise.
1748 * localedata/locales/ar_LY (t_fmt): Likewise.
1749 * localedata/locales/ar_OM (t_fmt): Likewise.
1750 * localedata/locales/ar_QA (t_fmt): Likewise.
1751 * localedata/locales/ar_SD (t_fmt): Likewise.
1752 * localedata/locales/ar_SS (t_fmt): Likewise.
1753 * localedata/locales/ar_SY (t_fmt): Likewise.
1754 * localedata/locales/ar_TN (t_fmt): Likewise.
1755 * localedata/locales/ar_YE (t_fmt): Likewise.
1756
1757 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
1758 (t_fmt_ampm): Likewise.
1759 * localedata/locales/gez_ET (t_fmt): Likewise.
1760 (t_fmt_ampm): Likewise.
1761
1762 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
1763 (t_fmt_ampm): Likewise.
1764 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
1765
1766 * localedata/locales/zh_HK (t_fmt):
1767 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
1768
1769 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
1770 because this locale does not use the 12-hour clock.
1771 (t_fmt): Set to "%Z %H:%M:%S".
1772 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
1773
1774 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
1775 because this locale does not use the 12-hour clock.
1776 (t_fmt): Set to "%H:%M:%S %Z".
1777 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
1778
1779 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
1780 because this locale does not use the 12-hour clock.
1781 (t_fmt): Set to "%T".
1782 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
1783 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
1784
1785 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
1786 because this locale does not use the 12-hour clock.
1787 (t_fmt): Set to "%H:%M:%S %Z".
1788 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
1789
1790 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
1791 because this locale does not use the 12-hour clock.
1792 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
1793 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
1794
1795 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1796
1797 [BZ #10496]
1798 [BZ #23724]
1799 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
1800 (t_fmt_ampm): Likewise.
1801 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
1802 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
1803 (d_fmt): Set to "%-d.%-m.%y".
1804
1805 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1806
1807 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
1808 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
1809 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
1810 Likewise.
1811 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
1812 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
1813 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
1814 function.
1815 * support/blob_repeat.c (check_mul_overflow_size_t,
1816 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
1817
1818 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
1819
1820 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
1821
1822 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
1823
1824 regex: simplify Gnulib port
1825 This simplifies the code, by removing stuff intended for porting
1826 to Gnulib but no longer needed there.
1827 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
1828 uses of libc_hidden_def, weak_alias.
1829 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
1830 _Restrict_ except for public-facing headers.
1831 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
1832 Remove; already defined elsewhere.
1833 * posix/regex.c, posix/regex_internal.h:
1834 Use __GNUC_PREREQ instead of rolling our own.
1835 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
1836
1837 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
1838
1839 * benchtests/bench-strlen.c (generic_strlen): New function.
1840 (memchr_strlen): New function.
1841
1842 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1843
1844 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
1845 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
1846 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
1847
1848 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1849
1850 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1851
1852 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1853
1854 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
1855 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
1856 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
1857 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
1858 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
1859 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
1860 <sysdeps/ieee754/flt-32/s_sincosf.c>.
1861
1862 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1863
1864 [BZ #24023]
1865 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
1866 PLT reference in libc.so.
1867 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
1868 _Q_lltoq and _Q_qtod PLT references in libc.so.
1869
1870 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
1871
1872 * benchtests/bench-memchr.c: Cleanup defines.
1873 * benchtests/bench-memcmp.c: Likewise.
1874 * benchtests/bench-memset.c: Likewise.
1875 * benchtests/bench-memset-large.c: Likewise.
1876 * benchtests/bench-memset-walk.c: Likewise.
1877 * benchtests/bench-stpcpy.c: Likewise.
1878 * benchtests/bench-stpncpy.c: Likewise.
1879 * benchtests/bench-strcat.c: Likewise.
1880 * benchtests/bench-strchr.c: Likewise.
1881 * benchtests/bench-strcmp.c: Likewise.
1882 * benchtests/bench-strcpy.c: Likewise.
1883 * benchtests/bench-strcspn.c: Likewise.
1884 * benchtests/bench-string.h: Likewise.
1885 * benchtests/bench-strlen.c: Likewise.
1886 * benchtests/bench-strncat.c: Likewise.
1887 * benchtests/bench-strncmp.c: Likewise.
1888 * benchtests/bench-strncpy.c: Likewise.
1889 * benchtests/bench-strnlen.c: Likewise.
1890 * benchtests/bench-strpbrk.c: Likewise.
1891 * benchtests/bench-strrchr.c: Likewise.
1892 * benchtests/bench-strspn.c: Likewise.
1893
1894 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1895
1896 * stdlib/longlong.h: Update from GCC.
1897
1898 [BZ #23993]
1899 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
1900 * configure: Regenerated.
1901 * manual/install.texi (Tools for Compilation): Update minimum GCC
1902 version.
1903 * INSTALL: Regenerated.
1904
1905 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
1906
1907 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
1908
1909 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
1910
1911 * malloc/malloc.c (mremap_chunk): Additional checks.
1912
1913 2018-12-21 Mao Han <han_mao@c-sky.com>
1914
1915 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
1916 * scripts/build-many-glibcs.py: Add C-SKY targets.
1917 * sysdeps/csky/Implies: New file.
1918 * sysdeps/csky/Makefile: Likewise.
1919 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
1920 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
1921 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
1922 * sysdeps/csky/abiv2/memcmp.S: Likewise.
1923 * sysdeps/csky/abiv2/memcpy.S: Likewise.
1924 * sysdeps/csky/abiv2/memmove.S: Likewise.
1925 * sysdeps/csky/abiv2/memset.S: Likewise.
1926 * sysdeps/csky/abiv2/setjmp.S: Likewise.
1927 * sysdeps/csky/abiv2/start.S: Likewise.
1928 * sysdeps/csky/abiv2/strcmp.S: Likewise.
1929 * sysdeps/csky/abiv2/strcpy.S: Likewise.
1930 * sysdeps/csky/abiv2/strlen.S: Likewise.
1931 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
1932 * sysdeps/csky/abort-instr.h: Likewise.
1933 * sysdeps/csky/atomic-machine.h: Likewise.
1934 * sysdeps/csky/bits/endian.h: Likewise.
1935 * sysdeps/csky/bits/fenv.h: Likewise.
1936 * sysdeps/csky/bits/link.h: Likewise.
1937 * sysdeps/csky/bits/setjmp.h: Likewise.
1938 * sysdeps/csky/bsd-_setjmp.S: Likewise.
1939 * sysdeps/csky/bsd-setjmp.S: Likewise.
1940 * sysdeps/csky/configure: Likewise.
1941 * sysdeps/csky/configure.ac: Likewise.
1942 * sysdeps/csky/dl-machine.h: Likewise.
1943 * sysdeps/csky/dl-procinfo.c: Likewise.
1944 * sysdeps/csky/dl-procinfo.h: Likewise.
1945 * sysdeps/csky/dl-sysdep.h: Likewise.
1946 * sysdeps/csky/dl-tls.h: Likewise.
1947 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
1948 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
1949 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
1950 * sysdeps/csky/fpu/fegetenv.c: Likewise.
1951 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
1952 * sysdeps/csky/fpu/fegetmode.c: Likewise.
1953 * sysdeps/csky/fpu/fegetround.c: Likewise.
1954 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
1955 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
1956 * sysdeps/csky/fpu/fenv_private.h: Likewise.
1957 * sysdeps/csky/fpu/fesetenv.c: Likewise.
1958 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
1959 * sysdeps/csky/fpu/fesetmode.c: Likewise.
1960 * sysdeps/csky/fpu/fesetround.c: Likewise.
1961 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
1962 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
1963 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
1964 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
1965 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
1966 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
1967 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
1968 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
1969 * sysdeps/csky/fpu_control.h: Likewise.
1970 * sysdeps/csky/gccframe.h: Likewise.
1971 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
1972 * sysdeps/csky/ldsodefs.h: Likewise.
1973 * sysdeps/csky/libc-tls.c: Likewise.
1974 * sysdeps/csky/linkmap.h: Likewise.
1975 * sysdeps/csky/machine-gmon.h: Likewise.
1976 * sysdeps/csky/memusage.h: Likewise.
1977 * sysdeps/csky/nofpu/Implies: Likewise.
1978 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
1979 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
1980 * sysdeps/csky/nptl/Makefile: Likewise.
1981 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
1982 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
1983 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
1984 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
1985 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
1986 * sysdeps/csky/nptl/tls.h: Likewise.
1987 * sysdeps/csky/preconfigure: Likewise.
1988 * sysdeps/csky/sfp-machine.h: Likewise.
1989 * sysdeps/csky/sotruss-lib.c: Likewise.
1990 * sysdeps/csky/stackinfo.h: Likewise.
1991 * sysdeps/csky/sysdep.h: Likewise.
1992 * sysdeps/csky/tininess.h: Likewise.
1993 * sysdeps/csky/tst-audit.h: Likewise.
1994 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
1995 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
1996 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
1997 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
1998 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
1999 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
2000 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2001 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
2002 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
2003 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
2004 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
2005 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
2006 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
2007 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
2008 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2009 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2010 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2011 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2012 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2013 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2014 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2015 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2016 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2017 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2018 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2019 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2020 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2021 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2022 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2023 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
2024 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
2025 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
2026 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
2027 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
2028 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
2029 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2030 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
2031 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2032 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2033 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2034 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2035 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2036 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2037 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2038
2039 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2040
2041 * include/time.h (__difftime64): Add.
2042 * time/difftime.c (subtract): convert to 64-bit time.
2043 * time/difftime.c (__difftime64): Add.
2044 * time/difftime.c (__difftime): Wrap around __difftime64.
2045
2046 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2047
2048 * manual/examples/add.c: Remove redundant "if not".
2049 * manual/examples/argp-ex1.c: Likewise.
2050 * manual/examples/argp-ex2.c: Likewise.
2051 * manual/examples/argp-ex3.c: Likewise.
2052 * manual/examples/argp-ex4.c: Likewise.
2053 * manual/examples/atexit.c: Likewise.
2054 * manual/examples/db.c: Likewise.
2055 * manual/examples/dir.c: Likewise.
2056 * manual/examples/dir2.c: Likewise.
2057 * manual/examples/execinfo.c: Likewise.
2058 * manual/examples/filecli.c: Likewise.
2059 * manual/examples/filesrv.c: Likewise.
2060 * manual/examples/fmtmsgexpl.c: Likewise.
2061 * manual/examples/genpass.c: Likewise.
2062 * manual/examples/inetcli.c: Likewise.
2063 * manual/examples/inetsrv.c: Likewise.
2064 * manual/examples/isockad.c: Likewise.
2065 * manual/examples/longopt.c: Likewise.
2066 * manual/examples/memopen.c: Likewise.
2067 * manual/examples/memstrm.c: Likewise.
2068 * manual/examples/mkdirent.c: Likewise.
2069 * manual/examples/mkfsock.c: Likewise.
2070 * manual/examples/mkisock.c: Likewise.
2071 * manual/examples/mygetpass.c: Likewise.
2072 * manual/examples/pipe.c: Likewise.
2073 * manual/examples/popen.c: Likewise.
2074 * manual/examples/rprintf.c: Likewise.
2075 * manual/examples/search.c: Likewise.
2076 * manual/examples/select.c: Likewise.
2077 * manual/examples/setjmp.c: Likewise.
2078 * manual/examples/sigh1.c: Likewise.
2079 * manual/examples/sigusr.c: Likewise.
2080 * manual/examples/stpcpy.c: Likewise.
2081 * manual/examples/strdupa.c: Likewise.
2082 * manual/examples/strftim.c: Likewise.
2083 * manual/examples/subopt.c: Likewise.
2084 * manual/examples/swapcontext.c: Likewise.
2085 * manual/examples/termios.c: Likewise.
2086 * manual/examples/testopt.c: Likewise.
2087 * manual/examples/testpass.c: Likewise.
2088 * manual/examples/timeval_subtract.c: Likewise.
2089
2090 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2091
2092 * sysdeps/x86/fpu/math_private.h: New file.
2093 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2094
2095 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2096 definition.
2097 (cosh): Likewise.
2098 (tanh): Likewise.
2099
2100 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2101
2102 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2103 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2104 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2105 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2106 fields.
2107 (_dl_show_auxv): Give a special treatment to
2108 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2109 and AT_L3_CACHEGEOMETRY.
2110 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2111 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2112 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2113 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2114
2115 2018-12-19 Andreas Schwab <schwab@suse.de>
2116
2117 * nscd/connections.c (check_use): Don't abort on invalid len.
2118
2119 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2120
2121 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2122 values in the 64bit value cases.
2123
2124 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2125
2126 * include/time.h
2127 (__ctime64_r): Add.
2128 * time/ctime_r.c
2129 (__ctime64_r): Add.
2130 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2131
2132 * include/time.h
2133 (__ctime64): Add.
2134 * time/gmtime.c
2135 (__ctime64): Add.
2136 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2137
2138 * include/time.h
2139 (__gmtime64_r): Add.
2140 * time/gmtime.c
2141 (__gmtime64_r): Add.
2142 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2143
2144 * include/time.h
2145 (__gmtime64): Add.
2146 * time/gmtime.c
2147 (__gmtime64): Add.
2148 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2149
2150 * include/time.h
2151 (__localtime64_r): Add.
2152 * time/localtime.c
2153 (__localtime64_r): Add.
2154 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2155
2156 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2157
2158 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2159 kernel_sigction definition.
2160
2161 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2162
2163 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2164
2165 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2166 __syscall_rt_sigaction.
2167 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2168 (kernel_sigaction): Use Linux generic defintion.
2169 (STUB): Define.
2170 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2171 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2172 (__syscall_rt_sigaction): Remove implementation.
2173 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2174 hidden.
2175 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2176 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2177 INTERNAL_SYSCALL): Remove definitions.
2178 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2179 action and signal set size.
2180 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2181 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2182
2183 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2184 James Clarke <jrtc27@jrtc27.com>
2185
2186 [BZ #23967]
2187 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2188 Define if SA_RESTORER is defined.
2189 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2190 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2191 already defined.
2192 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2193 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2194 definitions.
2195 (HAS_SA_RESTORER): Define.
2196 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2197 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2198 (HAS_SA_RESTORER): Define.
2199 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2200 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2201 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2202 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2203 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2204
2205 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2206
2207 * sysdeps/unix/sysv/linux/kernel-features.h
2208 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2209 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2210 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2211 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2212 (__ASSUME_ST_INO_64_BIT): Likewise.
2213 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2214 <kernel-features.h>.
2215 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2216 Remove conditional code.
2217 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2218 <kernel-features.h>.
2219 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2220 Remove conditional code.
2221 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2222 <kernel-features.h>.
2223 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2224 Remove conditional code.
2225 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2226 <kernel-features.h>.
2227 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2228 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2229
2230 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2231
2232 * sysdeps/s390/multiarch/ifunc-resolve.h
2233 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2234 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2235 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2236 Delete macro definition.
2237 (s390_libc_ifunc_init): Rename to
2238 s390_libc_ifunc_expr_stfle_init.
2239 * sysdeps/s390/bzero: Use
2240 s390_libc_ifunc_expr_stfle_init instead of
2241 s390_libc_ifunc_init.
2242 * sysdeps/s390/memcmp.c: Likewise.
2243 * sysdeps/s390/memcpy.c: Likewise.
2244 * sysdeps/s390/mempcpy.c: Likewise.
2245 * sysdeps/s390/memset.c: Likewise.
2246
2247 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2248
2249 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2250 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2251
2252 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2253
2254 * sysdeps/s390/multiarch/Makefile
2255 (sysdep_routines): Remove wmemcmp variants.
2256 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2257 * sysdeps/s390/multiarch/ifunc-impl-list.c
2258 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2259 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2260 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2261 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2262 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2263 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2264 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2265 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2266
2267 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2268
2269 * sysdeps/s390/multiarch/Makefile
2270 (sysdep_routines): Remove wmemset variants.
2271 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2272 * sysdeps/s390/multiarch/ifunc-impl-list.c
2273 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2274 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2275 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2276 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2277 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2278 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2279 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2280 * sysdeps/s390/ifunc-wmemset.h: New file.
2281
2282 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2283
2284 * sysdeps/s390/multiarch/Makefile
2285 (sysdep_routines): Remove wmemchr variants.
2286 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2287 * sysdeps/s390/multiarch/ifunc-impl-list.c
2288 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2289 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2290 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2291 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2292 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2293 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2294 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2295 * sysdeps/s390/ifunc-wmemchr.h: New file.
2296
2297 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2298
2299 * sysdeps/s390/multiarch/Makefile
2300 (sysdep_routines): Remove wcscspn variants.
2301 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2302 * sysdeps/s390/multiarch/ifunc-impl-list.c
2303 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2304 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2305 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2306 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2307 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2308 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2309 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2310 * sysdeps/s390/ifunc-wcscspn.h: New file.
2311
2312 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2313
2314 * sysdeps/s390/multiarch/Makefile
2315 (sysdep_routines): Remove wcspbrk variants.
2316 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2317 * sysdeps/s390/multiarch/ifunc-impl-list.c
2318 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2319 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2320 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2321 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2322 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2323 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2324 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2325 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2326
2327 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2328
2329 * sysdeps/s390/multiarch/Makefile
2330 (sysdep_routines): Remove wcsspn variants.
2331 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2332 * sysdeps/s390/multiarch/ifunc-impl-list.c
2333 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2334 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2335 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2336 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2337 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2338 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2339 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2340 * sysdeps/s390/ifunc-wcsspn.h: New file.
2341
2342 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2343
2344 * sysdeps/s390/multiarch/Makefile
2345 (sysdep_routines): Remove wcsrchr variants.
2346 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2347 * sysdeps/s390/multiarch/ifunc-impl-list.c
2348 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2349 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2350 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2351 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2352 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2353 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2354 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
2355 * sysdeps/s390/ifunc-wcsrchr.h: New file.
2356
2357 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2358
2359 * sysdeps/s390/multiarch/Makefile
2360 (sysdep_routines): Remove wcschrnul variants.
2361 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
2362 * sysdeps/s390/multiarch/ifunc-impl-list.c
2363 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2364 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2365 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2366 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2367 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2368 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2369 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2370 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2371
2372 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2373
2374 * sysdeps/s390/multiarch/Makefile
2375 (sysdep_routines): Remove wcschr variants.
2376 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2377 * sysdeps/s390/multiarch/ifunc-impl-list.c
2378 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
2379 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
2380 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
2381 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
2382 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
2383 * sysdeps/s390/multiarch/wcschr.c: Move to ...
2384 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
2385 * sysdeps/s390/ifunc-wcschr.h: New file.
2386
2387 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2388
2389 * sysdeps/s390/multiarch/Makefile
2390 (sysdep_routines): Remove wcsncmp variants.
2391 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
2392 * sysdeps/s390/multiarch/ifunc-impl-list.c
2393 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
2394 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
2395 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
2396 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
2397 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
2398 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
2399 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
2400 * sysdeps/s390/ifunc-wcsncmp.h: New file.
2401
2402 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2403
2404 * sysdeps/s390/multiarch/Makefile
2405 (sysdep_routines): Remove wcscmp variants.
2406 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
2407 * sysdeps/s390/multiarch/ifunc-impl-list.c
2408 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
2409 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
2410 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
2411 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
2412 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
2413 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
2414 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
2415 * sysdeps/s390/ifunc-wcscmp.h: New file.
2416
2417 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2418
2419 * sysdeps/s390/multiarch/Makefile
2420 (sysdep_routines): Remove wcsncat variants.
2421 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
2422 * sysdeps/s390/multiarch/ifunc-impl-list.c
2423 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
2424 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
2425 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
2426 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
2427 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
2428 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
2429 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
2430 * sysdeps/s390/ifunc-wcsncat.h: New file.
2431
2432 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2433
2434 * sysdeps/s390/multiarch/Makefile
2435 (sysdep_routines): Remove wcscat variants.
2436 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
2437 * sysdeps/s390/multiarch/ifunc-impl-list.c
2438 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
2439 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
2440 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
2441 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
2442 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
2443 * sysdeps/s390/multiarch/wcscat.c: Move to ...
2444 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
2445 * sysdeps/s390/ifunc-wcscat.h: New file.
2446
2447 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2448
2449 * sysdeps/s390/multiarch/Makefile
2450 (sysdep_routines): Remove wcpncpy variants.
2451 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
2452 * sysdeps/s390/multiarch/ifunc-impl-list.c
2453 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
2454 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
2455 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
2456 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
2457 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
2458 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
2459 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
2460 * sysdeps/s390/ifunc-wcpncpy.h: New file.
2461
2462 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2463
2464 * sysdeps/s390/multiarch/Makefile
2465 (sysdep_routines): Remove wcsncpy variants.
2466 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
2467 * sysdeps/s390/multiarch/ifunc-impl-list.c
2468 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
2469 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
2470 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
2471 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
2472 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
2473 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
2474 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
2475 * sysdeps/s390/ifunc-wcsncpy.h: New file.
2476
2477 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2478
2479 * sysdeps/s390/multiarch/Makefile
2480 (sysdep_routines): Remove wcpcpy variants.
2481 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
2482 * sysdeps/s390/multiarch/ifunc-impl-list.c
2483 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
2484 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
2485 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
2486 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
2487 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
2488 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
2489 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
2490 * sysdeps/s390/ifunc-wcpcpy.h: New file.
2491
2492 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2493
2494 * sysdeps/s390/multiarch/Makefile
2495 (sysdep_routines): Remove wcscpy variants.
2496 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
2497 * sysdeps/s390/multiarch/ifunc-impl-list.c
2498 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
2499 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
2500 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
2501 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
2502 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
2503 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
2504 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
2505 * sysdeps/s390/ifunc-wcscpy.h: New file.
2506
2507 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2508
2509 * sysdeps/s390/multiarch/Makefile
2510 (sysdep_routines): Remove wcsnlen variants.
2511 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
2512 * sysdeps/s390/multiarch/ifunc-impl-list.c
2513 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
2514 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
2515 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
2516 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
2517 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
2518 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
2519 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
2520 * sysdeps/s390/ifunc-wcsnlen.h: New file.
2521
2522 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2523
2524 * sysdeps/s390/multiarch/Makefile
2525 (sysdep_routines): Remove wcslen variants.
2526 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
2527 * sysdeps/s390/multiarch/ifunc-impl-list.c
2528 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
2529 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
2530 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
2531 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
2532 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
2533 * sysdeps/s390/multiarch/wcslen.c: Move to ...
2534 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
2535 * sysdeps/s390/ifunc-wcslen.h: New file.
2536
2537 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2538
2539 * sysdeps/s390/multiarch/Makefile
2540 (sysdep_routines): Remove memrchr variants.
2541 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
2542 * sysdeps/s390/multiarch/ifunc-impl-list.c
2543 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
2544 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
2545 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
2546 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
2547 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
2548 * sysdeps/s390/multiarch/memrchr.c: Move to ...
2549 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
2550 * sysdeps/s390/ifunc-memrchr.h: New file.
2551
2552 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2553
2554 * sysdeps/s390/multiarch/Makefile
2555 (sysdep_routines): Remove memccpy variants.
2556 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
2557 * sysdeps/s390/multiarch/ifunc-impl-list.c
2558 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
2559 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
2560 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
2561 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
2562 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
2563 * sysdeps/s390/multiarch/memccpy.c: Move to ...
2564 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
2565 * sysdeps/s390/ifunc-memccpy.h: New file.
2566
2567 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2568
2569 * sysdeps/s390/multiarch/Makefile
2570 (sysdep_routines): Remove rawmemchr variants.
2571 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
2572 * sysdeps/s390/multiarch/ifunc-impl-list.c
2573 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
2574 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
2575 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
2576 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
2577 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
2578 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
2579 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
2580 * sysdeps/s390/ifunc-rawmemchr.h: New file.
2581
2582 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2583
2584 * sysdeps/s390/multiarch/Makefile
2585 (sysdep_routines): Remove memchr variants.
2586 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
2587 * sysdeps/s390/multiarch/ifunc-impl-list.c
2588 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
2589 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
2590 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
2591 * sysdeps/s390/multiarch/memchr.c: Move to ...
2592 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
2593 * sysdeps/s390/ifunc-memchr.h: New file.
2594 * sysdeps/s390/s390-64/memchr.S: Move to ...
2595 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
2596 for 31/64bit and ifunc handling.
2597 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
2598 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
2599 * sysdeps/s390/s390-32/memchr.S: Likewise.
2600
2601 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2602
2603 * sysdeps/s390/multiarch/Makefile
2604 (sysdep_routines): Remove strcspn variants.
2605 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
2606 * sysdeps/s390/multiarch/ifunc-impl-list.c
2607 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
2608 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
2609 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
2610 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
2611 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
2612 * sysdeps/s390/multiarch/strcspn.c: Move to ...
2613 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
2614 * sysdeps/s390/ifunc-strcspn.h: New file.
2615
2616 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2617
2618 * sysdeps/s390/multiarch/Makefile
2619 (sysdep_routines): Remove strpbrk variants.
2620 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
2621 * sysdeps/s390/multiarch/ifunc-impl-list.c
2622 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
2623 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
2624 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
2625 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
2626 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
2627 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
2628 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
2629 * sysdeps/s390/ifunc-strpbrk.h: New file.
2630
2631 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2632
2633 * sysdeps/s390/multiarch/Makefile
2634 (sysdep_routines): Remove strspn variants.
2635 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
2636 * sysdeps/s390/multiarch/ifunc-impl-list.c
2637 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
2638 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
2639 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
2640 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
2641 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
2642 * sysdeps/s390/multiarch/strspn.c: Move to ...
2643 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
2644 * sysdeps/s390/ifunc-strspn.h: New file.
2645
2646 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2647
2648 * sysdeps/s390/multiarch/Makefile
2649 (sysdep_routines): Remove strrchr variants.
2650 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
2651 * sysdeps/s390/multiarch/ifunc-impl-list.c
2652 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
2653 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
2654 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
2655 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
2656 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
2657 * sysdeps/s390/multiarch/strrchr.c: Move to ...
2658 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
2659 * sysdeps/s390/ifunc-strrchr.h: New file.
2660
2661 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2662
2663 * sysdeps/s390/multiarch/Makefile
2664 (sysdep_routines): Remove strchrnul variants.
2665 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
2666 * sysdeps/s390/multiarch/ifunc-impl-list.c
2667 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
2668 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
2669 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
2670 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
2671 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
2672 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
2673 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
2674 * sysdeps/s390/ifunc-strchrnul.h: New file.
2675
2676 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2677
2678 * sysdeps/s390/multiarch/Makefile
2679 (sysdep_routines): Remove strchr variants.
2680 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
2681 * sysdeps/s390/multiarch/ifunc-impl-list.c
2682 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
2683 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
2684 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
2685 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
2686 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
2687 * sysdeps/s390/multiarch/strchr.c: Move to ...
2688 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
2689 * sysdeps/s390/ifunc-strchr.h: New file.
2690
2691 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2692
2693 * sysdeps/s390/multiarch/Makefile
2694 (sysdep_routines): Remove strncmp variants.
2695 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
2696 * sysdeps/s390/multiarch/ifunc-impl-list.c
2697 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
2698 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
2699 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
2700 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
2701 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
2702 * sysdeps/s390/multiarch/strncmp.c: Move to ...
2703 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
2704 * sysdeps/s390/ifunc-strncmp.h: New file.
2705
2706 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2707
2708 * sysdeps/s390/multiarch/Makefile
2709 (sysdep_routines): Remove strcmp variants.
2710 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
2711 * sysdeps/s390/multiarch/ifunc-impl-list.c
2712 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
2713 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
2714 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
2715 * sysdeps/s390/multiarch/strcmp.c: Move to ...
2716 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
2717 * sysdeps/s390/ifunc-strcmp.h: New file.
2718 * sysdeps/s390/s390-64/strcmp.S: Move to ...
2719 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
2720 for 31/64bit and ifunc handling.
2721 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
2722 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
2723 * sysdeps/s390/s390-32/strcmp.S: Likewise.
2724
2725 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2726
2727 * sysdeps/s390/multiarch/Makefile
2728 (sysdep_routines): Remove strncat variants.
2729 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
2730 * sysdeps/s390/multiarch/ifunc-impl-list.c
2731 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
2732 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
2733 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
2734 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
2735 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
2736 * sysdeps/s390/multiarch/strncat.c: Move to ...
2737 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
2738 * sysdeps/s390/ifunc-strncat.h: New file.
2739
2740 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2741
2742 * sysdeps/s390/multiarch/Makefile
2743 (sysdep_routines): Remove strcat variants.
2744 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
2745 * sysdeps/s390/multiarch/ifunc-impl-list.c
2746 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
2747 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
2748 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
2749 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
2750 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
2751 * sysdeps/s390/multiarch/strcat.c: Move to ...
2752 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
2753 * sysdeps/s390/ifunc-strcat.h: New file.
2754
2755 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2756
2757 * sysdeps/s390/multiarch/Makefile
2758 (sysdep_routines): Remove stpncpy variants.
2759 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
2760 * sysdeps/s390/multiarch/ifunc-impl-list.c
2761 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
2762 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
2763 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
2764 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
2765 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
2766 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
2767 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
2768 * sysdeps/s390/ifunc-stpncpy.h: New file.
2769
2770 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2771
2772 * sysdeps/s390/multiarch/Makefile
2773 (sysdep_routines): Remove strncpy variants.
2774 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
2775 * sysdeps/s390/multiarch/ifunc-impl-list.c
2776 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
2777 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
2778 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
2779 * sysdeps/s390/multiarch/strncpy.c: Move to ...
2780 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
2781 * sysdeps/s390/ifunc-strncpy.h: New file.
2782 * sysdeps/s390/s390-64/strncpy.S: Move to ...
2783 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
2784 and adjust ifunc handling.
2785 * sysdeps/s390/s390-32/strncpy.S: Move to ...
2786 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
2787 and adjust ifunc handling.
2788 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
2789 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
2790
2791 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2792
2793 * sysdeps/s390/multiarch/Makefile
2794 (sysdep_routines): Remove stpcpy variants.
2795 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
2796 * sysdeps/s390/multiarch/ifunc-impl-list.c
2797 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
2798 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
2799 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
2800 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
2801 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
2802 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
2803 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
2804 * sysdeps/s390/ifunc-stpcpy.h: New file.
2805
2806 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2807
2808 * sysdeps/s390/multiarch/Makefile
2809 (sysdep_routines): Remove strcpy variants.
2810 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
2811 * sysdeps/s390/multiarch/ifunc-impl-list.c
2812 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
2813 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
2814 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
2815 * sysdeps/s390/multiarch/strcpy.c: Move to ...
2816 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
2817 * sysdeps/s390/ifunc-strcpy.h: New file.
2818 * sysdeps/s390/s390-64/strcpy.S: Move to ...
2819 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
2820 for 31/64bit and ifunc handling.
2821 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
2822 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
2823 * sysdeps/s390/s390-32/strcpy.S: Likewise.
2824
2825 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2826
2827 * sysdeps/s390/multiarch/Makefile
2828 (sysdep_routines): Remove strnlen variants.
2829 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
2830 * sysdeps/s390/multiarch/ifunc-impl-list.c
2831 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
2832 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
2833 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
2834 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
2835 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
2836 * sysdeps/s390/multiarch/strnlen.c: Move to ...
2837 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
2838 * sysdeps/s390/ifunc-strnlen.h: New file.
2839
2840 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2841
2842 * sysdeps/s390/multiarch/Makefile
2843 (sysdep_routines): Remove strlen variants.
2844 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
2845 * sysdeps/s390/multiarch/ifunc-impl-list.c
2846 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
2847 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
2848 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
2849 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
2850 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
2851 * sysdeps/s390/multiarch/strlen.c: Move to ...
2852 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
2853 * sysdeps/s390/ifunc-strlen.h: New file.
2854
2855 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2856
2857 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
2858 * sysdeps/s390/multiarch/ifunc-impl-list.c
2859 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
2860 * sysdeps/s390/ifunc-memmem.h: New file.
2861 * sysdeps/s390/memmem.c: Likewise.
2862 * sysdeps/s390/memmem-c.c: Likewise.
2863 * sysdeps/s390/memmem-vx.c: Likewise.
2864
2865 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2866
2867 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
2868 * sysdeps/s390/multiarch/ifunc-impl-list.c
2869 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
2870 * sysdeps/s390/ifunc-strstr.h: New file.
2871 * sysdeps/s390/strstr.c: Likewise.
2872 * sysdeps/s390/strstr-c.c: Likewise.
2873 * sysdeps/s390/strstr-vx.c: Likewise.
2874
2875 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2876
2877 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
2878 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
2879 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
2880 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
2881 New defines.
2882 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
2883 * sysdeps/s390/memmove-c.c: New file.
2884 * sysdeps/s390/memmove.c: Likewise.
2885 * sysdeps/s390/multiarch/ifunc-impl-list.c
2886 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
2887
2888 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2889
2890 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
2891 * sysdeps/s390/configure.ac: Add check for z13 support.
2892 * sysdeps/s390/configure: Regenerated.
2893
2894 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2895
2896 * sysdeps/s390/memcopy.h: New file.
2897
2898 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2899
2900 * sysdeps/s390/s390-32/bcopy.S: Remove.
2901 * sysdeps/s390/s390-64/bcopy.S: Likewise.
2902
2903 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2904
2905 * sysdeps/s390/ifunc-memcpy.h: New File.
2906 * sysdeps/s390/memcpy.S: Move to ...
2907 * sysdeps/s390/memcpy-z900.S ... here.
2908 Move implementations from memcpy-s390x.s to here.
2909 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
2910 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2911 Remove memcpy/mempcpy variants.
2912 * sysdeps/s390/Makefile (sysdep_routines):
2913 Add memcpy/mempcpy variants.
2914 * sysdeps/s390/multiarch/ifunc-impl-list.c
2915 (__libc_ifunc_impl_list): Adjust ifunc variants for
2916 memcpy and mempcpy.
2917 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
2918 to ...
2919 * sysdeps/s390/memcpy.c: ... here.
2920 Adjust ifunc variants for memcpy.
2921 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
2922 * sysdeps/s390/mempcpy.c: ... here.
2923 Adjust ifunc variants for mempcpy.
2924 * sysdeps/s390/mempcpy.S: Delete file.
2925
2926 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2927
2928 * sysdeps/s390/s390-64/memcpy.S: Move to ...
2929 * sysdeps/s390/memcpy.S: ... here.
2930 Adjust to be usable for 31/64bit.
2931 * sysdeps/s390/s390-32/memcpy.S: Delete File.
2932 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
2933 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
2934 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2935 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
2936 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
2937 Adjust to be usable for 31/64bit.
2938 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
2939 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
2940 * sysdeps/s390/multiarch/memcpy.c: ... here.
2941 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
2942
2943 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2944
2945 * sysdeps/s390/ifunc-memcmp.h: New File.
2946 * sysdeps/s390/memcmp.S: Move to ...
2947 * sysdeps/s390/memcmp-z900.S ... here.
2948 Move implementations from memcmp-s390x.s to here.
2949 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
2950 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2951 Remove memcmp variants.
2952 * sysdeps/s390/Makefile (sysdep_routines):
2953 Add memcmp variants.
2954 * sysdeps/s390/multiarch/ifunc-impl-list.c
2955 (__libc_ifunc_impl_list): Adjust ifunc variants for
2956 memcmp.
2957 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
2958 to ...
2959 * sysdeps/s390/memcmp.c: ... here.
2960 Adjust ifunc variants for memcmp.
2961
2962 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2963
2964 * sysdeps/s390/s390-64/memcmp.S: Move to ...
2965 * sysdeps/s390/memcmp.S: ... here.
2966 Adjust to be usable for 31/64bit.
2967 * sysdeps/s390/s390-32/memcmp.S: Delete File.
2968 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
2969 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
2970 Remove memcmp.
2971 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2972 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
2973 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
2974 Adjust to be usable for 31/64bit.
2975 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
2976 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
2977 * sysdeps/s390/multiarch/memcmp.c: ... here.
2978 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
2979
2980 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2981
2982 * sysdeps/s390/s390-32/bzero.S: Delete file.
2983 * sysdeps/s390/s390-64/bzero.S: Likewise.
2984 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
2985 * sysdeps/s390/bzero.c: New file.
2986 * sysdeps/s390/memset-z900.S: Add bzero entry points.
2987 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
2988 * sysdeps/s390/multiarch/ifunc-impl-list.c
2989 (__libc_ifunc_impl_list): Add bzero ifunc variants.
2990
2991 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2992
2993 * sysdeps/s390/ifunc-memset.h: New File.
2994 * sysdeps/s390/memset.S: Move to ...
2995 * sysdeps/s390/memset-z900.S ... here.
2996 Move implementations from memset-s390x.s to here.
2997 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
2998 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2999 Remove memset variants.
3000 * sysdeps/s390/Makefile (sysdep_routines):
3001 Add memset variants.
3002 * sysdeps/s390/multiarch/ifunc-impl-list.c
3003 (__libc_ifunc_impl_list): Adjust ifunc variants for
3004 memset.
3005 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
3006 to ...
3007 * sysdeps/s390/memset.c: ... here.
3008 Adjust ifunc variants for memset.
3009
3010 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3011
3012 * sysdeps/s390/s390-64/memset.S: Move to ...
3013 * sysdeps/s390/memset.S: ... here.
3014 Adjust to be usable for 31/64bit.
3015 * sysdeps/s390/s390-32/memset.S: Delete File.
3016 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3017 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3018 Remove memset.
3019 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3020 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3021 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3022 Adjust to be usable for 31/64bit.
3023 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
3024 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
3025 * sysdeps/s390/multiarch/memset.c: ... here.
3026 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
3027
3028 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3029
3030 * sysdeps/s390/multiarch/ifunc-resolve.h
3031 (s390_libc_ifunc_init, s390_libc_ifunc,
3032 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3033
3034 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3035
3036 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3037 * sysdeps/s390/configure.ac: Add check for z10 support.
3038 * sysdeps/s390/configure: Regenerated.
3039
3040 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3041
3042 * sysdeps/i386/atomic-machine.h: Merged with ...
3043 * sysdeps/x86_64/atomic-machine.h: To ...
3044 * sysdeps/x86/atomic-machine.h: This. New file.
3045
3046 2018-12-18 Florian Weimer <fweimer@redhat.com>
3047
3048 Rewrite locale/gen-translit.pl in Python.
3049 * locale/Makefile (generated): Add C-translit.h.
3050 (before-compile): Add $(objpfx)C-translit.h.
3051 (C-translit.h): Move to $(objpfx). Create target directory.
3052 Build using Python script.
3053 * locale/gen-translit.py: New file.
3054 * locale/gen-translit.pl: Remove file.
3055 * locale/C-translit.h.in: Change comment character to '#' for
3056 easier parsing without a C preprocessor.
3057 * locale/C-translit.h: Remove generated file.
3058 * manual/install.texi (Tools for Compilation): Do not mention
3059 C-translit.h.
3060 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3061 Remove locale/C-translit.h.
3062 * scripts/update-copyrights: Likewise.
3063 * INSTALL: Regenerate.
3064
3065 2018-12-18 Florian Weimer <fweimer@redhat.com>
3066
3067 [BZ #23995]
3068 * localedata/locales/bi_VU: Remove executable bit from file.
3069
3070 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3071
3072 * include/time.h
3073 (__localtime64): Add.
3074 * manual/maint.texi: Document Y2038 symbol handling.
3075 * time/localtime.c
3076 (__localtime64): Add.
3077 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3078
3079 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3080
3081 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3082 Do not clobber r12.
3083
3084 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3085 to allow extra macros from first or second sources.
3086 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3087 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3088 (tests-special): Add $(objpfx)tst-mman-consts.out.
3089 ($(objpfx)tst-mman-consts.out): New makefile target.
3090
3091 2018-12-17 Mao Han <han_mao@c-sky.com>
3092
3093 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3094 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3095 without stat64 system call support.
3096 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3097 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3098 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3099 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3100 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3101 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3102 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3103 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3104 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3105 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3106 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3107
3108 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3109
3110 regex: fix storage-exhaustion error
3111 [BZ #18040]
3112 * posix/regexec.c (get_subexp):
3113 Do not continue if storage is exhausted.
3114
3115 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3116
3117 regex: fix heap-use-after-free error
3118 [BZ #18040]
3119 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3120 https://debbugs.gnu.org/32592
3121 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3122 call extend_buffers which reallocates the re_string_t internal buffer.
3123 Local variable 'buf' was not updated in such case, resulting in
3124 use-after-free.
3125 * posix/regexec.c (get_subexp): Update 'buf' after call to
3126 get_subexp_sub.
3127
3128 2018-12-15 Florian Weimer <fweimer@redhat.com>
3129
3130 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3131 (minimum_stride_size): Use it.
3132 (support_blob_repeat_allocate): Likewise.
3133
3134 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3135
3136 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3137 definition.
3138 (acosh): Likewise.
3139 (atanh): Likewise.
3140
3141 2018-12-14 Florian Weimer <fweimer@redhat.com>
3142
3143 * manual/process.texi (Process Creation Concepts): Remove
3144 documentation of process (ID) lifetime. List more process
3145 creation functions. Reference Process Identification section.
3146 (Process Identification): Add information about process ID
3147 lifetime. Describe Linux thread/task IDs.
3148 * manual/signal.texi (Signaling Another Process): Mention that the
3149 signal is always sent to the process.
3150
3151 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3152
3153 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3154 and tst-ldbl-efgcvt.
3155 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3156 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3157 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3158 (fcvt_tests, output_error, output_r_error, do_test): Use the
3159 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3160 select the type of floating-point variables and arguments; to
3161 produce extra tests for double and conversion specifiers for
3162 printf; and to set the names of called functions.
3163 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3164 in tst-efgcvt-template.c.
3165 * misc/tst-ldbl-efgcvt.c: Likewise.
3166
3167 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3168
3169 * nss/Makefile (tst-nss-test3.out): New rule.
3170
3171 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3172
3173 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3174 clobber sp.
3175
3176 2018-12-13 fanjinke <fanjinke@hygon.cn>
3177
3178 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3179 "HygonGenuine".
3180
3181 2018-12-13 Andreas Schwab <schwab@suse.de>
3182
3183 [BZ #23861]
3184 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3185 (__pthread_rwlock_rdlock_full): Update expected value for
3186 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3187 * nptl/tst-rwlock-pwn.c: New file.
3188 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3189
3190 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3191
3192 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3193 definition.
3194
3195 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3196
3197 * benchtests/scripts/compare_bench.py (do_compare): write to
3198 stderr in casestat is not present.
3199 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3200 stderr in case timings field is not present. Also string showing
3201 the output filename goes into the stderr.
3202
3203 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3204
3205 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3206 and ZeroDivisorError exceptions.
3207 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3208 argument to loop through user provided statistics.
3209 * benchtests/scripts/compare_bench.py (main): Include the --stats
3210 argument.
3211
3212 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3213
3214 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3215 instead of return.
3216
3217 2018-12-12 Florian Weimer <fweimer@redhat.com>
3218
3219 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3220 clause to copyright header.
3221
3222 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3223
3224 [BZ #23614]
3225 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3226 registers saved in the stack frame.
3227 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3228 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3229
3230 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3231
3232 * include/bits/monetary-ldbl.h: New file.
3233 * include/bits/printf-ldbl.h: Likewise.
3234 * include/bits/stdio-ldbl.h: Likewise.
3235 * include/bits/stdlib-ldbl.h: Likewise.
3236 * include/bits/syslog-ldbl.h: Likewise.
3237 * include/bits/wchar-ldbl.h: Likewise.
3238
3239 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3240
3241 * libio/libio.h: Remove redirection for _IO_vfprintf.
3242
3243 2018-12-11 Andreas Schwab <schwab@suse.de>
3244
3245 * Makerules: Remove all references to abilist-pattern.
3246 (update-all-abi): Simplify find expression.
3247
3248 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3249
3250 [BZ #23961]
3251 * math/auto-libm-test-in: Add new test case.
3252 * math/auto-libm-test-out-pow: Regenerated.
3253 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3254
3255 2018-12-10 DJ Delorie <dj@redhat.com>
3256
3257 [BZ #23948]
3258 * support/test-container.c: Move postclean step to before we
3259 change namespaces.
3260
3261 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3262
3263 * scripts/gen-as-const.py (main): Handle --python option.
3264 * scripts/gen-py-const.awk: Remove.
3265 * Makerules (py-const-script): Use gen-as-const.py.
3266 ($(py-const)): Likewise.
3267 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3268 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3269 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3270 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3271 ~PTHREAD_MUTEX_NO_ELISION_NP.
3272 * manual/README.pretty-printers: Update reference to
3273 gen-py-const.awk.
3274
3275 * scripts/glibcextract.py: New file.
3276 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3277 or tempfile. Import glibcexctract.
3278 (compute_c_consts): Remove. Moved to glibcextract.py.
3279 (gen_test): Update reference to compute_c_consts.
3280 (main): Likewise.
3281 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3282 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3283 * sysdeps/unix/sysv/linux/Makefile
3284 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3285 Redirect stderr as well as stdout.
3286
3287 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3288
3289 [BZ #19767]
3290 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3291 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3292 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3293 ALWAYS_USE_VSYSCALL.
3294 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3295 ALWAYS_USE_VSYSCALL.
3296 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3297 ALWAYS_USE_VSYSCALL.
3298
3299 2018-12-10 Florian Weimer <fweimer@redhat.com>
3300
3301 [BZ #23972]
3302 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3303 offset instead of count for clarity. Fix typo in comment.
3304 (__old_getdents64): Keep track of previous offset. Use it to call
3305 handle_overflow.
3306 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3307 that d_off is never zero.
3308
3309 2018-12-10 Andreas Schwab <schwab@suse.de>
3310
3311 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3312 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3313 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3314 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3315 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3316
3317 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3318
3319 * timezone/private.h: Update from tzcode 2018g.
3320 * timezone/tzfile.h: Likewise.
3321 * timezone/tzselect.ksh: Likewise.
3322 * timezone/zdump.c: Likewise.
3323 * timezone/zic.c: Likewise.
3324
3325 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3326
3327 [BZ #23490]
3328 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3329 (do_test): Adjust buffer size and fix format.
3330
3331 2018-12-07 DJ Delorie <dj@redhat.com>
3332
3333 [BZ #23907]
3334 * malloc/tst-tcfree3.c: New.
3335 * malloc/Makefile: Add it.
3336
3337 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3338
3339 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3340
3341 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3342
3343 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3344 used as a mask for the mode argument of __vfscanf_internal and
3345 __vfwscanf_internal.
3346 * stdio-common/vfscanf-internal.c
3347 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3348 (__strtof128_internal): Define to __wcstof128_internal.
3349 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3350 __strtof128_internal or __wcstof128_internal when the format of
3351 long double is the same as _Float128.
3352
3353 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3354
3355 * include/unistd.h (__confstr): Add prototype and hidden prototype.
3356 * posix/confstr.c (confstr): Rename to __confstr.
3357 (__confstr): Add hidden def.
3358 (confstr): Add weak alias for __confstr.
3359 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
3360 confstr.
3361
3362 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3363
3364 * NEWS: Mention getcpu.
3365 * include/sched.h (__getcpu): New libc_hidden_proto.
3366 * manual/resource.texi: Document getcpu.
3367 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3368 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3369 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3370 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3371 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3372 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3373 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3374 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3375 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3376 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3377 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3378 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3379 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3380 Likewise.
3381 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3382 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3383 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3384 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3385 Likewise.
3386 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3387 Likewise.
3388 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3389 Likewise.
3390 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3391 Likewise.
3392 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3393 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3394 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3395 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3396 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3397 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3398 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3399 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3400 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
3401 * sysdeps/unix/sysv/linux/getcpu.c: New file.
3402 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
3403 Also check getcpu.
3404
3405 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3406
3407 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
3408 functions.
3409 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
3410
3411 2018-12-07 Florian Weimer <fweimer@redhat.com>
3412
3413 [BZ #17405]
3414 * posix/Makefile (routines): Add spawn_faction_addfchdir.
3415 * posix/Versions (GLIBC_2.29): Export
3416 posix_spawn_file_actions_addfchdir_np.
3417 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
3418 * posix/spawn_faction_destroy.c
3419 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
3420 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
3421 and the field action.fchdir_action.
3422 * posix/tst-spawn-chdir.c (add_chdir): New function.
3423 (do_test): Add do_fchdir loop. Call add_chdir.
3424 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
3425 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3426 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
3427 posix_spawn_file_actions_addfchdir_np.
3428 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
3429 Likewise.
3430 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
3431 Likewise.
3432 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
3433 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
3434 Likewise.
3435 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
3436 Likewise.
3437 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
3438 Likewise.
3439 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
3440 Likewise.
3441 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
3442 Likewise.
3443 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
3444 Likewise.
3445 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3446 (GLIBC_2.29): Likewise.
3447 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3448 (GLIBC_2.29): Likewise.
3449 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3450 (GLIBC_2.29): Likewise.
3451 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3452 (GLIBC_2.29): Likewise.
3453 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
3454 Likewise.
3455 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3456 (GLIBC_2.29): Likewise.
3457 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3458 (GLIBC_2.29): Likewise.
3459 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
3460 (GLIBC_2.29): Likewise.
3461 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
3462 (GLIBC_2.29): Likewise.
3463 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
3464 Likewise.
3465 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
3466 Likewise.
3467 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
3468 Likewise.
3469 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
3470 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
3471 Likewise.
3472 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
3473 Likewise.
3474 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
3475 Likewise.
3476 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
3477 Likewise.
3478
3479 2018-12-06 Joseph Myers <joseph@codesourcery.com>
3480
3481 * manual/texinfo.tex: Update to version 2018-09-21.20 with
3482 trailing whitespace removed.
3483 * scripts/config.guess: Update to version 2018-11-28.
3484 * scripts/config.sub: Update to version 2018-11-28.
3485 * scripts/install-sh: Update to version 2018-03-11.20.
3486 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
3487 * scripts/move-if-change: Update to version 2018-03-07 03:47.
3488
3489 2018-12-07 Florian Weimer <fweimer@redhat.com>
3490
3491 [BZ #23927]
3492 CVE-2018-19591
3493 * inet/tst-if_index-long.c: New file.
3494 * inet/Makefile (tests): Add tst-if_index-long.
3495
3496 2018-12-07 Florian Weimer <fweimer@redhat.com>
3497
3498 * support/check.h (support_record_failure_is_failed): Declare.
3499 * support/descriptors.h: New file.
3500 * support/support_descriptors.c: Likewise.
3501 * support/tst-support_descriptors.c: Likewise.
3502 * support/support_record_failure.c
3503 (support_record_failure_is_failed): New function.
3504 * support/Makefile (libsupport-routines): Add support_descriptors.
3505 (tests): Add tst-support_descriptors.
3506
3507 2018-12-05 Zack Weinberg <zackw@panix.com>
3508 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3509
3510 * stdio-common/vfprintf-internal.c
3511 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
3512 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
3513 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
3514 and __no_long_double.
3515 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
3516 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
3517 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
3518 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
3519 and __nldbl_*syslog* functions.
3520 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
3521 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
3522 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
3523 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
3524 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
3525 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
3526 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
3527 (__nldbl_vwprintf, __nldbl_wprintf):
3528 Directly call the appropriate __v*printf_internal routine, passing
3529 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
3530 variable names.
3531 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
3532 (__nldbl___printf_chk, __nldbl___snprintf_chk)
3533 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
3534 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
3535 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
3536 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3537 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
3538 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
3539 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
3540 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
3541 Likewise, and also pass PRINTF_FORTIFY when appropriate.
3542 (__nldbl_syslog, __nldbl_vsyslog):
3543 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
3544 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3545 appropriate.
3546 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3547 appropriate.
3548
3549 2018-12-05 Zack Weinberg <zackw@panix.com>
3550 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3551
3552 [BZ #11319]
3553 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
3554 Moved here from debug/vsprintf_chk.c.
3555 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
3556 and completion logic for the strfile to match exactly what
3557 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
3558 _IO_str_init_static_internal instead of maxlen-1.
3559 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3560 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
3561 __vsprintf_internal.
3562
3563 * debug/vsprintf_chk.c (__vsprintf_chk)
3564 * debug/sprintf_chk.c (__sprintf_chk):
3565 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
3566 'flags' argument is positive, and slen as maxlen. No need to lock
3567 the FILE and/or construct a temporary FILE. Minimize and normalize
3568 header inclusions and variable names. Do not libc_hidden_def anything.
3569
3570 * debug/asprintf_chk.c (__asprintf_chk)
3571 * debug/dprintf_chk.c (__dprintf_chk)
3572 * debug/fprintf_chk.c (__fprintf_chk)
3573 * debug/fwprintf_chk.c (__fwprintf_chk)
3574 * debug/printf_chk.c (__printf_chk)
3575 * debug/snprintf_chk.c (__snprintf_chk)
3576 * debug/swprintf_chk.c (__swprintf_chk)
3577 * debug/vasprintf_chk.c (__vasprintf_chk)
3578 * debug/vdprintf_chk.c (__vdprintf_chk)
3579 * debug/vfprintf_chk.c (__vfprintf_chk)
3580 * debug/vfwprintf_chk.c (__vfwprintf_chk)
3581 * debug/vprintf_chk.c (__vprintf_chk)
3582 * debug/vsnprintf_chk.c (__vsnprintf_chk)
3583 * debug/vswprintf_chk.c (__vswprintf_chk)
3584 * debug/vwprintf_chk.c (__vwprintf_chk)
3585 * debug/wprintf_chk.c (__wprintf_chk):
3586 Directly call the corresponding vxxprintf_internal function, passing
3587 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
3588 the FILE and/or construct a temporary FILE. Minimize and normalize
3589 header inclusions and variable names. Do not libc_hidden_def anything.
3590
3591 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
3592 __obstack_vprintf_internal.
3593 (__obstack_vprintf_chk): Convert into a wrapper that calls
3594 __obstack_vprintf_internal (these two functions already had the
3595 same code) and move to new file...
3596 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
3597 file.
3598 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
3599 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
3600 * debug/Makefile (routines): Add vobprintf_chk.
3601
3602 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3603 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3604 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
3605 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3606 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
3607 (__nldbl___obstack_vfprintf_chk):
3608 Directly call the corresponding vxxprintf_internal function,
3609 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
3610 duplicate comparison of slen with 0 or maxlen from the corresponding
3611 non-__nldbl function.
3612
3613 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
3614 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
3615 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
3616 Remove libc_hidden_proto.
3617
3618 * stdio-common/vfprintf-internal.c
3619 (__vfprintf_internal, __vfwprintf_internal):
3620 Do not check _IO_FLAGS2_FORTIFY.
3621 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
3622 * libio/libioP.h: Update prototype of __vsprintf_internal and add
3623 a comment explaining why it has the maxlen argument.
3624 (_IO_acquire_lock_clear_flags2_fct): Remove.
3625 (_IO_acquire_lock_clear_flags2): Remove.
3626 (_IO_release_lock): Remove conditional statement which will
3627 now never execute.
3628 (_IO_acquire_lock): Remove variable which is now unused.
3629 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3630 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3631
3632 * stdio-common/Makefile (tests): Add tst-bz11319 and
3633 tst-bz11319-fortify2.
3634 (CFLAGS-tst-bz11319-fortify2.c): New macro.
3635 * stdio-common/tst-bz11319-fortify2.c: New file.
3636 * stdio-common/tst-bz11319.c: Likewise.
3637
3638 2018-12-05 Zack Weinberg <zackw@panix.com>
3639 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3640
3641 * misc/syslog.c: Include libioP.h, not iolibio.h.
3642 (__vsyslog_internal): New function with the former body of
3643 __vsyslog_chk; takes mode_flags argument same as
3644 __v*printf_internal. Call __vfprintf_internal directly.
3645
3646 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
3647 Remove libc_hidden_def.
3648 (__syslog, __syslog_chk): Use __vsyslog_internal.
3649 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
3650
3651 * include/sys/syslog.h: Add multiple inclusion guard.
3652 Add prototype for __vsyslog_internal.
3653 Remove declaration and libc_hidden_proto for __vsyslog_chk.
3654
3655 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
3656 Use __vsyslog_internal.
3657
3658 2018-12-05 Zack Weinberg <zackw@panix.com>
3659 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3660
3661 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
3662 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
3663 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
3664 New functions.
3665 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
3666 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
3667
3668 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
3669 Include wctype.h here if COMPILE_WPRINTF is defined.
3670 Define __vfprintf_internal or __vfwprintf_internal, depending
3671 on COMPILE_WPRINTF.
3672 Temporarily, on entry to this function, update mode_flags
3673 according to the environmental settings corresponding to
3674 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
3675 Throughout, check mode_flags instead of __ldbl_is_dbl and
3676 _IO_FLAGS2_FORTIFY on the destination FILE.
3677 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
3678 Include vfprintf-internal.c. Don't include wctype.h.
3679 * stdio-common/vfprintf.c: New file. Just define __vfprintf
3680 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
3681 and vfprintf.
3682 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
3683 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
3684 and vfwprintf.
3685 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
3686
3687 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
3688 and add mode_flags argument; use __vfprintf_internal.
3689 (__vdprintf): New function. Alias vdprintf to this.
3690 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
3691 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
3692 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
3693 (__obstack_printf): Use __obstack_printf_internal.
3694 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
3695 public aliases __vsnprintf and vsnprintf.
3696 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
3697 called internally.
3698 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
3699 public aliases _IO_vsprintf and vsprintf.
3700 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
3701 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
3702 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
3703 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
3704 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
3705
3706 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
3707 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
3708 * stdio-common/fprintf.c, stdio-common/fxprintf.c
3709 * stdio-common/printf.c: Use __vfprintf_internal.
3710
3711 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
3712 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
3713 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
3714
3715 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
3716 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
3717 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
3718 __vfwprintf_internal.
3719
3720 * libio/libio.h: Remove libc_hidden_proto and declaration for
3721 _IO_vfprintf.
3722 Remove declaration of _IO_vfwprintf.
3723 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
3724 _IO_vsprintf.
3725 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
3726 _IO_obstack_printf.
3727 * include/stdio.h: Add prototype for __vasprintf.
3728 (__vsnprintf): Remove declaration, because there are no more
3729 internal calls.
3730 * include/wchar.h (__vfwprintf, __vswprintf): Remove
3731 declaration, because there are no more internal calls.
3732
3733 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
3734 __vsnprintf_internal, instead of _IO_vsnprintf.
3735 * argp/argp-help.c (__argp_error, __argp_failure): Use
3736 __vasprintf_internal, instead of _IO_vasprintf.
3737 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
3738 redefine, because there are no more internal calls.
3739
3740 2018-12-05 Zack Weinberg <zackw@panix.com>
3741 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3742
3743 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
3744 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
3745 Include libio/strfile.h instead of libioP.h.
3746 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
3747 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
3748 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
3749 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
3750 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
3751 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
3752 necessary. Do not set __no_long_double. Normalize variable names.
3753 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
3754 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
3755 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
3756 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
3757 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
3758 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
3759 Call __vfscanf_internal / __vfwscanf_internal directly, passing
3760 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
3761 Do not set __no_long_double. Normalize variable names.
3762
3763 2018-12-05 Zack Weinberg <zackw@panix.com>
3764 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3765
3766 * stdio-common/isoc99_scanf.c
3767 * stdio-common/isoc99_fscanf.c
3768 * stdio-common/isoc99_sscanf.c
3769 * stdio-common/isoc99_vscanf.c
3770 * stdio-common/isoc99_vfscanf.c
3771 * stdio-common/isoc99_vsscanf.c
3772 * wcsmbs/isoc99_wscanf.c
3773 * wcsmbs/isoc99_fwscanf.c
3774 * wcsmbs/isoc99_swscanf.c
3775 * wcsmbs/isoc99_vwscanf.c
3776 * wcsmbs/isoc99_vfwscanf.c
3777 * wcsmbs/isoc99_vswscanf.c:
3778 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
3779 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
3780 No need to lock and unlock the FILE passed to that function.
3781
3782 * stdio-common/vfscanf-internal.c
3783 (__vfscanf_internal, __vfwscanf_internal):
3784 Don't look at _IO_FLAGS2_SCANF_STD.
3785 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
3786 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
3787 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
3788
3789 2018-12-05 Zack Weinberg <zackw@panix.com>
3790 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3791
3792 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
3793 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
3794 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
3795 * libio/strfile.h: Add multiple inclusion guard.
3796 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
3797
3798 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
3799 consistency with the other version of this file.
3800 (ldbl_compat_symbol): New macro.
3801 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
3802 New macro.
3803
3804 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
3805 Define __vfscanf_internal or __vfwscanf_internal, depending on
3806 COMPILE_WSCANF; don't define any other public symbols.
3807 Remove errval and code to set errp.
3808 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
3809 as the mode_flags argument.
3810 (encode_error, conv_error, input_error): Don't set errval.
3811 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
3812 Include vfscanf-internal.c.
3813 * stdio-common/vfscanf.c: New file defining the public entry
3814 point vfscanf, which calls __vfscanf_internal.
3815 * stdio-common/vfwscanf.c: New file defining the public entry
3816 point vfwscanf, which calls __vfwscanf_internal.
3817
3818 * stdio-common/iovfscanf.c: New file.
3819 * stdio-common/iovfwscanf.c: Likewise.
3820
3821 * stdio-common/Makefile (routines): Add vfscanf-internal,
3822 vfwscanf-internal, iovfscanf, iovfwscanf.
3823 * stdio-common/Versions: Mention GLIBC_2.29, so that
3824 it can be used in SHLIB_COMPAT expressions.
3825 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
3826 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
3827 Call __vfscanf_internal, instead of _IO_vfscanf.
3828 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
3829 _IO_vfscanf.
3830 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
3831 _IO_vfwscanf.
3832
3833 * libio/iovsscanf.c: Clean up includes, when possible. Use
3834 _IO_strfile_read or _IO_strfile_readw, when needed. Call
3835 __vfscanf_internal or __vfwscanf_internal directly.
3836 * libio/iovswscanf.c: Likewise.
3837 * libio/swscanf.c: Likewise.
3838 * libio/vscanf.c: Likewise.
3839 * libio/vwscanf.c: Likewise.
3840 * libio/wscanf.c: Likewise.
3841 * stdio-common/isoc99_fscanf.c: Likewise.
3842 * stdio-common/isoc99_scanf.c: Likewise.
3843 * stdio-common/isoc99_sscanf.c: Likewise.
3844 * stdio-common/isoc99_vfscanf.c: Likewise.
3845 * stdio-common/isoc99_vscanf.c: Likewise.
3846 * stdio-common/isoc99_vsscanf.c: Likewise.
3847 * stdio-common/scanf.c: Likewise.
3848 * stdio-common/sscanf.c: Likewise.
3849 * wcsmbs/isoc99_fwscanf.c: Likewise.
3850 * wcsmbs/isoc99_swscanf.c: Likewise.
3851 * wcsmbs/isoc99_vfwscanf.c: Likewise.
3852 * wcsmbs/isoc99_vswscanf.c: Likewise.
3853 * wcsmbs/isoc99_vwscanf.c: Likewise.
3854 * wcsmbs/isoc99_wscanf.c: Likewise.
3855
3856 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
3857
3858 * include/time.h
3859 (__tz_compute): Replace time_t with __time64_t.
3860 (__tz_convert): Replace time_t* with __time64_t.
3861 (__offtime): Replace time_t* with __time64_t.
3862 * time/gmtime.c
3863 (__gmtime_r): Adjust call to __tz_convert.
3864 (gmtime): Likewise.
3865 * time/localtime.c
3866 (__localtime_r): Likewise.
3867 (localtime): Likewise.
3868 * time/offtime.c: Replace time_t with __time64_t.
3869 * time/tzset.c: Likewise.
3870
3871 2018-12-04 Joseph Myers <joseph@codesourcery.com>
3872
3873 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
3874 dynamic linker unless [$(run-built-tests) = yes].
3875
3876 2018-12-03 DJ Delorie <dj@delorie.com>
3877
3878 * support/test-container.c (check_for_unshare_hints): New.
3879 (main): Call it if unshare fails. Add support for "su" scriptlet
3880 command.
3881
3882 2018-12-03 Joseph Myers <joseph@codesourcery.com>
3883
3884 * scripts/gen-as-const.py (compute_c_consts): Take an argument
3885 'START' to indicate that start text should be output.
3886 (gen_test): Likewise.
3887 (main): Generate 'START' for first symbol or '--' line, or at end
3888 of input if not previously generated.
3889
3890 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
3891
3892 [BZ #19767]
3893 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
3894 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
3895 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
3896 ALWAYS_USE_VSYSCALL.
3897
3898 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3899
3900 [BZ #23913]
3901 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
3902 new_argv by one.
3903
3904 2018-12-03 Carlos O'Donell <carlos@redhat.com>
3905
3906 [BZ #23923]
3907 * locale/programs/localedef.c: Declare boolean hard_links default true.
3908 (options): Add --no-hard-links option.
3909 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
3910 * locale/programs/localedef.h: Declare prototype for hard_links.
3911 * locale/programs/locfile.c (write_locale_data): Don't use hard
3912 links if hard_links is false.
3913
3914 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
3915
3916 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
3917 cpu_features_basic.
3918 (__cache_sysconf): Likewise.
3919 (init_cacheinfo): Likewise.
3920 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
3921 populate COMMON_CPUID_INDEX_80000007 and
3922 COMMON_CPUID_INDEX_80000008.
3923 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
3924 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
3925 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
3926 (init_cpu_features): Use _Static_assert on
3927 index_arch_Fast_Unaligned_Load.
3928 __get_cpuid_registers and __get_arch_feature. Updated for
3929 cpu_features_basic. Set stepping in cpu_features.
3930 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
3931 (FEATURE_INDEX_2): New.
3932 (FEATURE_INDEX_MAX): Changed to enum.
3933 (COMMON_CPUID_INDEX_D_ECX_1): New.
3934 (COMMON_CPUID_INDEX_80000007): Likewise.
3935 (COMMON_CPUID_INDEX_80000008): Likewise.
3936 (cpuid_registers): Likewise.
3937 (cpu_features_basic): Likewise.
3938 (CPU_FEATURE_USABLE): Likewise.
3939 (bit_arch_XXX_Usable): Likewise.
3940 (cpu_features): Use cpuid_registers and cpu_features_basic.
3941 (bit_arch_XXX): Reweritten.
3942 (bit_cpu_XXX): Likewise.
3943 (index_cpu_XXX): Likewise.
3944 (reg_XXX): Likewise.
3945 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
3946 <support/check.h>.
3947 (CHECK_CPU_FEATURE): New.
3948 (CHECK_CPU_FEATURE_USABLE): Likewise.
3949 (cpu_kinds): Likewise.
3950 (do_test): Print vendor, family, model and stepping. Check
3951 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
3952 (TEST_FUNCTION): Removed.
3953 Include <support/test-driver.c> instead of
3954 "../../test-skeleton.c".
3955 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
3956 Check POPCNT instead of POPCOUNT.
3957 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
3958
3959 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3960
3961 * scripts/gen-as-const.py (main): Avoid emitting empty line when
3962 there is no element in `consts'.
3963
3964 2018-12-01 Florian Weimer <fweimer@redhat.com>
3965
3966 * support/support_capture_subprocess.c
3967 (support_capture_subprocess): Check that pipe descriptors have
3968 expected values. Close original pipe descriptors in subprocess.
3969
3970 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3971
3972 [BZ #23032]
3973 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
3974 attr with __pthread_default_barrierattr.
3975 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
3976 attr with __pthread_default_condattr.
3977 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
3978 attr with __pthread_default_mutexattr.
3979 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
3980 attr with __pthread_default_rwlockattr.
3981
3982 2018-12-01 Kemi Wang <kemi.wang@intel.com>
3983
3984 * manual/tunables.texi (POSIX Thread Tunables): New node.
3985 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
3986 * nptl/nptl-init.c: Include pthread_mutex_conf.h
3987 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
3988 __pthread_tunables_init.
3989 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
3990 (max_adaptive_count): Define.
3991 * nptl/pthread_mutex_conf.c: New file.
3992 * nptl/pthread_mutex_conf.h: New file.
3993 * sysdeps/generic/adaptive_spin_count.h: New file.
3994 * sysdeps/nptl/dl-tunables.list: New file.
3995 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
3996 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
3997 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
3998 Likewise.
3999
4000 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4001
4002 [BZ #20544]
4003 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
4004 * stdlib/on_exit.c (__on_exit): Likewise.
4005 * stdlib/Makefile (tests): Add tst-bz20544.
4006 * stdlib/tst-bz20544.c: New test.
4007
4008 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
4009
4010 [BZ #19767]
4011 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4012 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4013 New.
4014
4015 2018-11-30 Florian Weimer <fweimer@redhat.com>
4016
4017 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4018 Extend error logging.
4019 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4020 symbol.
4021
4022 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4023
4024 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
4025 __sigismember instead of sigismember.
4026 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
4027 cancel_handler): New definitions.
4028 (do_system): Use posix_spawn instead of fork and execl and remove
4029 reentracy code.
4030 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
4031 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4032 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4033 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4034 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4035 * sysdeps/unix/sysv/linux/system.c: Likewise.
4036
4037 [BZ #22834]
4038 [BZ #17490]
4039 * NEWS: Add new semantic for atfork with popen and system.
4040 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4041 fork and execl.
4042
4043 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4044
4045 [BZ #23690]
4046 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4047 modification order when accessing reloc_result->addr.
4048 * include/link.h (reloc_result): Add field init.
4049 * nptl/Makefile (tests): Add tst-audit-threads.
4050 (modules-names): Add tst-audit-threads-mod1 and
4051 tst-audit-threads-mod2.
4052 Add rules to build tst-audit-threads.
4053 * nptl/tst-audit-threads-mod1.c: New file.
4054 * nptl/tst-audit-threads-mod2.c: Likewise.
4055 * nptl/tst-audit-threads.c: Likewise.
4056 * nptl/tst-audit-threads.h: Likewise.
4057
4058 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4059
4060 * scripts/gen-as-const.py: New file.
4061 * scripts/gen-as-const.awk: Remove.
4062 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4063 gen-as-const.py.
4064 ($(objpfx)test-as-const-%.c): Likewise.
4065
4066 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4067
4068 * elf/dl-exception.c: Include <_itoa.h>.
4069
4070 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4071
4072 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4073 returned by __f_setlk.
4074
4075 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4076 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4077
4078 * elf/Makefile (tests-internal): Add tst-create_format1.
4079 * elf/dl-exception.c (_dl_exception_create_format): Support
4080 %x, %lx and %zx.
4081 * elf/tst-create_format1.c: New file.
4082
4083 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4084
4085 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4086 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4087 gnulib.)
4088 * argp/argp-help.c (__argp_failure): Likewise.
4089
4090 2018-11-29 Mao Han <han_mao@c-sky.com>
4091
4092 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4093 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4094 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4095 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4096 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4097 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4098 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4099 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4100 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4101 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4102 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4103 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4104 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4105 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4106 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4107 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4108 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4109 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4110 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4111 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4112 (R_CKCORE_TLS_TPOFF32): New defines.
4113
4114 2018-11-29 Florian Weimer <fweimer@redhat.com>
4115
4116 * posix/Makefile (before-compile): Remove testcases.h and
4117 ptestcases.h.
4118 (generated): Add testcases.h and ptestcases.h.
4119 (testcases.h, ptestcases.h): Move to $(objpfx).
4120 (runtests.o): Add dependency on testcases.h.
4121 (runptests.o): Add dependency on ptestcases.h.
4122 * posix/testcases.h, posix/ptestcases.h: Remove files.
4123 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4124 not touch posix/testcases.h and posix/ptestcases.h.
4125
4126 2018-11-28 Florian Weimer <fweimer@redhat.com>
4127
4128 support: Add signal support to support_capture_subprocess_check.
4129 * support/capture_subprocess.h (support_capture_subprocess_check):
4130 Adjust comment and rename parameter.
4131 * support/support_capture_subprocess_check.c
4132 (print_actual_status): New function.
4133 (support_capture_subprocess_check): Support negative
4134 status_or_signal. Call print_actual_status.
4135 * support/tst-support_capture_subprocess.c (do_test): Call
4136 support_capture_subprocess_check.
4137 * libio/tst-vtables-common.c (termination_status)
4138 (init_termination_status): Remove.
4139 (check_for_termination): Adjust support_capture_subprocess_check
4140 call.
4141 (do_test): Remove call to init_termination_status.
4142
4143 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4144
4145 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4146 source directory instead of a copy.
4147 (CommandList.create_copy_dir): Remove.
4148
4149 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4150
4151 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4152
4153 2018-11-28 Florian Weimer <fweimer@redhat.com>
4154
4155 * support/support.h (support_quote_string): Do not use str
4156 parameter name.
4157
4158 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4159
4160 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4161 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4162
4163 2018-11-27 Florian Weimer <fweimer@redhat.com>
4164
4165 * support/support.h (support_quote_string): Declare.
4166 * support/support_quote_string.c: New file.
4167 * support/tst-support_quote_string.c: Likewise.
4168 * support/Makefile (libsupport-routines): Add
4169 support_quote_string.
4170 (tests): Add tst-support_quote_string.
4171
4172 2018-11-27 Florian Weimer <fweimer@redhat.com>
4173
4174 [BZ #23927]
4175 CVE-2018-19591
4176 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4177 descriptor leak in case of ENODEV error.
4178
4179 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4180
4181 [BZ #19767]
4182 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4183 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4184 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4185
4186 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4187
4188 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4189 Error for unknown lines.
4190
4191 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4192
4193 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4194 Touch additional files.
4195
4196 2018-11-26 Florian Weimer <fweimer@redhat.com>
4197
4198 [BZ #23907]
4199 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4200 double-frees.
4201
4202 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4203
4204 [BZ #19767]
4205 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4206 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4207 SHARED. Include sysdep.h.
4208 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4209 ALWAYS_USE_VSYSCALL.
4210 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4211 ALWAYS_USE_VSYSCALL.
4212
4213 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4214
4215 [BZ #19767]
4216 * nptl/Makefile (tests-static): Add tst-cond11-static.
4217 (tests): Likewise.
4218 * nptl/tst-cond11-static.c: New File.
4219 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4220 tst-affinity-static.
4221 (tests): Likewise.
4222 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4223 instead of SHARED.
4224 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4225 (USE_VSYSCALL): Likewise.
4226 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4227 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4228 instead of SHARED.
4229 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4230 SHARED.
4231 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4232 New.
4233
4234 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4235
4236 [BZ #23915]
4237 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4238 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4239 Undefine.
4240
4241 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4242
4243 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4244 (tst-cet-legacy-1a-ARGS): New.
4245 ($(objpfx)tst-cet-legacy-1a): New target.
4246 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4247
4248 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4249
4250 * conform/conformtest.py (CompileSubTest.__init__): Set
4251 self.run_early to False.
4252 (ExecuteSubTest.__init__): Likewise.
4253 (HeaderTests.run): Try running all non-optional, non-XFAILed
4254 compilation tests in a single execution of the compiler.
4255
4256 * conform/conformtest.py (CompileSubTest): New class.
4257 (ExecuteSubTest): Likewise.
4258 (ElementTest.run): Rename to gen_subtests. Append tests to
4259 self.subtests instead of running them.
4260 (ConstantTest.run): Likewise.
4261 (SymbolTest.run): Likewise.
4262 (TypeTest.run): Likewise.
4263 (TagTest.run): Likewise.
4264 (FunctionTest.run): Likewise.
4265 (VariableTest.run): Likewise.
4266 (MacroFunctionTest.run): Likewise.
4267 (MacroStrTest.run): Likewise.
4268 (HeaderTests.handle_test_line): Generate subtests for tests.
4269 (HeaderTests.run): Run subtests for tests.
4270
4271 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4272
4273 * math/Versions (GLIBC_2.29): Add pow.
4274 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4275 symbol.
4276 * math/w_pow.c: New file.
4277 * sysdeps/i386/fpu/w_pow.c: New file.
4278 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4279 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4280 and add necessary aliases.
4281 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4282 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4283 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4284 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4285 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4286 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4287 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4288 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4289 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4290 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4291 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4292 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4293 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4294 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4295 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4296 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4297 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4298 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4299 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4300 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4301 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4302 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4303 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4304 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4305 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4306 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4307 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4308 __pow.
4309 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4310 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4311 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4312
4313 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4314
4315 * math/Versions (GLIBC_2.29): Add log2.
4316 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4317 symbol.
4318 * math/w_log2.c: New file.
4319 * sysdeps/i386/fpu/w_log2.c: New file.
4320 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4321 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4322 and add necessary aliases.
4323 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4324 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4325 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4326 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4327 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4328 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4329 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4330 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4331 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4332 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4333 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4334 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4335 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4336 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4337 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4338 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4339 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4340 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4341 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4342 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4343 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4344 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4345 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4346 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4347 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4348 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4349
4350 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4351
4352 * math/Versions (GLIBC_2.29): Add log.
4353 * math/w_log_compat.c (__log_compat): Change to versioned compat
4354 symbol.
4355 * math/w_log.c: New file.
4356 * sysdeps/i386/fpu/w_log.c: New file.
4357 * sysdeps/ia64/fpu/e_log.S: Update.
4358 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
4359 and add necessary aliases.
4360 * sysdeps/ieee754/dbl-64/w_log.c: New file.
4361 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
4362 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4363 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4364 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4365 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4366 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4367 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4368 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4369 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4370 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4371 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4372 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4373 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4374 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4375 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4376 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4377 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4378 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4379 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4380 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4381 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4382 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4383 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4384 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4385 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4386 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
4387 __log.
4388 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
4389 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
4390 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
4391 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
4392
4393 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4394
4395 * math/Versions (GLIBC_2.29): Add exp and exp2.
4396 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
4397 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
4398 * math/w_exp_compat.c (__exp_compat): Likewise.
4399 * math/w_exp.c: New file.
4400 * math/w_exp2.c: New file.
4401 * sysdeps/i386/fpu/w_exp.c: New file.
4402 * sysdeps/i386/fpu/w_exp2.c: New file.
4403 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
4404 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4405 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
4406 and add necessary aliases.
4407 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
4408 and add necessary aliases.
4409 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
4410 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
4411 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
4412 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
4413 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4414 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4415 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4416 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4417 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4418 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4419 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4420 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4421 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4422 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4423 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4424 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4425 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4426 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4427 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4428 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4429 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4430 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4431 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4432 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4433 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4434 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4435 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4436 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4437 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
4438 (__ieee754_exp): Rename to __exp.
4439 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
4440 (__ieee754_exp): Rename to __exp.
4441 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
4442 (__ieee754_exp): Rename to __exp.
4443 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
4444 __exp.
4445 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
4446
4447 2018-11-20 DJ Delorie <dj@redhat.com>
4448
4449 * malloc/malloc.c (tcache_entry): Add key field.
4450 (tcache_put): Set it.
4451 (tcache_get): Likewise.
4452 (_int_free): Check for double free in tcache.
4453 * malloc/tst-tcfree1.c: New.
4454 * malloc/tst-tcfree2.c: New.
4455 * malloc/Makefile: Run the new tests.
4456 * manual/probes.texi: Document memory_tcache_double_free probe.
4457
4458 * dlfcn/dlerror.c (check_free): Prevent double frees.
4459
4460 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
4461
4462 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
4463
4464 2018-11-20 Joseph Myers <joseph@codesourcery.com>
4465
4466 * conform/conformtest.py (ElementTest.run): Use unique identifiers
4467 in tests. Use names for format arguments.
4468 (ConstantTest.run): Likewise.
4469 (SymbolTest.run): Likewise.
4470 (TypeTest.run): Likewise.
4471 (TagTest.run): Likewise.
4472 (FunctionTest.run): Likewise.
4473 (VariableTest.run): Likewise.
4474 (MacroFunctionTest.run): Likewise.
4475 (MacroStrTest.run): Likewise.
4476 (HeaderTests.__init__): Set self.num_tests.
4477 (HeaderTests.handle_test_line): Set test.num. Increment
4478 self.num_tests.
4479
4480 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4481
4482 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
4483 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
4484 SEEK_SET.
4485
4486 2018-11-19 Mao Han <han_mao@c-sky.com>
4487
4488 * scripts/config.guess: Update to version 2018-08-29.
4489 * scripts/config.sub: Update to version 2018-08-29.
4490
4491 2018-11-19 Florian Weimer <fweimer@redhat.com>
4492
4493 support: Print timestamps in timeout handler.
4494 * support/support_test_main.c (print_timestamp): New function.
4495 (signal_handler): Use it to print the termination time and the
4496 time of the last write to standard output.
4497
4498 2018-11-16 Zack Weinberg <zackw@panix.com>
4499 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4500
4501 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
4502 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
4503 argument.
4504 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
4505 and add flags argument. Check flags instead of __ldbl_is_dbl when
4506 deciding whether to set is_long_double.
4507 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
4508 passing zero for flags argument.
4509 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
4510
4511 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4512 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
4513 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
4514 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
4515 variable names. Remove libc_hidden_def/libc_hidden_proto from
4516 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
4517 longer called from within the library.
4518 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
4519 for __nldbl___vstrfmon_l, declare it explicitly.
4520
4521 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
4522
4523 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
4524
4525 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
4526 macros
4527 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
4528 F_SETLK64, F_SETLKW64, respectively.
4529 * sysdeps/mach/hurd/f_setlk.c: New file.
4530 * sysdeps/mach/hurd/f_setlk.h: New file.
4531 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
4532 f_setlk.
4533 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
4534 (__libc_fcntl): Move non-flock operations to...
4535 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
4536 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
4537
4538 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
4539
4540 mktime: DEBUG_MKTIME cleanup
4541 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
4542 And it’s no longer needed now that glibc and Gnulib both have
4543 their own testing mechanisms for mktime.
4544 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
4545
4546 mktime: fix non-EOVERFLOW errno handling
4547 [BZ#23789]
4548 mktime was not properly reporting failures when the underlying
4549 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
4550 them like EOVERFLOW failures, and set errno to EOVERFLOW.
4551 The problem could happen on non-glibc platforms, with Gnulib.
4552 * time/mktime.c (guess_time_tm): Remove, replacing with ...
4553 (tm_diff): ... this simpler function, which does not change errno.
4554 All callers changed to deal with errno themselves.
4555 (ranged_convert, __mktime_internal): Return failure immediately if
4556 the underlying function reports any failure other than EOVERFLOW.
4557 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
4558 gap code fails.
4559
4560 mktime: fix bug with Y2038 DST transition
4561 [BZ#23789]
4562 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
4563 mishandle a DST transition that jumps over the Y2038 boundary.
4564 No such DST transitions are known so this is only a theoretical
4565 bug, but we might as well do things right.
4566
4567 mktime: make more room for overflow
4568 [BZ#23789]
4569 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
4570 This is so that we can add tm_diff results to a previous guess,
4571 which will be useful in a later patch.
4572
4573 mktime: simplify offset guess
4574 [BZ#23789]
4575 * time/mktime.c (__mktime_internal): Omit excess precision.
4576
4577 mktime: new test for mktime failure
4578 [BZ#23789]
4579 Based on a test suggested by Albert Aribaud in:
4580 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
4581 * time/Makefile (tests): Add bug-mktime4.
4582 * time/bug-mktime4.c: New file.
4583
4584 mktime: fix EOVERFLOW bug
4585 [BZ#23789]
4586 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
4587 Include libc-config.h, not config.h, for __set_errno.
4588 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
4589
4590 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4591
4592 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
4593 __attribute_copy__ to copy attributes from name. Drop static qualifier
4594 to avoid warnings about leaf attribute not having effect on static
4595 functions.
4596
4597 2018-11-13 Florian Weimer <fweimer@redhat.com>
4598
4599 * malloc/malloc.c (fastbin_push_entry): New function.
4600 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
4601 (REMOVE_FB): Remove macro.
4602 (_int_malloc): Use fastbin_pop_entry and reindent.
4603 (_int_free): Use fastbin_push_entry.
4604 (malloc_consolidate): Use atomic_exchange_acquire.
4605
4606 2018-11-13 Joseph Myers <joseph@codesourcery.com>
4607
4608 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
4609 alias attribute, not with strong_alias.
4610
4611 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
4612 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
4613 with additional parameter thread.
4614 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
4615 in terms of __hidden_ver2.
4616 (hidden_tls_def): New macro.
4617 (libc_hidden_tls_def): Likewise.
4618 (rtld_hidden_tls_def): Likewise.
4619 (libm_hidden_tls_def): Likewise.
4620 (libmvec_hidden_tls_def): Likewise.
4621 (libresolv_hidden_tls_def): Likewise.
4622 (librt_hidden_tls_def): Likewise.
4623 (libdl_hidden_tls_def): Likewise.
4624 (libnss_files_hidden_tls_def): Likewise.
4625 (libnsl_hidden_tls_def): Likewise.
4626 (libnss_nisplus_hidden_tls_def): Likewise.
4627 (libutil_hidden_tls_def): Likewise.
4628 (libutil_hidden_tls_def): Likweise.
4629 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
4630 libc_hidden_tls_def.
4631 (__sim_disabled_exceptions_thread): Likewise.
4632 (__sim_round_mode_thread): Likewise.
4633
4634 * sysdeps/sparc/sparc-ifunc.h [SHARED]
4635 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
4636 copy attributes from name.
4637
4638 2018-11-12 Joseph Myers <joseph@codesourcery.com>
4639
4640 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
4641 Use __attribute_copy__ to copy attributes from name.
4642
4643 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
4644 with __hidden_ver1 call.
4645 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
4646 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
4647 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
4648 (__cosf): Do not declare here.
4649 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
4650 (__sincosf): Do not declare here.
4651 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
4652 (__sinf): Do not declare here.
4653
4654 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
4655 (__BIG_ENDIAN): Likewise.
4656 (__BYTE_ORDER): Likewise.
4657 (strong_alias): Likewise.
4658 (_strong_alias): Likewise.
4659
4660 2018-11-12 Florian Weimer <fweimer@redhat.com>
4661
4662 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
4663 function. Move after the definition of in_smallbin_range. Do not
4664 use __builtin_expect for paths that lead to a noreturn function.
4665 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
4666 because it is unclear whether this is in fact an unlikely
4667 condition.
4668 (_int_malloc, _int_free): Adjust.
4669 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
4670 variables.
4671 * malloc/arena.c (heap_trim): Likewise.
4672
4673 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4674
4675 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
4676 it, free it if needed.
4677 (reauthenticate): Test and use ccwdir.
4678 (child_init_port): In non-resetids case, test and use ccwdir.
4679 (child_chdir): New nested function to set ccwdir.
4680 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
4681 * hurd/hurd/port.h (_hurd_port_move): New function.
4682 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
4683 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
4684 * hurd/Versions (_hurd_port_move): Export function.
4685 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
4686 symbol.
4687 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
4688 of dtablesize for allocating dtable_cloexec.
4689
4690 2018-11-09 Martin Sebor <msebor@redhat.com>
4691
4692 * include/libc-symbols.h (__attribute_copy__): Define macro unless
4693 it's already defined.
4694 (_strong_alias): Use __attribute_copy__.
4695 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
4696 * misc/sys/cdefs.h (__attribute_copy__): New macro.
4697 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
4698 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
4699 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
4700 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
4701 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
4702 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
4703 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
4704 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
4705 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
4706 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
4707 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
4708 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
4709 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
4710 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
4711 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
4712 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
4713 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
4714
4715 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4716
4717 * misc/tst-efgcvt.c: Include support/check.h and
4718 support/test-driver.c. Do not include test-skeleton.c.
4719 (error_count): Remove.
4720 (output_error): Replace increments to error_count with calls to
4721 support_record_failure.
4722 (output_r_error): Likewise.
4723 (special): Likewise.
4724 (do_test): Unconditionally return zero.
4725 (TEST_FUNCTION): Remove.
4726
4727 2018-11-09 Joseph Myers <joseph@codesourcery.com>
4728
4729 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
4730 not $(@D)/scratch.
4731 ($(linknamespace-header-tests)): Likewise.
4732
4733 * conform/conformtest.py: New file.
4734 * conform/conformtest.pl: Remove.
4735 * conform/GlibcConform.pm: Likewise.
4736 * conform/glibcconform.py (KEYWORDS_C90): New constant.
4737 (KEYWORDS_C99): Likewise.
4738 (KEYWORDS): Likewise.
4739 * conform/Makefile ($(conformtest-header-tests)): Use
4740 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
4741 option. Use --header instead of --headers.
4742 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
4743 function entries.
4744 * conform/data/spawn.h-data: Likewise.
4745 * conform/data/fcntl.h-data (openat): Add space after function
4746 name.
4747 * conform/data/wchar.h-data (wcscasecmp): Likewise.
4748 (wcscasecmp_l): Likewise.
4749 * conform/data/termios.h-data (c_cc): Add space after element
4750 name.
4751
4752 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4753
4754 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
4755 instead of manually comparing and reporting mismatching strings.
4756 * misc/tst-ldbl-error.c (do_one_test): Likewise.
4757 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
4758
4759 2018-11-08 Joseph Myers <joseph@codesourcery.com>
4760
4761 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
4762 __ASSUME_SOCKETCALL.
4763 * sysdeps/unix/sysv/linux/i386/kernel-features.h
4764 (__ASSUME_SOCKETCALL): Remove.
4765 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4766 (__ASSUME_SOCKETCALL): Likewise.
4767 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4768 (__ASSUME_SOCKETCALL): Likewise.
4769 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4770 (__ASSUME_SOCKETCALL): Likewise.
4771 * sysdeps/unix/sysv/linux/s390/kernel-features.h
4772 (__ASSUME_SOCKETCALL): Likewise.
4773 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4774 (__ASSUME_SOCKETCALL): Likewise.
4775 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4776 (__ASSUME_SOCKETCALL): Likewise.
4777
4778 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
4779
4780 [BZ #23509]
4781 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
4782 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
4783 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
4784 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
4785 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
4786 lc_unknown.
4787
4788 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
4789
4790 [BZ #17630]
4791 * resolv/tst-resolv-network.c: Add test for getnetbyname.
4792
4793 2018-11-07 Joseph Myers <joseph@codesourcery.com>
4794
4795 [BZ #23867]
4796 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4797 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4798 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4799 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4800
4801 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4802
4803 * support/support_test_compare_string.c
4804 (support_test_compare_string): Fix printf format.
4805
4806 2018-11-07 Florian Weimer <fweimer@redhat.com>
4807
4808 Implement TEST_COMPARE_STRING.
4809 * support/check.h (TEST_COMPARE_STRING): Define.
4810 (support_test_compare_string): Declare.
4811 * support/Makefile (libsupport-routines): Add
4812 support_test_compare_string.
4813 (tests): Add tst-test_compare_string.
4814 * support/support_test_compare_string.c: New file.
4815 * support/tst-test_compare_string.c: Likewise.
4816
4817 2018-11-07 Andreas Schwab <schwab@suse.de>
4818
4819 [BZ #23864]
4820 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
4821 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
4822 Undef.
4823
4824 2018-11-06 Joseph Myers <joseph@codesourcery.com>
4825
4826 [BZ #23862]
4827 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4828 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
4829 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
4830 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
4831 Likewise.
4832
4833 2018-11-06 Florian Weimer <fweimer@redhat.com>
4834
4835 [BZ #17405]
4836 * posix/Makefile (routines): Add spawn_faction_addchdir.
4837 (tests): Add tst-spawn-chdir.
4838 * posix/Versions (GLIBC_2.29): Add
4839 posix_spawn_file_actions_addchdir_np.
4840 * posix/spawn_faction_addchdir.c: New file.
4841 * posix/spawn_faction_destroy.c
4842 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
4843 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
4844 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
4845 chdir_action.
4846 * posix/tst-spawn-chdir.c: New file.
4847 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
4848 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4849 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4850 posix_spawn_file_actions_addchdir_np.
4851 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4852 Likewise.
4853 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4854 Likewise.
4855 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4856 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4857 Likewise.
4858 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4859 Likewise.
4860 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4861 Likewise.
4862 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4863 Likewise.
4864 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4865 Likewise.
4866 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4867 Likewise.
4868 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4869 (GLIBC_2.29): Likewise.
4870 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4871 (GLIBC_2.29): Likewise.
4872 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4873 (GLIBC_2.29): Likewise.
4874 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4875 (GLIBC_2.29): Likewise.
4876 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4877 Likewise.
4878 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4879 (GLIBC_2.29): Likewise.
4880 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4881 (GLIBC_2.29): Likewise.
4882 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4883 (GLIBC_2.29): Likewise.
4884 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4885 (GLIBC_2.29): Likewise.
4886 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4887 Likewise.
4888 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4889 Likewise.
4890 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4891 Likewise.
4892 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4893 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4894 Likewise.
4895 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4896 Likewise.
4897 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4898 Likewise.
4899 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4900 Likewise.
4901
4902 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4903
4904 * misc/Makefile (tests): Add tst-ldbl-error.
4905 * misc/tst-ldbl-error.c: New file.
4906
4907 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4908
4909 * misc/Makefile (tests): Add tst-ldbl-warn.
4910 * misc/tst-ldbl-warn.c: New file.
4911
4912 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4913
4914 * argp/Makefile (tests): Add tst-ldbl-argp.
4915 * argp/tst-ldbl-argp.c: New file.
4916
4917 2018-11-05 Arjun Shankar <arjun@redhat.com>
4918
4919 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
4920 __gconv_path_elem and call __gconv_get_path unconditionally.
4921
4922 2018-11-05 Andreas Schwab <schwab@suse.de>
4923
4924 [BZ #22927]
4925 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
4926 creating the first helper thread failed.
4927
4928 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4929
4930 * sysdeps/mach/hurd/msync.c: New file.
4931
4932 2018-11-02 Florian Weimer <fweimer@redhat.com>
4933
4934 * support/shell-container.c (copy_func): Call
4935 support_copy_file_range instead of copy_file_range to support
4936 cross-device copies.
4937
4938 2018-11-02 Florian Weimer <fweimer@redhat.com>
4939
4940 * support/test-container.c: Include <libc-pointer-arith.h> for
4941 ALIGN_UP.
4942
4943 2018-11-01 Zong Li <zong@andestech.com>
4944
4945 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
4946 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
4947 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
4948 (__FP_FRAC_SET_8): Add implementation for RV32 use.
4949
4950 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
4951 variable to avoid overlap arguments.
4952
4953 2018-11-01 Joseph Myers <joseph@codesourcery.com>
4954
4955 * posix/bug-regex22.c (main): Use puts with distinct error
4956 messages for unexpected success of re_compile_pattern, not printf
4957 with NULL argument to %s.
4958
4959 * stdio-common/bug22.c: Include <libc-diag.h>.
4960 (do_test): Disable -Wformat-overflow= warnings around fprintf
4961 calls outputting more than INT_MAX characters.
4962 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
4963 around printf call with NULL %s argument.
4964
4965 [BZ #23848]
4966 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
4967 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
4968 Undefine.
4969 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4970 (__ASSUME_RECVMSG_SYSCALL): Likewise.
4971 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4972 (__ASSUME_SENDTO_SYSCALL): Likewise.
4973 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4974 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
4975 [!__arch64__].
4976 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4977 (__ASSUME_CONNECT_SYSCALL): Likewise.
4978 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4979 (__ASSUME_RECVFROM_SYSCALL): Likewise.
4980 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
4981 Define.
4982 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
4983 Likewise.
4984 [__LINUX_KERNEL_VERSION >= 0x040400]
4985 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
4986 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
4987 Remove.
4988 (listen): Likewise.
4989 (setsockopt): Likewise.
4990
4991 2018-11-01 Fredrik Noring <noring@nocrew.org>
4992
4993 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
4994 with the ISA override.
4995
4996 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
4997
4998 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
4999 #endif.
5000
5001 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5002
5003 * manual/errno.texi (EIEIO): Document how translators should
5004 translate the error message.
5005 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
5006 printing trailing whitespaces refused by git.
5007 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
5008 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5009 * hurd/Makefile (user-interfaces): Add pci.
5010
5011 2018-10-30 Joseph Myers <joseph@codesourcery.com>
5012
5013 * conform/linknamespace.py: New file.
5014 * conform/linknamespace.pl: Remove file.
5015 * conform/Makefile ($(linknamespace-header-tests)): Use
5016 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
5017 option.
5018
5019 2018-10-30 Florian Weimer <fweimer@redhat.com>
5020
5021 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5022 memory leaks.
5023
5024 2018-10-30 Florian Weimer <fweimer@redhat.com>
5025
5026 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
5027
5028 2018-10-30 Florian Weimer <fweimer@redhat.com>
5029
5030 * stdlib/tst-strtod-overflow.c (do_test): Switch to
5031 support_blob_repeat.
5032
5033 2018-10-30 Florian Weimer <fweimer@redhat.com>
5034
5035 Avoid spurious test failures in stdlib/test-bz22786.
5036 * support/Makefile (libsupport-routines): Add blob_repeat.
5037 (tests): Add tst-support_blob_repeat.
5038 * support/blob_repeat.h: New file.
5039 * support/blob_repeat.c: Likewise.
5040 * support/tst-support_blob_repeat.c: Likewise.
5041 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5042 support_blob_repeat_allocate.
5043
5044 2018-10-30 Andreas Schwab <schwab@suse.de>
5045
5046 [BZ #23125]
5047 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5048 Don't use tail call.
5049 * elf/tst-unwind-main.c: New file.
5050 * elf/Makefile (tests): Add tst-unwind-main.
5051 (CFLAGS-tst-unwind-main.c): Define.
5052
5053 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5054
5055 [BZ #23791]
5056 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5057 n_cs_precedes to 0.
5058 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5059
5060 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5061
5062 * conform/glibcconform.py: Do not import shutil.
5063 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5064 of mkdtemp.
5065
5066 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5067 critic_missing for versions before 3.4.
5068 * configure: Regenerated.
5069 * manual/install.texi (Tools for Compilation): Document
5070 requirement for Python to build glibc.
5071 * INSTALL: Regenerated.
5072 * Rules [PYTHON]: Make code unconditional.
5073 * benchtests/Makefile [PYTHON]: Likewise.
5074 * conform/Makefile [PYTHON]: Likewise.
5075 * manual/Makefile [PYTHON]: Likewise.
5076 * math/Makefile [PYTHON]: Likewise.
5077
5078 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5079
5080 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5081 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5082 answer to interrupt_operation, return EIEIO instead of EINTR.
5083 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5084 _hurd_intr_rpc_msg_about_to global point to start of controlled
5085 assembly snippet. Make it check canceled flag.
5086 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5087 the _hurd_intr_rpc_msg_about_to point.
5088 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5089 issue, remove cancel flag check.
5090
5091 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5092
5093 * scripts/build-many-glibcs.py: Remove compatibility for missing
5094 os.cpu_count and re.fullmatch.
5095
5096 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5097
5098 [BZ #23822]
5099 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5100 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5101 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5102
5103 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5104
5105 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5106 macro.
5107
5108 2018-10-25 Florian Weimer <fweimer@redhat.com>
5109
5110 [BZ #23562]
5111 [BZ #23821]
5112 XFAIL siginfo_t si_band conform test on sparc64.
5113 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5114 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5115 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5116 (conformtest-xfail-conds): Add sparc64-linux.
5117 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5118 sparc64.
5119 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5120
5121 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5122
5123 * elf/elf.h (NT_MIPS_DSP): New macro.
5124 (NT_MIPS_FP_MODE): Likewise.
5125
5126 2018-10-25 Zong Li <zong@andestech.com>
5127
5128 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5129 name by adding the file extension (.so).
5130
5131 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5132
5133 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5134 (test-xfail-ISO11/threads.h/linknamespace,
5135 test-xfail-ISO11/threads.h/conform): Add.
5136
5137 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5138
5139 * math/gen-libm-test.py: Import os.
5140 (ALL_FLOATS_MANUAL): New constant.
5141 (ALL_FLOATS_SUFFIX): Likewise.
5142 (Ulps.all_functions): New function.
5143 (real_all_ulps): Likewise.
5144 (generate_err_table_sub): Likewise.
5145 (generate_err_table): Likewise.
5146 (main): Handle -s and -m options.
5147 * manual/libm-err-tab.pl: Remove.
5148 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5149 instead of libm-err-tab.pl.
5150 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5151 != no].
5152 * manual/install.texi (Tools for Compilation): Document
5153 requirement for Python to build manual.
5154 * INSTALL: Regenerated.
5155
5156 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5157
5158 * bits/time64.h: New file.
5159 * include/time.h: Replace internal_time_t with __time64_t.
5160 * posix/bits/types (__time64_t): Add.
5161 * stdlib/Makefile: Add bits/time64.h to includes.
5162 * time/tzfile.c: Replace internal_time_t with __time64_t.
5163
5164 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5165
5166 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5167 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5168 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5169 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5170 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5171 prototype.
5172 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5173 * posix/spawn_faction_addclose.c
5174 (__posix_spawn_file_actions_addclose): Add hidden definition.
5175 * posix/spawn_faction_adddup2.c
5176 (__posix_spawn_file_actions_adddup2): Likewise.
5177 * posix/spawn_faction_destroy.c
5178 (__posix_spawn_file_actions_destroy): Likewise.
5179 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5180 Likewise.
5181 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5182 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5183 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5184 Likewise.
5185 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5186 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5187 Likewise.
5188
5189 2018-10-24 Andreas Schwab <schwab@suse.de>
5190
5191 [BZ #18093]
5192 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5193 format cache.
5194 * elf/cache.c (print_cache): Likewise.
5195
5196 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5197
5198 * bits/timesize.h: New file.
5199 * stdlib/Makefile (headers): Add bits/timesize.h.
5200 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5201 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5202 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5203 (__SEM_PAD_AFTER_TIME): Likewise.
5204 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5205 (__SHM_PAD_AFTER_TIME): Likewise.
5206 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5207 (__MSQ_PAD_BEFORE_TIME): Likewise.
5208 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5209 (__SEM_PAD_BEFORE_TIME): Likewise.
5210 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5211 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5212 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5213 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5214 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5215 (__MSQ_PAD_BEFORE_TIME): Likewise.
5216 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5217 (__SEM_PAD_BEFORE_TIME): Likewise.
5218 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5219 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5220 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5221 (__MSQ_PAD_BEFORE_TIME): Likewise.
5222 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5223 (__SEM_PAD_BEFORE_TIME): Likewise.
5224 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5225 (__SHM_PAD_BEFORE_TIME): Likewise.
5226 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5227 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5228 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5229
5230 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5231
5232 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5233 USE_RDTSCP is defined.
5234 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5235 USE_RDTSCP is defined.
5236
5237 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5238
5239 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5240 defined.
5241
5242 [BZ #23709]
5243 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5244 independently of other flags.
5245
5246 2018-10-23 Florian Weimer <fweimer@redhat.com>
5247
5248 * time/tst-mktime2.c (N_STRINGS): Remove.
5249 (set_timezone): New function.
5250 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5251 (mktime_test1): Report localtime failure and check errno value.
5252 Use TEST_COMPARE.
5253 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5254 (do_test): Remove alarm call. Use set_timezone and array_length.
5255
5256 2018-10-23 Andreas Schwab <schwab@suse.de>
5257
5258 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5259 (__start_context): Use END instead of PSEUDO_END.
5260
5261 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5262
5263 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5264 version to 4.19.
5265
5266 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5267 version to 4.19.
5268
5269 [BZ #23793]
5270 * wcsmbs/c32rtomb.c: New file.
5271 * wcsmbs/mbrtoc32.c: Likewise.
5272 * wcsmbs/tst-c32-state.c: Likewise.
5273 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5274 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5275 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5276 (tests): Add tst-c32-state.
5277 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5278 $(gen-locales).
5279
5280 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5281
5282 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5283 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5284
5285 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5286
5287 [BZ #23794]
5288 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5289 pair and return 0 in that case, and use saved character to
5290 interpret following character.
5291 * wcsmbs/tst-c16-surrogate.c: New file.
5292 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5293 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5294 Depend on $(gen-locales)
5295
5296 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5297
5298 [BZ #23562]
5299 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5300 (struct siginfo_t): Use correct type for si_band.
5301
5302 2018-10-19 Florian Weimer <fweimer@redhat.com>
5303
5304 [BZ #23689]
5305 * resource/bits/types/struct_rusage.h (struct rusage): Update
5306 comment on struct. Remove extraneous field comment.
5307
5308 2018-10-18 David S. Miller <davem@davemloft.net>
5309
5310 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5311 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5312 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5313 sysdep_routines in subdir elf.
5314 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5315 version for __vdso_clock_gettime.
5316 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5317 Define.
5318 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5319 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5320
5321 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5322
5323 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5324
5325 * sysdeps/i386/init-arch.h: Removed.
5326 * sysdeps/i386/i586/init-arch.h: Likewise.
5327 * sysdeps/i386/i686/init-arch.h: Likewise.
5328 * sysdeps/i386/i686/hp-timing.h: Likewise.
5329 * sysdeps/x86_64/hp-timing.h: Likewise.
5330 * sysdeps/i386/isa.h: New file.
5331 * sysdeps/i386/i586/isa.h: Likewise.
5332 * sysdeps/i386/i686/isa.h: Likewise.
5333 * sysdeps/x86_64/isa.h: Likewise.
5334 * sysdeps/x86/hp-timing.h: New file.
5335 * sysdeps/x86/init-arch.h: Include <isa.h>.
5336
5337 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5338
5339 * math/libm-test-pow.inc (pow_test_data): Do not allow
5340 divide-by-zero exception for pow(+/- 0, -Inf).
5341
5342 2018-10-17 Zack Weinberg <zackw@panix.com>
5343
5344 * manual/job.texi (Job Control is Optional): Remove node, as
5345 job control has not been optional in quite some time.
5346 (Job Control): Mention briefly that systems older than
5347 POSIX.1-2001 might not support job control.
5348 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5349 defined on systems conforming to POSIX.1-2001.
5350
5351 2018-10-17 Arjun Shankar <arjun@redhat.com>
5352
5353 [BZ #22062]
5354 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
5355 indentation.
5356 * (__gconv_read_conf): Mark function static.
5357 * (once): New static variable.
5358 * (__gconv_load_conf): New function.
5359 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
5360 * iconv/gconv_db.c (once): Remove static variable.
5361 * (__gconv_compare_alias): Use __gconv_load_conf instead of
5362 __gconv_read_conf.
5363 * (__gconv_find_transform): Likewise.
5364 * iconv/tst-iconv-mt.c: New test.
5365 * iconv/Makefile: Add tst-iconv_mt.
5366
5367 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5368
5369 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5370 bits/shm-pad.h.
5371 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5372 (shmatt_t): Define as __syscall_ulong_t.
5373 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5374 and [__SHM_PAD_AFTER_TIME].
5375 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5376 Define shm_segsz and associated padding based on
5377 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5378 Use __syscall_ulong_t instead of unsigned long int.
5379 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
5380 unsigned long int.
5381 [__USE_MISC] (struct shm_info): Likewise.
5382 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
5383 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
5384 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
5385 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
5386 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
5387 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5388 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
5389 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5390 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5391 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5392 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
5393
5394 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5395 bits/shmlba.h.
5396 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
5397 (SHMLBA): Remove macro.
5398 (__getpagesize): Remove function declaration.
5399 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
5400 <bits/shmlba.h>.
5401 (SHMLBA): Remove macro.
5402 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
5403 <bits/shmlba.h>.
5404 (SHMLBA): Remove macro.
5405 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
5406 <bits/shmlba.h>.
5407 (SHMLBA): Remove macro.
5408 (__getpagesize): Remove function declaration.
5409 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
5410 <bits/shmlba.h>.
5411 (SHMLBA): Remove macro.
5412 (__getshmlba): Remove function declaration.
5413 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
5414 (SHMLBA): Remove macro.
5415 (__getpagesize): Remove function declaration.
5416 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
5417 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5418 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5419 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
5420 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
5421 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
5422 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
5423 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
5424 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
5425 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
5426
5427 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
5428
5429 [BZ #23275]
5430 * nptl/tst-mutex10.c: New File.
5431 * nptl/Makefile (tests): Add tst-mutex10.
5432 (tst-mutex10-ENV): New variable.
5433 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
5434 Ensure that elision path is used if elision is available.
5435 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
5436 Likewise.
5437 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
5438 Likewise.
5439 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
5440 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
5441 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
5442 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
5443 Likewise.
5444 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
5445 (__pthread_mutex_cond_lock_adjust): Likewise.
5446 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
5447 Likewise.
5448 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
5449 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
5450 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5451 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
5452 Add comments.
5453 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
5454 Use atomic_load_relaxed and atomic_store_relaxed.
5455 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
5456 Use atomic_store_relaxed.
5457
5458 2018-10-17 Andreas Schwab <schwab@suse.de>
5459
5460 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
5461 * crypt/badsalttest.c (TIMEOUT): Likewise.
5462 * crypt/sha256c-test.c (TIMEOUT): Likewise.
5463 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
5464 * io/test-lfs.c (TIMEOUT): Likewise.
5465 * libio/tst-atime.c (TIMEOUT): Likewise.
5466 * localedata/tst-leaks.c (TIMEOUT): Likewise.
5467 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
5468 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
5469 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
5470 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
5471 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
5472 * nptl/tst-cond11.c (TIMEOUT): Likewise.
5473 * nptl/tst-cond14.c (TIMEOUT): Likewise.
5474 * nptl/tst-cond15.c (TIMEOUT): Likewise.
5475 * nptl/tst-cond24.c (TIMEOUT): Likewise.
5476 * nptl/tst-cond25.c (TIMEOUT): Likewise.
5477 * nptl/tst-kill2.c (TIMEOUT): Likewise.
5478 * nptl/tst-kill3.c (TIMEOUT): Likewise.
5479 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
5480 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
5481 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
5482 * nptl/tst-once2.c (TIMEOUT): Likewise.
5483 * nptl/tst-once3.c (TIMEOUT): Likewise.
5484 * nptl/tst-once4.c (TIMEOUT): Likewise.
5485 * nptl/tst-robust8.c (TIMEOUT): Likewise.
5486 * nptl/tst-robust9.c (TIMEOUT): Likewise.
5487 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
5488 * nptl/tst-sem14.c (TIMEOUT): Likewise.
5489 * nptl/tst-sem6.c (TIMEOUT): Likewise.
5490 * nptl/tst-signal3.c (TIMEOUT): Likewise.
5491 * nptl/tst-spin4.c (TIMEOUT): Likewise.
5492 * nptl/tst-tls3.c (TIMEOUT): Likewise.
5493 * nptl/tst-tls4.c (TIMEOUT): Likewise.
5494 * posix/tst-chmod.c (TIMEOUT): Likewise.
5495 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
5496 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
5497 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
5498 * posix/tst-regex2.c (TIMEOUT): Likewise.
5499 * posix/tst-waitid.c (TIMEOUT): Likewise.
5500 * rt/tst-aio.c (TIMEOUT): Likewise.
5501 * rt/tst-aio10.c (TIMEOUT): Likewise.
5502 * rt/tst-aio4.c (TIMEOUT): Likewise.
5503 * rt/tst-aio5.c (TIMEOUT): Likewise.
5504 * rt/tst-aio6.c (TIMEOUT): Likewise.
5505 * rt/tst-aio64.c (TIMEOUT): Likewise.
5506 * rt/tst-aio7.c (TIMEOUT): Likewise.
5507 * rt/tst-aio9.c (TIMEOUT): Likewise.
5508 * rt/tst-clock.c (TIMEOUT): Likewise.
5509 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
5510 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
5511 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
5512 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
5513 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
5514 * rt/tst-timer4.c (TIMEOUT): Likewise.
5515 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
5516 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
5517 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
5518 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
5519 * time/tst-ftime.c (TIMEOUT): Likewise.
5520 * timezone/tst-tzset.c (TIMEOUT): Likewise.
5521
5522 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5523
5524 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
5525 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
5526 for thunderX2.
5527
5528 2018-10-15 Joseph Myers <joseph@codesourcery.com>
5529
5530 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5531 bits/sem-pad.h.
5532 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
5533 instead of <bits/wordsize.h>.
5534 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
5535 and [__SEM_PAD_AFTER_TIME].
5536 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
5537 __syscall_ulong_t instead of unsigned long int.
5538 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
5539 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
5540 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
5541 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
5542 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
5543 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
5544 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
5545 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
5546 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
5547 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
5548 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
5549
5550 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
5551
5552 regex: simplify by using intprops.h
5553 [BZ#23744]
5554 * posix/regex_internal.h [_LIBC]: Include intprops.h.
5555 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
5556 intprops.h defines them.
5557
5558 regex: __builtin_expect → __glibc_unlikely
5559 [BZ#23744]
5560 This refactoring was prompted by a problem when the regex code is
5561 used as part of Gnulib and when the builder’s compiler does not grok
5562 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
5563 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
5564 Although this refactoring does not fix the problem directly,
5565 we might as well have Gawk use the now-preferred glibc style for when
5566 __builtin_expect is unavailable.
5567 * posix/regex_internal.h (BE): Remove.
5568 All uses replaced by __glibc_unlikely or __glibc_likely.
5569
5570 2018-10-11 Joseph Myers <joseph@codesourcery.com>
5571
5572 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5573 bits/msq-pad.h.
5574 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
5575 instead of <bits/wordsize.h>.
5576 (msgqnum_t): Define as __syscall_ulong_t.
5577 (msglen_t): Likewise.
5578 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
5579 and [__MSQ_PAD_AFTER_TIME].
5580 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
5581 __syscall_ulong_t instead of unsigned long int.
5582 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
5583 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
5584 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
5585 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
5586 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
5587 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
5588 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
5589 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
5590 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
5591 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
5592 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
5593
5594 2018-10-10 Joseph Myers <joseph@codesourcery.com>
5595
5596 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
5597 (struct shmid_ds): Condition padding after time fields on
5598 [__WORDSIZE == 32].
5599 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
5600 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
5601 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5602
5603 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
5604 (struct semid_ds): Condition padding after time fields on
5605 [__WORDSIZE == 32].
5606 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
5607 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
5608 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
5609 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
5610
5611 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
5612 (struct msqid_ds): Condition padding after time fields on
5613 [__WORDSIZE == 32].
5614 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
5615 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
5616 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
5617 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
5618
5619 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5620
5621 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
5622
5623 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5624
5625 * libio/tst-readline.c (TIMEOUT): Define.
5626
5627 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
5628
5629 mktime fix for Gnulib + coreutils
5630 [BZ#23745]
5631 This fix affects only Gnulib. Problem discovered when
5632 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
5633 * time/mktime.c:
5634 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
5635 Do not define since it is not used. Defining an unused static
5636 function prompts a warning from GCC when Coreutils is configured
5637 with --enable-gcc-warnings.
5638
5639 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5640
5641 * benchtests/scripts/compare_bench.py (main): set float type on
5642 threshold argument.
5643
5644 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
5645
5646 [BZ #23740]
5647 * localedata/locales/kl_GL (mon): Update, the relative case.
5648 (alt_mon): Add, fill with month names in the nominative case.
5649 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
5650 (d_fmt): Set to "%b %d %Y".
5651
5652 2018-10-04 Joseph Myers <joseph@codesourcery.com>
5653
5654 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
5655 <bits/mman-linux.h>.
5656 (PROT_READ): Don't define here.
5657 (PROT_WRITE): Likewise.
5658 (PROT_EXEC): Likewise.
5659 (PROT_NONE): Likewise.
5660 (PROT_GROWSDOWN): Likewise.
5661 (PROT_GROWSUP): Likewise.
5662 (MAP_SHARED): Likewise.
5663 (MAP_PRIVATE): Likewise.
5664 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
5665 [__USE_MISC] (MAP_FILE): Likewise.
5666 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
5667 [__USE_MISC] (MAP_ANON): Likewise.
5668 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
5669 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
5670 (MCL_CURRENT): Likewise.
5671 (MCL_FUTURE): Likewise.
5672 (MCL_ONFAULT): Likewise.
5673 [__USE_MISC] (MADV_NORMAL): Likewise.
5674 [__USE_MISC] (MADV_RANDOM): Likewise.
5675 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
5676 [__USE_MISC] (MADV_WILLNEED): Likewise.
5677 [__USE_MISC] (MADV_DONTNEED): Likewise.
5678 [__USE_MISC] (MADV_FREE): Likewise.
5679 [__USE_MISC] (MADV_REMOVE): Likewise.
5680 [__USE_MISC] (MADV_DONTFORK): Likewise.
5681 [__USE_MISC] (MADV_DOFORK): Likewise.
5682 [__USE_MISC] (MADV_HWPOISON): Likewise.
5683 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
5684 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
5685 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
5686 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
5687 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
5688 (__MAP_ANONYMOUS): New macro.
5689 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
5690 <bits/mman-linux.h> inclusion.
5691 (MAP_FIXED): Likewise.
5692 (MS_SYNC): Likewise.
5693 (MS_ASYNC): Likewise.
5694 (MS_INVALIDATE): Likewise.
5695 [__USE_MISC] (MADV_MERGEABLE): Likewise.
5696 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
5697 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
5698 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
5699 [__USE_MISC] (MADV_DONTDUMP): Likewise.
5700 [__USE_MISC] (MADV_DODUMP): Likewise.
5701 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
5702 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
5703
5704 [BZ #23735]
5705 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
5706 Define.
5707 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
5708 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
5709 Add test-nldbl-redirect.
5710 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
5711 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
5712 $(objpfx)libnldbl_nonshared.a.
5713
5714 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
5715
5716 * support/support.h (support_objdir_elf_ldso): New variable.
5717 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
5718 * support/Makefile (CFLAGS-support_paths.c): Add definition
5719 for OBJDIR_ELF_LDSO_PATH.
5720 * support/test-container.c (main): Search for the ld.so
5721 which is also used by the testsuite.
5722
5723 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
5724
5725 [BZ #20209]
5726 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
5727 should be "sap" rather than "sab".
5728 (day): Fix spelling of Sunday, should be "sapaat" rather than
5729 "sabaat".
5730
5731 2018-10-02 Joseph Myers <joseph@codesourcery.com>
5732
5733 * math/libm-test-fma.inc (fma_test_data): Add more tests.
5734
5735 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
5736
5737 [BZ #19444]
5738 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
5739 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
5740 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
5741
5742 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5743
5744 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
5745
5746 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
5747
5748 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
5749 Add -mrtm.
5750 (CFLAGS-elision-unlock.c): Likewise.
5751 (CFLAGS-elision-timed.c): Likewise.
5752 (CFLAGS-elision-trylock.c): Likewise.
5753 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
5754
5755 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5756
5757 [BZ #21037]
5758 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
5759 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
5760 new fd_to_filename interface.
5761 * libio/freopen64.c (freopen64): Likewise.
5762 * libio/tst-memstream.h: New file.
5763 * libio/tst-memstream4.c: Likewise.
5764 * libio/tst-wmemstream4.c: Likewise.
5765 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
5766 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
5767 and remove internal dynamic allocation.
5768
5769 2018-10-01 Joseph Myers <joseph@codesourcery.com>
5770
5771 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
5772 (MREMAP_MAYMOVE): Do not define here.
5773 [__USE_GNU] (MREMAP_FIXED): Likewise.
5774 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
5775 (MREMAP_MAYMOVE): Define here instead.
5776 [__USE_GNU] (MREMAP_FIXED): Likewise.
5777 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
5778 (MREMAP_MAYMOVE): Remove.
5779 [__USE_GNU] (MREMAP_FIXED): Likewise.
5780
5781 2018-09-28 Joseph Myers <joseph@codesourcery.com>
5782
5783 * math/fromfp.h: Do not include <math_private.h>.
5784 * math/s_cacosh_template.c: Likewise.
5785 * math/s_casin_template.c: Likewise.
5786 * math/s_casinh_template.c: Likewise.
5787 * math/s_ccos_template.c: Likewise.
5788 * math/s_cproj_template.c: Likewise.
5789 * math/s_fdim_template.c: Likewise.
5790 * math/s_fmaxmag_template.c: Likewise.
5791 * math/s_fminmag_template.c: Likewise.
5792 * math/s_iseqsig_template.c: Likewise.
5793 * math/s_ldexp_template.c: Likewise.
5794 * math/s_nextdown_template.c: Likewise.
5795 * math/w_log1p_template.c: Likewise.
5796 * math/w_scalbln_template.c: Likewise.
5797 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
5798 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
5799 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
5800 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
5801 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
5802 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
5803 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
5804 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
5805 * sysdeps/i386/fpu/s_atanl.c: Likewise.
5806 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
5807 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
5808 * sysdeps/i386/fpu/s_fdim.c: Likewise.
5809 * sysdeps/i386/fpu/s_logbl.c: Likewise.
5810 * sysdeps/i386/fpu/s_rintl.c: Likewise.
5811 * sysdeps/i386/fpu/s_significandl.c: Likewise.
5812 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
5813 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
5814 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5815 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5816 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
5817 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
5818 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5819 * sysdeps/ieee754/k_standardf.c: Likewise.
5820 * sysdeps/ieee754/k_standardl.c: Likewise.
5821 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5822 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
5823 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
5824 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
5825 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
5826 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
5827 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5828 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
5829 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
5830 * sysdeps/ieee754/s_signgam.c: Likewise.
5831 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
5832 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
5833 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
5834 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
5835 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
5836 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
5837 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5838 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
5839 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
5840 * sysdeps/riscv/rvd/s_finite.c: Likewise.
5841 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
5842 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
5843 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
5844 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
5845 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
5846 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
5847 * sysdeps/riscv/rvf/fegetround.c: Likewise.
5848 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
5849 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
5850 * sysdeps/riscv/rvf/fesetround.c: Likewise.
5851 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
5852 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
5853 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
5854 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
5855 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
5856 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
5857 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
5858 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
5859 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
5860 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
5861 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
5862 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
5863 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
5864 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
5865 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5866 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
5867 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
5868 <math_private.h>.
5869 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
5870
5871 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
5872
5873 [BZ #23716]
5874 * sysdeps/i386/dl-cet.c: Removed.
5875 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
5876 prototype.
5877 (_dl_runtime_profile_shstk): Likewise.
5878 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
5879 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
5880
5881 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5882
5883 [BZ #23579]
5884 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
5885 do_test_with_invalid_iov): New tests.
5886 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
5887 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
5888 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
5889 errno is ENOSYS.
5890 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
5891 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
5892 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
5893
5894 2018-09-27 Joseph Myers <joseph@codesourcery.com>
5895
5896 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5897 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
5898 (MATH_REDIRECT_BINARY_ARGS): New macro.
5899 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
5900 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
5901 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
5902 header inclusion.
5903 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
5904 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5905 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
5906 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5907 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5908 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5909 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5910 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
5911 Likewise.
5912 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
5913 Likewise.
5914 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
5915 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
5916 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
5917 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
5918 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
5919 Likewise.
5920 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
5921 Likewise.
5922 * sysdeps/generic/math_private_calls.h
5923 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
5924 Do not declare and define as an inline function.
5925 * math/divtc3.c (__divtc3): Use copysign functions instead of
5926 __copysign variants.
5927 * math/multc3.c (__multc3): Likewise.
5928 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
5929 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
5930 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
5931 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
5932 Likewise.
5933 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
5934 (__ieee754_yn): Likewise.
5935 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
5936 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
5937 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
5938 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
5939 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
5940 (__sin): Likewise.
5941 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
5942 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5943 Likewise.
5944 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
5945 Likewise.
5946 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
5947 Likewise.
5948 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
5949 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
5950 Likewise.
5951 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
5952 (__ieee754_ynf): Likewise.
5953 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
5954 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
5955 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
5956 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
5957 Likewise.
5958 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
5959 (__ieee754_ynl): Likewise.
5960 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
5961 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
5962 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
5963 Likewise.
5964 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
5965 (__ieee754_ynl): Likewise.
5966 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
5967 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
5968 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
5969 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
5970 Likewise.
5971 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
5972 (__ieee754_ynl)
5973 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
5974 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
5975 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
5976 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
5977 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
5978
5979 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5980 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
5981 using MATH_REDIRECT.
5982 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
5983 header inclusion.
5984 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
5985 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5986 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5987 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
5988 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5989 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
5990 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
5991 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
5992 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
5993 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
5994 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
5995 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5996 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5997 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
5998 (round): Redirect to __round.
5999 (__roundl): Call round instead of __round.
6000 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
6001 Remove macro.
6002 [_ARCH_PWR5X] (__roundf): Likewise.
6003 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
6004 functions instead of __round variants.
6005 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6006 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6007 Likewise.
6008 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6009 Likewise.
6010 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6011 Likewise.
6012 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6013 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6014 __lroundl.
6015 (__ieee754_expl): Call roundl instead of __roundl.
6016
6017 2018-09-27 Andreas Schwab <schwab@suse.de>
6018
6019 [BZ #23717]
6020 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6021 (do_test): Make st1 static.
6022
6023 2018-09-26 Andreas Schwab <schwab@suse.de>
6024
6025 [BZ #23707]
6026 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
6027 * elf/Makefile (tests): Add tst-unwind-ctor.
6028 (modules-names): Add tst-unwind-ctor-lib.
6029 ($(objpfx)tst-unwind-ctor): Depend on
6030 $(objpfx)tst-unwind-ctor-lib.so.
6031
6032 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6033
6034 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6035 file. Most contents moved from ....
6036 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6037 and include <bits/mman-map-flags-generic.h>.
6038 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6039 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6040 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6041 <bits/mman-map-flags-generic.h>.
6042 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6043 macros defined in <bits/mman-map-flags-generic.h>.
6044 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6045 <bits/mman-map-flags-generic.h>.
6046 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6047 defined in <bits/mman-map-flags-generic.h>.
6048
6049 2018-09-26 Andreas Schwab <schwab@suse.de>
6050
6051 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6052 output.
6053
6054 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6055 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6056 Fangrui Song <maskray@google.com>
6057
6058 [BZ #20480]
6059 * config.make.in (have-textrel_ifunc): New define.
6060 * configure.ac: Add check if linker supports textrel relocation with
6061 ifunc.
6062 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6063 tst-ifunc-textrel.
6064 (CFLAGS-tst-ifunc-textrel.c): New rule.
6065 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6066 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6067 * elf/tst-ifunc-textrel.c: New file.
6068
6069 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6070
6071 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6072 <bits/procfs-prregset.h>.
6073 (prgregset_t): Define using __prgregset_t.
6074 (prfpregset_t): Define using __prfpregset_t.
6075 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6076 (sysdep_headers): Add bits/procfs-prregset.h.
6077 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6078 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6079 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6080 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6081
6082 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6083 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6084 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6085 pr_uid and pr_gid.
6086 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6087 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6088 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6089 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6090 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6091 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6092 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6093 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6094 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6095 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6096 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6097 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6098 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6099 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6100 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6101 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6102 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6103 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6104 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6105 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6106 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6107 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6108 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6109 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6110
6111 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6112 AArch64 version. Include <bits/procfs.h>.
6113 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6114 (sysdep_headers): Add bits/procfs.h.
6115 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6116 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6117 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6118 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6119 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6120 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6121 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6122 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6123 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6124 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6125 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6126 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6127 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6128 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6129 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6130 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6131 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6132
6133 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6134
6135 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6136 Use libsupport.
6137
6138 2018-09-25 Arjun Shankar <arjun@redhat.com>
6139
6140 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6141 (__gconv_max_path_elem_len): Likewise.
6142 (__gconv_nmodules): Likewise.
6143 (__gconv_get_path): Likewise.
6144 (path_elem): Move to ...
6145 * iconv/gconv_conf.c: ... here.
6146 (__gconv_get_path): Mark function static.
6147 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6148 * iconv/gconv_open.c: ... here.
6149
6150 2018-09-24 Andreas Schwab <schwab@suse.de>
6151
6152 * scripts/haveversions.awk: New file.
6153 * Makerules ($(common-objpfx)Versions.def)
6154 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6155 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6156 Move rules ...
6157 * Makeconfig ($(common-objpfx)Versions.def)
6158 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6159 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6160 ... here.
6161 ($(common-objpfx)Versions.mk): New rule. Include it.
6162 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6163 Emit error if build-obsolete-nsl = yes.
6164 * manual/install.texi (Configuring and compiling): Describe
6165 --enable-obsolete-nsl as unavaiable after version 2.28.
6166 * INSTALL: Regenerate.
6167
6168 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6169
6170 * NEWS: Add note about new TLE support on powerpc64le.
6171 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6172 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6173 __ununsed1.
6174 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6175 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6176 * sysdeps/powerpc/powerpc32/sysdep.h,
6177 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6178 ABORT_TRANSACTION): Remove macros.
6179 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6180 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6181 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6182 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6183 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6184 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6185 usage.
6186 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6187
6188 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6189
6190 [BZ #10425]
6191 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6192 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6193 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6194 which is the same as in it_IT.
6195 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6196 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6197
6198 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6199
6200 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6201 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6202 using MATH_REDIRECT.
6203 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6204 header inclusion.
6205 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6206 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6207 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6208 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6209 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6210 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6211 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6212 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6213 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6214 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6215 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6216 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6217 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6218 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6219 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6220 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6221 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6222 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6223 (ceil): Redirect to __ceil.
6224 (floor): Redirect to __floor.
6225 (trunc): Redirect to __trunc.
6226 (__truncl): Call trunc instead of __trunc.
6227 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6228 Remove macro.
6229 [_ARCH_PWR5X] (__truncf): Likewise.
6230 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6231 trunc functions instead of __trunc variants.
6232 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6233 Likewise.
6234 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6235 Likewise.
6236 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6237 Likewise.
6238 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6239 Likewise.
6240
6241 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6242 [__i586__ || __pentium__].
6243 [__i486__]: Handle explicitly.
6244 (HAS_CPUID): Define to 1 if above macros are undefined.
6245 (HAS_I586): Likewise.
6246 (HAS_I686): Likewise.
6247
6248 2018-09-20 Florian Weimer <fweimer@redhat.com>
6249
6250 * misc/tst-gethostid.c: New file.
6251 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6252 (tst-gethostid): Link with -ldl.
6253
6254 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6255
6256 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6257 value from gethostbyname_r.
6258
6259 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6260
6261 * stdlib/tst-setcontext9.c (f1): Rename to...
6262 (f1a): ... this.
6263 (f1b): New function implementing lower half of f1 in alternate stack.
6264
6265 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6266
6267 Fix mktime localtime offset confusion
6268 [BZ #23603]
6269 * include/time.h (__mktime_internal): The localtime offset is now
6270 of type long int instead of time_t. This is the longstanding type
6271 in glibc, and it is more than enough to represent difference
6272 between localtime and gmtime even if it is 32 bits and time_t is
6273 64. Changing it now will let us avoid an unnecessary change when
6274 time_t is widened to 64 bits on 32-bit platforms.
6275 * time/mktime-internal.h (mktime_offset_t): Now long int.
6276
6277 Merge mktime, timegm from upstream Gnulib
6278 [BZ #23603][BZ #16346]
6279 This fixes some obscure problems with integer overflow.
6280 Although it looks scary, it is almost all a byte-for-byte copy
6281 from Gnulib, and the Gnulib code has been tested reasonably well.
6282 * include/intprops.h: New file, copied from Gnulib.
6283 * include/verify.h, time/mktime-internal.h:
6284 New tiny files, simplified from Gnulib.
6285 * time/mktime.c: Copy from Gnulib. This has the following changes:
6286 Do not include config.h if DEBUG_MKTIME is nonzero.
6287 Include stdbool.h, intprops.h, verify.h.
6288 Include string.h only if needed.
6289 Include stdlib.h on MS-Windows.
6290 Include mktime-internal.h.
6291 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6292 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6293 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6294 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6295 simplify later conditionals; default the others to zero. Use
6296 these conditionals to express only the code needed on the current
6297 platform. In uses of these conditionals, explicitly spell out how
6298 _LIBC affects things, so it’s easier to review from a glibc
6299 viewpoint.
6300 (WRAPV): Remove; no longer needed now that we have
6301 systematic overflow checking.
6302 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6303 compartmentalize tzset issues. Move system-dependent tzsettish
6304 code here from mktime.
6305 (verify): Remove; now done by verify.h. All uses changed.
6306 (long_int): Use a more-conservative definition, to avoid
6307 integer overflow.
6308 (SHR): Remove, replacing with ...
6309 (shr): New function, which means we needn’t worry about side
6310 effects in args, and conversion analysis is simpler.
6311 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6312 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6313 (time_t_avg, time_t_add_ok): Remove.
6314 (mktime_min, mktime_max): New constants.
6315 (leapyear, isdst_differ): Use bool for booleans.
6316 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6317 Use long_int, not time_t, for mktime differences.
6318 (long_int_avg): New function, replacing time_t_avg.
6319 INT_ADD_WRAPV replaces time_t_add_ok.
6320 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6321 All uses changed.
6322 (convert_time): New function.
6323 (ranged_convert): Use it.
6324 (__mktime_internal): Last arg now points to mktime_offset_t, not
6325 time_t. All uses changed. This is a no-op on glibc, where
6326 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6327 offset guess. Directly check for integer overflow instead of
6328 using a heuristic that works only 99.9...% of the time.
6329 Access *OFFSET only once, to avoid an unlikely race if the
6330 compiler delays a load and if this cascades into a signed integer
6331 overflow.
6332 (mktime): Move tzsettish code to my_tzset, and move
6333 localtime_offset to within mktime so that it doesn’t
6334 need a separate ifdef.
6335 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6336 instead of localtime.
6337 * time/timegm.c: Copy from Gnulib. This has the following changes:
6338 Include mktime-internal.h.
6339 [!_LIBC]: Include config.h and time.h. Do not include
6340 timegm.h or time_r.h. Make __mktime_internal a macro,
6341 and include mktime-internal.h to get its declaration.
6342 (timegm): Temporary is now mktime_offset_t, not time_t.
6343 This affects only Gnulib.
6344
6345 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6346
6347 [BZ #23637]
6348 * string/test-strstr.c (pr23637): New function.
6349 (test_main): Add tests with longer needles.
6350 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6351 * string/strstr.c (AVAILABLE): Likewise.
6352
6353 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6354
6355 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
6356
6357 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6358
6359 * NEWS: Mention pow improvements.
6360 * math/Makefile (type-double-routines): Add e_pow_log_data.
6361 * sysdeps/generic/math_private.h (__exp1): Remove.
6362 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6363 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6364 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6365 contraction.
6366 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6367 (exp_inline): Remove.
6368 (__ieee754_exp): Only single double input is handled.
6369 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6370 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6371 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6372 (__pow_log_data): Define.
6373 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6374 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6375 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6376 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6377 contraction.
6378 (CFLAGS-e_pow-fma4.c): Likewise.
6379
6380 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
6381
6382 Simplify tzfile fstat failure code
6383 [BZ #21716]
6384 * time/tzfile.c (__tzfile_read): Simplify slightly.
6385
6386 Fix tzfile low-memory assertion failure
6387 [BZ #21716]
6388 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
6389 when registering time zone abbreviations.
6390
6391 2018-09-18 Joseph Myers <joseph@codesourcery.com>
6392
6393 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
6394 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
6395 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6396 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6397 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
6398 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
6399 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
6400 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6401 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6402
6403 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
6404 __ceil.
6405 (__ceill): Call ceil instead of __ceil.
6406 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
6407 __floor.
6408 (__floorl): Call floor instead of __floor.
6409
6410 2018-09-17 Joseph Myers <joseph@codesourcery.com>
6411
6412 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6413 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
6414 using MATH_REDIRECT.
6415 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
6416 header inclusion.
6417 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
6418 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6419 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6420 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
6421 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6422 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6423 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6424 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6425 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
6426 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
6427 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
6428 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
6429 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6430 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6431 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6432 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6433 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6434 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6435 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
6436 Remove macro.
6437 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
6438 functions instead of __ceil variants.
6439 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6440 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6441 Likewise.
6442 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6443 Likewise.
6444 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6445 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6446 Likewise.
6447 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6448 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6449
6450 [BZ #21286]
6451 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
6452 constant.
6453 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
6454 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
6455 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
6456 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
6457 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
6458 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
6459 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
6460 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
6461 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
6462 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
6463 (ILL_BADIADDR): Remove constant.
6464 (TRAP_BRANCH): Likewise.
6465 (TRAP_HWBKPT): Likewise.
6466
6467 2018-09-14 Joseph Myers <joseph@codesourcery.com>
6468
6469 [BZ #23656]
6470 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
6471 Remove [_MIPS_SIM = _ABIN32] conditional case.
6472 (struct elf_prpsinfo): Likewise.
6473
6474 [BZ #23649]
6475 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
6476 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
6477 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
6478 Likewise.
6479 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
6480 elf_prpsinfo): Likewise.
6481 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
6482 elf_prpsinfo): Likewise.
6483 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
6484 Likewise.
6485
6486 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6487 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
6488 using MATH_REDIRECT.
6489 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
6490 header inclusion.
6491 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
6492 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6493 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6494 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6495 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6496 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6497 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
6498 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6499 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6500 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6501 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
6502 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
6503 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
6504 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
6505 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
6506 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
6507 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6508 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
6509 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6510 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
6511 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
6512 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
6513 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
6514 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
6515 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
6516 * sysdeps/x86_64/fpu/math_private.h: Remove file.
6517 * math/e_scalb.c (invalid_fn): Use rint functions instead of
6518 __rint variants.
6519 * math/e_scalbf.c (invalid_fn): Likewise.
6520 * math/e_scalbl.c (invalid_fn): Likewise.
6521 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6522 Likewise.
6523 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6524 Likewise.
6525 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6526 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
6527 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6528 Likewise.
6529 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6530 Likewise.
6531 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6532 Likewise.
6533 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
6534 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
6535
6536 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6537 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
6538 New macro.
6539 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6540 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
6541 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6542 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
6543 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6544 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
6545 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6546 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
6547 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6548 && !NO_MATH_REDIRECT] (floor): Likewise.
6549 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
6550 header inclusion.
6551 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
6552 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6553 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6554 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
6555 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6556 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6557 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6558 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
6559 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
6560 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
6561 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
6562 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
6563 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6564 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6565 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
6566 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
6567 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
6568 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
6569 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
6570 Remove macro.
6571 [_ARCH_PWR5X] (__floorf): Likewise.
6572 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
6573 inline function.
6574 [__SSE4_1__] (__floorf): Likewise.
6575 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
6576 instead of __floor variants.
6577 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
6578 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
6579 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
6580 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
6581 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
6582 * math/w_tgamma_compat.c (__tgamma): Likewise.
6583 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
6584 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
6585 * math/w_tgammal_compat.c (__tgammal): Likewise.
6586 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
6587 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
6588 Likewise.
6589 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
6590 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
6591 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
6592 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6593 Likewise.
6594 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
6595 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
6596 Likewise.
6597 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
6598 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
6599 Likewise.
6600 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
6601 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
6602 Likewise.
6603 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
6604 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6605 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
6606 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
6607 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6608 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6609
6610 2018-09-12 Joseph Myers <joseph@codesourcery.com>
6611
6612 * elf/Makefile (modules-names-tests): New variable.
6613
6614 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6615
6616 * NEWS: Mention log2 improvements.
6617 * math/Makefile (type-double-routines): Add e_log2_data.
6618 * sysdeps/i386/fpu/e_log2_data.c: New file.
6619 * sysdeps/ia64/fpu/e_log2_data.c: New file.
6620 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
6621 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
6622 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
6623 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
6624 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
6625
6626 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6627
6628 * NEWS: Mention log improvement.
6629 * math/Makefile (type-double-routines): Add e_log_data.
6630 * sysdeps/i386/fpu/e_log_data.c: New file.
6631 * sysdeps/ia64/fpu/e_log_data.c: New file.
6632 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
6633 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
6634 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
6635 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
6636 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
6637 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
6638
6639 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
6640 Xuepeng Guo <xuepeng.guo@intel.com>
6641
6642 [BZ #23606]
6643 * sysdeps/i386/start.S: Include <sysdep.h>
6644 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
6645 enabled. Add cfi_undefined (eip).
6646
6647 2018-09-11 Joseph Myers <joseph@codesourcery.com>
6648
6649 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
6650 (MOVQ): Likewise.
6651 (EXTRACT_WORDS64): Likewise.
6652 (INSERT_WORDS64): Likewise.
6653 (GET_FLOAT_WORD): Likewise.
6654 (SET_FLOAT_WORD): Likewise.
6655
6656 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
6657 argument.
6658 (Config.build_gcc): Use --disable-libsanitizer for first GCC
6659 build, but not for second build if --full-gcc. Use
6660 --enable-languages=all for second build if --full-gcc.
6661 (get_parser): Add --full-gcc option.
6662 (main): Update call to Context.
6663
6664 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
6665
6666 [BZ #10797]
6667 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
6668 Single Quotation Mark).
6669 (thousands_sep): Likewise.
6670 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
6671 * localedata/locales/it_IT (thousands_sep): Use ".".
6672 (grouping): Use "3;3".
6673
6674 2018-09-10 Joseph Myers <joseph@codesourcery.com>
6675
6676 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
6677 x86_64 and i686 configs using --enable-obsolete-rpc
6678 --enable-obsolete-nsl.
6679
6680 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6681
6682 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6683
6684 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6685
6686 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
6687 Increment size of new_argv by one.
6688
6689 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
6690
6691 [BZ #17426]
6692 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
6693 * localedata/locales/ar_IN (d_fmt): Likewise.
6694 * localedata/locales/bhb_IN (d_fmt): Likewise.
6695 * localedata/locales/bho_IN (d_fmt): Likewise.
6696 * localedata/locales/bn_BD (d_fmt): Likewise.
6697 * localedata/locales/bn_IN (d_fmt): Likewise.
6698 * localedata/locales/doi_IN (d_fmt): Likewise.
6699 * localedata/locales/gu_IN (d_fmt): Likewise.
6700 * localedata/locales/hi_IN (d_fmt): Likewise.
6701 * localedata/locales/hne_IN (d_fmt): Likewise.
6702 * localedata/locales/kn_IN (d_fmt): Likewise.
6703 * localedata/locales/mag_IN (d_fmt): Likewise.
6704 * localedata/locales/mai_IN (d_fmt): Likewise.
6705 * localedata/locales/mjw_IN (d_fmt): Likewise.
6706 * localedata/locales/ml_IN (d_fmt): Likewise.
6707 * localedata/locales/mni_IN (d_fmt): Likewise.
6708 * localedata/locales/mr_IN (d_fmt): Likewise.
6709 * localedata/locales/pa_IN (d_fmt): Likewise.
6710 * localedata/locales/raj_IN (d_fmt): Likewise.
6711 * localedata/locales/sat_IN (d_fmt): Likewise.
6712 * localedata/locales/sd_IN (d_fmt): Likewise.
6713 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
6714 * localedata/locales/ta_IN (d_fmt): Likewise.
6715 * localedata/locales/ta_LK (d_fmt): Likewise.
6716 * localedata/locales/tcy_IN (d_fmt): Likewise.
6717 * localedata/locales/ur_IN (d_fmt): Likewise.
6718
6719 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
6720 * localedata/locales/ks_IN (d_fmt): Likewise.
6721 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
6722
6723 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
6724 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
6725 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
6726 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
6727
6728 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
6729
6730 * NEWS: Mention exp and exp2 improvements.
6731 * math/Makefile (libm-support): Remove t_exp.
6732 (type-double-routines): Add math_err and e_exp_data.
6733 * sysdeps/aarch64/libm-test-ulps: Update.
6734 * sysdeps/arm/libm-test-ulps: Update.
6735 * sysdeps/i386/fpu/e_exp_data.c: New file.
6736 * sysdeps/i386/fpu/math_err.c: New file.
6737 * sysdeps/i386/fpu/t_exp.c: Remove.
6738 * sysdeps/ia64/fpu/e_exp_data.c: New file.
6739 * sysdeps/ia64/fpu/math_err.c: New file.
6740 * sysdeps/ia64/fpu/t_exp.c: Remove.
6741 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
6742 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
6743 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
6744 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
6745 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
6746 * sysdeps/ieee754/dbl-64/math_config.h: New file.
6747 * sysdeps/ieee754/dbl-64/math_err.c: New file.
6748 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
6749 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
6750 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
6751 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
6752 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
6753 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
6754 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
6755 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6756 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6757
6758 2018-09-05 Joseph Myers <joseph@codesourcery.com>
6759
6760 * sysdeps/alpha/fpu/math_private.h: Remove.
6761
6762 * sysdeps/generic/math_private.h
6763 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
6764 Move this inline function ....
6765 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
6766 * include/math.h [!_ISOMAC]: To here....
6767
6768 2018-09-04 Joseph Myers <joseph@codesourcery.com>
6769
6770 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
6771 code ....
6772 [!FE_HAVE_ROUNDING_MODES]: And this code ....
6773 * include/fenv.h [!_ISOMAC]: ... to here.
6774 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
6775 (feraiseexcept): Likewise.
6776 * math/fromfp.h: Do not include <fenv_private.h>.
6777 * math/s_cexp_template.c: Likewise.
6778 * math/s_csin_template.c: Likewise.
6779 * math/s_csinh_template.c: Likewise.
6780 * math/s_ctan_template.c: Likewise.
6781 * math/s_ctanh_template.c: Likewise.
6782 * math/s_iseqsig_template.c: Likewise.
6783 * math/w_acos_compat.c: Likewise.
6784 * math/w_acosf_compat.c: Likewise.
6785 * math/w_acosl_compat.c: Likewise.
6786 * math/w_asin_compat.c: Likewise.
6787 * math/w_asinf_compat.c: Likewise.
6788 * math/w_asinl_compat.c: Likewise.
6789 * math/w_j0_compat.c: Likewise.
6790 * math/w_j0f_compat.c: Likewise.
6791 * math/w_j0l_compat.c: Likewise.
6792 * math/w_j1_compat.c: Likewise.
6793 * math/w_j1f_compat.c: Likewise.
6794 * math/w_j1l_compat.c: Likewise.
6795 * math/w_jn_compat.c: Likewise.
6796 * math/w_jnf_compat.c: Likewise.
6797 * math/w_log10_compat.c: Likewise.
6798 * math/w_log10f_compat.c: Likewise.
6799 * math/w_log10l_compat.c: Likewise.
6800 * math/w_log2_compat.c: Likewise.
6801 * math/w_log2f_compat.c: Likewise.
6802 * math/w_log2l_compat.c: Likewise.
6803 * math/w_log_compat.c: Likewise.
6804 * math/w_logf_compat.c: Likewise.
6805 * math/w_logl_compat.c: Likewise.
6806 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6807 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6808 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6809 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6810 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6811 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6812 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6813 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6814 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6815 * sysdeps/ieee754/k_standardl.c: Likewise.
6816 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6817 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6818 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6819 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6820 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6821 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6822 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6823 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6824 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6825 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6826 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6827 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6828 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6829 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6830 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6831 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6832 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6833 * math/w_ilogb_template.c: Include <fenv.h> instead of
6834 <fenv_private.h>.
6835 * math/w_llogb_template.c: Likewise.
6836 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6837 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6838
6839 2018-09-03 Joseph Myers <joseph@codesourcery.com>
6840
6841 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
6842 * math/fromfp.h: Include <fenv_private.h>.
6843 * math/math-narrow.h: Likewise.
6844 * math/s_cexp_template.c: Likewise.
6845 * math/s_csin_template.c: Likewise.
6846 * math/s_csinh_template.c: Likewise.
6847 * math/s_ctan_template.c: Likewise.
6848 * math/s_ctanh_template.c: Likewise.
6849 * math/s_iseqsig_template.c: Likewise.
6850 * math/w_acos_compat.c: Likewise.
6851 * math/w_acosf_compat.c: Likewise.
6852 * math/w_acosl_compat.c: Likewise.
6853 * math/w_asin_compat.c: Likewise.
6854 * math/w_asinf_compat.c: Likewise.
6855 * math/w_asinl_compat.c: Likewise.
6856 * math/w_ilogb_template.c: Likewise.
6857 * math/w_j0_compat.c: Likewise.
6858 * math/w_j0f_compat.c: Likewise.
6859 * math/w_j0l_compat.c: Likewise.
6860 * math/w_j1_compat.c: Likewise.
6861 * math/w_j1f_compat.c: Likewise.
6862 * math/w_j1l_compat.c: Likewise.
6863 * math/w_jn_compat.c: Likewise.
6864 * math/w_jnf_compat.c: Likewise.
6865 * math/w_llogb_template.c: Likewise.
6866 * math/w_log10_compat.c: Likewise.
6867 * math/w_log10f_compat.c: Likewise.
6868 * math/w_log10l_compat.c: Likewise.
6869 * math/w_log2_compat.c: Likewise.
6870 * math/w_log2f_compat.c: Likewise.
6871 * math/w_log2l_compat.c: Likewise.
6872 * math/w_log_compat.c: Likewise.
6873 * math/w_logf_compat.c: Likewise.
6874 * math/w_logl_compat.c: Likewise.
6875 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6876 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6877 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6878 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6879 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6880 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6881 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6882 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6883 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6884 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6885 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6886 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6887 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
6888 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
6889 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6890 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6891 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6892 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6893 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6894 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6895 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6896 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
6897 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6898 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
6899 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6900 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6901 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
6902 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
6903 * sysdeps/ieee754/float128/float128_private.h: Likewise.
6904 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6905 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6906 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6907 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
6908 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6909 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6910 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6911 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6912 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6913 * sysdeps/ieee754/k_standardl.c: Likewise.
6914 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6915 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6916 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6917 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6918 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
6919 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
6920 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6921 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6922 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6923 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6924 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6925 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6926 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
6927 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6928 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6929 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
6930 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
6931 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
6932 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
6933 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6934 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6935 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6936 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6937 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6938 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
6939 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
6940 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6941 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
6942 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
6943 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6944 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6945 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6946 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6947 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6948 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6949 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
6950 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6951 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6952 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6953 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6954 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6955 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6956 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6957 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6958 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6959 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6960 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6961 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6962 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6963 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6964 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6965 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6966 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6967 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6968 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6969 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6970 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6971 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6972 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6973 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6974 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6975 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6976 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6977 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6978 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6979 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6980 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6981 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6982 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6983 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6984 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6985
6986 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6987
6988 [BZ #20271]
6989 * include/stdio.h (__libc_fatal): Mention newline in comment.
6990 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
6991 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
6992 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6993 * nss/nsswitch.c (__nss_next2): Likewise.
6994 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
6995 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
6996 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
6997 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
6998 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
6999 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
7000 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
7001 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
7002 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
7003 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
7004 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
7005 * sysdeps/unix/sysv/linux/netlink_assert_response.c
7006 (__netlink_assert_response): Likewise.
7007
7008 2018-08-31 Joseph Myers <joseph@codesourcery.com>
7009
7010 * conform/glibcconform.py: New file.
7011 * conform/list-header-symbols.py: Likewise.
7012 * conform/list-header-symbols.pl: Remove.
7013 * conform/Makefile (tests-special): Only add linknamespace tests
7014 if [PYTHON].
7015 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7016
7017 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
7018
7019 [BZ #23597]
7020 * support/Makefile (libsupport-routines): Add
7021 support_copy_file_range and xcopy_file_range.
7022 * support/support.h: Include <sys/types.h>.
7023 (support_copy_file_range): New prototype.
7024 * support/support_copy_file_range.c: New file. Copied and
7025 modified from io/copy_file_range-compat.c.
7026 * support/test-container.c (copy_one_file): Call xcopy_file_rang
7027 instead of copy_file_range.
7028 * support/xcopy_file_range.c: New file.
7029 * support/xunistd.h (xcopy_file_range): New prototype.
7030
7031 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7032
7033 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7034 xpthread_create and xpthread_join.
7035
7036 2018-08-30 Florian Weimer <fweimer@redhat.com>
7037
7038 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7039
7040 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7041
7042 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7043 if malloc fails.
7044
7045 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7046
7047 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7048 and minus_oflow as non-finite.
7049
7050 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7051
7052 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7053 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7054 moved to fenv_private.h except for ...
7055 (TOINT_INTRINSICS): Kept in math_private.h.
7056 (roundtoint): Likewise.
7057 (converttoint): Likewise.
7058 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7059 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7060 * sysdeps/arm/math_private.h: Remove.
7061 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7062 ....
7063 * sysdeps/generic/math_private.h: ... this file. Include
7064 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7065 Include <fenv_private.h>. Remove functions and macros moved to
7066 fenv_private.h.
7067 * sysdeps/i386/fpu/math_private.h: Remove.
7068 * sysdeps/mips/math_private.h: Move to ....
7069 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7070 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7071 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7072 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7073 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7074 * sysdeps/powerpc/fpu/math_private.h: Do not include
7075 <fenv_private.h>.
7076 * sysdeps/riscv/rvf/math_private.h: Move to ....
7077 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7078 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7079 <fenv_private.h>.
7080 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7081 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7082 * sysdeps/sparc/fpu/math_private.h: Remove.
7083 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7084 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7085 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7086 <fenv_private.h>.
7087 * sysdeps/x86_64/fpu/math_private.h: Do not include
7088 <sysdeps/i386/fpu/fenv_private.h>.
7089
7090 2018-08-28 Florian Weimer <fweimer@redhat.com>
7091
7092 [BZ #23578]
7093 * posix/tst-regcomp-truncated.c: New file.
7094 * posix/Makefile (tests): Add it.
7095 (tst-regcomp-truncated.out): Depend on generated locales.
7096
7097 2018-08-28 Florian Weimer <fweimer@redhat.com>
7098
7099 * support/test-container.c (main): Treat unshare failure with
7100 EPERM as an unsupported test.
7101
7102 2018-08-28 Florian Weimer <fweimer@redhat.com>
7103
7104 [BZ #23520]
7105 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7106 * nscd/netgroupcache.c
7107 (addgetnetgrentX): Add tofreep parameter. Do not free
7108 heap-allocated buffer.
7109 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7110 (addgetnetgrentX_ignore): New function.
7111 (addgetnetgrent): Call it.
7112 (readdgetnetgrent): Likewise.
7113
7114 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7115
7116 * string/memmem.c: Use memcmp for first match.
7117
7118 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7119
7120 [BZ #17426]
7121 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7122
7123 2018-08-27 DJ Delorie <dj@redhat.com>
7124
7125 * support/Makefile (others): Don't list programs explicitly as a
7126 dependency of "others".
7127
7128 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7129
7130 * sysdeps/generic/math-tests-trap-force.h: New file.
7131 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7132 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7133 * sysdeps/powerpc/math-tests.h: Remove file.
7134 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7135
7136 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7137 Torvald Riegel <triegel@redhat.com>
7138
7139 [BZ #23538]
7140 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7141 Update r to include the set wake-request flag if waiters are
7142 remaining after spinning.
7143
7144 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7145
7146 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7147
7148 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7149
7150 [BZ #23578]
7151 regex: fix uninitialized memory access
7152 I introduced this bug into gnulib in commit
7153 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7154 eventually it was merged into glibc. The bug was found by
7155 project-repo <bugs@feusi.co> and reported here:
7156 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7157 Diagnosis and draft fix reported by Assaf Gordon here:
7158 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7159 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7160 * posix/regex_internal.c (build_wcs_upper_buffer):
7161 Fix bug when mbrtowc returns 0.
7162
7163 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7164
7165 * po/be.po: Update translation.
7166
7167 2018-08-24 DJ Delorie <dj@delorie.com>
7168
7169 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7170 $(libunwind).
7171
7172 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7173
7174 [BZ #23400]
7175 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7176 create temporary files in source tree.
7177
7178 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7179
7180 * sysdeps/generic/math-tests-trap.h: New file.
7181 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7182 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7183 * sysdeps/aarch64/math-tests.h: Remove file.
7184 * sysdeps/arm/math-tests.h: Likewise.
7185 * sysdeps/riscv/math-tests.h: Likewise.
7186 * sysdeps/aarch64/math-tests-trap.h: New file.
7187 * sysdeps/arm/math-tests-trap.h: Likewise.
7188 * sysdeps/riscv/math-tests-trap.h: Likewise.
7189
7190 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7191
7192 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7193 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7194 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7195 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7196 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7197 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7198 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7199 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7200 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7201 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7202 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7203 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7204 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7205 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7206 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7207 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7208 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7209 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7210
7211 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7212
7213 * sysdeps/generic/math-tests-exceptions.h: New file.
7214 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7215 (EXCEPTION_TESTS_float): Do not define here.
7216 (EXCEPTION_TESTS_double): Likewise.
7217 (EXCEPTION_TESTS_long_double): Likewise.
7218 (EXCEPTION_TESTS_float128): Likewise.
7219 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7220 Likewise.
7221 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7222 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7223 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7224 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7225 * sysdeps/mips/math-tests.h: Likewise.
7226 * sysdeps/nios2/math-tests.h: Likewise.
7227 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7228 (EXCEPTION_TESTS_float): Do not define here.
7229 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7230 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7231 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7232
7233 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7234
7235 * NEWS: Move optimized sinf entry to 2.29.
7236
7237 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7238
7239 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7240
7241 2018-08-22 DJ Delorie <dj@redhat.com>
7242
7243 * Makefile (testroot.pristine): New rules to initialize the
7244 test-in-container "testroot".
7245 * Makerules (all-testsuite): Add tests-container.
7246 * Rules (tests-expected): Add tests-container.
7247 (binaries-all-tests): Likewise.
7248 (tests-container): New, run these tests in the testroot container.
7249 * support/Makefile (others): Add *-container, support_paths.c,
7250 xmkdirp, and links-dso-program.
7251 * support/links-dso-program-c.c: New.
7252 * support/links-dso-program.cc: New.
7253 * support/test-container.c: New.
7254 * support/shell-container.c: New.
7255 * support/echo-container.c: New.
7256 * support/true-container.c: New.
7257 * support/xmkdirp.c: New.
7258 * support/xsymlink.c: New.
7259 * support/support_paths.c: New.
7260 * support/support.h: Add support paths prototypes.
7261 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7262
7263 * nss/tst-nss-test3.c: Convert to test-in-container.
7264 * nss/tst-nss-test3.root/: New.
7265
7266 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7267
7268 regex: port Gnulib code to z/OS POSIX environment
7269 Problem reported by Arnold Robbins in:
7270 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7271 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7272 Undef.
7273
7274 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7275
7276 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7277 (ROUNDING_TESTS_double): Remove.
7278 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7279 (ROUNDING_TESTS_double): Remove.
7280 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7281 (ROUNDING_TESTS_double): Remove.
7282 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7283 (ROUNDING_TESTS_float): Remove.
7284 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7285 (ROUNDING_TESTS_float): Remove.
7286 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7287 (ROUNDING_TESTS_float): Remove.
7288 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7289 !TEST_MATHVEC here.
7290 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7291 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7292
7293 * sysdeps/generic/math-tests-rounding.h: New file.
7294 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7295 (ROUNDING_TESTS_float): Do not define here.
7296 (ROUNDING_TESTS_double): Likewise.
7297 (ROUNDING_TESTS_long_double): Likewise.
7298 (ROUNDING_TESTS_float128): Likewise.
7299 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7300 (ROUNDING_TESTS_double): Undefine before defining.
7301 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7302 (ROUNDING_TESTS_double): Undefine before defining.
7303 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7304 (ROUNDING_TESTS_double): Undefine before defining.
7305 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7306 (ROUNDING_TESTS_float): Undefine before defining.
7307 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7308 (ROUNDING_TESTS_float): Undefine before defining.
7309 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7310 (ROUNDING_TESTS_float): Undefine before defining.
7311 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7312 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7313 not define here.
7314 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7315 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7316 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7317 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7318 (ROUNDING_TESTS_float): Do not define here.
7319 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7320 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7321 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7322 (ROUNDING_TESTS_float): Likewise.
7323 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7324 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7325 * sysdeps/mips/math-tests.h [__mips_soft_float]
7326 (ROUNDING_TESTS_float): Likewise.
7327 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7328 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7329 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7330 (ROUNDING_TESTS_double): Likewise.
7331 (ROUNDING_TESTS_long_double): Likewise.
7332
7333 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7334
7335 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7336 (PF_XDP): New macro.
7337 (AF_XDP): New macro.
7338 (SOL_XDP): New macro.
7339
7340 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7341
7342 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7343 (TCP_INQ): Likewise.
7344 (TCP_CM_INQ): Likewise.
7345 (TCP_REPAIR_ON): Likewise.
7346 (TCP_REPAIR_OFF): Likewise.
7347 (TCP_REPAIR_OFF_NO_WP): Likewise.
7348 (struct tcp_zerocopy_receive): New type.
7349
7350 2018-08-21 Florian Weimer <fweimer@redhat.com>
7351
7352 * support/support.h (support_descriptor_supports_holes): Declare.
7353 * support/Makefile (libsupport-routines): Add
7354 support_descriptor_supports_holes.
7355 * support/support_descriptor_supports_holes.c: New file.
7356 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
7357 and stop testing if holes are not supported.
7358 * io/test-lfs.c (do_prepare): Likewise.
7359 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
7360 Likewise.
7361 * timezone/tst-tzset.c (create_tz_file): Likewise.
7362 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7363 variable.
7364 (do_prepare): Set it.
7365 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7366
7367 2018-08-21 Florian Weimer <fweimer@redhat.com>
7368
7369 [BZ #17248]
7370 * Makeconfig (+cflags): Do not sort (and deduplicate).
7371
7372 2018-08-21 Florian Weimer <fweimer@redhat.com>
7373
7374 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7375 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7376
7377 2018-08-20 Florian Weimer <fweimer@redhat.com>
7378
7379 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
7380 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
7381
7382 2018-08-20 Joseph Myers <joseph@codesourcery.com>
7383
7384 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7385 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
7386 and ssi_arch members.
7387
7388 * elf/elf.c (NT_VMCOREDD): New macro.
7389 (AT_MINSIGSTKSZ): Likewise.
7390
7391 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7392
7393 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7394 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
7395 s_cosf-ppc64 and s_cosf-power8.
7396 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
7397 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7398 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7399 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7400 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7401 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7402 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
7403 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7404 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7405 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7406 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
7407 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7408
7409 2018-08-17 Florian Weimer <fweimer@redhat.com>
7410
7411 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7412
7413 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
7414
7415 * malloc/malloc.c (_int_malloc): Additional binning code checks.
7416
7417 2018-08-16 Florian Weimer <fweimer@redhat.com>
7418
7419 * configure.ac: Add --with-nonshared-cflags option.
7420 * config.make.in (extra-nonshared-cflags): Set variable.
7421 * Makeconfig (CFLAGS-.oS): Use it.
7422 * manual/install.texi (Configuring and compiling): Document
7423 --with-nonshared-cflags.
7424 * configure: Regenerate.
7425 * INSTALL: Likewise.
7426
7427 2018-08-16 Florian Weimer <fweimer@redhat.com>
7428
7429 * Makeconfig (ASFLAGS): Always append required assembler flags.
7430
7431 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
7432
7433 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
7434 (malloc_consolidate): Likewise.
7435
7436 2018-08-16 Pochang Chen <johnchen902@gmail.com>
7437
7438 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
7439
7440 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7441
7442 * benchtests/bench-strlen.c (do_test): Allocate buffers before
7443 every strlen call.
7444
7445 * benchtests/bench-strlen.c: Print performance numbers in json.
7446
7447 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7448
7449 * sysdeps/powerpc/powerpc64/multiarch/Makefile
7450 (sysdep_routines): Build strcmp-power9 and strncmp-power9
7451 only for little endian.
7452 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7453 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
7454 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
7455 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
7456 Add check for little endian.
7457 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7458 (__strcmp_power9): Add check for little endian.
7459 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
7460 Add check for little endian.
7461 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7462 (__strncmp_power9): Add check for little endian.
7463 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
7464 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
7465 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
7466 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
7467 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
7468
7469 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
7470
7471 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
7472 [!STRLEN](STRLEN): Set to __strlen.
7473 * sysdeps/aarch64/multiarch/strlen.c: New file.
7474 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
7475 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
7476 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7477 (__libc_ifunc_impl_list): Add strlen.
7478 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7479 strlen_generic and strlen_asimd.
7480
7481 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7482
7483 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
7484 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
7485 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
7486
7487 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7488
7489 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
7490
7491 2018-08-14 Florian Weimer <fweimer@redhat.com>
7492
7493 [BZ #23519]
7494 * include/stdio.h (__vfxprintf): Declare.
7495 * stdio-common/fxprintf.c (__vfxprintf): New function.
7496 (__fxprintf): Call it.
7497 * misc/err.c (convert_and_print): Remove function.
7498 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
7499 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
7500 * misc/Makefile (tests): Add tst-warn-wide.
7501 * misc/tst-warn-wide.c: New file.
7502
7503 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
7504 Szabolcs Nagy <szabolcs.nagy@arm.com>
7505
7506 * NEWS: Mention sinf, cosf, sincosf.
7507 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
7508 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
7509 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
7510 constants rather than including generic sincosf.h.
7511 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
7512 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
7513 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
7514 (reduced_cos): Remove.
7515 (sinf_poly): New function.
7516 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
7517
7518 2018-08-14 Florian Weimer <fweimer@redhat.com>
7519
7520 [BZ #23521]
7521 [BZ #23522]
7522 * nss/nss_files/files-alias.c (get_next_alias): During :include:
7523 processing, bail out if no room, and close the stream before
7524 returning ERANGE.
7525 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
7526 (tst-nss-files-alias-leak): Link with libdl.
7527 (tst-nss-files-alias-leak.out): Depend on nss_files.
7528
7529 * nss/tst-nss-files-alias-leak.c: New file.
7530
7531 2018-08-14 Florian Weimer <fweimer@redhat.com>
7532
7533 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
7534 server_user, stat_user.
7535
7536 2018-08-13 Joseph Myers <joseph@codesourcery.com>
7537
7538 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7539 version to 4.18.
7540 (io_pgetevents): New syscall.
7541 (rseq): Likewise.
7542
7543 * manual/install.texi (Configuring and compiling): Do not list
7544 tools used for testing pretty printers here.
7545 (Tools for Compilation): List Python, PExpect and GDB here.
7546 Update descriptions of uses of Perl and Python.
7547 * INSTALL: Regenerate.
7548
7549 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7550 version to 4.18.
7551
7552 2018-08-13 Florian Weimer <fweimer@redhat.com>
7553
7554 * misc/error.c (error): Add missing va_end call.
7555 (error_at_line): Likewise.
7556
7557 2018-08-13 Florian Weimer <fweimer@redhat.com>
7558
7559 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
7560
7561 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
7562
7563 * benchtests/scripts/benchout.schema.json (properties): Add
7564 new properties.
7565
7566 * benchtests/bench-skeleton.c (main): Add duration and
7567 iterations attributes.
7568
7569 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
7570
7571 regex: Gnulib unibyte RRI uses bytes not chars
7572 Adjust the non-glibc code to agree with what Gawk needs for
7573 rational range interpretation (RRI) for regular expression ranges.
7574 In unibyte locales, Gawk wants ranges to use the underlying byte
7575 rather than the character code point. This change does not affect
7576 glibc proper.
7577 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
7578 In unibyte locales, use the byte value rather than
7579 running it through btowc.
7580
7581 2018-08-10 Joseph Myers <joseph@codesourcery.com>
7582
7583 * sysdeps/generic/math-tests-snan.h: New file.
7584 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
7585 (SNAN_TESTS_float): Do not define here.
7586 (SNAN_TESTS_double): Likewise.
7587 (SNAN_TESTS_long_double): Likewise.
7588 (SNAN_TESTS_float128): Likewise.
7589 * sysdeps/i386/fpu/math-tests-snan.h: New file.
7590 * sysdeps/i386/fpu/math-tests.h: Remove file.
7591 * sysdeps/ia64/math-tests-snan.h: New file.
7592 * sysdeps/ia64/math-tests.h: Remove file.
7593 * sysdeps/x86/math-tests.h: Likewise.
7594 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
7595
7596 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7597 Szabolcs Nagy <szabolcs.nagy@arm.com>
7598
7599 * math/Makefile: Add s_sincosf_data.c.
7600 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
7601 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
7602 (sincosf_poly): Likewise.
7603 (reduce_small): Likewise.
7604 (reduce_large): Likewise.
7605 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
7606 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
7607 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
7608 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
7609
7610 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7611 Szabolcs Nagy <szabolcs.nagy@arm.com>
7612
7613 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
7614 (converttoint): Use lround.
7615 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
7616 document the semantics when TOINT_INTRINSICS is set.
7617 (converttoint): Likewise.
7618 (TOINT_RINT): Remove.
7619 (TOINT_SHIFT): Remove.
7620 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
7621 path.
7622
7623 2018-08-10 Florian Weimer <fweimer@redhat.com>
7624
7625 [BZ #23497]
7626 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
7627 function.
7628 (__old_getdents64): Use getdents64. Convert entries without
7629 moving them.
7630 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
7631 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
7632 tst-readdir64-compat.
7633
7634 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7635
7636 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
7637 Fix unwind.
7638
7639 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7640
7641 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
7642 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
7643 code to s390x-mcount.h and #include it.
7644 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
7645 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
7646 (__fentry__): Add.
7647
7648 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7649
7650 * stdlib/Versions: Remove __fentry__.
7651 * sysdeps/i386/Versions: Add __fentry__.
7652 * sysdeps/x86_64/Versions: Add __fentry__.
7653
7654 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7655
7656 * sysdeps/s390/Makefile: Register the new tests.
7657 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
7658 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
7659 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
7660 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
7661 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
7662 * sysdeps/s390/tst-dl-runtime.c: New file.
7663
7664 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7665
7666 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7667 Do not clobber R0.
7668
7669 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7670
7671 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7672 Do not clobber R0.
7673
7674 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7675
7676 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7677 Do not clobber R0.
7678
7679 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7680
7681 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7682 Do not clobber R0.
7683
7684 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7685
7686 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7687 Use symbolic offsets for stack variables.
7688
7689 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7690
7691 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7692 Use symbolic offsets for stack variables.
7693
7694 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7695
7696 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7697 Use symbolic offsets for stack variables.
7698
7699 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7700
7701 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7702 Use symbolic offsets for stack variables.
7703
7704 2018-08-09 Joseph Myers <joseph@codesourcery.com>
7705
7706 * math/gen-libm-test.py: New file.
7707 * math/gen-libm-test.pl: Remove.
7708 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
7709 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
7710 gen-libm-test.pl.
7711 ($(libm-test-c-noauto-obj)): Likewise.
7712 ($(libm-test-c-auto-obj)): Likewise.
7713 ($(libm-test-c-narrow-obj)): Likewise.
7714 (regen-ulps): Likewise.
7715 * math/README.libm-test: Update references to gen-libm-test.pl.
7716 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
7717 referencing gen-libm-test.pl.
7718 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
7719 * math/libm-test-support.c: Likewise.
7720 * math/libm-test-support.h: Likewise.
7721 * sysdeps/generic/libm-test-ulps: Likewise.
7722
7723 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
7724
7725 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
7726 Fix value.
7727
7728 2018-08-08 Joseph Myers <joseph@codesourcery.com>
7729
7730 * math/libm-test-nextdown.inc (do_test): Move comment to ....
7731 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
7732
7733 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
7734
7735 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
7736 symbols.
7737 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
7738 __pthread_setspecific): Add hidden proto.
7739 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
7740 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
7741
7742 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
7743
7744 * benchtests/bench-string.h (buf1_size, buf2_size): New
7745 variables.
7746 (init_sizes): New function.
7747 (test_init): Use it.
7748 (alloc_buf, exit_error): New functions.
7749 (alloc_bufs): Use ALLOC_BUF.
7750 (realloc_bufs): Remove.
7751 * benchtests/bench-memcmp.c (do_test): Adjust.
7752 * benchtests/bench-memset-large.c (do_test): Likewise.
7753 * benchtests/bench-memset-walk.c (do_test): Likewise.
7754 * benchtests/bench-memset.c (do_test): Likewise.
7755 * benchtests/bench-strncmp.c (do_test): Likewise.
7756
7757 2018-08-06 Andreas Schwab <schwab@suse.de>
7758
7759 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
7760 of CONST_THREAD_AREA.
7761
7762 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
7763
7764 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
7765 (STATE_SAVE_MASK): Likewise.
7766 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
7767 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
7768 (STATE_SAVE_MASK): Likewise.
7769 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
7770 instead of <cpu-features.h>.
7771
7772 2018-08-03 DJ Delorie <dj@redhat.com>
7773
7774 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
7775 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
7776
7777 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7778
7779 2018-08-03 Joseph Myers <joseph@codesourcery.com>
7780
7781 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
7782 after TEST_* calls.
7783 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
7784 * math/libm-test-logb.inc (logb_test_data): Likewise.
7785
7786 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
7787
7788 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
7789 * string/strstr.c (AVAILABLE): Likewise.
7790
7791 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7792
7793 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
7794 <init-arch.h>.
7795 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
7796 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
7797 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
7798
7799 2018-08-03 Carlos O'Donell <carlos@redhat.com>
7800
7801 * po/be.po: Update translation.
7802
7803 * po/be.po: Update translation.
7804
7805 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7806
7807 * sysdeps/x86/cpu-features-offsets.sym
7808 (rtld_global_ro_offsetof): Removed.
7809 (CPU_FEATURES_SIZE): Likewise.
7810 (CPUID_OFFSET): Likewise.
7811 (CPUID_SIZE): Likewise.
7812 (CPUID_EAX_OFFSET): Likewise.
7813 (CPUID_EBX_OFFSET): Likewise.
7814 (CPUID_ECX_OFFSET): Likewise.
7815 (CPUID_EDX_OFFSET): Likewise.
7816 (FAMILY_OFFSET): Likewise.
7817 (MODEL_OFFSET): Likewise.
7818 (FEATURE_OFFSET): Likewise.
7819 (FEATURE_SIZ): Likewise.
7820 (COMMON_CPUID_INDEX_1): Likewise.
7821 (COMMON_CPUID_INDEX_7): Likewise.
7822 (FEATURE_INDEX_1): Likewise.
7823 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
7824
7825 2018-08-02 Carlos O'Donell <carlos@redhat.com>
7826
7827 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
7828 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
7829 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
7830 (install-locales): Depend on install-locale-archive.
7831 (install-locale-archive): Define.
7832 (install-locale-files): Define.
7833 (build-one-locale): Define macro.
7834 * manual/install.texi (Running make install): Document.
7835 * manual/INSTALL: Regenerate.
7836
7837 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
7838
7839 * benchtests/scripts/compare_strings.py: Import traceback.
7840 (parse_file): Pretty-print error.
7841
7842 * NEWS: Mention the change.
7843 * elf/dl-tunables.list: Rename tune namespace to cpu.
7844 * sysdeps/powerpc/dl-tunables.list: Likewise.
7845 * sysdeps/x86/dl-tunables.list: Likewise.
7846 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
7847 cpu.name.
7848 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
7849 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
7850 * manual/README.tunables: Likewise.
7851 * manual/tunables.texi: Likewise.
7852 * sysdeps/powerpc/cpu-features.c: Likewise.
7853 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
7854 (init_cpu_features): Likewise.
7855 * sysdeps/x86/cpu-features.c: Likewise.
7856 * sysdeps/x86/cpu-features.h: Likewise.
7857 * sysdeps/x86/cpu-tunables.c: Likewise.
7858 * sysdeps/x86_64/Makefile: Likewise.
7859 * sysdeps/x86/dl-cet.c: Likewise.
7860
7861 2018-08-02 Joseph Myers <joseph@codesourcery.com>
7862
7863 [BZ #23479]
7864 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
7865 [__mips_hard_float].
7866 (FE_UNDERFLOW): Likewise.
7867 (FE_OVERFLOW): Likewise.
7868 (FE_DIVBYZERO): Likewise.
7869 (FE_INVALID): Likewise.
7870 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
7871 (FE_TOWARDZERO): Define only if [__mips_hard_float].
7872 (FE_UPWARD): Likewise.
7873 (FE_DOWNWARD): Likewise.
7874 (__FE_UNDEFINED): Define if [!__mips_hard_float]
7875 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
7876 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
7877 [__mips_hard_float].
7878 (FP_ROUNDMODE): Likewise.
7879 (FP_RND_NEAREST): Likewise.
7880 (FP_RND_ZERO): Likewise.
7881 (FP_RND_PINF): Likewise.
7882 (FP_RND_MINF): Likewise.
7883 (FP_EX_INVALID): Likewise.
7884 (FP_EX_OVERFLOW): Likewise.
7885 (FP_EX_UNDERFLOW): Likewise.
7886 (FP_EX_DIVZERO): Likewise.
7887 (FP_EX_INEXACT): Likewise.
7888 (FP_INIT_ROUNDMODE): Likewise.
7889 * sysdeps/mips/nofpu/fesetenv.c: New file.
7890 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
7891
7892 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7893
7894 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
7895 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
7896 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
7897 conditional on [FE_UPWARD].
7898
7899 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
7900
7901 regex: fix memory leak in Gnulib
7902 Problem and fix reported by Assaf Gordon in:
7903 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
7904 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
7905 range_ends members too, as they are defined in 'struct
7906 re_charset_t' even if not _LIBC. This affects only Gnulib.
7907
7908 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
7909
7910 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
7911 ...
7912 (get_common_indices): This.
7913 (init_cpu_features): Updated.
7914
7915 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7916
7917 * sysdeps/generic/math-tests-snan-payload.h: New file.
7918 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
7919 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
7920 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
7921 * sysdeps/generic/math-tests.h: Include
7922 <math-tests-snan-payload.h>.
7923 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7924 * sysdeps/hppa/math-tests.h: Remove file.
7925 * sysdeps/mips/math-tests.h [!__mips_nan2008]
7926 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7927 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
7928 Likewise.
7929
7930 * sysdeps/generic/math-tests-snan-cast.h: New file.
7931 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
7932 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
7933 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
7934 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
7935
7936 2018-08-01 Carlos O'Donel <carlos@redhat.com>
7937
7938 * version.h (RELEASE): Set to "development".
7939 (VERSION): Set to "2.28.9000".
7940 * NEWS (2.29): New section.
7941
7942 * version.h (RELEASE): Set to "stable".
7943 (VERSION): Set to "2.28".
7944 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
7945 * NEWS: Add the list of bugs fixed in 2.28.
7946
7947 * po/ca.po: Update to latest version.
7948 * po/cs.po: Likewise
7949 * po/da.po: Likewise
7950 * po/el.po: Likewise
7951 * po/eo.po: Likewise
7952 * po/es.po: Likewise
7953 * po/fi.po: Likewise
7954 * po/fr.po: Likewise
7955 * po/gl.po: Likewise
7956 * po/hu.po: Likewise
7957 * po/ia.po: Likewise
7958 * po/id.po: Likewise
7959 * po/it.po: Likewise
7960 * po/ja.po: Likewise
7961 * po/ko.po: Likewise
7962 * po/lt.po: Likewise
7963 * po/nb.po: Likewise
7964 * po/nl.po: Likewise
7965 * po/pt_BR.po: Likewise
7966 * po/ru.po: Likewise
7967 * po/rw.po: Likewise
7968 * po/sk.po: Likewise
7969 * po/sl.po: Likewise
7970 * po/tr.po: Likewise
7971 * po/zh_CN.po: Likewise
7972 * po/zh_TW.po: Likewise
7973
7974 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
7975
7976 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
7977 initialization...
7978 (init): ... before initializing libpthread.
7979
7980 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
7981 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
7982 (__mach_setup_tls): ... new function.
7983 (mach_setup_tls): New alias.
7984 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
7985 __mach_setup_thread.
7986 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
7987 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
7988 * mach/Versions [libc] (mach_setup_tls): Add symbol.
7989 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
7990
7991 2018-07-31 Carlos O'Donell <carlos@redhat.com>
7992
7993 * manual/install.texi: Update versions.
7994 * INSTALL: Regenerate.
7995
7996 * manual/contrib.texi (Contributors): Update contributions.
7997
7998 2018-07-31 Carlos O'Donell <carlos@redhat.com>
7999
8000 * po/be.po: Update translations.
8001
8002 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8003
8004 * sysdeps/sh/libm-test-ulps: Update.
8005
8006 2018-07-30 Carlos O'Donell <carlos@redhat.com>
8007
8008 * po/bg.po: Update translations.
8009 * po/de.po: Likewise.
8010 * po/hr.po: Likewise.
8011 * po/pt_BR.po: Likewise.
8012 * po/sv.po: Likewise.
8013 * po/vi.po: Likewise.
8014
8015 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8016
8017 [BZ #23467]
8018 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8019 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8020 (CFLAGS-tst-cet-property-1.o): New.
8021 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8022 ($(objpfx)tst-cet-property-2): Likewise.
8023 ($(objpfx)tst-cet-property-2.out): Likewise.
8024 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
8025 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
8026 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
8027 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
8028 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
8029
8030 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8031
8032 [BZ #23458]
8033 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8034
8035 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8036
8037 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8038 __sbrk): Do not set attribute_hidden.
8039 * sysdeps/mach/hurd/not-errno.h: New file.
8040 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8041 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8042
8043 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8044
8045 * po/uk.po: Update translations.
8046 * po/cs.po: Likewise.
8047 * po/pl.po: Likewise.
8048
8049 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8050
8051 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8052 parse beyond the note end.
8053
8054 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8055
8056 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8057 kernel does not support OFD locks.
8058 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8059
8060 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8061
8062 * sysdeps/mach/hurd/Versions (libc): Make __access and
8063 __access_noerrno external so they can override the ld symbols.
8064 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8065 __writev, __open64, __access_noerrno extern so they can be overrided.
8066 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8067 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8068
8069 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8070
8071 * po/libc.pot: Regenerate.
8072
8073 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8074
8075 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8076
8077 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8078
8079 [BZ #23459]
8080 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8081 function.
8082 (init_cpu_features): Call get_extended_indices for both Intel
8083 and AMD CPUs.
8084 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8085 Remove "for AMD" comment.
8086
8087 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8088
8089 [BZ # 23456]
8090 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8091 COMMON_CPUID_INDEX_80000001.
8092
8093 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8094
8095 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8096 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8097
8098 2018-07-26 Florian Weimer <fweimer@redhat.com>
8099
8100 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8101 aliases for symbols not in the implementation namespace.
8102
8103 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8104
8105 [BZ #23393]
8106 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8107 lowercase in LATIN script.
8108 * localedata/Makefile (test-input): Add en_US.UTF-8.
8109 * localedata/en_US.UTF-8.in: New file.
8110 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8111 and restore old tests.
8112 * posix/tst-regexloc.c (do_test): Add back range expression test.
8113
8114 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8115
8116 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8117
8118 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8119
8120 * nptl/threads.h: Move to ...
8121 * sysdeps/nptl/threads.h: ... here.
8122 * sysdeps/hurd/stdc-predef.h: New file.
8123
8124 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8125
8126 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8127 tst-cet-setcontext-1 if CET is enabled.
8128 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8129 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8130
8131 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8132
8133 * include/threads.h: Move to ...
8134 * sysdeps/nptl/threads.h: ... here.
8135 * sysdeps/htl/threads.h: New file.
8136 * conform/Makefile (linknamespace-libs-ISO11): Use
8137 static-thread-library instead of linking libpthread.
8138 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8139
8140 2018-07-25 Florian Weimer <fweimer@redhat.com>
8141
8142 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8143 nanoseconds into seconds.
8144 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8145 (do_test): Likewise.
8146 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8147 (do_test): Likewise. Avoid nanosecond overflow and spurious
8148 timeouts due to system load.
8149 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8150 (child_wait): Increment it.
8151 (do_test): Wait as long as necessary until all expected threads
8152 have arrived.
8153
8154 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8155 H.J. Lu <hongjiu.lu@intel.com>
8156
8157 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8158 __ssp.
8159 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8160 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8161 (__push___start_context): New.
8162 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8163 <asm/prctl.h>.
8164 (__getcontext): Record the current shadow stack base. Save the
8165 caller's shadow stack pointer and base.
8166 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8167 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8168 (__push___start_context): New prototype.
8169 (__makecontext): Call __push___start_context to allocate a new
8170 shadow stack, push __start_context onto the new stack as well
8171 as the new shadow stack.
8172 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8173 <asm/prctl.h>.
8174 (__setcontext): Restore the target shadow stack.
8175 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8176 <asm/prctl.h>.
8177 (__swapcontext): Record the current shadow stack base. Save
8178 the caller's shadow stack pointer and base. Restore the target
8179 shadow stack.
8180 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8181 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8182 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8183
8184 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8185
8186 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8187 tst-setcontext8 and tst-setcontext9.
8188 * stdlib/tst-setcontext6.c: New file.
8189 * stdlib/tst-setcontext7.c: Likewise.
8190 * stdlib/tst-setcontext8.c: Likewise.
8191 * stdlib/tst-setcontext9.c: Likewise.
8192
8193 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8194
8195 * stdlib/Makefile ((tests): Add tst-setcontext5.
8196 * stdlib/tst-setcontext5.c: New file.
8197
8198 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8199
8200 * stdlib/Makefile (tests): Add tst-setcontext4.
8201 * stdlib/tst-setcontext4.c: New file.
8202
8203 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8204
8205 * stdlib/Makefile (tests): Add tst-swapcontext1.
8206 * stdlib/tst-swapcontext1.c: New test.
8207
8208 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8209
8210 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8211 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8212 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8213 and tst-cet-legacy-4c.
8214 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8215 and tst-cet-legacy-mod-4.
8216 (CFLAGS-tst-cet-legacy-2.c): New.
8217 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8218 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8219 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8220 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8221 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8222 ($(objpfx)tst-cet-legacy-1): Likewise.
8223 ($(objpfx)tst-cet-legacy-2): Likewise.
8224 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8225 ($(objpfx)tst-cet-legacy-2a): Likewise.
8226 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8227 ($(objpfx)tst-cet-legacy-4): Likewise.
8228 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8229 ($(objpfx)tst-cet-legacy-4a): Likewise.
8230 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8231 (tst-cet-legacy-4a-ENV): Likewise.
8232 ($(objpfx)tst-cet-legacy-4b): Likewise.
8233 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8234 (tst-cet-legacy-4b-ENV): Likewise.
8235 ($(objpfx)tst-cet-legacy-4c): Likewise.
8236 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8237 (tst-cet-legacy-4c-ENV): Likewise.
8238 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8239 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8240 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8241 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8242 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8243 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8244 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8245 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8246 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8247 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8248 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8249
8250 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8251
8252 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8253 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8254 with ssp_base.
8255 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8256 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8257 with ssp_base.
8258
8259 2018-07-25 Andreas Schwab <schwab@suse.de>
8260
8261 [BZ #23442]
8262 * locale/weightwc.h (findidx): Handle the case where usrc is a
8263 prefix of cp but one character too short.
8264
8265 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8266
8267 * NEWS: Add ISO C threads addition.
8268
8269 2018-07-24 Florian Weimer <fweimer@redhat.com>
8270
8271 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8272 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8273 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8274 4.13.
8275
8276 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8277
8278 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8279 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8280 <sys/prctl.h> and <asm/prctl.h>.
8281 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8282 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8283 and <asm/prctl.h>.
8284 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8285 ARCH_CET_LEGACY_BITMAP.
8286 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8287 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8288 * sysdeps/x86/libc-start.c: Include <startup.h>.
8289
8290 2018-07-24 Florian Weimer <fweimer@redhat.com>
8291
8292 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8293 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8294
8295 2018-07-24 Rical Jasan <rj@2c3t.io>
8296 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8297 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8298
8299 [BZ #14092]
8300 * manual/debug.texi: Update adjacent chapter name.
8301 * manual/probes.texi: Likewise.
8302 * manual/threads.texi (ISO C Threads): New section.
8303 (POSIX Threads): Convert to a section.
8304
8305 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8306 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8307
8308 [BZ# 14092]
8309 * nptl/Makefile (tests): Add new test files.
8310 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8311 * nptl/tst-cnd-basic.c: Likewise.
8312 * nptl/tst-cnd-broadcast.c: Likewise.
8313 * nptl/tst-cnd-timedwait.c: Likewise.
8314 * nptl/tst-mtx-basic.c: Likewise.
8315 * nptl/tst-mtx-recursive.c: Likewise.
8316 * nptl/tst-mtx-timedlock.c: Likewise.
8317 * nptl/tst-mtx-trylock.c: Likewise.
8318 * nptl/tst-thrd-basic.c: Likewise.
8319 * nptl/tst-thrd-detach.c: Likewise.
8320 * nptl/tst-thrd-sleep.c: Likewise.
8321 * nptl/tst-tss-basic.c: Likewise.
8322
8323 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8324
8325 [BZ #14092]
8326 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8327 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8328 symbols.
8329 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8330 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8331 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8332 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8333 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8334 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8335 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8336 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8337 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8338 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8339 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8340 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8341 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8342 Likewise.
8343 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8344 Likewise.
8345 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8346 Likewise.
8347 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8348 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8349 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8350 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8351 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8352 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8353 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8354 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8355 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8356 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
8357 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
8358 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
8359 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
8360 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
8361 Likewise.
8362 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8363 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8364 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8365 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8366 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8367 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8368 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8369 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8370 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8371 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8372 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8373 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8374 ikewise.
8375 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8376 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8377 Likewise.
8378 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8379 Likewise.
8380 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8381 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8382 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8383 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8384 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8385 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8386 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8387 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8388
8389 [BZ #14092]
8390 * conform/data/threads.h-data (thread_local): New macro.
8391 (TSS_DTOR_ITERATIONS): Likewise.
8392 (tss_t): New type.
8393 (tss_dtor_t): Likewise.
8394 (tss_create): New function.
8395 (tss_get): Likewise.
8396 (tss_set): Likewise.
8397 (tss_delete): Likewise.
8398 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
8399 tss_get, and tss_set objects.
8400 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8401 * nptl/tss_create.c: New file.
8402 * nptl/tss_delete.c: Likewise.
8403 * nptl/tss_get.c: Likewise.
8404 * nptl/tss_set.c: Likewise.
8405 * sysdeps/nptl/threads.h (thread_local): New define.
8406 (TSS_DTOR_ITERATIONS): Likewise.
8407 (tss_t): New typedef.
8408 (tss_dtor_t): Likewise.
8409 (tss_create): New prototype.
8410 (tss_get): Likewise.
8411 (tss_set): Likewise.
8412 (tss_delete): Likewise.
8413
8414 [BZ #14092]
8415 * conform/data/threads.h-data (cnd_t): New type.
8416 (cnd_init): New function.
8417 (cnd_signal): Likewise.
8418 (cnd_broadcast): Likewise.
8419 (cnd_wait): Likewise.
8420 (cnd_timedwait): Likewise.
8421 (cnd_destroy): Likewise.
8422 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
8423 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
8424 object.
8425 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8426 * nptl/cnd_broadcast.c: New file.
8427 * nptl/cnd_destroy.c: Likewise.
8428 * nptl/cnd_init.c: Likewise.
8429 * nptl/cnd_signal.c: Likewise.
8430 * nptl/cnd_timedwait.c: Likewise.
8431 * nptl/cnd_wait.c: Likewise.
8432 * sysdeps/nptl/threads.h (cnd_t): New type.
8433 (cnd_init): New prototype.
8434 (cnd_signa): Likewise.
8435 (cnd_broadcast): Likewise.
8436 (cnd_wait): Likewise.
8437 (cnd_timedwait): Likewise.
8438 (cnd_destroy): Likewise.
8439
8440 [BZ #14092]
8441 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
8442 (once_flag): New type.
8443 (call_once): New function.
8444 * nptl/Makefile (libpthread-routines): Add call_once object.
8445 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
8446 * nptl/call_once.c: New file.
8447 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
8448 (once_flag): New type.
8449 (call_once): New prototype.
8450
8451 [BZ #14092]
8452 * conform/data/threads.h-data (mtx_plain): New constant.
8453 (mtx_recursive): Likewise.
8454 (mtx_timed): Likewise.
8455 (mtx_t): New type.
8456 (mtx_init): New function.
8457 (mtx_lock): Likewise.
8458 (mtx_timedlock): Likewise.
8459 (mtx_trylock): Likewise.
8460 (mtx_unlock): Likewise.
8461 (mtx_destroy): Likewise.
8462 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
8463 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
8464 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
8465 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
8466 * nptl/mtx_destroy.c: New file.
8467 * nptl/mtx_init.c: Likewise.
8468 * nptl/mtx_lock.c: Likewise.
8469 * nptl/mtx_timedlock.c: Likewise.
8470 * nptl/mtx_trylock.c: Likewise.
8471 * nptl/mtx_unlock.c: Likewise.
8472 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
8473 (mtx_recursive): Likewise.
8474 (mtx_timed): Likewise.
8475 (mtx_t): New type.
8476 (mtx_init): New prototype.
8477 (mtx_lock): Likewise.
8478 (mtx_timedlock): Likewise.
8479 (mtx_trylock): Likewise.
8480 (mtx_unlock): Likewise.
8481 (mtx_destroy): Likewise.
8482
8483 [BZ #14092]
8484 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
8485 (linknamespace-libs-ISO11): Add libpthread.a.
8486 * conform/data/threads.h-data: New file: add C11 thrd_* types and
8487 functions.
8488 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
8489 * nptl/Makefile (headers): Add threads.h.
8490 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
8491 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
8492 thrd_yield.
8493 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
8494 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
8495 thrd_join, thrd_sleep, and thrd_yield symbols.
8496 * nptl/descr.h (struct pthread): Add c11 field.
8497 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
8498 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
8499 routine with expected function prototype.
8500 (__pthread_create_2_1): Add C11 threads check based on attribute
8501 value.
8502 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
8503 * nptl/thrd_create.c: New file.
8504 * nptl/thrd_current.c: Likewise.
8505 * nptl/thrd_detach.c: Likewise.
8506 * nptl/thrd_equal.c: Likewise.
8507 * nptl/thrd_exit.c: Likewise.
8508 * nptl/thrd_join.c: Likewise.
8509 * nptl/thrd_priv.h: Likewise.
8510 * nptl/thrd_sleep.c: Likewise.
8511 * nptl/thrd_yield.c: Likewise.
8512 * include/threads.h: Likewise.
8513
8514 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8515
8516 * bits/indirect-return.h: New file.
8517 * misc/sys/cdefs.h (__glibc_has_attribute): New.
8518 * sysdeps/x86/bits/indirect-return.h: Likewise.
8519 * stdlib/Makefile (headers): Add bits/indirect-return.h.
8520 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
8521 (swapcontext): Add __INDIRECT_RETURN.
8522 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
8523 (prepare_test_buffer): Use it.
8524
8525 2018-07-24 Andreas Schwab <schwab@suse.de>
8526
8527 [BZ #23448]
8528 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
8529 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
8530
8531 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8532
8533 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
8534 Redefine if shadow stack is enabled.
8535 (SYSCALL_ERROR_LABEL): Likewise.
8536 (__vfork): Pop shadow stack and jump back to to caller directly
8537 when shadow stack is in use.
8538 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
8539 Redefine if shadow stack is enabled.
8540 (SYSCALL_ERROR_LABEL): Likewise.
8541 (__vfork): Pop shadow stack and jump back to to caller directly
8542 when shadow stack is in use.
8543
8544 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8545
8546 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
8547 enabled.
8548 (foo): Likewise.
8549 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
8550 (foo): Likewise.
8551
8552 2018-07-20 Joseph Myers <joseph@codesourcery.com>
8553
8554 * scripts/build-many-glibcs.py (Context.checkout): Default
8555 binutils version to 2.31 branch.
8556
8557 2018-07-20 Zong Li <zong@andestech.com>
8558
8559 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
8560 URL of gcc's tarball.
8561
8562 2018-07-20 Florian Weimer <fweimer@redhat.com>
8563
8564 [BZ #23396]
8565 * posix/regcomp.c (build_equiv_class): When comparing weights, do
8566 not compare an extra byte after the end of the weights.
8567
8568 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
8569
8570 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
8571 to 1.
8572 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
8573 hidden prototypes.
8574 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
8575 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
8576 * scripts/check-execstack.awk: Consider `xfail' variable containing a
8577 list of libraries whose stack executability is expected.
8578 * elf/Makefile ($(objpfx)check-execstack.out): Pass
8579 $(check-execstack-xfail) to check-execstack.awk through `xfail'
8580 variable.
8581 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
8582 libc.so libpthread.so.
8583
8584 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
8585
8586 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
8587 SOCK_NONBLOCK.
8588 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
8589 and SOCK_NONBLOCK.
8590 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
8591 implement __pipe2.
8592 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
8593
8594 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8595
8596 * benchtests/scripts/compare_bench.py (__main__): use the argparse
8597 library to improve command line parsing.
8598 (__main__): make schema file as optional parameter (--schema),
8599 defaulting to benchtests/scripts/benchout.schema.json.
8600 (main): move out of the parsing stuff to __main_  and leave it
8601 only as caller of main comparison functions.
8602
8603 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
8604
8605 * NEWS: Add a note for Intel CET status.
8606 * manual/install.texi: Likewise.
8607 * INSTALL: Regenerated.
8608
8609 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
8610
8611 [BZ #23140]
8612 * localedata/locales/oc_FR (mon): Rename to...
8613 (alt_mon): This, then update October (typo fix).
8614 (mon): New content (genitive case, month names preceded by
8615 "de" or "d’").
8616
8617 [BZ #23422]
8618 * localedata/locales/oc_FR (abday): Update all items.
8619 (day): Update Wednesday and Saturday (typo fixes).
8620 (abmon): Update all items, except May.
8621 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
8622 (LC_IDENTIFICATION): Bump the revision number and date.
8623 Keep the "category" entries in alphabetic order.
8624 (LC_ADDRESS): Remove no longer needed comment.
8625 (LC_COLLATE): Use “copy "ca_ES"”.
8626 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
8627 "name_mrs".
8628
8629 2018-07-18 Joseph Myers <joseph@codesourcery.com>
8630
8631 * grp/tst_fgetgrent.c: Include <unistd.h>.
8632 (main): Use mkstemp instead of tmpnam.
8633 * io/test-utime.c (main): Likewise.
8634 * posix/annexc.c (macrofile): Change to modifiable array.
8635 (main): Remove macrofile here.
8636 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8637 macrofile here.
8638 (check_header): Do not remove macrofile here.
8639 * posix/bug-getopt1.c: Include <stdlib.h>.
8640 (do_test): Use mkstemp instead of tmpnam.
8641 * posix/bug-getopt2.c: Include <stdlib.h>.
8642 (do_test): Use mkstemp instead of tmpnam.
8643 * posix/bug-getopt3.c: Include <stdlib.h>.
8644 (do_test): Use mkstemp instead of tmpnam.
8645 * posix/bug-getopt4.c: Include <stdlib.h>.
8646 (do_test): Use mkstemp instead of tmpnam.
8647 * posix/bug-getopt5.c: Include <stdlib.h>.
8648 (do_test): Use mkstemp instead of tmpnam.
8649 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
8650 (main): Use mkstemp instead of tmpnam.
8651 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
8652 (main): Use mkstemp instead of tmpnam.
8653 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
8654 (main): use mkstemp instead of tmpnam.
8655 * stdlib/isomac.c (macrofile): Change to modifiable array.
8656 (main): Remove macrofile here.
8657 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8658 macrofile here.
8659 (check_header): Do not remove macrofile here.
8660
8661 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8662
8663 * manual/tunables.texi: Document glibc.tune.x86_ibt and
8664 glibc.tune.x86_shstk.
8665
8666 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8667
8668 * NEWS: Mention --enable-cet.
8669 * manual/install.texi: Document --enable-cet.
8670 * INSTALL: Regenerated.
8671
8672 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8673
8674 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
8675 Add _CET_NOTRACK before indirect jump to jump table.
8676
8677 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8678
8679 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
8680 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8681 to jump table.
8682
8683 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8684
8685 * sysdeps/i386/i686/multiarch/strcat-sse2.S
8686 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8687 to jump table.
8688
8689 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8690
8691 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
8692 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8693 to jump table.
8694
8695 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8696
8697 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
8698 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8699 to jump table.
8700
8701 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8702
8703 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
8704 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8705 to jump table.
8706 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
8707
8708 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8709
8710 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
8711 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8712 to jump table.
8713
8714 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8715
8716 * sysdeps/i386/i686/multiarch/memset-sse2.S
8717 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8718 to jump table.
8719
8720 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8721
8722 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
8723 indirect jump to jump table.
8724
8725 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8726
8727 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
8728 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8729 to jump table.
8730 (MEMCPY): Likewise.
8731
8732 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8733
8734 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
8735 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8736 to jump table.
8737 (MEMCPY): Likewise.
8738
8739 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8740
8741 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8742 _CET_NOTRACK before indirect jump to jump table.
8743
8744 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8745
8746 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
8747 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8748 to jump table.
8749
8750 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8751
8752 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
8753 indirect jump to jump table.
8754
8755 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
8756
8757 [BZ #22241]
8758 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
8759 (LOCALES): Likewise.
8760 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
8761 * localedata/locales/sah_RU: New file.
8762 * localedata/sah_RU.UTF-8.in: New file.
8763
8764 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8765
8766 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
8767 "sysdep.h".
8768 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8769 _CET_ENDBR to indirect jump targets and adjust jump destination
8770 for _CET_ENDBR.
8771 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
8772 "sysdep.h".
8773 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8774 _CET_ENDBR to indirect jump targets and adjust jump destination
8775 for _CET_ENDBR.
8776 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
8777 "sysdep.h".
8778 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
8779 _CET_ENDBR to indirect jump targets and adjust jump destination
8780 for _CET_ENDBR.
8781
8782 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8783
8784 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8785 _CET_ENDBR.
8786
8787 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8788
8789 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
8790 _CET_ENDBR.
8791 (_dl_tlsdesc_undefweak): Likewise.
8792 (_dl_tlsdesc_dynamic): Likewise.
8793 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
8794 (_dl_tlsdesc_resolve_rel): Likewise.
8795 (_dl_tlsdesc_resolve_rela): Likewise.
8796 (_dl_tlsdesc_resolve_hold): Likewise.
8797 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
8798 (_dl_tlsdesc_undefweak): Likewise.
8799 (_dl_tlsdesc_dynamic): Likewise.
8800 (_dl_tlsdesc_resolve_rela): Likewise.
8801 (_dl_tlsdesc_resolve_hold): Likewise.
8802
8803 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8804
8805 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
8806 (_fini): Likewise.
8807 * sysdeps/x86_64/crti.S (_init): Likewise.
8808 (_fini): Likewise.
8809
8810 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
8811
8812 [BZ #23140]
8813 * localedata/locales/os_RU (mon): Rename to...
8814 (alt_mon): This.
8815 (mon): Import from CLDR (genitive case).
8816
8817 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8818
8819 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
8820 cet-tunables.h> when CET is enabled.
8821
8822 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
8823
8824 [BZ #21598]
8825 * configure.ac: Add --enable-cet.
8826 * configure: Regenerated.
8827 * elf/Makefille (all-built-dso): Add a comment.
8828 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
8829 Include <dl-prop.h>.
8830 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
8831 segment.
8832 * elf/dl-open.c: Include <dl-prop.h>.
8833 (dl_open_worker): Call _dl_open_check.
8834 * elf/rtld.c: Include <dl-prop.h>.
8835 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
8836 _rtld_main_check.
8837 * sysdeps/generic/dl-prop.h: New file.
8838 * sysdeps/i386/dl-cet.c: Likewise.
8839 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
8840 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
8841 * sysdeps/x86/cet-tunables.h: Likewise.
8842 * sysdeps/x86/check-cet.awk: Likewise.
8843 * sysdeps/x86/configure: Likewise.
8844 * sysdeps/x86/configure.ac: Likewise.
8845 * sysdeps/x86/dl-cet.c: Likewise.
8846 * sysdeps/x86/dl-procruntime.c: Likewise.
8847 * sysdeps/x86/dl-prop.h: Likewise.
8848 * sysdeps/x86/libc-start.h: Likewise.
8849 * sysdeps/x86/link_map.h: Likewise.
8850 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
8851 _CET_ENDBR.
8852 (_dl_runtime_profile): Likewise.
8853 (_dl_runtime_resolve_shstk): New.
8854 (_dl_runtime_profile_shstk): Likewise.
8855 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
8856 if CET is enabled.
8857 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
8858 (CFLAGS-.os): Likewise.
8859 (CFLAGS-.op): Likewise.
8860 (CFLAGS-.oS): Likewise.
8861 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
8862 is enabled.
8863 (tests-special): Add $(objpfx)check-cet.out.
8864 (cet-built-dso): New.
8865 (+$(cet-built-dso:=.note)): Likewise.
8866 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
8867 ($(objpfx)check-cet.out): New.
8868 (generated): Add check-cet.out.
8869 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
8870 <cet-tunables.h>.
8871 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
8872 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8873 (init_cpu_features): Call get_cet_status to check CET status
8874 and update dl_x86_feature_1 with CET status. Call
8875 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
8876 (set_x86_shstk). Disable and lock CET in libc.a.
8877 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
8878 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
8879 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8880 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
8881 (_CET_ENDBR): Define if not defined.
8882 (ENTRY): Add _CET_ENDBR.
8883 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
8884 x86_shstk.
8885 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
8886 _CET_ENDBR.
8887 (_dl_runtime_profile): Likewise.
8888
8889 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
8890
8891 [BZ #21895]
8892 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
8893 restore r2 on longjmp.
8894 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
8895 test list.
8896 Added rules to build test tst-setjmp-bug21895-static.
8897 Added module setjmp-bug21895 and rules to build a shared object from it.
8898 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
8899 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
8900
8901 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
8902
8903 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
8904 * benchtests/bench-strstr.c: Likewise.
8905 * string/memmem.c (FASTSEARCH): Define.
8906 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
8907 Add support for FASTSEARCH.
8908 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
8909 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
8910 (FASTSEARCH): Define.
8911 * string/test-strcasestr.c: Rename __strnlen to strnlen.
8912 * string/test-strstr.c: Likewise.
8913
8914 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
8915
8916 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
8917 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
8918
8919 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
8920 H.J. Lu <hongjiu.lu@intel.com>
8921
8922 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
8923 (__longjmp): Restore shadow stack pointer if shadow stack is
8924 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8925 isn't defined for __longjmp_cancel.
8926 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
8927 (_setjmp): Save shadow stack pointer if shadow stack is enabled
8928 and SHADOW_STACK_POINTER_OFFSET is defined.
8929 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
8930 (setjmp): Save shadow stack pointer if shadow stack is enabled
8931 and SHADOW_STACK_POINTER_OFFSET is defined.
8932 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
8933 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8934 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8935 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
8936 <jmp_buf-ssp.h>.
8937 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8938 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8939 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
8940 Remove jmp_buf-ssp.sym.
8941 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8942 <jmp_buf-ssp.h>.
8943 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8944 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8945 * sysdeps/x86/Makefile (gen-as-const-headers): Add
8946 jmp_buf-ssp.sym.
8947 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
8948 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
8949 (__longjmp): Restore shadow stack pointer if shadow stack is
8950 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8951 isn't defined for __longjmp_cancel.
8952 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
8953 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8954 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8955
8956 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
8957
8958 [BZ #22563]
8959 * nptl/pthread_create.c: Include <tls-setup.h>.
8960 (__pthread_create_2_1): Call tls_setup_tcbhead.
8961 * sysdeps/generic/tls-setup.h: New file.
8962 * sysdeps/x86/nptl/tls-setup.h: Likewise.
8963 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
8964 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
8965 Likewise.
8966 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
8967 to feature_1.
8968 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
8969 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
8970 (X86_FEATURE_1_SHSTK): Likewise.
8971 (CET_ENABLED): Likewise.
8972 (IBT_ENABLED): Likewise.
8973 (SHSTK_ENABLED): Likewise.
8974
8975 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
8976
8977 [BZ #23208]
8978 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
8979 (LOCALES): Likewise.
8980 * localedata/dsb_DE.UTF-8.in: New file.
8981 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
8982
8983 2018-07-12 Florian Weimer <fweimer@redhat.com>
8984
8985 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
8986 __mprotect, not mprotect.
8987
8988 2018-07-11 Florian Weimer <fweimer@redhat.com>
8989
8990 * io/Makefile (headers): Add bits/statx.h.
8991
8992 2018-07-10 Mike FABIAN <mfabian@redhat.com>
8993
8994 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
8995 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
8996 and headers.
8997 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
8998 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
8999 for utf8_gen.py
9000
9001 2018-07-10 Florian Weimer <fweimer@redhat.com>
9002
9003 * io/Makefile (routines): Add statx.
9004 (tests-internal): Add tst-statx.
9005 * io/Versions (GLIBC_2.28): Export statx.
9006 * io/bits/statx.h: New file.
9007 * io/sys/stat.h [__USE_GNU]: Include it.
9008 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9009 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9010 Define.
9011 * io/statx.c: New file.
9012 * io/statx_generic.: Likewise.
9013 * io/tst-statx.: Likewise.
9014 * include/bits/statx.h: Likewise.
9015 * sysdeps/unix/sysv/linux/kernel-features.h
9016 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9017 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9018 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9019 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9020 Undefine.
9021 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9022 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9023 * sysdeps/unix/sysv/linux/statx.c: New file.
9024 * manual/filesys.texi: Note that statx is undocumented.
9025 * sysdeps/**/libc*.abilist: Update.
9026
9027 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9028
9029 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
9030 a kernel issue which lead to test failure in some cases.
9031
9032 2018-07-10 Florian Weimer <fweimer@redhat.com>
9033
9034 [BZ #23036]
9035 * posix/regexec.c (check_node_accept_bytes): When comparing
9036 weights, do not compare an extra byte after the end of the
9037 weights.
9038
9039 2018-07-10 Florian Weimer <fweimer@redhat.com>
9040
9041 * libio/readline.c: Fix copyright year.
9042 * libio/tst-readline.c Likewise.
9043 * nss/tst-nss-files-hosts-getent.c: Likewise.
9044
9045 2018-07-06 Florian Weimer <fweimer@redhat.com>
9046
9047 [BZ #18991]
9048 * nss/nss_files/files-XXX.c (internal_getent): Use
9049 __libc_readline_unlocked. Seek back to the start of the line if
9050 parsing failes with ERANGE.
9051 (get_contents_ret, get_contents): Remove.
9052 * nss/tst-nss-files-hosts-getent.c: New file.
9053 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9054 (tst-nss-files-hosts-getent): Link with -ldl.
9055
9056 2018-07-06 Florian Weimer <fweimer@redhat.com>
9057
9058 * include/stdio.h (__libc_readline_unlocked): Declare.
9059 (__ftello64, __fseeko64): Declare aliases.
9060 * libio/readline.c: New file.
9061 * libio/tst-readline.c: Likewise.
9062 (routines): Add readline.
9063 (tests-internal): Add tst-readlime.
9064 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9065 __libc_readline_unlocked.
9066 * libio/fseeko.c (__fseeko): Rename from fseeko.
9067 (fseeko): Add alias.
9068 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9069 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9070 (fseeko64): Add alias.
9071 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9072 * libio/ftello64.c (__ftello64): Rename from ftello64.
9073 (ftello64): Add alias.
9074
9075 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9076
9077 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9078 HWCAP_ATOMICS.
9079
9080 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9081
9082 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9083 Use dl_hwcap without masking.
9084 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9085 Remove HWCAP_CPUID.
9086
9087 2018-07-06 Florian Weimer <fweimer@redhat.com>
9088
9089 * conform/conformtest.pl (checknamespace): Escape literal braces
9090 in regular expressions.
9091
9092 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9093
9094 * sysdeps/x86/cpu-features.c (get_common_indeces):
9095 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9096 * sysdeps/x86/cpu-features.c (init_cpu_features):
9097 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9098
9099 2018-07-05 Florian Weimer <fweimer@redhat.com>
9100
9101 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9102 protector.
9103 (CFLAGS-elf-init.oS): Likewise.
9104
9105 2018-07-05 Florian Weimer <fweimer@redhat.com>
9106 Carlos O'Donell <carlos@redhat.com>
9107
9108 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9109 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9110 with stack protector enabled because there is no risk of infinite
9111 recursion.
9112
9113 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9114
9115 [BZ #19818]
9116 [BZ #23307]
9117 * libc-abis (ABSOLUTE): New ABI.
9118 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9119 * NEWS: Mention the new ABI.
9120
9121 2018-07-05 Florian Weimer <fweimer@redhat.com>
9122
9123 [BZ # 17662]
9124 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9125 (RENAME_WHITEOUT): Define.
9126 [__USE_GNU] (renameat2): Declare.
9127 * stdio-common/Makefile (routines): Add renameat2.
9128 (tests): Add tst-renameat2.
9129 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9130 * stdio-common/renameat2.c: New file.
9131 * stdio-common/tst-renameat2.c: Likewise.
9132 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9133 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9134 undocumented.
9135 * sysdeps/unix/sysv/linux/kernel-features.h
9136 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9137 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9138 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9139 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9140 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9141 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9142 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9143 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9144 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9145 * include/stdio.h (__renameat): Add alias for renameat.
9146 * stdio-common/renameat.c (__renameat): Rename from renameat.
9147 Add hidden definition and alias.
9148 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9149 * sysdeps/mach/hurd/renameat.c: Likewise.
9150 * sysdeps/**/libc*.abilist: Add renameat2.
9151
9152 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9153
9154 * posix/bug-regex33.c: Fix build after regex sync.
9155
9156 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9157
9158 [BZ #23164]
9159 * localedata/tst-langinfo-setlocale.c: New file.
9160 * localedata/tst-langinfo-setlocale-static.c: New file.
9161 * localedata/tst-langinfo-newlocale.c: New file.
9162 * localedata/tst-langinfo-newlocale-static.c: New file.
9163 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9164 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9165 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9166 (tests-static): Remove tst-langinfo-static. Add
9167 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9168 (tests-special): Remove $(objpfx)tst-langinfo.out,
9169 $(objpfx)tst-langinfo-static.out. Add
9170 $(objpfx)tst-langinfo-setlocale.out,
9171 $(objpfx)tst-langinfo-newlocale.out,
9172 $(objpfx)tst-langinfo-setlocale-static.out,
9173 $(objpfx)tst-langinfo-newlocale-static.out.
9174 ($(objpfx)tst-langinfo.out): Remove.
9175 ($(objpfx)tst-langinfo-static.out): Remove.
9176 ($(objpfx)tst-langinfo-newlocale.out): New target.
9177 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9178 (test-xfail-tst-langinfo-newlocale-static): Add.
9179 ($(objpfx)tst-langinfo-setlocale.out): New target.
9180 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9181 * localedata/tst-langinfo.c: Call test_locale.
9182 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9183 data.
9184
9185 2018-07-04 Florian Weimer <fweimer@redhat.com>
9186
9187 testrun.sh: Implement --tool=strace, --tool=valgrind
9188 * Makefile (testrun-script): Define variable.
9189 (testrun.sh): Use variable.
9190 * manual/install.texi (Tools for Compilation): make 4.0 or later
9191 is required.
9192 * configure.ac: Check for make 4.0 or later.
9193 * INSTALL: Regenerate.
9194 * configure: Likewise.
9195
9196 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9197
9198 [BZ #23233]
9199 [BZ #21163]
9200 [BZ #18986]
9201 [BZ #13762]
9202 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9203 * posix/PCRE.tests: Remove invalid test.
9204 * posix/bug-regex28.c: Fix expected values for used syntax.
9205 * posix/bug-regex37.c: New file.
9206 * posix/bug-regex38.c: Likewise.
9207 * posix/regcomp.c: Sync with gnulib.
9208 * posix/regex.c: Likewise.
9209 * posix/regex.h: Likewise.
9210 * posix/regex_internal.c: Likewise.
9211 * posix/regex_internal.h: Likewise.
9212 * posix/regexec.c: Likewise.
9213
9214 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9215
9216 [BZ #23308]
9217 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9218 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9219 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9220 * localedata/unicode-gen/PropList.txt: likewise.
9221 * localedata/unicode-gen/UnicodeData.txt: likewise.
9222 * localedata/charmaps/UTF-8: Regenerate.
9223 * localedata/locales/i18n_ctype: likewise.
9224 * localedata/locales/tr_TR: likewise.
9225 * localedata/locales/translit_circle: likewise.
9226 * localedata/locales/translit_cjk_compat: likewise.
9227 * localedata/locales/translit_combining: likewise.
9228 * localedata/locales/translit_compat: likewise.
9229 * localedata/locales/translit_font: likewise.
9230 * localedata/locales/translit_fraction: likewise.
9231
9232 2018-07-03 Florian Weimer <fweimer@redhat.com>
9233
9234 [BZ #23363]
9235 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9236 * stdio-common/tst-printf.sh: Adjust expected output.
9237 * LICENSES: Update.
9238
9239 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9240
9241 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9242 symbol.
9243
9244 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9245
9246 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9247 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9248 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9249 * stdio-common/tst-printfsz-islongdouble.c: New file.
9250 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9251 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9252 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9253 [subdir == stdio-common] (tests-internal): Add
9254 test-printf-size-ieee128, and test-printf-size-ibm128.
9255 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9256 (CFLAGS-test-printf-size-ibm128.c): New variables.
9257 [subdir == stdio-common] (tests-special): Add
9258 $(objpfx)test-printf-size-ieee128.out and
9259 $(objpfx)test-printf-size-ibm128.out.
9260 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9261 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9262 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9263 __printf_sizeieee128.
9264 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9265 New file.
9266 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9267 Likewise.
9268 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9269 Likewise.
9270
9271 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9272
9273 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9274 (exp2f_inline): Likewise.
9275 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9276 (__math_uflowf): Likewise.
9277 (__math_may_uflowf): Likewise.
9278 (__math_divzerof): Likewise.
9279 (__math_invalidf): Likewise.
9280 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9281 (__math_oflowf): Likewise.
9282 (__math_uflowf): Likewise.
9283 (__math_may_uflowf): Likewise.
9284 (__math_divzerof): Likewise.
9285 (__math_invalidf): Likewise.
9286
9287 2018-06-29 DJ Delorie <dj@redhat.com>
9288 Carlos O'Donell <carlos@redhat.com>
9289
9290 [BZ #23329]
9291 * include/libc-symbols.h: Comment the freeres framework.
9292 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9293 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9294 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9295 * dlfcn/dlerror.c: Include libc-symbols.h
9296 (__dlerror_main_freeres): New function.
9297 * dlfcn/dlfreeres.c: New file.
9298 * dlfcn/sdlfreeres.c: New file.
9299 * include/dlfcn.h: Declare __dlerror_main_freeres.
9300 * malloc/set-freeres.c: Declare __libdl_freeres, and
9301 __libpthread_freeres.
9302 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9303 the releavant libraries are loaded.
9304 * malloc/thread-freeres.c: Add comments.
9305 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9306 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9307 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9308 (__free_stacks): Rename to...
9309 (free_stacks): ...this. Mark static.
9310 (queue_stack): Call free_stacks.
9311 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9312 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9313 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9314 ptr_freeres element from struct.
9315 (pthread_functions): Remove .ptr_freeres from struct initializer.
9316 [SHARED] (nptl_freeres): Remove.
9317 * nptl/nptlfreeres.c: New file.
9318 * nptl/pthreadP.h
9319 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9320 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9321 attribute_hidden.
9322 (__free_stacks): Rename to...
9323 (__nptl_stacks_freeres): ...this.
9324 (__shm_directory_freeres): Declare.
9325 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9326 (__nptl_unwind_freeres): ...this.
9327 * resolv/res-close.c: Add comment.
9328 * resolv/resolv_conf.c: Include libc-symbols.h.
9329 * string/strerror_l.c: Include libc-symbols.h.
9330 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9331 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9332 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9333 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9334
9335 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9336
9337 * stdlib/tst-strfmon_l.c: Add tests for long double.
9338
9339 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9340
9341 [BZ #23208]
9342 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9343 * localedata/locales/dsb_DE: New file.
9344
9345 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9346
9347 [BZ #23140]
9348 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9349 genitive case).
9350 (alt_mon): New entry, import from CLDR (nominative case).
9351
9352 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9353
9354 [BZ #22996]
9355 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
9356
9357 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
9358
9359 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
9360 Use vector registers.
9361
9362 * sysdeps/aarch64/multiarch/memmove_falkor.S
9363 (__memcpy_falkor): Use vector registers.
9364
9365 2018-06-29 Martin Sebor <msebor@redhat.com>
9366
9367 * manual/stdio.texi (Customizing Printf): Mention interaction
9368 with GCC built-ins.
9369
9370 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9371
9372 [BZ #23307]
9373 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9374 `st_value' is 0 if `st_shndx' is SHN_ABS.
9375 * elf/tst-absolute-zero.c: New file.
9376 * elf/tst-absolute-zero-lib.c: New file.
9377 * elf/tst-absolute-zero-lib.lds: New file.
9378 * elf/Makefile (tests): Add `tst-absolute-zero'.
9379 (modules-names): Add `tst-absolute-zero-lib'.
9380 (LDLIBS-tst-absolute-zero-lib.so): New variable.
9381 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
9382 ($(objpfx)tst-absolute-zero: New dependency.
9383
9384 2018-06-29 Zack Weinberg <zackw@panix.com>
9385
9386 * configure.ac: New command-line option --disable-crypt.
9387 Force --disable-nss-crypt when --disable-crypt is given, with a
9388 warning if it was explicitly enabled.
9389 * configure: Regenerate.
9390 * config.make.in: New boolean substitution variable $(build-crypt).
9391 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
9392 when $(build-crypt).
9393 * manual/install.texi: Document --disable-crypt.
9394 * INSTALL: Regenerate.
9395
9396 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
9397 which is never set.
9398 * conform/Makefile: Only include libcrypt.a in
9399 linknamespace-libs-xsi and linknamespace-libs-XPG4
9400 when $(build-crypt).
9401 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
9402 USE_CRYPT to 1 when $(build-crypt).
9403 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
9404 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
9405 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
9406
9407 2018-06-29 Zack Weinberg <zackw@panix.com>
9408
9409 * crypt/crypt.h, posix/unistd.h: Update comments and
9410 prototypes for crypt and crypt_r.
9411
9412 * manual/crypt.texi (Cryptographic Functions): New initial
9413 exposition.
9414 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
9415 (Unpredictable Bytes): Improve initial exposition. Clarify error
9416 behavior of getentropy and getrandom.
9417 * manual/examples/genpass.c: Generate a salt using getentropy
9418 instead of the current time. Use hash $5$ (SHA-2-256).
9419 * manual/examples/testpass.c: Demonstrate validation against
9420 hashes generated with three different one-way functions.
9421
9422 * manual/intro.texi: crypt.texi does not need an overview
9423 anymore.
9424
9425 * manual/nss.texi, manual/memory.texi, manual/socket.texi
9426 * manual/terminal.texi: Consistently refer to "passphrases"
9427 * instead of "passwords", and to the "user database" instead
9428 * of the "password database".
9429 * manual/users.texi: Similarly. Add notes about how actual
9430 passphrase hashes are now stored in the shadow database.
9431 Remove 20-year-old junk todo note.
9432
9433 2018-06-29 Zack Weinberg <zackw@panix.com>
9434
9435 * manual/crypt.texi: Use a normal top-level @node declaration.
9436 Move most of the introductory text to the 'crypt' section.
9437 Move the example programs below the @deftypefun for 'crypt_r'.
9438 Move the 'getpass' section...
9439 * manual/terminal.texi: ...here.
9440
9441 2018-06-29 Zack Weinberg <zackw@panix.com>
9442 Florian Weimer <fweimer@redhat.com>
9443
9444 * posix/unistd.h: Do not declare encrypt.
9445 (_XOPEN_CRYPT): Remove macro definition.
9446 (crypt): Declare only for _USE_MISC.
9447 * stdlib/stdlib.h: Do not declare setkey.
9448 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
9449 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
9450
9451 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
9452 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
9453 into compat symbols. Don't define initial_perm if it's not
9454 going to be used.
9455 * crypt/cert.c: Link explicitly with the expected versions for
9456 setkey and encrypt. If they are not available at all, mark
9457 the test as unsupported.
9458
9459 * sunrpc/des_crypt.c: Unconditionally block linkage with
9460 cbc_crypt and ecb_crypt for new binaries.
9461 * sunrpc/des_soft.c: Unconditionally block linkage with
9462 des_setparity for new binaries.
9463
9464 * manual/crypt.texi: Remove the entire "DES Encryption"
9465 section. Also remove the paragraph talking about FIPS 140-2
9466 from the introduction.
9467 * manual/string.texi (strfry, memfrob): Revise. Recommend use
9468 of libgcrypt for "real" encryption, not DES.
9469 * manual/conf.texi (Constants for Sysconf): Mention that
9470 _XOPEN_CRYPT is no longer impelemented.
9471
9472 * conform/data/unistd.h-data: Remove crypt function declaration.
9473
9474 2018-06-29 Florian Weimer <fweimer@redhat.com>
9475
9476 [BZ #23351]
9477 * malloc/hooks.c: Update comments on restoring of dumped heaps.
9478 (disallow_malloc_check): Remove variable.
9479 (__malloc_check_init): Adjust.
9480 (malloc_set_state): Update comment.
9481 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
9482 declarations.
9483
9484 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9485
9486 [BZ #23140]
9487 * localedata/locales/ast_ES (mon): Rename to...
9488 (alt_mon): This.
9489 (mon): Import from CLDR (genitive case).
9490
9491 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
9492 Jakub Sitnicki <jkbs@redhat.com>
9493
9494 [BZ #21812]
9495 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
9496 on NLM_F_DUMP_INTR.
9497
9498 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
9499
9500 * manual/llio.texi: Remove spurious space.
9501
9502 2018-06-28 Florian Weimer <fweimer@redhat.com>
9503
9504 [BZ #23349]
9505 * time/bits/types/struct_timespec.h: Change header inclusion guard to
9506 _STRUCT_TIMESPEC.
9507
9508 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9509
9510 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
9511 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
9512 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
9513 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
9514 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
9515 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
9516 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
9517
9518 2018-06-27 Maciej W. Rozycki <macro@mips.com>
9519
9520 [BZ #23266]
9521 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
9522 Copy and null-terminate entries that are not terminated, in
9523 addition to empty ones.
9524
9525 2018-06-27 Florian Weimer <fweimer@redhat.com>
9526
9527 [BZ #18023]
9528 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
9529 (extend_alloca_account): Remove.
9530 * manual/stdio.texi (Variable Arguments Output): Update comment.
9531
9532 2018-06-27 Joseph Myers <joseph@codesourcery.com>
9533
9534 * nptl/sockperf.c: Remove file.
9535
9536 2018-06-27 Florian Weimer <fweimer@redhat.com>
9537
9538 [BZ #18023]
9539 * elf/dl-deps.c (_dl_map_object_deps): Use struct
9540 scratch_buffer instead of extend_alloca.
9541
9542 2018-06-27 Florian Weimer <fweimer@redhat.com>
9543
9544 [BZ #18023]
9545 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
9546 scratch_buffer instead of extend_alloca. Update comments.
9547
9548 2018-06-27 Florian Weimer <fweimer@redhat.com>
9549
9550 [BZ #18023]
9551 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
9552 instead of extend_alloca.
9553
9554 2018-06-26 Joseph Myers <joseph@codesourcery.com>
9555
9556 [BZ #13888]
9557 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
9558 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
9559 /tmp.
9560 * scripts/test-installation.pl: Put temporary files in build
9561 directory, not /tmp.
9562 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
9563 (CFLAGS-bug4.c): Likewise.
9564 (CFLAGS-bug5.c): Likewise.
9565 (CFLAGS-test-fseek.c): Likewise.
9566 (CFLAGS-test-popen.c): Likewise.
9567 (CFLAGS-test_rdwr.c): Likewise.
9568 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
9569 /tmp.
9570 * stdio-common/bug4.c (main): Likewise.
9571 * stdio-common/bug5.c (main): Likewise.
9572 * stdio-common/test-fseek.c (TESTFILE): Likewise.
9573 * stdio-common/test-popen.c (do_test): Likewise.
9574 * stdio-common/test_rdwr.c (main): Likewise.
9575
9576 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
9577
9578 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
9579 (sem_open): Set sem.newsem.pad to zero for valgrind.
9580
9581 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9582
9583 [BZ #20251]
9584 * NEWS: Mention fcntl64 addition.
9585 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
9586 * login/utmp_file.c: Likewise.
9587 * sysdeps/posix/fdopendir.c: Likewise.
9588 * sysdeps/posix/opendir.c: Likewise.
9589 * sysdeps/unix/pt-fcntl.c: Likewise.
9590 * include/fcntl.h (__libc_fcntl64, __fcntl64,
9591 __fcntl64_nocancel_adjusted): New prototype.
9592 (__fcntl_nocancel_adjusted): Remove prototype.
9593 * io/Makefile (routines): Add fcntl64.
9594 (CFLAGS-fcntl64.c): New rule.
9595 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
9596 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
9597 * io/fcntl.h (fcntl64): Add prototype and redirect if
9598 __USE_FILE_OFFSET64 is defined.
9599 * io/fcntl64.c: New file.
9600 * manual/llio.text: Add a note for which commands fcntl acts a
9601 cancellation point.
9602 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
9603 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
9604 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
9605 New symbols.
9606 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
9607 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
9608 non-LFS case.
9609 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
9610 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
9611 to __fcntl64_nocancel.
9612 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
9613 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
9614 to __fcntl64_nocancel.
9615 * sysdeps/generic/not-cancel.h: Likewise.
9616 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
9617 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
9618 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9619 (fcntl64): New symbol.
9620 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9621 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9622 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9623 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9624 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9625 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9626 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9627 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9628 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9629 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9630 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
9631 fcntl64): Likewise.
9632 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9633 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
9634 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9635 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9636 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9637 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9638 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9639 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9640 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9641 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9642 Likewise.
9643 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9644 Likewise.
9645 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9646 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9647 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9648
9649 2018-06-26 Florian Weimer <fweimer@redhat.com>
9650
9651 Run thread shutdown functions in an explicit order.
9652 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
9653 definition.
9654 (__libc_thread_freeres): Call thread shutdown functions
9655 explicitly.
9656 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
9657 * include/string.h (__strerror_thread_freeres): Declare.
9658 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
9659 arena_thread_freeres. No longer static. Remove thread shutdown
9660 hook registration.
9661 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
9662 Declare.
9663 * resolv/res-close.c (__res_thread_freeres): Renamed from
9664 res_thread_freeres. No longer static. Remove thread shutdown
9665 hook registration.
9666 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
9667 * resolv/resolv_conf.c (freeres): Remove incorrect section
9668 attribute and use libc_freeres_fn.
9669 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
9670 strerror_thread_freeres. No longer static. Remove thread
9671 shutdown hook registration.
9672 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
9673 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
9674 shutdown hook registration.
9675 * Makerules (shlib.lds): Do not provide section boundary symbols
9676 for __libc_thread_subfreeres.
9677 * manual/memory.texi (Basic Allocation): Update comment.
9678
9679 2018-06-26 Florian Weimer <fweimer@redhat.com>
9680
9681 Remove always-defined _RPC_THREAD_SAFE_ macro.
9682 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
9683 Do not define _RPC_THREAD_SAFE_.
9684 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
9685 conditional.
9686 * sunrpc/clnt_perr.c: Likewise.
9687 * sunrpc/clnt_raw.c: Likewise.
9688 * sunrpc/clnt_simp.c: Likewise.
9689 * sunrpc/key_call.c: Likewise.
9690 * sunrpc/rpc_common.c: Likewise.
9691 * sunrpc/rpc_main.c: Likewise.
9692 * sunrpc/rpc_thread.c: Likewise.
9693 * sunrpc/svc.c: Likewise.
9694 * sunrpc/svc_raw.c: Likewise.
9695 * sunrpc/svc_simple.c: Likewise.
9696 * sumrpc/svcauth_des.c: Likewise.
9697
9698 2018-06-26 Florian Weimer <fweimer@redhat.com>
9699
9700 * libio/Makefile (tests-internal): Add tst-vtables,
9701 tst-vtables-interposed.
9702 * libio/tst-vtables.c: New file.
9703 * libio/tst-vtables-common.c: Likewise.
9704 * libio/tst-vtables-interposed.c: Likewise.
9705
9706 2018-06-26 Florian Weimer <fweimer@redhat.com>
9707
9708 * support/support_test_main.c (support_test_main): Only call
9709 setvbuf if not disables.
9710 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
9711 * support/test-driver.h (struct test_config): Add no_setvbuf member.
9712
9713 2018-06-26 Florian Weimer <fweimer@redhat.com>
9714
9715 [BZ #23313]
9716 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
9717
9718 2018-06-25 Florian Weimer <fweimer@redhat.com>
9719
9720 [BZ #18023]
9721 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
9722 Use struct scratch_buffer instead of extend_alloca.
9723
9724 2018-06-25 Florian Weimer <fweimer@redhat.com>
9725
9726 [BZ #18023]
9727 * nss/getent.c (initgroups_keys): Use dynarray instead of
9728 extend_alloca.
9729
9730 2018-06-25 Florian Weimer <fweimer@redhat.com>
9731
9732 [BZ #18023]
9733 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
9734 Use struct scratch_buffer instead of extend_alloca.
9735
9736 2018-06-25 Florian Weimer <fweimer@redhat.com>
9737
9738 [BZ #18023]
9739 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
9740 back to malloc directly, without stack allocations.
9741
9742 2018-06-25 Florian Weimer <fweimer@redhat.com>
9743
9744 [BZ #18023]
9745 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
9746 of extend_alloca.
9747
9748 2018-06-25 Florian Weimer <fweimer@redhat.com>
9749
9750 [BZ #18023]
9751 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
9752 of extend_alloca.
9753 * nscd/hstcache.c (addhstbyX): Likewise.
9754 * nscd/pwdcache.c (addpwbyX): Likewise.
9755 * nscd/servicescache.c (addservbyX): Likewise.
9756
9757 2018-06-25 Florian Weimer <fweimer@redhat.com>
9758
9759 [BZ #18023]
9760 * nscd/connections.c (read_cmdline): New function.
9761 (restart): Use it. Update comment.
9762
9763 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9764
9765 [BZ #23140]
9766 * localedata/locales/csb_PL (mon): Rename to...
9767 (alt_mon): This.
9768 (abmon): Rename to...
9769 (ab_alt_mon): This.
9770 (mon): Add with proper genitive forms, copy from Wikipedia.
9771 (abmon): Likewise.
9772
9773 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9774
9775 [BZ #19485]
9776 * localedata/locales/csb_PL (mon): Fix typos:
9777 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
9778 (yesstr): Add, value is "jo".
9779 (nostr): Add, value is "nié".
9780
9781 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9782
9783 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
9784 all log1p and significand functions on m680x0.
9785 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
9786 of s_significand.c..
9787 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
9788 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
9789 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
9790 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
9791 s_log1p.c and include it..
9792
9793 2018-06-21 Vincent Chen <vincentc@andestech.com>
9794
9795 * elf/elf.h (R_NDS32_NONE): New define.
9796 (R_NDS32_32_RELA): Likewise.
9797 (R_NDS32_COPY): Likewise.
9798 (R_NDS32_GLOB_DAT): Likewise.
9799 (R_NDS32_JUMP_SLOT): Likewise.
9800 (R_NDS32_RELATIVE): Likewise.
9801 (R_NDS32_TLS_TPOFF): Likewise.
9802 (R_NDS32_TLS_DESC): Likewise.
9803
9804 2018-06-21 Mark Wielaard <mark@klomp.org>
9805
9806 * elf/elf.h (R_BPF_MAP_FD): Removed.
9807 (R_BPF_64_64, R_BPF_64_32): New.
9808
9809 2018-06-21 Florian Weimer <fweimer@redhat.com>
9810
9811 [BZ #23253]
9812 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
9813 Renamed from libc_feholdsetround_ctx.
9814 (default_libc_feresetround_ctx): Renamed from
9815 libc_feresetround_ctx.
9816 (default_libc_feholdsetround_noex_ctx): Renamed from
9817 libc_feholdsetround_noex_ctx.
9818 (default_libc_feresetround_noex_ctx): Renamed from
9819 libc_feresetround_noex_ctx.
9820 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
9821 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
9822 forwardning to the old implementations under the new names.
9823 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
9824 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
9825 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
9826 (libc_feresetround_ctx): Forward to default implements for i386
9827 and MATH_SET_BOTH_ROUNDING_MODES.
9828 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
9829 Add -DMATH_SET_BOTH_ROUNDING_MODES.
9830
9831 2018-06-20 Joseph Myers <joseph@codesourcery.com>
9832
9833 * string/tst-cmp.c: Include <libc-diag.h>.
9834 (strncmp_max): Disable -Wstringop-overflow= around call to
9835 strncmp.
9836 (strncasecmp_max): Disable -Wstringop-overflow= around call to
9837 strncasecmp.
9838
9839 * string/bug-strpbrk1.c: Include <libc-diag.h>.
9840 (main): Disable -Wunused-value around call to strpbrk.
9841 * string/bug-strspn1.c: Include <libc-diag.h>.
9842 (main): Disable -Wunused-value around call to strspn.
9843
9844 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9845 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9846
9847 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
9848 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
9849
9850 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9851
9852 * math/Makefile (libm-calls): Move s_significandF to...
9853 (gen-libm-calls): ... here.
9854 * math/s_significand_template.c: New file.
9855 * math/s_significand.c: Removed.
9856 * math/s_significandf.c: Removed.
9857 * math/s_significandl.c: Removed.
9858 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
9859 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
9860
9861 * math/e_exp2_template.c (declare_mgen_finite_alias,
9862 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
9863 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
9864 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
9865
9866 2018-06-20 Florian Weimer <fweimer@redhat.com>
9867
9868 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
9869
9870 2018-06-19 Joseph Myers <joseph@codesourcery.com>
9871
9872 [BZ #23280]
9873 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
9874 floating-point number to strtod functions rather than possibly
9875 negating result of those functions.
9876 * stdio-common/tst-scanf-round.c: New file.
9877 * stdio-common/Makefile (tests): Add tst-scanf-round.
9878 ($(objpfx)tst-scanf-round): Depend on $(libm).
9879
9880 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
9881
9882 * sysdeps/mach/hurd/localplt.data: Move to...
9883 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
9884 R_386_GLOB_DAT like on Linux i386.
9885
9886 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9887
9888 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
9889 (SHM_STAT_ANY): New macro.
9890 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
9891 (SHM_STAT_ANY): Likewise.
9892 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
9893 (SHM_STAT_ANY): Likewise.
9894 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
9895 (SHM_STAT_ANY): Likewise.
9896 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
9897 (SHM_STAT_ANY): Likewise.
9898 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
9899 (SHM_STAT_ANY): Likewise.
9900 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
9901 (SHM_STAT_ANY): Likewise.
9902 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
9903 (SHM_STAT_ANY): Likewise.
9904 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
9905 (SHM_STAT_ANY): Likewise.
9906 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
9907 (SHM_STAT_ANY): Likewise.
9908 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
9909 (SHM_STAT_ANY): Likewise.
9910 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
9911 (SHM_STAT_ANY): Likewise.
9912
9913 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
9914 (SEM_STAT_ANY): New macro.
9915 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
9916 (SEM_STAT_ANY): Likewise.
9917 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
9918 (SEM_STAT_ANY): Likewise.
9919 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
9920 (SEM_STAT_ANY): Likewise.
9921 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
9922 (SEM_STAT_ANY): Likewise.
9923 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
9924 (SEM_STAT_ANY): Likewise.
9925 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
9926 (SEM_STAT_ANY): Likewise.
9927 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
9928 (SEM_STAT_ANY): Likewise.
9929 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
9930 (SEM_STAT_ANY): Likewise.
9931 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
9932 (SEM_STAT_ANY): Likewise.
9933
9934 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
9935 (MSG_STAT_ANY): New macro.
9936 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
9937 (MSG_STAT_ANY): Likewise.
9938 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
9939 (MSG_STAT_ANY): Likewise.
9940 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
9941 (MSG_STAT_ANY): Likewise.
9942 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
9943 (MSG_STAT_ANY): Likewise.
9944 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
9945 (MSG_STAT_ANY): Likewise.
9946 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
9947 (MSG_STAT_ANY): Likewise.
9948 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
9949 (MSG_STAT_ANY): Likewise.
9950 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
9951 (MSG_STAT_ANY): Likewise.
9952 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
9953 (MSG_STAT_ANY): Likewise.
9954
9955 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
9956 (MAP_TYPE): Change value to 0x2b.
9957
9958 2018-06-18 Florian Weimer <fweimer@redhat.com>
9959
9960 [BZ #15722]
9961 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
9962 socket with SOCK_CLOEXEC.
9963
9964 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9965
9966 [BZ #23303]
9967 * sysdeps/powerpc/powerpc64/le/Makefile
9968 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
9969 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
9970 (gnulib-tests): Also add $(f128-loader-link) for
9971 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
9972
9973 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
9974
9975 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
9976 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
9977 of sendfile.
9978 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
9979 (sendfile64): New strong alias.
9980 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
9981 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
9982 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
9983 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
9984 attribute.
9985 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
9986 ___pthread_get_cleanup_stack.
9987 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
9988 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
9989 * mach/shortcut.awk: Make syscall stubs include
9990 <mach-shortcuts-hidden.h> and add hidden definition.
9991 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
9992 (__mach_msg): Add hidden prototype.
9993 * mach/msg.c: Include <mach.h>.
9994 (__mach_msg): Add hidden definition.
9995 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
9996 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
9997 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
9998 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
9999 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
10000 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
10001 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
10002 prototype and definition.
10003 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
10004 hidden target for _hurd_self_sigstate.
10005
10006 2018-06-15 Joseph Myers <joseph@codesourcery.com>
10007
10008 [BZ #23007]
10009 * stdlib/tst-strtod-nan-sign-main.c: New file.
10010 * stdlib/tst-strtod-nan-sign.c: Likewise.
10011 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10012 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10013 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10014 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10015 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10016
10017 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
10018
10019 [BZ #23007]
10020 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10021 appropriate sign.
10022
10023 2018-06-14 Florian Weimer <fweimer@redhat.com>
10024
10025 [BZ #23290]
10026 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
10027 that the result stays within the ISO-8859-1 range.
10028 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
10029 characters are defined in IBM273.
10030
10031 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10032
10033 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10034 __mach_task_self): Remove attribute_hidden.
10035
10036 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10037
10038 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10039 ignore -Wrestrict for one test.
10040
10041 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10042 Szabolcs Nagy <szabolcs.nagy@arm.com>
10043
10044 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10045
10046 2018-06-14 Florian Weimer <fweimer@redhat.com>
10047
10048 * scripts/update-abilist.sh: Accept empty list of files to patch.
10049
10050 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10051
10052 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10053 test-xfail-check-abi-libmachuser): Add.
10054 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10055 __libc_read and __libc_write to __read and __write.
10056 * sysdeps/hurd/include/hurd/port.h: New file.
10057 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10058 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10059 __thread_switch, __evc_wait): Move declarations to...
10060 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10061 attribute_hidden.
10062 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10063 use PLT to call _hurd_self_sigstate.
10064
10065 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10066
10067 [BZ #23279]
10068 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10069 MAX_EXP as overflowing.
10070 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10071 overflow flag.
10072 (round_str): Output also whether result overflows in each rounding
10073 mode.
10074 * stdlib/tst-strtod-round-data: Add more tests.
10075 * stdlib/tst-strtod-round-data.h: Regenerated.
10076 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10077 (TEST): Handle extra arguments for overflow flags.
10078 (struct test_overflow): New type.
10079 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10080 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10081 (test_in_one_mode): Take argument with overflow information.
10082 (do_test): Update calls to test_in_one_mode.
10083
10084 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10085
10086 * elf/dl-load (_dl_dst_substitute): Correct comment.
10087 (_dl_dst_count): Likewise.
10088
10089 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10090 lll_futex_timed_wait.
10091
10092 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10093
10094 [BZ #23277]
10095 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10096 attribute.
10097 * math/test-nan-const.c: New file.
10098 * math/Makefile (tests): Add test-nan-const.
10099 (CFLAGS-test-nan-const.c): New variable.
10100
10101 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10102
10103 * benchtests/scripts/compare_strings.py (process_results): Add
10104 funcs argument. Compare only functions which are selected.
10105 (main): Check if base function is among selected functions.
10106 Pass selected functions to process_results.
10107 (__main__): Add -f/--functions argument.
10108
10109 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10110 Hongbo Zhang <hongbo.zhang@linaro.org>
10111
10112 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10113 __memcpy_falkor for phecda core.
10114 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10115 __memmove_falkor for phecda core.
10116 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10117 __memset_falkor for phecda core.
10118 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10119 for phecda core.
10120 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10121 macro to identify phecda core.
10122
10123 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10124 Andreas Schwab <schwab@suse.de>
10125 Dmitry V. Levin <ldv@altlinux.org>
10126 Florian Weimer <fweimer@redhat.com>
10127
10128 [BZ #23102]
10129 [BZ #21942]
10130 [BZ #18018]
10131 [BZ #23259]
10132 CVE-2011-0536
10133 * elf/dl-dst.h: Remove DL_DST_COUNT.
10134 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10135 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10136 (is_dst): Comment. Support ELF gABI.
10137 (_dl_dst_count): Comment. Simplify and count DSTs.
10138 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10139 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10140 locals.
10141
10142 2018-06-12 Zack Weinberg <zackw@panix.com>
10143
10144 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10145 * sysdeps/unix/sysv/linux/dl-sysdep.c
10146 Include not-cancel.h. Use __close_nocancel instead of __close,
10147 __open64_nocancel instead of __open, __read_nocancel instead of
10148 __libc_read, and __write_nocancel instead of __libc_write.
10149
10150 * csu/check_fds.c (check_one_fd)
10151 * sysdeps/posix/fdopendir.c (__fdopendir)
10152 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10153 instead of __fcntl and/or __libc_fcntl.
10154
10155 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10156 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10157 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10158 Use __open64_nocancel instead of __open_nocancel.
10159
10160 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10161 hidden_proto declarations to the end and issue them if either
10162 IS_IN(libc) or IS_IN(rtld).
10163 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10164 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10165 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10166 read_nocancel, waitpid_nocancel, write_nocancel.
10167
10168 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10169 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10170 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10171
10172 * nptl/pt-fcntl.c: New file.
10173 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10174 (libpthread-routines): Add pt-fcntl.
10175 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10176 (__libc_fcntl): Remove attribute_hidden.
10177 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10178 __fcntl_nocancel_adjusted, not fcntl_common.
10179 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10180 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10181 to fcntl_nocancel.c.
10182 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10183 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10184 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10185 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10186
10187 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10188 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10189 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10190 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10191 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10192 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10193 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10194 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10195 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10196 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10197 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10198 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10199 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10200 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10201 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10202 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10203 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10204 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10205 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10206 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10207
10208 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10209 libpthread-routines.
10210 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10211 defines nothing.
10212
10213 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10214 __libc_read, and __write instead of __libc_write. Define
10215 __open64 in addition to __open.
10216
10217 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10218
10219 [BZ #23250]
10220 [BZ #10686]
10221 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10222 to _private_tm[3] and add __glibc_reserved2.
10223 Add _Static_assert of offset of __private_ss == 0x30.
10224 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10225 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10226
10227 2018-06-12 Florian Weimer <fweimer@redhat.com>
10228
10229 x86: Make strncmp usable from rtld.
10230 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10231 __strncmp_ia32 if in libc (and not in rtld).
10232 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10233 strncmp if not in libc (and not to __strncmp_sse2).
10234
10235 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10236
10237 [BZ #23140]
10238 * localedata/locales/gd_GB (mon): Rename to...
10239 (alt_mon): This.
10240 (mon): Import from CLDR (genitive case).
10241 * localedata/locales/hsb_DE (mon): Rename to...
10242 (alt_mon): This.
10243 (mon): Import from CLDR (genitive case).
10244 * localedata/locales/wa_BE (mon): Rename to...
10245 (alt_mon): This.
10246 (mon): Add, fill with the proper genitive forms, but CLDR data
10247 is incomplete; completed according to the comments in this file.
10248 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10249
10250 * localedata/locales/wa_BE (country_name): Reword
10251 "Beljike" -> "Beldjike".
10252
10253 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10254
10255 [BZ #23272]
10256 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10257 cases of non-finite arguments.
10258 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10259
10260 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10261
10262 [BZ #23174]
10263 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10264
10265 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10266
10267 [BZ #23264]
10268 * include/unistd.h (__execvpex): New prototype.
10269 * posix/Makefile (tests): Add tst-spawn4.
10270 (tests-internal): Add tst-spawn4-compat.
10271 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10272 * posix/tst-spawn4-compat.c: New file.
10273 * posix/tst-spawn4.c: Likewise.
10274 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10275 binaries as shell scripts.
10276 * sysdeps/posix/spawni.c (__spawni): Likewise.
10277
10278 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10279
10280 [BZ #23145]
10281 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10282 ($(all-built-dso:=.dynsym): New target.
10283 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10284 ($(objpfx)check-initfini.out): New target.
10285 (generated): Add check-initfini.out.
10286 * scripts/check-initfini.awk: New file.
10287 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10288 (_fini): Likewise.
10289 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10290 (_fini): Likewise.
10291 * sysdeps/arm/crti.S (_init): Mark as hidden.
10292 (_fini): Likewise.
10293 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10294 (_fini): Likewise.
10295 * sysdeps/i386/crti.S (_init): Mark as hidden.
10296 (_fini): Likewise.
10297 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10298 (_fini): Likewise.
10299 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10300 (_fini): Likewise.
10301 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10302 (_fini): Likewise.
10303 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10304 (_fini): Likewise.
10305 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10306 (_fini): Likewise.
10307 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10308 (_fini): Likewise.
10309 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10310 (_fini): Likewise.
10311 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10312 (_fini): Likewise.
10313 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10314 (_fini): Likewise.
10315 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10316 (_fini): Likewise.
10317 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10318 (_fini): Likewise.
10319 * sysdeps/sh/crti.S (_init): Mark as hidden.
10320 (_fini): Likewise.
10321 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10322 (_fini): Likewise.
10323 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10324 (_fini): Likewise.
10325
10326 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10327
10328 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10329 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10330 and TF redirection to KFtype and KF only when the default
10331 long double type is not the IEEE 128-bit floating point type.
10332
10333 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10334
10335 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10336 macro.
10337 (HWCAP_USCAT): Likewise.
10338 (HWCAP_ILRCPC): Likewise.
10339 (HWCAP_FLAGM): Likewise.
10340 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10341 Increase to 28.
10342 (_dl_aarch64_cap_flags): Add new flag names.
10343
10344 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10345 (MAP_FIXED_NOREPLACE): New macro.
10346 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10347 (MAP_FIXED_NOREPLACE): Likewise.
10348 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10349 (MAP_FIXED_NOREPLACE): Likewise.
10350 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10351 (MAP_FIXED_NOREPLACE): Likewise.
10352 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10353 (MAP_FIXED_NOREPLACE): Likewise.
10354 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
10355 (MAP_FIXED_NOREPLACE): Likewise.
10356 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
10357 (MAP_FIXED_NOREPLACE): Likewise.
10358 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
10359 (MAP_FIXED_NOREPLACE): Likewise.
10360 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
10361 (MAP_FIXED_NOREPLACE): Likewise.
10362 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10363 (MAP_FIXED_NOREPLACE): Likewise.
10364 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10365 (MAP_FIXED_NOREPLACE): Likewise.
10366 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10367 (MAP_FIXED_NOREPLACE): Likewise.
10368 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10369 (MAP_FIXED_NOREPLACE): Likewise.
10370 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10371 (MAP_FIXED_NOREPLACE): Likewise.
10372 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10373 (MAP_FIXED_NOREPLACE): Likewise.
10374
10375 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10376 version to 4.17.
10377
10378 2018-06-04 Joseph Myers <joseph@codesourcery.com>
10379
10380 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10381 version to 4.17
10382
10383 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10384
10385 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
10386 int.
10387 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
10388
10389 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10390
10391 * benchtests/scripts/compare_string.py: (process_results) Catch
10392 exception in non-existent base_func and catch exception in
10393 non-existent attribute.
10394 (parse_file) Catch exception if input file does not exist.
10395
10396 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10397
10398 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
10399 options to avoid diff calculation and omit header, respectively.
10400 (main): process --no-diff and --no-header
10401
10402 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10403 H.J. Lu <hongjiu.lu@intel.com>
10404
10405 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10406 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
10407 wcsncmp-sse2.
10408 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10409 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
10410 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
10411 and __wcsncmp_sse2.
10412 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
10413 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
10414 AVX unaligned load is fast and vzeroupper is preferred.
10415 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
10416 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
10417 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
10418 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
10419 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
10420 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
10421 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
10422 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
10423 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
10424 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
10425 is undefined.
10426
10427 2018-06-01 Florian Weimer <fweimer@redhat.com>
10428
10429 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
10430 configuring with --disable-multi-arch, building with
10431 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
10432 Haswell-era CPU.
10433
10434 2018-06-01 Florian Weimer <fweimer@redhat.com>
10435
10436 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
10437 results from building with “-march=x86-64 -mtune=generic
10438 -mfpmath=sse” and running on a Haswell-era CPU.
10439
10440 2018-06-01 Joseph Myers <joseph@codesourcery.com>
10441
10442 [BZ #18473]
10443 * soft-fp/sqrttf2.c: Remove file.
10444 * soft-fp/sqrtdf2.c: Move to ....
10445 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
10446 <shlib-compat.h>.
10447 (__sqrtdf2): Make conditional on
10448 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10449 symbol.
10450 * soft-fp/sqrtsf2.c: Move to ....
10451 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
10452 <shlib-compat.h>.
10453 (__sqrtsf2): Make conditional on
10454 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10455 symbol.
10456 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
10457 (gcc-double-routines): Remove sqrtdf2.
10458 (gcc-quad-routines): Remove sqrttf2.
10459 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10460 Do not filter out sqrtsf2 and sqrtdf2.
10461 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10462 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
10463
10464 2018-06-01 Florian Weimer <fweimer@redhat.com>
10465
10466 * sysdeps/generic/libcidn.abilist: Remove file.
10467
10468 2018-06-01 Florian Weimer <fweimer@redhat.com>
10469
10470 [BZ #23236]
10471 * libio/strfile.h (struct _IO_str_fields): Rename members to
10472 discourage their use and add comment.
10473 (_IO_STR_DYNAMIC): Remove unused macro.
10474 * libio/strops.c (_IO_str_init_static_internal): Do not use
10475 callback pointers. Call malloc and free.
10476 (_IO_str_overflow): Do not use callback pointers. Call malloc
10477 and free.
10478 (enlarge_userbuf): Likewise.
10479 (_IO_str_finish): Call free.
10480 * libio/wstrops.c (_IO_wstr_init_static): Initialize
10481 _allocate_buffer_unused.
10482 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
10483 and free.
10484 (enlarge_userbuf): Likewise.
10485 (_IO_wstr_finish): Call free.
10486 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
10487 _allocate_buffer_unused, _free_buffer_unused.
10488 * libio/memstream.c (__open_memstream): Likewise.
10489 * libio/vasprintf.c (_IO_vasprintf): Likewise.
10490 * libio/wmemstream.c (open_wmemstream): Likewise.
10491
10492 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
10493
10494 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
10495 AMD Ryzen 7 1800X.
10496
10497 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10498
10499 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
10500 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
10501 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
10502 New file.
10503 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
10504 Likewise.
10505 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
10506
10507 2018-05-29 Florian Weimer <fweimer@redhat.com>
10508
10509 * support/Makefile (libsupport-routines): Add
10510 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
10511 xpthread_barrierattr_setpshared.
10512 * support/xpthread_barrierattr_destroy.c: New file.
10513 * support/xpthread_barrierattr_init.c: Likewise.
10514 * support/xpthread_barrierattr_setpshared.c: Likewise.
10515
10516 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
10517
10518 [BZ #23206]
10519 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
10520 _r_debug and update DT_DEBUG for debugger.
10521
10522 2018-05-29 Florian Weimer <fweimer@redhat.com>
10523
10524 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
10525 (tst-strtod5i.out): Likewise.
10526
10527 2018-05-25 Joseph Myers <joseph@codesourcery.com>
10528
10529 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
10530 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
10531 (sparc64-quad-routines): New variable. Moved from ....
10532 [$(subdir) = soft-fp] (sysdep_routines): Add
10533 $(sparc64-quad-routines). Moved from ....
10534 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
10535 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
10536 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
10537 moved from ....
10538 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
10539 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
10540 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
10541 * sysdeps/sparc/sparc64/qp_add.c: ... here.
10542 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
10543 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
10544 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
10545 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
10546 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
10547 * sysdeps/sparc/sparc64/qp_div.c: ... here.
10548 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
10549 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
10550 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
10551 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
10552 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
10553 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
10554 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
10555 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
10556 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
10557 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
10558 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
10559 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
10560 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
10561 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
10562 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
10563 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
10564 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
10565 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
10566 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
10567 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
10568 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
10569 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
10570 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
10571 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
10572 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
10573 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
10574 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
10575 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
10576 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
10577 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
10578 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
10579 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
10580 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
10581 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
10582 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
10583 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
10584 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
10585 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
10586 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
10587 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
10588 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
10589 * sysdeps/sparc/sparc64/qp_util.c: ... here.
10590 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
10591 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
10592 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
10593 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
10594 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
10595 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
10596
10597 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
10598 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
10599 (sparc32-quad-routines): New variable. Moved from ....
10600 [$(subdir) = soft-fp] (sysdep_routines): Add
10601 $(sparc32-quad-routines). Moved from ....
10602 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
10603 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
10604 moved from ....
10605 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
10606 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
10607 * sysdeps/sparc/sparc32/q_add.c: ... here.
10608 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
10609 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
10610 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
10611 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
10612 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
10613 * sysdeps/sparc/sparc32/q_div.c: ... here.
10614 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
10615 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
10616 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
10617 * sysdeps/sparc/sparc32/q_feq.c: ... here.
10618 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
10619 * sysdeps/sparc/sparc32/q_fge.c: ... here.
10620 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
10621 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
10622 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
10623 * sysdeps/sparc/sparc32/q_fle.c: ... here.
10624 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
10625 * sysdeps/sparc/sparc32/q_flt.c: ... here.
10626 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
10627 * sysdeps/sparc/sparc32/q_fne.c: ... here.
10628 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
10629 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
10630 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
10631 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
10632 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
10633 * sysdeps/sparc/sparc32/q_mul.c: ... here.
10634 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
10635 * sysdeps/sparc/sparc32/q_neg.c: ... here.
10636 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
10637 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
10638 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
10639 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
10640 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
10641 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
10642 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
10643 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
10644 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
10645 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
10646 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
10647 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
10648 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
10649 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
10650 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
10651 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
10652 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
10653 * sysdeps/sparc/sparc32/q_sub.c: ... here.
10654 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
10655 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
10656 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
10657 * sysdeps/sparc/sparc32/q_util.c: ... here.
10658 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
10659 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
10660 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
10661 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
10662
10663 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10664 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10665
10666 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
10667 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
10668 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
10669 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
10670
10671 2018-05-24 Joseph Myers <joseph@codesourcery.com>
10672
10673 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
10674 powerpc/soft-fp.
10675 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
10676 Likewise.
10677 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
10678 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
10679
10680 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10681
10682 [BZ #23171]
10683 * math/math.h [C++] (iseqsig): Fix parameter type for the long
10684 double version.
10685
10686 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10687
10688 * sysdeps/sh/Implies: Remove sh/soft-fp.
10689 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
10690 * sysdeps/sh/sfp-machine.h: ... here.
10691
10692 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10693
10694 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10695 (__mempcpy_erms): Skip zero length.
10696 (__memmove_erms): Likewise.
10697 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
10698 (__memset_erms): Likewise.
10699
10700 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10701
10702 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
10703 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10704 Add functions moved from ....
10705 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
10706 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
10707 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
10708 from ....
10709 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
10710 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
10711 * sysdeps/alpha/e_sqrtl.c: ... here.
10712 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
10713 * sysdeps/alpha/local-soft-fp.h: ... here.
10714 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
10715 * sysdeps/alpha/ots_add.c: ... here.
10716 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
10717 * sysdeps/alpha/ots_cmp.c: ... here.
10718 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
10719 * sysdeps/alpha/ots_cmpe.c: ... here.
10720 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
10721 * sysdeps/alpha/ots_cvtqux.c: ... here.
10722 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
10723 * sysdeps/alpha/ots_cvtqx.c: ... here.
10724 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
10725 * sysdeps/alpha/ots_cvttx.c: ... here.
10726 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
10727 * sysdeps/alpha/ots_cvtxq.c: ... here.
10728 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
10729 * sysdeps/alpha/ots_cvtxt.c: ... here.
10730 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
10731 * sysdeps/alpha/ots_div.c: ... here.
10732 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
10733 * sysdeps/alpha/ots_mul.c: ... here.
10734 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
10735 * sysdeps/alpha/ots_nintxq.c: ... here.
10736 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
10737 * sysdeps/alpha/ots_sub.c: ... here.
10738 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
10739 * sysdeps/alpha/sfp-machine.h: ... here.
10740
10741 2018-05-23 Florian Weimer <fweimer@redhat.com>
10742
10743 [BZ #19728]
10744 [BZ #19729]
10745 [BZ #22247]
10746 CVE-2016-6261
10747 CVE-2016-6263
10748 CVE-2017-14062
10749 Switch to extern IDNA implementation (libidn2).
10750 * libidn: Remove subdirectory.
10751 * LICENSES: Do not mention licensing conditions for the removed
10752 libidn code.
10753 * config.h.in (HAVE_LIBIDN): Remove.
10754 * include/dlfcn.h (__libc_dlopen): Update comment.
10755 * include/idna.h: Remove file.
10756 * inet/Makefile (routines): Add idna.
10757 (tests-static, tests-internal): Add tst-idna_name_classify.
10758 (LOCALES): Generate locales for tests.
10759 (tst-idna_name_classify.out): Depend on generated locales.
10760 * inet/idna_name_classify.c: New file.
10761 * inet/tst-idna_name_classify.c: Likewise.
10762 * inet/net-internal.h (__idna_to_dns_encoding)
10763 (__idna_from_dns_encoding): Declare.
10764 * inet/net-internal.h (enum idna_name_classification): Define.
10765 (__idna_name_classify): Declare.
10766 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
10767 __idna_from_dns_encoding.
10768 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
10769 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
10770 name as a fallback in case of encoding errors.
10771 (getnameinfo): Use DEPRECATED_NI_IDN.
10772 * inet/idna.c: New file.
10773 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
10774 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
10775 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
10776 (modules-names): Add tst-no-libidn2.
10777 (extra-test-objs): Add tst-no-libidn2.os.
10778 (LDFLAGS-tst-no-libidn2.so): Set soname.
10779 (LOCALES): Set, and generate locales.
10780 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
10781 (tst-resolv-ai_idn-latin1): Likewise.
10782 (tst-resolv-ai_idn-nolibidn2): Likewise.
10783 (tst-resolv-ai_idn.out): Depend on locales.
10784 (tst-resolv-ai_idn-latin1.out): Depend on locales.
10785 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
10786 tst-no-libidn2.so.
10787 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
10788 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
10789 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
10790 * resolv/tst-resolv-ai_idn.c: New file.
10791 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
10792 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
10793 * resolv/tst-no-libidn2.c: Likewise.
10794 * support/support_format_addrinfo.c (format_ai_flags): Do not
10795 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
10796 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
10797 (gaih_inet): Call __idna_to_dns_encoding and
10798 __idna_from_dns_encoding, and use the original (punycode) name if
10799 __idna_from_dns_encoding fails due to an encoding error.
10800 (getaddrinfo): Use DEPRECATED_AI_IDN.
10801 * sysdeps/unix/inet/Subdirs (libidn): Remove.
10802 * sysdeps/unix/inet/configure: Remove file.
10803 * sysdeps/unix/inet/configure.ac: Likewise.
10804
10805 2018-05-23 Florian Weimer <fweimer@redhat.com>
10806
10807 Implement allocate_once.
10808 * include/allocate_once.h: New file.
10809 * misc/allocate_once.c: Likewise.
10810 * misc/tst-allocate_once.c: Likewise.
10811 * misc/Makefile (routines): Add allocate_once.
10812 (tests-internal): Add tst-allocate_once.
10813 (generated): Add tst-allocate_once.mtrace,
10814 tst-allocate_once-mem.out.
10815 (tests-special): Add tst-allocate_once-mem.out.
10816 (tst-allocate_once-ENV): Set MALLOC_TRACE.
10817 (tst-allocate_once-mem.out): Call mtrace.
10818 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
10819
10820 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10821
10822 [BZ #23196]
10823 * string/test-memcpy.c (do_test1): New function.
10824 (test_main): Call it.
10825
10826 2018-05-23 Andreas Schwab <schwab@suse.de>
10827
10828 [BZ #23196]
10829 CVE-2018-11237
10830 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
10831 (L(preloop_large)): Save initial destination pointer in %r11 and
10832 use it instead of %rax after the loop.
10833 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
10834
10835 2018-05-22 Joseph Myers <joseph@codesourcery.com>
10836
10837 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
10838 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
10839 -I../soft-fp. Moved from ....
10840 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
10841 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
10842 * sysdeps/aarch64/e_sqrtl.c: ... here.
10843 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
10844 * sysdeps/aarch64/sfp-machine.h: ... here.
10845
10846 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
10847 -Wmaybe-uninitialized around access to fq[0].
10848 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
10849 Likewise.
10850
10851 [BZ #18471]
10852 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
10853 aliases for non-libc case of versioned symbols.
10854 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
10855 (llseek): Define as compat symbol if
10856 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
10857 with link warning.
10858 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
10859 Make into a compat symbol, disabled for minimum symbol version
10860 GLIBC_2.28 and later.
10861 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
10862
10863 2018-05-22 Florian Weimer <fweimer@redhat.com>
10864
10865 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
10866 not add -mpreferred-stack-boundary=4.
10867 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
10868 (stack-align-test-flags): Likewise.
10869 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
10870 Likewise.
10871 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
10872 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
10873 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
10874 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
10875 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
10876 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
10877 (CFLAGS-tst-align2.c): Likewise.
10878
10879 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10880
10881 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
10882 (index_arch_Prefer_FSRM): Likewise.
10883 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
10884 Also check Prefer_FSRM.
10885 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
10886 Also return OPTIMIZE (erms) for Prefer_FSRM.
10887
10888 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10889
10890 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
10891 (index_cpu_FSRM): Likewise.
10892 (reg_FSRM): Likewise.
10893
10894 2018-05-18 Joseph Myers <joseph@codesourcery.com>
10895
10896 * math/gen-tgmath-tests.py: Import sys.
10897 (Tests.__init__): Initialize macros_seen.
10898 (Tests.add_tests): Add macro to macros_seen. Only generate tests
10899 if requested to do so for this macro.
10900 (Tests.add_all_tests): Take argument for macro for which to
10901 generate tests.
10902 (Tests.check_macro_list): New function.
10903 (main): Handle check-list argument and argument specifying macro
10904 for which to generate tests.
10905 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
10906 [PYTHON] (tgmath3-macro-tests): Likewise.
10907 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
10908 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
10909 not test-tgmath3.c.
10910 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
10911 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
10912 to CFLAGS.
10913 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
10914 [PYTHON] ($(foreach
10915 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
10916 rule.
10917 [PYTHON] (tests-special): Add
10918 $(objpfx)test-tgmath3-macro-list.out.
10919 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
10920
10921 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
10922 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
10923 later.
10924
10925 [BZ #22639]
10926 * time/tzset.c (SECSPERDAY): Cast to time_t.
10927 * time/tst-y2039.c: New file.
10928 * time/Makefile (tests): Add tst-y2039.
10929
10930 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10931
10932 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10933 (PREFETCH_ONE_SET): Remove duplicate line.
10934
10935 2018-05-17 Florian Weimer <fweimer@redhat.com>
10936
10937 * sysdeps/generic/math-type-macros-double.h: Include
10938 <math-nan-payload-double.h> after <libm-alias-double.h>.
10939 * sysdeps/generic/math-type-macros-float.h: Include
10940 <math-nan-payload-float.h> after <libm-alias-float.h>.
10941 * sysdeps/generic/math-type-macros-float128.h: Include
10942 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
10943 * sysdeps/generic/math-type-macros-ldouble.h: Include
10944 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
10945
10946 2018-05-17 Andreas Schwab <schwab@suse.de>
10947
10948 * resolv/res_send.c (__res_context_send): Don't set errno when
10949 returing error after malloc failure.
10950
10951 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
10952
10953 * nptl/allocatestack.c (allocate_stack): Remove the
10954 !__ASSUME_PRIVATE_FUTEX paths.
10955 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
10956 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
10957 Likewise.
10958 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
10959 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10960 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10961 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10962 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
10963 !__ASSUME_PRIVATE_FUTEX path.
10964 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
10965 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
10966 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
10967 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
10968 !__ASSUME_PRIVATE_FUTEX macros.
10969 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
10970 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
10971 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
10972 * sysdeps/unix/sysv/linux/kernel-features.h
10973 (__ASSUME_PRIVATE_FUTEX): Removed.
10974
10975 2018-05-17 Joseph Myers <joseph@codesourcery.com>
10976
10977 * math/Makefile (libm-narrow-fns): Add div.
10978 (libm-test-funcs-narrow): Likewise.
10979 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
10980 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
10981 * math/gen-auto-libm-tests.c (test_functions): Add div.
10982 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
10983 (NARROW_DIV_ROUND_TO_ODD): Likewise.
10984 (NARROW_DIV_TRIVIAL): Likewise.
10985 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
10986 macro.
10987 (__ddivl): Likewise.
10988 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
10989 ddiv.
10990 (CFLAGS-nldbl-ddiv.c): New variable.
10991 (CFLAGS-nldbl-fdiv.c): Likewise.
10992 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
10993 __nldbl_ddivl.
10994 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
10995 prototype.
10996 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
10997 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
10998 * math/auto-libm-test-in: Add tests of div.
10999 * math/auto-libm-test-out-narrow-div: New generated file.
11000 * math/libm-test-narrow-div.inc: New file.
11001 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
11002 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
11003 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
11004 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
11005 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
11006 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
11007 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
11008 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11009 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11010 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11011 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11012 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11013 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11014 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11015 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11016 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11017 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11018 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11019 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11020 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11021 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11022 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11023 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11024 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11025 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11026 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11027 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11028 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11029 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11030 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11031 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11032 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11033 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11034 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11035 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11036 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11037 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11038 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11039 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11040 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11041 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11042 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11043 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11044 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11045
11046 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11047
11048 [BZ #23178]
11049 * nscd/nscd-client.h (sendfileall): Remove prototype.
11050 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11051 (handle_request): Use writeall instead of sendfileall.
11052 * nscd/aicache.c (addhstaiX): Likewise.
11053 * nscd/grpcache.c (cache_addgr): Likewise.
11054 * nscd/hstcache.c (cache_addhst): Likewise.
11055 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11056 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11057 * nscd/pwdcache.c (cache_addpw): Likewise.
11058 * nscd/servicescache.c (cache_addserv): Likewise.
11059 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11060 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11061 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11062 Remove define.
11063
11064 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11065
11066 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11067 Include <string/strncat.c>.
11068 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11069 alias.
11070 (__GI___strncat): New hidden alias.
11071
11072 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11073
11074 * sysdeps/mips/mips32/libm-test-ulps: Update.
11075 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11076
11077 2018-05-16 Florian Weimer <fweimer@redhat.com>
11078
11079 * support/Makefile (libsupport-routines): Add support_quote_blob,
11080 support_test_compare_blob.
11081 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11082 * support/check.h (TEST_COMPARE_BLOB): Define.
11083 (support_test_compare_blob): Declare.
11084 * support/support.h (support_quote_blob): Declare.
11085 * support/support_quote_blob.c: New file.
11086 * support/support_test_compare_blob.c: Likewise.
11087 * support/tst-support_quote_blob.c: Likewise.
11088 * support/tst-test_compare_blob.c: Likewise.
11089
11090 2018-05-16 Florian Weimer <fweimer@redhat.com>
11091
11092 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11093 of <strtod_nan_double.h>.
11094 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11095 instead of SET_MANTISSA.
11096 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11097 of include <strtod_nan_float.h>.
11098 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11099 instead of <strtod_nan_ldouble.h>.
11100 * stdlib/strtod_nan_double.h: Move to ...
11101 * sysdeps/generic/math-nan-payload-double.h: ... here.
11102 (FLOAT): Remove definition.
11103 (SET_MANTISSA): Rename to ...
11104 (SET_NAN_PAYLOAD): ... this.
11105 * stdlib/strtod_nan_float.h: Move to ...
11106 * sysdeps/generic/math-nan-payload-float.h: ... here.
11107 (FLOAT): Remove definition.
11108 (SET_MANTISSA): Rename to ...
11109 (SET_NAN_PAYLOAD): ... this.
11110 * sysdeps/generic/math-type-macros-double.h: Include
11111 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11112 instead of <math-svid-compat.h>.
11113 * sysdeps/generic/math-type-macros-float.h: Include
11114 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11115 instead of <math-svid-compat.h>.
11116 * sysdeps/generic/math-type-macros-float128.h: Include
11117 <math-nan-payload-float128.h>.
11118 * sysdeps/generic/math-type-macros-ldouble.h: Include
11119 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11120 instead of <math-svid-compat.h>.
11121 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11122 check for definition.
11123 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11124 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11125 Include <ieee754_float128.h>.
11126 (FLOAT): Remove definition.
11127 (SET_MANTISSA): Rename to ...
11128 (SET_NAN_PAYLOAD): ... this.
11129 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11130 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11131 Do not include <float128_private.h>.
11132 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11133 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11134 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11135 (FLOAT): Remove definition.
11136 (SET_MANTISSA): Rename to ...
11137 (SET_NAN_PAYLOAD): ... this.
11138 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11139 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11140 (FLOAT): Remove definition.
11141 (SET_MANTISSA): Rename to ...
11142 (SET_NAN_PAYLOAD): ... this.
11143 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11144 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11145 (FLOAT): Remove definition.
11146 (SET_MANTISSA): Rename to ...
11147 (SET_NAN_PAYLOAD): ... this.
11148 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11149 of "../stdlib/strtod_nan_double.h".
11150 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11151 of "../stdlib/strtod_nan_float.h".
11152 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11153 instead of "../stdlib/strtod_nan_ldouble.h".
11154 * manual/arith.texi (Parsing of Floats): Adjust comment.
11155
11156 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11157
11158 * math/Makefile (libm-narrow-fns): Add mul.
11159 (libm-test-funcs-narrow): Likewise.
11160 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11161 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11162 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11163 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11164 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11165 (NARROW_MUL_TRIVIAL): Likewise.
11166 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11167 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11168 macro.
11169 (__dmull): Likewise.
11170 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11171 dmul.
11172 (CFLAGS-nldbl-dmul.c): New variable.
11173 (CFLAGS-nldbl-fmul.c): Likewise.
11174 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11175 __nldbl_dmull.
11176 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11177 prototype.
11178 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11179 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11180 * math/auto-libm-test-in: Add tests of mul.
11181 * math/auto-libm-test-out-narrow-mul: New generated file.
11182 * math/libm-test-narrow-mul.inc: New file.
11183 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11184 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11185 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11186 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11187 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11188 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11189 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11190 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11191 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11192 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11193 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11194 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11195 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11196 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11197 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11198 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11199 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11200 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11201 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11202 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11203 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11204 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11205 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11206 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11207 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11208 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11209 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11210 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11211 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11212 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11213 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11214 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11215 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11216 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11217 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11218 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11219 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11220 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11221 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11222 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11223 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11224 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11225 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11226 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11227
11228 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11229
11230 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11231 with *%eax in call.
11232
11233 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11234
11235 * sysdeps/i386/ldsodefs.h: Removed.
11236 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11237 * sysdeps/x86/ldsodefs.h: This.
11238 (La_i86_regs): New.
11239 (La_i86_retval): Likewise.
11240 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11241 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11242
11243 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11244
11245 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11246 unnecessary testl.
11247
11248 2018-05-13 Alan Modra <amodra@gmail.com>
11249
11250 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11251 R_PARISC_TLS_DTPOFF32 reloc addend.
11252
11253 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11254
11255 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11256 * math/math.h: Restrict the prototype definition for the functions
11257 issignaling(_Float128) and iszero(_Float128); and template
11258 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11259 __HAVE_FLOAT128_UNLIKE_LDBL.
11260 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11261 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11262 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11263 __f128() constants; define the type _Float128 as long double;
11264 and reuse long double in __CFLOAT128.
11265
11266 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11267
11268 * sysdeps/generic/math_private.h: Do not include
11269 <math-barriers.h>.
11270 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11271 <math_private.h>.
11272 * math/fromfp.h: Include <math-barriers.h>.
11273 * math/math-narrow.h: Likewise.
11274 * math/s_nextafter.c: Likewise.
11275 * math/s_nexttowardf.c: Likewise.
11276 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11277 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11278 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11279 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11280 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11281 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11282 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11283 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11284 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11285 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11286 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11287 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11288 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11289 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11290 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11291 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11292 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11293 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11294 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11295 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11296 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11297 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11298 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11299 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11300 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11301 * sysdeps/ieee754/k_standardl.c: Likewise.
11302 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11303 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11304 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11305 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11306 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11307 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11308 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11309 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11310 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11311 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11312 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11313 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11314 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11315 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11316 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11317 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11318 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11319 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11320 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11321 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11322 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11323 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11324
11325 2018-05-11 Florian Weimer <fweimer@redhat.com>
11326
11327 Use 64-bit epoch values in the time zone file parser.
11328 * include/time.h (internal_time_t): Define.
11329 (__tzfile_compute): Use it.
11330 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11331 member.
11332 (transitions): Switch to internal_time_t.
11333 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11334 types.
11335 (__tzfile_compute): Use internal_time_t for timer argument. Check
11336 for truncation before calling __offtime.
11337
11338 2018-05-11 Florian Weimer <fweimer@redhat.com>
11339
11340 [BZ #23166]
11341 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11342 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11343 Likewise.
11344 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11345 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11346 export without --enable-obsolete-rpc.
11347 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11348 symbol. This should not have been exported, ever.
11349
11350 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11351
11352 [BZ #23152]
11353 * localedata/locales/gd_GB (abmon): Fix typo in May:
11354 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
11355
11356 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11357
11358 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11359 Use multiple registers to copy data in loop tail.
11360
11361 * sysdeps/aarch64/multiarch/memmove_falkor.S
11362 (__memmove_falkor): Use multiple registers to move data in
11363 loop tail.
11364
11365 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11366
11367 * math/math-underflow.h: New file.
11368 * sysdeps/generic/math_private.h: Do not include <float.h>.
11369 (fabs_tg): Remove macro. Moved to math-underflow.h.
11370 (min_of_type_f): Likewise.
11371 (min_of_type_): Likewise.
11372 (min_of_type_l): Likewise.
11373 (min_of_type_f128): Likewise.
11374 (min_of_type): Likewise.
11375 (math_check_force_underflow): Likewise.
11376 (math_check_force_underflow_nonneg): Likewise.
11377 (math_check_force_underflow_complex): Likewise.
11378 * math/e_exp2_template.c: Include <math-underflow.h>.
11379 * math/k_casinh_template.c: Likewise.
11380 * math/s_catan_template.c: Likewise.
11381 * math/s_catanh_template.c: Likewise.
11382 * math/s_ccosh_template.c: Likewise.
11383 * math/s_cexp_template.c: Likewise.
11384 * math/s_clog10_template.c: Likewise.
11385 * math/s_clog_template.c: Likewise.
11386 * math/s_csin_template.c: Likewise.
11387 * math/s_csinh_template.c: Likewise.
11388 * math/s_csqrt_template.c: Likewise.
11389 * math/s_ctan_template.c: Likewise.
11390 * math/s_ctanh_template.c: Likewise.
11391 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11392 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11393 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11394 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11395 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11396 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11397 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11398 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11399 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11400 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11401 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11402 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11403 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11404 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11405 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11406 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11407 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11408 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11409 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11410 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11411 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11412 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11413 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11414 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11415 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11416 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11417 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11418 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11419 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11420 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11421 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11422 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11423 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11424 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11425 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11426 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11427 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11428 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11429 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11430 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11431 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11432 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11433 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11434 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11435 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11436 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11437 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11438 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11439 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11440 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11441 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11442 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11443 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11444 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11445 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11446 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11447 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11448 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11449 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11450 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11451 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11452 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11453 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11454 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11455 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11456 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11457 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11458 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11459 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11460 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11461 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11462 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11463 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11464 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
11465 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11466 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11467 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11468 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11469 * sysdeps/x86/fpu/powl_helper.c: Likewise.
11470 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
11471 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
11472 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11473 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
11474 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
11475
11476 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11477
11478 * sysdeps/generic/math-barriers.h: New file.
11479 * sysdeps/generic/math_private.h [!math_opt_barrier]
11480 (math_opt_barrier): Move to math-barriers.h.
11481 [!math_opt_barrier] (math_force_eval): Likewise.
11482 * sysdeps/aarch64/fpu/math-barriers.h: New file.
11483 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
11484 math-barriers.h.
11485 (math_force_eval): Likewise.
11486 * sysdeps/alpha/fpu/math-barriers.h: New file.
11487 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
11488 math-barriers.h.
11489 (math_force_eval): Likewise.
11490 * sysdeps/x86/fpu/math-barriers.h: New file.
11491 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
11492 math-barriers.h.
11493 (math_force_eval): Likewise.
11494 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
11495 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
11496 multiple-include guard for rename.
11497 * sysdeps/powerpc/fpu/math-barriers.h: New file.
11498 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
11499 math-barriers.h.
11500 (math_force_eval): Likewise.
11501
11502 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
11503
11504 [BZ #22786]
11505 CVE-2018-11236
11506 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
11507 computation.
11508 * stdlib/Makefile (test-bz22786): New test.
11509 * stdlib/test-bz22786.c: New test.
11510
11511 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11512
11513 * include/math-narrow-eval.h: New file. Contents moved from ....
11514 * sysdeps/generic/math_private.h: ... here.
11515 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
11516 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11517 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
11518 * stdlib/strtod_l.c: Likewise.
11519 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11520 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11521 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11522 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11523 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11524 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11525 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11526 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11527 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11528 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
11529 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11530 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
11531 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11532 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11533 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11534 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11535 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11536 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11537 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11538 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11539 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11540 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11541 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11542 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11543 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11544 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11545 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11546 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11547 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
11548
11549 2018-05-08 Andreas Schwab <schwab@suse.de>
11550
11551 * sysdeps/nptl/internaltypes.h: Fix comment.
11552
11553 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
11554
11555 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11556 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
11557 hidden.
11558
11559 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
11560
11561 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
11562 of I into loop header.
11563 * benchtests/bench-memmove-walk.c
11564 (test_main): Likewise.
11565
11566 2018-05-07 Alexandre Oliva <oliva@gnu.org>
11567
11568 Revert:
11569 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11570 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11571
11572 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
11573
11574 [BZ #20419]
11575 * elf/dl-load.c (open_verify): Fix stack overflow.
11576 * elf/Makefile (tst-big-note): New test.
11577 * elf/tst-big-note-lib.S: New.
11578 * elf/tst-big-note.c: New.
11579
11580 2018-05-04 Joseph Myers <joseph@codesourcery.com>
11581
11582 * scripts/abilist.awk: Ignore absolute symbols.
11583 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
11584 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
11585 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
11586 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
11587 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
11588 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
11589 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11590 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
11591 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
11592 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
11593 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
11594 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
11595 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
11596 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
11597 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
11598 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
11599 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
11600 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
11601 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11602 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
11603 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11604 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
11605 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
11606 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
11607 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
11608 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
11609 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
11610 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
11611 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11612 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
11613 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
11614 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11615 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
11616 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11617 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
11618 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
11619 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
11620 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
11621 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
11622 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
11623 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
11624 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11625 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
11626 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
11627 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11628 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
11629 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11630 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
11631 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
11632 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
11633 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
11634 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
11635 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
11636 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
11637 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11638 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
11639 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
11640 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11641 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
11642 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11643 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
11644 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
11645 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
11646 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
11647 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
11648 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
11649 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
11650 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11651 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
11652 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
11653 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11654 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
11655 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11656 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
11657 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
11658 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
11659 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
11660 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
11661 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
11662 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
11663 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11664 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
11665 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
11666 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11667 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
11668 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11669 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
11670 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
11671 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
11672 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
11673 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
11674 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
11675 Likewise.
11676 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
11677 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11678 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
11679 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
11680 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11681 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
11682 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11683 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
11684 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
11685 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
11686 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
11687 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
11688 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
11689 Likewise.
11690 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
11691 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11692 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
11693 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
11694 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11695 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
11696 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11697 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
11698 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
11699 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
11700 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
11701 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
11702 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
11703 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
11704 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11705 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
11706 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
11707 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11708 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
11709 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11710 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
11711 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
11712 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
11713 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
11714 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11715 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
11716 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
11717 Likewise.
11718 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
11719 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
11720 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
11721 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
11722 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11723 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
11724 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
11725 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
11726 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
11727 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
11728 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
11729 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
11730 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
11731 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11732 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
11733 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
11734 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
11735 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
11736 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
11737 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
11738 Likewise.
11739 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
11740 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
11741 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
11742 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11743 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
11744 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11745 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
11746 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
11747 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
11748 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
11749 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11750 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
11751 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
11752 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11753 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
11754 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
11755 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
11756 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
11757 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11758 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
11759 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
11760 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11761 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
11762 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11763 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
11764 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
11765 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
11766 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
11767 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
11768 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11769 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
11770 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
11771 Likewise.
11772 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
11773 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
11774 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
11775 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
11776 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11777 Likewise.
11778 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
11779 Likewise.
11780 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
11781 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
11782 Likewise.
11783 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
11784 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11785 Likewise.
11786 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11787 Likewise.
11788 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
11789 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
11790 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
11791 Likewise.
11792 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
11793 Likewise.
11794 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
11795 Likewise.
11796 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
11797 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
11798 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11799 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
11800 Likewise.
11801 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
11802 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
11803 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
11804 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11805 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11806 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
11807 Likewise.
11808 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
11809 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11810 Likewise.
11811 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11812 Likewise.
11813 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
11814 Likewise.
11815 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
11816 Likewise.
11817 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
11818 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
11819 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
11820 Likewise.
11821 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
11822 Likewise.
11823 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
11824 Likewise.
11825 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
11826 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
11827 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
11828 Likewise.
11829 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
11830 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11831 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
11832 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
11833 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11834 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
11835 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11836 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
11837 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
11838 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
11839 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
11840 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
11841 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
11842 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
11843 Likewise.
11844 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11845 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
11846 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
11847 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11848 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
11849 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11850 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
11851 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
11852 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
11853 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
11854 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
11855 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
11856 Likewise.
11857 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11858 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
11859 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
11860 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11861 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
11862 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11863 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
11864 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
11865 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
11866 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
11867 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
11868 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
11869 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
11870 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11871 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
11872 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
11873 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11874 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
11875 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11876 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
11877 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
11878 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
11879 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
11880 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
11881 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
11882 Likewise.
11883 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
11884 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11885 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
11886 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
11887 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11888 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
11889 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11890 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
11891 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
11892 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
11893 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
11894 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
11895 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
11896 Likewise.
11897 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
11898 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11899 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
11900 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
11901 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11902 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
11903 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11904 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
11905 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
11906 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
11907 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
11908 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
11909 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
11910 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
11911 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11912 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
11913 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
11914 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11915 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
11916 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11917 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
11918 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
11919 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
11920 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
11921 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
11922 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
11923 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
11924 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
11925 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11926 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
11927 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
11928 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11929 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
11930 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11931 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
11932 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
11933 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
11934 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
11935
11936 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
11937
11938 [BZ #23137]
11939 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
11940 Use atomic_load_acquire to load __tid.
11941
11942 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11943
11944 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
11945 Restore the pointer into %rdx, after syscall and use %rdx,
11946 instead of %rsi, to restore context.
11947
11948 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11949
11950 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
11951 Pop the pointer into %rdx after syscall and use %rdx, instead
11952 of %rsi, to restore context.
11953
11954 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11955
11956 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
11957 handlers after setjmp.
11958 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
11959 defined.
11960 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
11961 <libc-pointer-arith.h>.
11962 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
11963 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
11964 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
11965 _JUMP_BUF_SIGSET_BITS_PER_WORD.
11966 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
11967 * sysdeps/x86/__longjmp_cancel.S: New file.
11968 * sysdeps/x86/longjmp.c: Likewise.
11969 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
11970
11971 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11972
11973 * NEWS: Add ustat.h deprecation entry.
11974 * bits/ustat.h: Remove file.
11975 * misc/sys/ustat.h: Likewise.
11976 * misc/ustat.h: Likewise.
11977 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
11978 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
11979 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
11980 compatibility mode.
11981 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
11982 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
11983 generic Linux implementation.
11984
11985 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11986
11987 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
11988 * math/w_expl_compat.c: Likewise.
11989 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
11990
11991 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11992
11993 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11994
11995 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11996
11997 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
11998 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
11999 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
12000 Remove.
12001 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
12002 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12003 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12004 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
12005 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
12006 and SYSCALL_LL64.
12007
12008 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12009
12010 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12011
12012 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12013 * math/w_asin_template.c: Likewise.
12014 * math/w_atanh_template.c: Likewise.
12015
12016 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12017
12018 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12019 to powerpc/powerpc64/be for big-endian.
12020 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12021 little-endian.
12022
12023 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
12024 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
12025 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
12026 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
12027 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
12028 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
12029 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
12030 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
12031 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
12032 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
12033 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
12034 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
12035 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
12036 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12037 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12038 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12039 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12040 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12041 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12042 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12043 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12044 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12045 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12046 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12047 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12048 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12049 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12050 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12051 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12052 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12053 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12054 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12055
12056 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12057 adjusted to imply powerpc64 and older processors on powerpc64/be.
12058 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12059 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12060 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12061 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12062 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12063 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12064 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12065 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12066 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12067 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12068 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12069 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12070 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12071 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12072 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12073 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12074 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12075 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12076 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12077 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12078 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12079 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12080 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12081 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12082 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12083 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12084 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12085 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12086 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12087 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12088 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12089
12090 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12091 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12092 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12093 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12094
12095 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12096 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12097 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12098 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12099
12100 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12101 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12102 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12103 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12104 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12105 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12106 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12107 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12108 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12109 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12110 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12111
12112 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12113 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12114 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12115 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12116 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12117 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12118 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12119 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12120 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12121 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12122 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12123
12124 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12125 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12126 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12127 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12128 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12129 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12130 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12131 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12132 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12133 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12134 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12135 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12136
12137 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12138 and adjusted to imply olders processors.
12139 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12140 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12141 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12142 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12143 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12144 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12145 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12146 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12147 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12148 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12149 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12150
12151 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12152 powerpc64/le.
12153 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12154 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12155
12156 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12157 powerpc64le.
12158 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12159 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12160
12161 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12162 powerpc64/be.
12163 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12164 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12165 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12166
12167 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12168 powerpc64 and adjusted.
12169 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12170 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12171 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12172 Likewise.
12173
12174 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12175
12176 * sysdeps/tile: Remove.
12177 * sysdeps/unix/sysv/linux/tile: Likewise.
12178 * README (tilegx-*-linux-gnu): Remove from list of supported
12179 configurations.
12180 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12181 contribution of support for generic Linux kernel syscall
12182 interface.
12183 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12184 tilegx configurations.
12185 (Config.install_linux_headers): Do not handle tile.
12186 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12187 in comment.
12188 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12189 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12190 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12191 conditional undefine and redefine.
12192 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12193 in comment.
12194 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12195 conditional undefine and redefine.
12196
12197 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12198
12199 * signal/tst-sigaction.c: New file to test BZ #23069.
12200 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12201
12202 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12203
12204 [BZ #22766]
12205 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12206 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12207 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12208 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12209
12210 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12211
12212 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12213 _DIRENT_MATCHES_DIRENT64 is not defined.
12214 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12215 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12216 is defined.
12217 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12218 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12219
12220 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12221
12222 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12223 version to GCC 8 branch.
12224
12225 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12226
12227 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12228 (check_no_hidden): Use type of original function when declaring
12229 alias.
12230
12231 * sysdeps/unix/sysv/linux/sys/ptrace.h
12232 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12233 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12234 (struct __ptrace_seccomp_metadata): New type.
12235 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12236 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12237 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12238 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12239 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12240 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12241 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12242 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12243 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12244 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12245 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12246 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12247 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12248 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12249 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12250 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12251
12252 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12253
12254 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12255 defined.
12256 * dirent/versionsort.c (versionsort): Likewise.
12257 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12258 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12259 * dirent/versionsort64.c (versionsort64): Likewise.
12260 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12261 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12262 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12263 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12264 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12265 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12266 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12267 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12268 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12269 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12270 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12271 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12272 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12273 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12274
12275 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12276
12277 * elf/elf.h (NT_PPC_PKEY): New macro.
12278
12279 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12280
12281 [BZ #23094]
12282 * localedata/locales/hr_HR: fix thousands_sep and
12283 mon_thousands_sep
12284
12285 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12286
12287 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12288 (XTABS): Define to TAB3.
12289
12290 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12291
12292 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12293
12294 * dirent/scandir-tail-common.c: New file.
12295 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12296 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12297 * dirent/scandir.c: Use scandir-tail-common.c.
12298 * dirent/scandirat.c: Likewise.
12299 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12300 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12301 if _DIRENT_MATCHES_DIRENT64 is defined.
12302 * dirent/scandirat64.c (scandirat64): Likewise.
12303 * include/dirent.h (__scandir_tail): Only define iff
12304 _DIRENT_MATCHES_DIRENT64 is not defined.
12305 (__scandir64_tail): Define regardless.
12306 (__scandirat, scandirat64): Remove libc_hidden_proto.
12307 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12308 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12309 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12310 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12311 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12312 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12313 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12314
12315 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12316
12317 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12318 New macro.
12319 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12320 Increase to 24.
12321 (_dl_aarch64_cap_flags): Add asimdfhm.
12322
12323 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12324
12325 * sysdeps/nios2/libm-test-ulps: Update.
12326
12327 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12328
12329 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12330 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12331
12332 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12333 requirements.
12334 (_DIRENT_MATCHES_DIRENT64): Undef
12335 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12336 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12337 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12338 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12339 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12340 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12341 use getdents64 syscalls as base.
12342 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12343 symbol if required.
12344 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12345 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12346 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12347 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12348 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12349 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12350 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12351 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12352 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12353 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12354 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
12355
12356 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12357
12358 * scripts/test_printers_common.py (init_test): Disable lock elision.
12359
12360 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12361
12362 * math/test-tgmath.c (count_double, count_float,
12363 count_ldouble, count_cdouble, count_cfloat,
12364 count_cldouble): Use volatile int.
12365
12366 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12367
12368 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12369 (conformtest-xfail-conds): Add i386-gnu.
12370 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12371 i386-gnu.
12372 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12373 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12374 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12375 msqid_ds.msg_lrpid): Likewise.
12376 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12377 Likewise.
12378 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
12379 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
12380 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
12381 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
12382 unsigned int.
12383 (struct statvfs64): Likewise.
12384 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
12385 Likewise.
12386 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
12387 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
12388 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
12389 instead of wait_queue.
12390 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
12391 instead of vm_area_struct.
12392 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
12393 struct sched_param definition to it.
12394 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12395 * bits/types/struct_sched_param.h: New file.
12396 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
12397 <bits/types/struct_sched_param.h> instead of <sched.h>.
12398 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
12399 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
12400 generic version but include <bits/pthreadtypes.h> to make struct
12401 sigevent's sigev_notify_attributes field a pthread_attr_t*.
12402 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
12403 non-compliant.
12404 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
12405 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
12406 [__USE_XOPEN] (OFDEL): New macro.
12407 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
12408 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
12409 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
12410 prototypes.
12411 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
12412 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
12413 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
12414 non-compliant.
12415 * sysdeps/i386/sys/ucontext.h: Likewise.
12416 * sysdeps/m68k/sys/ucontext.h: Likewise.
12417 * sysdeps/mips/sys/ucontext.h: Likewise.
12418 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
12419 * sysdeps/mach/hurd/i386/Makefile
12420 (test-xfail-POSIX/fcntl.h/conform): Add.
12421 (test-xfail-POSIX/signal.h/conform): Add.
12422 (test-xfail-POSIX/semaphore.h/conform): Add.
12423 (test-xfail-POSIX/regex.h/conform): Add.
12424 (test-xfail-POSIX/aio.h/conform): Add.
12425 (test-xfail-POSIX/mqueue.h/conform): Add.
12426 (test-xfail-POSIX/sys/types.h/conform): Add.
12427 (test-xfail-UNIX98/fcntl.h/conform): Add.
12428 (test-xfail-UNIX98/netdb.h/conform): Add.
12429 (test-xfail-UNIX98/signal.h/conform): Add.
12430 (test-xfail-UNIX98/semaphore.h/conform): Add.
12431 (test-xfail-UNIX98/regex.h/conform): Add.
12432 (test-xfail-UNIX98/aio.h/conform): Add.
12433 (test-xfail-UNIX98/ftw.h/conform): Add.
12434 (test-xfail-UNIX98/mqueue.h/conform): Add.
12435 (test-xfail-UNIX98/netinet/in.h/conform): Add.
12436 (test-xfail-UNIX98/sys/wait.h/conform): Add.
12437 (test-xfail-UNIX98/sys/sem.h/conform): Add.
12438 (test-xfail-UNIX98/sys/uio.h/conform): Add.
12439 (test-xfail-UNIX98/sys/socket.h/conform): Add.
12440 (test-xfail-UNIX98/sys/types.h/conform): Add.
12441 (test-xfail-UNIX98/stdlib.h/conform): Add.
12442 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
12443 (test-xfail-POSIX2008/fcntl.h/conform): Add.
12444 (test-xfail-POSIX2008/netdb.h/conform): Add.
12445 (test-xfail-POSIX2008/signal.h/conform): Add.
12446 (test-xfail-POSIX2008/semaphore.h/conform): Add.
12447 (test-xfail-POSIX2008/regex.h/conform): Add.
12448 (test-xfail-POSIX2008/aio.h/conform): Add.
12449 (test-xfail-POSIX2008/mqueue.h/conform): Add.
12450 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
12451 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
12452 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
12453 (test-xfail-POSIX2008/sys/types.h/conform): Add.
12454 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
12455 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
12456 (test-xfail-XOPEN2K/netdb.h/conform): Add.
12457 (test-xfail-XOPEN2K/signal.h/conform): Add.
12458 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
12459 (test-xfail-XOPEN2K/regex.h/conform): Add.
12460 (test-xfail-XOPEN2K/aio.h/conform): Add.
12461 (test-xfail-XOPEN2K/ftw.h/conform): Add.
12462 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
12463 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
12464 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
12465 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
12466 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
12467 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
12468 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
12469 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
12470 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
12471 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
12472 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
12473 (test-xfail-XOPEN2K8/signal.h/conform): Add.
12474 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
12475 (test-xfail-XOPEN2K8/regex.h/conform): Add.
12476 (test-xfail-XOPEN2K8/aio.h/conform): Add.
12477 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
12478 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
12479 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
12480 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
12481 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
12482 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
12483 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
12484 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
12485 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
12486 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
12487 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
12488 i386-gnu.
12489 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
12490 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
12491
12492 2018-04-18 Joseph Myers <joseph@codesourcery.com>
12493
12494 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
12495 --enable-obsolete for powerpc-linux-gnuspe.
12496
12497 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12498
12499 * conform/data/sys/un.h-data: Allow sun_ prefix.
12500 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
12501 prototypes.
12502 * sysdeps/mach/include/mach.h: Likewise.
12503 * sysdeps/mach/include/mach/mig_support.h: Likewise.
12504 * sysdeps/mach/include/mach_error.h: Likewise.
12505
12506 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12507
12508 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
12509 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
12510 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
12511 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
12512
12513 2018-04-16 Andreas Schwab <schwab@suse.de>
12514
12515 [BZ #19527]
12516 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
12517
12518 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
12519
12520 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
12521 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
12522
12523 2018-04-12 DJ Delorie <dj@redhat.com>
12524
12525 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12526 version to 4.16.
12527
12528 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
12529
12530 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
12531 (struct kernel_sigaction): Use the same definition on 31bit as is used
12532 on 64bit.
12533
12534 2018-04-09 Florian Weimer <fweimer@redhat.com>
12535
12536 [BZ #23037]
12537 * resolv/res_send.c (send_dg): Use designated initializers instead
12538 of assignment to zero-initialize other fields of struct mmsghdr.
12539
12540 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12541
12542 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
12543 __READDIR_ALIAS): Undefine after usage.
12544 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
12545 __READDIR_R_ALIAS): Likewise.
12546 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
12547 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
12548 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
12549 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
12550 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
12551 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
12552 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
12553 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12554 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
12555 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
12556 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
12557 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
12558 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
12559 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
12560 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
12561 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
12562 * sysdeps/unix/sysv/linux/readdir.c: New file.
12563 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
12564 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
12565 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
12566
12567 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
12568
12569 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
12570
12571 * manual/charset.texi (Converting a Character): Fix typo.
12572
12573 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12574
12575 * sysdeps/sparc/fpu/libm-test-ulps: Update.
12576
12577 * sysdeps/arm/libm-test-ulps: Update.
12578
12579 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
12580 as base implementation.
12581 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
12582 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12583 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12584 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12585 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12586 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
12587 remove unrequired definitions and update comments.
12588 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
12589 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
12590 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
12591 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
12592 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
12593 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
12594 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
12595 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
12596 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
12597 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
12598 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
12599 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
12600 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
12601 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
12602 and RESET_SA_RESTORER hooks.
12603
12604 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
12605
12606 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12607
12608 2018-04-05 Florian Weimer <fweimer@redhat.com>
12609
12610 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
12611 integer overflow, memory leak on error, and indeterminate errno
12612 value. Add a null wide character to terminate the result string.
12613 * manual/charset.texi (Converting a Character): Mention embedded
12614 null bytes in the mbrtowc input string. Explain what happens in
12615 the -2 result case. Do not claim that mbrtowc is simple or
12616 obvious to use. Adjust the description of the code example. Use
12617 @code, not @var, for concrete variables.
12618
12619 2018-04-05 Florian Weimer <fweimer@redhat.com>
12620
12621 * manual/examples/mbstouwcs.c: New file.
12622 * manual/charset.texi (Converting a Character): Include it.
12623
12624 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
12625
12626 * include/dirent.h (dirfd): Add hidden proto.
12627 * dirent/dirfd.c (dirfd): Add hidden def.
12628 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
12629 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
12630
12631 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12632
12633 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
12634 sin, cos and sincos to 1 ULP.
12635
12636 2018-04-04 Maciej W. Rozycki <macro@mips.com>
12637
12638 [BZ #19818]
12639 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
12640 symbols.
12641 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
12642 * elf/tst-absolute-sym.c: New file.
12643 * elf/tst-absolute-sym-lib.c: New file.
12644 * elf/tst-absolute-sym-lib.lds: New file.
12645 * elf/Makefile (tests): Add `tst-absolute-sym'.
12646 (modules-names): Add `tst-absolute-sym-lib'.
12647 (LDLIBS-tst-absolute-sym-lib.so): New variable.
12648 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
12649 ($(objpfx)tst-absolute-sym): New dependency.
12650
12651 [BZ #19818]
12652 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
12653 parameter.
12654 (SYMBOL_ADDRESS): New macro.
12655 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
12656 SYMBOL_ADDRESS for symbol address calculation.
12657 * elf/dl-runtime.c (_dl_fixup): Likewise.
12658 (_dl_profile_fixup): Likewise.
12659 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
12660 * elf/rtld.c (dl_main): Likewise.
12661 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
12662 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
12663 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
12664 (elf_machine_rela): Likewise.
12665 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
12666 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
12667 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
12668 (elf_machine_rela): Likewise.
12669 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
12670 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
12671 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
12672 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
12673 Likewise.
12674 (elf_machine_reloc): Likewise.
12675 (elf_machine_got_rel): Likewise.
12676 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
12677 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
12678 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
12679 Likewise.
12680 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12681 Likewise.
12682 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
12683 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
12684 Likewise.
12685 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
12686 Likewise.
12687 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12688 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
12689 Likewise.
12690 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12691 Likewise.
12692 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
12693 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
12694
12695 2018-04-04 Zack Weinberg <zackw@panix.com>
12696
12697 * sysdeps/generic/internal-signals.h: Include signal.h,
12698 sigsetops.h, and stdbool.h.
12699 (__libc_signal_block_all): Actually block all signals.
12700 (__libc_signal_block_app): Likewise.
12701 (__libc_signal_restore_set): Actually restore the signal mask.
12702
12703 2018-04-04 Florian Weimer <fweimer@redhat.com>
12704
12705 inet: Actually build and run tst-deadline.
12706 * inet/Makefile (tests-internal): Add tst-deadline and do not
12707 overwrite the variable.
12708 (tests-static-internal): Remove variable.
12709
12710 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
12711
12712 [BZ #22947]
12713 * bits/uio-ext.h (RWF_APPEND): New.
12714 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
12715 * manual/llio.texi: Document RWF_APPEND.
12716 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
12717 (RWF_SUPPORTED): Add RWF_APPEND.
12718
12719 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12720
12721 [BZ #22391]
12722 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
12723 check for internal nptl signals.
12724 * nptl/sigaction.c (__sigaction): Likewise.
12725 * signal/sigaddset.c (sigaddset): Likewise.
12726 * signal/sigdelset.c (sigdelset): Likewise.
12727 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
12728 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
12729 value.
12730 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
12731 to filter out internal nptl signals.
12732 * signal/tst-sigset.c (do_test): Check ech signal indidually and
12733 also check realtime signals using standard macros.
12734 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
12735 __is_internal_signal, __libc_signal_block_all,
12736 __libc_signal_block_app, __libc_signal_restore_set): New functions.
12737 * sysdeps/nptl/sigfillset.c: Remove file.
12738 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
12739 Change return to bool.
12740 (__clear_internal_signals): Remove SIGTIMER clean since it is
12741 equal to SIGCANEL on Linux.
12742 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
12743 signal set was constructed using standard functions.
12744
12745 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
12746
12747 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
12748 ifname is too long.
12749 * hurd/hurdsig.c (interrupted_reply_port_location): Use
12750 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
12751 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
12752 hidden def.
12753 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
12754 * signal/sigaddset.c: Include <sigsetopts.h>.
12755 * signal/sigdelset.c: Likewise.
12756
12757 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12758
12759 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
12760 (__cos): Likewise.
12761 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
12762 logic as sin and cos.
12763
12764 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12765
12766 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
12767 inputs. Return correct sign.
12768 (do_sincos): Remove small input check before do_sin, let do_sin set
12769 the sign.
12770 (__sin): Likewise.
12771 (__cos): Likewise.
12772
12773 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12774
12775 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
12776 (do_cos_slow): Likewise.
12777 (do_sin_slow): Likewise.
12778 (reduce_and_compute): Likewise.
12779 (slow): Likewise.
12780 (slow1): Likewise.
12781 (slow2): Likewise.
12782 (sloww): Likewise.
12783 (sloww1): Likewise.
12784 (sloww2): Likewise.
12785 (bslow): Likewise.
12786 (bslow1): Likewise.
12787 (bslow2): Likewise.
12788 (cslow2): Likewise.
12789
12790 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12791
12792 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
12793 (do_cos): Remove corp parameter and calculations.
12794 (do_sin): Likewise.
12795 (do_sincos): Remove cor variable.
12796 (__sin): Use do_sincos for huge inputs.
12797 (__cos): Likewise.
12798 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12799 (reduce_and_compute_sincos): Remove unused function.
12800
12801 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12802
12803 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
12804 reduce_sincos, improve accuracy to 136 bits.
12805 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
12806 (__sin): Use improved reduction and simplified do_sincos calculation.
12807 (__cos): Likewise.
12808 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12809
12810 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12811
12812 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
12813 (do_sincos_2): Likewise.
12814 (__sin): Remove middle range reduction case.
12815 (__cos): Likewise.
12816 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
12817 reduction case.
12818
12819 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12820
12821 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
12822 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
12823 inputs.
12824 (__cos): Likewise.
12825 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
12826
12827 2018-04-03 Joseph Myers <joseph@codesourcery.com>
12828
12829 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12830 version to 4.16
12831
12832 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12833
12834 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
12835 Remove definitions.
12836 (opendir_oflags): Use O_DIRECTORY regardless.
12837 (__opendir, __opendirat): Remove need_isdir_precheck usage.
12838 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
12839
12840 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12841
12842 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
12843 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
12844 macros.
12845 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
12846 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
12847 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
12848 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
12849 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
12850 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
12851
12852 * htl/Makefile: Bump licence to LGPL 2.1+.
12853 * htl/alloca_cutoff.c: Likewise.
12854 * htl/cthreads-compat.c: Likewise.
12855 * htl/lockfile.c: Likewise.
12856 * htl/pt-alloc.c: Likewise.
12857 * htl/pt-cancel.c: Likewise.
12858 * htl/pt-cleanup.c: Likewise.
12859 * htl/pt-create.c: Likewise.
12860 * htl/pt-dealloc.c: Likewise.
12861 * htl/pt-detach.c: Likewise.
12862 * htl/pt-exit.c: Likewise.
12863 * htl/pt-getattr.c: Likewise.
12864 * htl/pt-initialize.c: Likewise.
12865 * htl/pt-internal.h: Likewise.
12866 * htl/pt-join.c: Likewise.
12867 * htl/pt-self.c: Likewise.
12868 * htl/pt-setcancelstate.c: Likewise.
12869 * htl/pt-setcanceltype.c: Likewise.
12870 * htl/pt-sigmask.c: Likewise.
12871 * htl/pt-spin-inlines.c: Likewise.
12872 * htl/pt-testcancel.c: Likewise.
12873 * htl/pt-yield.c: Likewise.
12874 * htl/tests/test-1.c: Likewise.
12875 * htl/tests/test-10.c: Likewise.
12876 * htl/tests/test-11.c: Likewise.
12877 * htl/tests/test-12.c: Likewise.
12878 * htl/tests/test-13.c: Likewise.
12879 * htl/tests/test-14.c: Likewise.
12880 * htl/tests/test-15.c: Likewise.
12881 * htl/tests/test-16.c: Likewise.
12882 * htl/tests/test-17.c: Likewise.
12883 * htl/tests/test-2.c: Likewise.
12884 * htl/tests/test-3.c: Likewise.
12885 * htl/tests/test-4.c: Likewise.
12886 * htl/tests/test-5.c: Likewise.
12887 * htl/tests/test-6.c: Likewise.
12888 * htl/tests/test-7.c: Likewise.
12889 * htl/tests/test-8.c: Likewise.
12890 * htl/tests/test-9.c: Likewise.
12891 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
12892 * sysdeps/htl/bits/cancelation.h: Likewise.
12893 * sysdeps/htl/bits/pthread-np.h: Likewise.
12894 * sysdeps/htl/bits/pthread.h: Likewise.
12895 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
12896 * sysdeps/htl/bits/semaphore.h: Likewise.
12897 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
12898 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
12899 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
12900 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
12901 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
12902 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
12903 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
12904 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
12905 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
12906 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
12907 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
12908 * sysdeps/htl/old_pt-atfork.c: Likewise.
12909 * sysdeps/htl/pt-atfork.c: Likewise.
12910 * sysdeps/htl/pt-attr-destroy.c: Likewise.
12911 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
12912 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
12913 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
12914 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
12915 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
12916 * sysdeps/htl/pt-attr-getscope.c: Likewise.
12917 * sysdeps/htl/pt-attr-getstack.c: Likewise.
12918 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
12919 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
12920 * sysdeps/htl/pt-attr-init.c: Likewise.
12921 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
12922 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
12923 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
12924 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
12925 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
12926 * sysdeps/htl/pt-attr-setscope.c: Likewise.
12927 * sysdeps/htl/pt-attr-setstack.c: Likewise.
12928 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
12929 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
12930 * sysdeps/htl/pt-attr.c: Likewise.
12931 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
12932 * sysdeps/htl/pt-barrier-init.c: Likewise.
12933 * sysdeps/htl/pt-barrier-wait.c: Likewise.
12934 * sysdeps/htl/pt-barrier.c: Likewise.
12935 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
12936 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
12937 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
12938 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
12939 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
12940 * sysdeps/htl/pt-cond-destroy.c: Likewise.
12941 * sysdeps/htl/pt-cond-init.c: Likewise.
12942 * sysdeps/htl/pt-cond-signal.c: Likewise.
12943 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
12944 * sysdeps/htl/pt-cond-wait.c: Likewise.
12945 * sysdeps/htl/pt-cond.c: Likewise.
12946 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
12947 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
12948 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
12949 * sysdeps/htl/pt-condattr-init.c: Likewise.
12950 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
12951 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
12952 * sysdeps/htl/pt-destroy-specific.c: Likewise.
12953 * sysdeps/htl/pt-equal.c: Likewise.
12954 * sysdeps/htl/pt-getconcurrency.c: Likewise.
12955 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
12956 * sysdeps/htl/pt-getschedparam.c: Likewise.
12957 * sysdeps/htl/pt-getspecific.c: Likewise.
12958 * sysdeps/htl/pt-init-specific.c: Likewise.
12959 * sysdeps/htl/pt-key-create.c: Likewise.
12960 * sysdeps/htl/pt-key-delete.c: Likewise.
12961 * sysdeps/htl/pt-key.h: Likewise.
12962 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
12963 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
12964 * sysdeps/htl/pt-mutex-init.c: Likewise.
12965 * sysdeps/htl/pt-mutex-lock.c: Likewise.
12966 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
12967 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
12968 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
12969 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
12970 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
12971 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
12972 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
12973 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
12974 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
12975 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
12976 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
12977 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
12978 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
12979 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
12980 * sysdeps/htl/pt-mutexattr.c: Likewise.
12981 * sysdeps/htl/pt-once.c: Likewise.
12982 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
12983 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
12984 * sysdeps/htl/pt-rwlock-init.c: Likewise.
12985 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
12986 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
12987 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
12988 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
12989 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
12990 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
12991 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
12992 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
12993 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
12994 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
12995 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
12996 * sysdeps/htl/pt-setconcurrency.c: Likewise.
12997 * sysdeps/htl/pt-setschedparam.c: Likewise.
12998 * sysdeps/htl/pt-setschedprio.c: Likewise.
12999 * sysdeps/htl/pt-setspecific.c: Likewise.
13000 * sysdeps/htl/pt-spin.c: Likewise.
13001 * sysdeps/htl/pt-startup.c: Likewise.
13002 * sysdeps/htl/pthread.h: Likewise.
13003 * sysdeps/htl/sem-close.c: Likewise.
13004 * sysdeps/htl/sem-destroy.c: Likewise.
13005 * sysdeps/htl/sem-getvalue.c: Likewise.
13006 * sysdeps/htl/sem-init.c: Likewise.
13007 * sysdeps/htl/sem-open.c: Likewise.
13008 * sysdeps/htl/sem-post.c: Likewise.
13009 * sysdeps/htl/sem-timedwait.c: Likewise.
13010 * sysdeps/htl/sem-trywait.c: Likewise.
13011 * sysdeps/htl/sem-unlink.c: Likewise.
13012 * sysdeps/htl/sem-wait.c: Likewise.
13013 * sysdeps/hurd/htl/pt-kill.c: Likewise.
13014 * sysdeps/i386/htl/pt-machdep.h: Likewise.
13015 * sysdeps/mach/htl/pt-block.c: Likewise.
13016 * sysdeps/mach/htl/pt-spin.c: Likewise.
13017 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13018 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13019 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13020 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13021 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13022 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13023 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
13024 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
13025 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
13026 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
13027 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
13028 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
13029 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
13030 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
13031 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13032 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13033 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13034 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13035 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13036 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13037 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13038 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13039 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13040 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13041 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13042 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13043 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13044 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13045 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13046 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13047 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13048 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13049 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13050 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13051 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13052 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13053 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13054 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13055 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13056 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13057 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13058 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13059 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13060
13061 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13062 * README: Remove the mention of out-of-tree patches needed for
13063 GNU/Hurd.
13064
13065 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13066 (UTIME_NOW, UTIME_OMIT): Define macros.
13067
13068 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13069 instead of pthread_detach.
13070 (__cthread_fork): Call __pthread_create instead of pthread_create.
13071 (__cthread_keycreate): Call __pthread_key_create instead of
13072 pthread_key_create.
13073 (__cthread_getspecific): Call __pthread_getspecific instead of
13074 pthread_getspecific.
13075 (__cthread_setspecific): Call __pthread_setspecific instead of
13076 pthread_setspecific.
13077 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13078 __pthread_mutex_unlock instead of pthread_mutex_lock and
13079 pthread_mutex_unlock.
13080 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13081 ___pthread_get_cleanup_stack.
13082 (__pthread_get_cleanup_stack): New strong alias.
13083 * htl/pt-create.c: Include <pthreadP.h>.
13084 (entry_point): Call __pthread_exit instead of pthread_exit.
13085 (pthread_create): Rename to __pthread_create.
13086 (pthread_create): New strong alias.
13087 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13088 (pthread_detach): New strong alias.
13089 (__pthread_detach): Call __pthread_cond_broadcast instead of
13090 pthread_cond_broadcast.
13091 * htl/pt-exit.c: Include <pthreadP.h>.
13092 (__pthread_exit): Call __pthread_setcancelstate and
13093 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13094 __pthread_get_cleanup_stack.
13095 * htl/pt-testcancel.c: Include <pthreadP.h>.
13096 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13097 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13098 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13099 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13100 pthread_attr_getstacksize.
13101 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13102 Rename to __pthread_attr_getstackaddr.
13103 (pthread_attr_getstackaddr): New strong alias.
13104 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13105 Rename to __pthread_attr_getstacksize.
13106 (pthread_attr_getstacksize): New strong alias.
13107 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13108 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13109 (pthread_attr_setstack): New strong alias.
13110 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13111 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13112 pthread_attr_getstacksize, pthread_attr_setstacksize and
13113 pthread_attr_setstackaddr.
13114 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13115 Rename to __pthread_attr_setstackaddr.
13116 (pthread_attr_setstackaddr): New strong alias.
13117 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13118 Rename to __pthread_attr_setstacksize.
13119 (pthread_attr_setstacksize): New strong alias.
13120 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13121 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13122 pthread_exit.
13123 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13124 (__pthread_key_create): New hidden def.
13125 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13126 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13127 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13128 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13129 __pthread_setspecific, __pthread_setcancelstate,
13130 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13131 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13132 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13133 declarations.
13134 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13135 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13136 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13137 (pthread_attr_setstackaddr): New strong alias.
13138 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13139 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13140 (pthread_attr_setstacksize): New strong alias.
13141 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13142 (call_exit): Call __pthread_exit instead of pthread_exit.
13143 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13144 (_pthread_mutex_init): New hidden definition.
13145 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13146 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13147 instead of pthread_attr_init and pthread_attr_setstack.
13148
13149 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13150 __vm_deallocate instead of vm_allocate and vm_deallocate.
13151 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13152 setenv.
13153 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13154 of geteuid.
13155 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13156 strdup.
13157 * hurd/siginfo.c: Include <libioP.h>.
13158 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13159 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13160 munmap.
13161 * mach/devstream.c: Include <libioP.h>.
13162 (dealloc_ref): Call __mach_port_deallocate instead of
13163 mach_port_deallocate.
13164 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13165 Call __mach_port_deallocate instead of mach_port_deallocate.
13166 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13167 pathconf.
13168 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13169 munmap.
13170 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13171 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13172 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13173 of munmap.
13174 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13175 of close.
13176 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13177 instead of sysconf.
13178 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13179 __clock_gettime instead of clock_gettime.
13180 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13181 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13182 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13183 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13184 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13185 tcgetattr.
13186 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13187 __clock_gettime and __nanosleep instead of clock_gettime and
13188 nanosleep.
13189 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13190 __hurd_catch_signal.
13191 (hurd_catch_signal): New strong alias.
13192 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13193 __hurd_catch_signal instead of hurd_catch_signal.
13194 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13195 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13196 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13197 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13198 (_hurd_thread_sigstate): Add hidden def.
13199 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13200 mutex_unlock.
13201 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13202 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13203 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13204 __hurd_file_name_path_lookup.
13205 (hurd_file_name_path_lookup): New strong alias.
13206 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13207 hurd_file_name_path_lookup.
13208 * mach/errstring.c (mach_error_type): Add hidden def.
13209 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13210 * mach/mutex-init.c (__mutex_init): Add hidden def.
13211 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13212 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13213 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13214 * sysdeps/mach/hurd/getcwd.c
13215 (_hurd_canonicalize_directory_name_internal): Rename to
13216 __hurd_canonicalize_directory_name_internal.
13217 (_hurd_canonicalize_directory_name_internal): New strong alias.
13218 (__canonicalize_directory_name_internal, __getcwd): Call
13219 __hurd_canonicalize_directory_name_internal instead of
13220 _hurd_canonicalize_directory_name_internal.
13221 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13222 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13223 hidden defs.
13224 * sysdeps/hurd/include/hurd.h: New file.
13225 * sysdeps/hurd/include/hurd/fd.h: New file.
13226 * sysdeps/hurd/include/hurd/signal.h: New file.
13227 * sysdeps/mach/include/lock-intern.h: New file.
13228 * sysdeps/mach/include/mach.h: New file.
13229 * sysdeps/mach/include/mach/mig_support.h: New file.
13230 * sysdeps/mach/include/mach_error.h: New file.
13231 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13232 prototype.
13233 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13234 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13235 _HEADER_H_HIDDEN_DEF macro.
13236 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13237 _hurd_fd_error_signal): Add hidden prototype.
13238 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13239 hidden def.
13240 * libio/iolibio.h (_IO_puts): New hidden prototype.
13241 * libio/ioputs.c (_IO_puts): New hidden def.
13242 * sysdeps/mach/hurd/localplt.data: New file.
13243
13244 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13245 Amos Jeffries <squid3@treenet.co.nz>
13246 David Michael <fedora.dm0@gmail.com>
13247 Marco Gerards <marco@gnu.org>
13248 Marcus Brinkmann <marcus@gnu.org>
13249 Neal H. Walfield <neal@gnu.org>
13250 Pino Toscano <toscano.pino@tiscali.it>
13251 Richard Braun <rbraun@sceen.net>
13252 Roland McGrath <roland@gnu.org>
13253 Samuel Thibault <samuel.thibault@ens-lyon.org>
13254 Thomas DiModica <ricinwich@yahoo.com>
13255 Thomas Schwinge <tschwinge@gnu.org>
13256
13257 * htl: New directory.
13258 * sysdeps/htl: New directory.
13259 * sysdeps/hurd/htl: New directory.
13260 * sysdeps/i386/htl: New directory.
13261 * sysdeps/mach/htl: New directory.
13262 * sysdeps/mach/hurd/htl: New directory.
13263 * sysdeps/mach/hurd/i386/htl: New directory.
13264 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13265 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13266 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13267
13268 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13269
13270 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13271 signals in thread created for runing timers.
13272
13273 2018-04-01 Florian Weimer <fweimer@redhat.com>
13274
13275 * support/support_format_addrinfo.c (support_format_addrinfo):
13276 Include unknown error number in formatted result.
13277
13278 2018-03-29 Florian Weimer <fweimer@redhat.com>
13279
13280 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13281 capture SIGBUS.
13282
13283 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13284
13285 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13286 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13287 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13288 (__ASSUME_CLONE_BACKWARDS): Define.
13289
13290 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13291
13292 [BZ #23024]
13293 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13294 early when linux sentinel value is set.
13295
13296 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13297
13298 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13299
13300 2018-03-27 Andreas Schwab <schwab@suse.de>
13301
13302 [BZ #23005]
13303 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13304 allocation of private copy of nsaddr_list fails.
13305
13306 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13307
13308 [BZ #16552]
13309 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13310 * sysdeps/unix/sysv/linux/umount.c: ... here.
13311 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13312 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13313 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13314 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13315 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13316 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13317 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13318
13319 2018-03-26 Andreas Schwab <schwab@suse.de>
13320
13321 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13322 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13323 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13324 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13325 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13326 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13327 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13328 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13329 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13330 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13331 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13332 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13333 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13334 (R_RISCV_NUM): Define.
13335
13336 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13337
13338 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13339 TLS declaration of errno.
13340 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13341 __libc_setup_tls.
13342 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13343 (ARCH_SETUP_TLS): Likewise.
13344 * sysdeps/mach/hurd/libc-start.h: New file copied from
13345 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13346 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13347 instead of __libc_setup_tls.
13348 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13349 __libc_setup_tls before initializing libpthread and running _hurd_init
13350 which starts the signal thread.
13351 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13352 Declare function.
13353 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13354
13355 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
13356
13357 [BZ #22998]
13358 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
13359 after it is defined.
13360
13361 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
13362 Max Horn <max@quendi.de>
13363
13364 [BZ #22644]
13365 CVE-2017-18269
13366 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13367 branch conditions.
13368 * string/test-memmove.c (do_test2): New testcase.
13369
13370 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13371
13372 * sysdeps/generic/frame.h: Remove file.
13373 * sysdeps/arm/frame.h: Likewise.
13374 * sysdeps/hppa/frame.h: Likewise.
13375 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13376 macro.
13377 (GET_FRAME): Likewise.
13378 (GET_STACK): Likewise.
13379 (CALL_SIGHANDLER): Likewise.
13380 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
13381 Likewise.
13382 (GET_FRAME): Likewise.
13383 (GET_STACK): Likewise.
13384 (CALL_SIGHANDLER): Likewise.
13385 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
13386 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13387 (GET_FRAME): Likewise.
13388 (GET_STACK): Likewise.
13389 (CALL_SIGHANDLER): Likewise.
13390 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
13391 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13392 (GET_FRAME): Likewise.
13393 (GET_STACK): Likewise.
13394 (ADVANCE_STACK_FRAME): Likewise.
13395 (CALL_SIGHANDLER): Likewise.
13396 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
13397 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13398 (GET_FRAME): Likewise.
13399 (GET_STACK): Likewise.
13400 (CALL_SIGHANDLER): Likewise.
13401 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
13402 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13403 (GET_FRAME): Likewise.
13404 (GET_STACK): Likewise.
13405 (CALL_SIGHANDLER): Likewise.
13406 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
13407 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13408 (GET_FRAME): Likewise.
13409 (GET_STACK): Likewise.
13410 (CALL_SIGHANDLER): Likewise.
13411 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
13412 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13413 (GET_FRAME): Likewise.
13414 (GET_STACK): Likewise.
13415 (CALL_SIGHANDLER): Likewise.
13416 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
13417 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13418 (GET_FRAME): Likewise.
13419 (GET_STACK): Likewise.
13420 (CALL_SIGHANDLER): Likewise.
13421 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
13422 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13423 (GET_FRAME): Likewise.
13424 (GET_STACK): Likewise.
13425 (CALL_SIGHANDLER): Likewise.
13426 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
13427 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13428 (GET_FRAME): Likewise.
13429 (GET_STACK): Likewise.
13430 (CALL_SIGHANDLER): Likewise.
13431 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
13432 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13433 (GET_FRAME): Likewise.
13434 (GET_STACK): Likewise.
13435 (CALL_SIGHANDLER): Likewise.
13436 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
13437 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13438 (GET_FRAME): Likewise.
13439 (GET_STACK): Likewise.
13440 (CALL_SIGHANDLER): Likewise.
13441 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
13442 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13443 (FIRST_FRAME_POINTER): Likewise.
13444 (ADVANCE_STACK_FRAME): Likewise.
13445 (GET_STACK): Likewise.
13446 (GET_FRAME): Likewise.
13447 (CALL_SIGHANDLER): Likewise.
13448 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
13449 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13450 (ADVANCE_STACK_FRAME): Likewise.
13451 (GET_STACK): Likewise.
13452 (GET_FRAME): Likewise.
13453 (CALL_SIGHANDLER): Likewise.
13454 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
13455 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13456 (GET_FRAME): Likewise.
13457 (GET_STACK): Likewise.
13458 (CALL_SIGHANDLER): Likewise.
13459 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
13460 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13461 (GET_FRAME): Likewise.
13462 (GET_STACK): Likewise.
13463 (CALL_SIGHANDLER): Likewise.
13464
13465 2018-03-21 Joseph Myers <joseph@codesourcery.com>
13466
13467 * sysdeps/x86_64/backtrace.c: Move to ....
13468 * debug/backtrace.c: ... here.
13469 * sysdeps/aarch64/backtrace.c: Remove file.
13470 * sysdeps/alpha/backtrace.c: Likewise.
13471 * sysdeps/hppa/backtrace.c: Likewise.
13472 * sysdeps/ia64/backtrace.c: Likewise.
13473 * sysdeps/mips/backtrace.c: Likewise.
13474 * sysdeps/nios2/backtrace.c: Likewise.
13475 * sysdeps/riscv/backtrace.c: Likewise.
13476 * sysdeps/sh/backtrace.c: Likewise.
13477 * sysdeps/tile/backtrace.c: Likewise.
13478
13479 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13480
13481 [BZ #22987]
13482 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
13483 function.
13484 (fdimf): Likewise.
13485 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
13486
13487 [BZ #17343]
13488 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
13489 possibly overflowing computations.
13490
13491 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
13492
13493 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
13494 values from Linux-specific section now that it is in the GNU section.
13495 * sysdeps/gnu/errlist.c: Regenerate.
13496
13497 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13498
13499 * math/Makefile (libm-narrow-fns): Add sub.
13500 (libm-test-funcs-narrow): Likewise.
13501 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
13502 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
13503 * math/gen-auto-libm-tests.c (test_functions): Add sub.
13504 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
13505 (NARROW_SUB_ROUND_TO_ODD): Likewise.
13506 (NARROW_SUB_TRIVIAL): Likewise.
13507 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
13508 macro.
13509 (__dsubl): Likewise.
13510 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
13511 dsub.
13512 (CFLAGS-nldbl-dsub.c): New variable.
13513 (CFLAGS-nldbl-fsub.c): Likewise.
13514 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13515 __nldbl_dsubl.
13516 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
13517 prototype.
13518 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
13519 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
13520 * math/auto-libm-test-in: Add tests of sub.
13521 * math/auto-libm-test-out-narrow-sub: New generated file.
13522 * math/libm-test-narrow-sub.inc: New file.
13523 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13524 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
13525 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
13526 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
13527 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
13528 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
13529 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
13530 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
13531 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
13532 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
13533 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
13534 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
13535 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
13536 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
13537 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
13538 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
13539 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
13540 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
13541 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13542 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13543 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13544 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13545 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13546 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13547 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13548 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13549 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13550 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13551 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13552 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13553 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13554 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13555 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13556 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13557 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13558 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13559 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13560 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13561 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13562 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13563 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13564 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13565 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
13566 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
13567 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13568 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13569
13570 2018-03-19 Joseph Myers <joseph@codesourcery.com>
13571
13572 [BZ #20079]
13573 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
13574
13575 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
13576
13577 * benchtests/bench-timing.h (attribute_hidden): Undefine.
13578
13579 2018-03-18 Richard Braun <rbraun@sceen.net>
13580
13581 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
13582 thread reference.
13583
13584 2018-03-18 Agustina Arzille <avarzille@riseup.net>
13585
13586 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
13587 (__libc_cleanup_fct): Define function.
13588 (__libc_cleanup_region_start, __libc_cleanup_region_end,
13589 __libc_cleanup_end): Rewrite implementation using
13590 __attribute__ ((__cleanup__)).
13591 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
13592 * hurd/Makefile (routines): Add hurdlock.
13593 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
13594 interface.
13595 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
13596 * hurd/hurdpid.c: Include <lowlevellock.h>
13597 (_S_msg_proc_newids): Use lll_wait to synchronize.
13598 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
13599 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
13600 * mach/Makefile (lock-headers): Remove machine-lock.h.
13601 * mach/lock-intern.h: Include <lowlevellock.h> instead of
13602 <machine-lock.h>.
13603 (__spin_lock_t): New type.
13604 (__SPIN_LOCK_INITIALIZER): New macro.
13605 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
13606 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
13607 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
13608 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
13609 (__mutex_init): Initialize with lll.
13610 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
13611 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
13612 needing lll.
13613 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13614 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
13615 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
13616 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
13617 (__setpgid): Use lll for synchronization.
13618 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
13619 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
13620 instead of <cthreads.h>.
13621 (_IO_lock_inexpensive): New macro
13622 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
13623 (__libc_lock_self0): New declaration.
13624 (__libc_lock_owner_self): New macro.
13625 (__libc_key_t): Remove type.
13626 (_LIBC_LOCK_INITIALIZER): New macro.
13627 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
13628 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
13629 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
13630 __libc_lock_define_initialized_recursive,
13631 __rtld_lock_define_initialized_recursive,
13632 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
13633 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
13634 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
13635 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
13636 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
13637 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
13638 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
13639 New macros.
13640 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
13641 * hurd/hurdlock.c: New file.
13642 * hurd/hurdlock.h: New file.
13643 * mach/lowlevellock.h: New file
13644
13645 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13646
13647 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
13648 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
13649 when opening a symlink with O_NOFOLLOW.
13650 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
13651 path when flags contains O_NOFOLLOW.
13652 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
13653 if flags contains O_DIRECTORY and the result is a directory.
13654 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
13655 oneself when the pointer given in D is nul (as set by ext2fs).
13656 * sysdeps/mach/hurd/mlockall.c: New file.
13657 * sysdeps/mach/hurd/munlockall.c: New file.
13658
13659 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
13660
13661 * hurd/hurdsig.c: Include <pthread.h>.
13662 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
13663 get the signal thread stack layout.
13664 * hurd/Makefile (headers): Remove threadvar.h.
13665 (inline-headers): Remove threadvar.h.
13666 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
13667 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
13668 __hurd_threadvar_max, __hurd_errno_location.
13669 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
13670 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
13671 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
13672 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
13673 unless TLS is not initialized yet, in which case we do not need a
13674 critical section yet anyway.
13675 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
13676 <machine-sp.h>.
13677 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
13678 declarations.
13679 (__hurd_threadvar_index): Remove enum.
13680 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
13681 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
13682 inlines.
13683 (__hurd_reply_port0): New variable declaration.
13684 (__hurd_local_reply_port): New macro.
13685 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
13686 (interrupted_reply_port_location): Add thread_t parameter. Use it
13687 with THREAD_TCB to access thread-local variables.
13688 (_hurdsig_abort_rpcs): Pass ss->thread to
13689 interrupted_reply_port_location.
13690 (_hurd_internal_post_signal): Likewise.
13691 (_hurdsig_init): Use presence of cthread_fork instead of
13692 __hurd_threadvar_stack_mask to start signal thread by hand.
13693 Remove signal thread threadvar initialization.
13694 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
13695 * hurd/sigunwind.c: Include <hurd/threadvar.h>
13696 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
13697 of threadvar.
13698 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
13699 __libc_lock_self0.
13700 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
13701 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
13702 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
13703 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
13704 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
13705 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
13706 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
13707 define variables.
13708 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
13709 <hurd/threadvar.h>.
13710 [IS_IN(rtld)] (rtld_errno): New variable.
13711 [IS_IN(rtld)] (__errno_location): New weak function.
13712 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
13713 * sysdeps/mach/hurd/errno.c: Remove file.
13714 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
13715 (__fork): Remove THREADVAR_SPACE macro and its use.
13716 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
13717 variable.
13718 (init): Do not initialize threadvar.
13719 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
13720 symbol.
13721 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
13722 __hurd_local_reply_port instead of threadvar.
13723 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
13724 _hurd_sigstate fields.
13725 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
13726 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
13727 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
13728 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
13729 instead of threadvar.
13730 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
13731 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
13732 (use_threadvar, global_reply_port): Remove variables.
13733 (__hurd_reply_port0): New variable.
13734 (__mig_get_reply_port): Use __hurd_local_reply_port and
13735 __hurd_reply_port0 instead of threadvar.
13736 (__mig_dealloc_reply_port): Likewise.
13737 (__mig_init): Do not initialize threadvar.
13738 * sysdeps/mach/hurd/profil.c: Fix comment.
13739 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
13740 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
13741 cthread_keycreate, cthread_getspecific, cthread_setspecific to
13742 __cthread_fork, __cthread_detach, __pthread_getattr_np,
13743 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
13744 __cthread_setspecific.
13745 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
13746 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
13747 __cthread_t instead of cthread_fork, cthread_detach,
13748 pthread_getattr_np, pthread_attr_getstack.
13749 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
13750 __cthread_keycreate.
13751 (cthread_getspecific): Rename to __cthread_getspecific.
13752 (cthread_setspecific): Rename to __cthread_setspecific.
13753 (__libc_getspecific): Use __cthread_getspecific instead of
13754 cthread_getspecific.
13755 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
13756 __cthread_keycreate instead of cthread_keycreate.
13757 (__libc_setspecific): Use __cthread_setspecific instead of
13758 cthread_setspecific.
13759 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
13760 Likewise.
13761 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
13762 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
13763 testing whether it is defined.
13764
13765 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
13766
13767 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
13768 Define macro.
13769 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
13770 * sysdeps/mach/i386/thread_state.h
13771 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
13772 i386_THREAD_STATE.
13773 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
13774 i386_THREAD_STATE.
13775 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
13776
13777 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
13778 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
13779
13780 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
13781 macros.
13782 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
13783 descriptor instead of creating a new one.
13784 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
13785
13786 * mach/setup-thread.c: Include <ldsodefs.h>.
13787 (__mach_setup_thread): Call _dl_allocate_tls, pass
13788 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
13789 MACHINE_THREAD_STATE_FLAVOR, before getting
13790 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
13791 MACHINE_THREAD_STATE_FLAVOR with the result.
13792 * hurd/hurdfault.c (_hurdsig_fault_init): Call
13793 MACHINE_THREAD_STATE_FIX_NEW.
13794 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
13795 too. Add original thread parameter.
13796
13797 2018-03-16 Joseph Myers <joseph@codesourcery.com>
13798
13799 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
13800 Remove inline function.
13801
13802 * sysdeps/i386/fpu/libm-test-ulps: Update.
13803 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
13804
13805 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
13806
13807 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
13808 commit.
13809
13810 2018-03-15 Joseph Myers <joseph@codesourcery.com>
13811
13812 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
13813 (__sincos_code): Remove define and undefine.
13814 [__FAST_MATH__] (__sincos): Remove inline function.
13815 [__FAST_MATH__] (__sincosf): Remove inline function.
13816 [__FAST_MATH__] (__sincosl): Remove inline function.
13817 (__atan2l): Remove inline functions.
13818 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
13819 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
13820 function.
13821 (floor): Remove inline function.
13822 (ceil): Likewise.
13823 [__FAST_MATH__] (__ldexp_code): Remove macro.
13824 [__FAST_MATH__] (ldexp): Remove inline function.
13825 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
13826 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
13827 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
13828 [__USE_ISOC99] (__lrint_code): Remove macro.
13829 [__USE_ISOC99] (__llrint_code): Likewise.
13830 [__USE_ISOC99] (lrintf): Remove inline function.
13831 [__USE_ISOC99] (lrint): Likewise.
13832 [__USE_ISOC99] (lrintl): Likewise.
13833 [__USE_ISOC99] (llrint): Likewise.
13834 [__USE_ISOC99] (llrintf): Likewise.
13835 [__USE_ISOC99] (llrintl): Likewise.
13836
13837 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13838
13839 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
13840 (__ieee754_sqrtf): Remove.
13841 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
13842 (__ieee754_sqrtf): Remove.
13843 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
13844 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13845 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
13846 (__ieee754_sqrtf): Remove.
13847 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
13848 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
13849 (sqrtf): Remove.
13850 (sqrtl): Remove.
13851 (__ieee754_sqrt): Remove.
13852 (__ieee754_sqrtf): Remove.
13853 (__ieee754_sqrtl): Remove.
13854 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13855 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
13856 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
13857 (__ieee754_sqrtf): Remove.
13858 (__ieee754_sqrtl): Remove.
13859
13860 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13861
13862 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
13863 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
13864 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
13865 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
13866 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
13867 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
13868 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
13869 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
13870 Likewise.
13871 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
13872 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
13873 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
13874 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
13875 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
13876 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
13877 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
13878 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
13879 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
13880 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13881 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
13882 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
13883 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
13884 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
13885 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
13886 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
13887 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
13888 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
13889 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
13890 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
13891 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13892 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13893 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
13894 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
13895 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
13896 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
13897 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13898 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13899 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
13900 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13901 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
13902 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
13903 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
13904 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
13905 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13906 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
13907 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
13908 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
13909 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
13910 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
13911
13912 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13913
13914 * include/math.h (sqrt): Declare with asm redirect.
13915 (sqrtf): Likewise.
13916 (sqrtl): Likewise.
13917 (sqrtf128): Likewise.
13918 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
13919 nonlib and libnldbl with -fmath-errno.
13920 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
13921 * math/w_sqrt_template.c: Likewise.
13922 * math/w_sqrtf_compat.c: Likewise.
13923 * math/w_sqrtl_compat.c: Likewise.
13924 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
13925 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
13926 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
13927 complex.h.
13928
13929 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13930
13931 * benchtests/Makefile: Define _ISOMAC.
13932 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
13933 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
13934 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
13935 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
13936 * benchtests/bench-timing.h: Define attribute_hidden.
13937
13938 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13939
13940 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
13941 mov + lsr.
13942
13943 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13944
13945 [BZ #22963]
13946 * localedata/locales/cs_CZ (mon): Rename to...
13947 (alt_mon): This.
13948 (mon): Import from CLDR (genitive case).
13949
13950 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13951
13952 [BZ #22937]
13953 * localedata/locales/el_CY (abmon): Rename to...
13954 (ab_alt_mon): This.
13955 (abmon): Import from CLDR (abbreviated genitive case).
13956 * localedata/locales/el_GR (abmon): Rename to...
13957 (ab_alt_mon): This.
13958 (abmon): Import from CLDR (abbreviated genitive case).
13959
13960 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13961
13962 [BZ #22932]
13963 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
13964
13965 2018-03-15 Robert Buj <robert.buj@gmail.com>
13966
13967 [BZ #22848]
13968 * localedata/locales/ca_ES (abmon): Rename to...
13969 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
13970 (mon): Rename to...
13971 (alt_mon): This.
13972 (abmon): Import from CLDR (genitive case, month names preceded by
13973 "de" or "d’").
13974 (mon): Likewise.
13975 (abday): Synchronize with CLDR.
13976 (d_t_fmt): Likewise.
13977 (d_fmt): Likewise.
13978 (am_pm): Likewise.
13979
13980 (LC_TIME): Improve indentation.
13981 (LC_TELEPHONE): Likewise.
13982 (LC_NAME): Likewise.
13983 (LC_ADDRESS): Likewise.
13984
13985 2018-03-14 Joseph Myers <joseph@codesourcery.com>
13986
13987 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
13988 (lrintf): Remove definitions used only with old GCC.
13989 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
13990 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
13991 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
13992 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
13993 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
13994 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
13995 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
13996 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
13997 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
13998 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
13999 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
14000 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
14001 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
14002 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
14003 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
14004 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
14005 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
14006 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
14007 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
14008 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14009 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14010 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14011 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14012 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14013 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14014 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14015 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14016 [__FAST_MATH__] (__M_SQRT2): Remove macro.
14017
14018 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14019
14020 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14021 instruction to unbreak builds with binutils 2.26 and older.
14022
14023 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14024
14025 * sysdeps/aarch64/strncmp.S (count): New macro.
14026 (strncmp): Store misaligned length in SRC1 in COUNT.
14027 (mutual_align): Adjust.
14028 (misaligned8): Load dword at a time when it is safe.
14029
14030 2018-03-12 Zack Weinberg <zackw@panix.com>
14031
14032 [BZ #1190]
14033 [BZ #19476]
14034 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14035 if the _IO_EOF_SEEN bit is already set; update commentary.
14036 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14037 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14038
14039 * support/support_openpty.c, support/tty.h: New files.
14040 * support/Makefile (libsupport-routines): Add support_openpty.
14041
14042 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14043 New test cases.
14044 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14045 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14046
14047 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14048
14049 * po/pt_BR.po: Update translations.
14050
14051 2018-03-12 David Michael <fedora.dm0@gmail.com>
14052
14053 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14054 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14055 get a port to the startup server.
14056
14057 2018-03-11 Zack Weinberg <zackw@panix.com>
14058
14059 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14060 before nldbl-compat.h.
14061
14062 2018-03-10 Zack Weinberg <zackw@panix.com>
14063
14064 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14065 math.h or math_private.h.
14066
14067 * sysdeps/alpha/fpu/s_isnan.c
14068 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14069 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14070 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14071 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14072 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14073 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14074 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14075 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14076 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14077 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14078 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14079 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14080 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14081 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14082 Include math_private.h.
14083
14084 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14085 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14086 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14087 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14088 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14089 * sysdeps/powerpc/power7/fpu/s_logb.c:
14090 Include math.h and math_private.h.
14091
14092 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14093 uses of $at in .set noat / .set at.
14094
14095 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14096
14097 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14098 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14099 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14100 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14101 Likewise.
14102
14103 2018-03-09 Florian Weimer <fweimer@redhat.com>
14104
14105 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14106 in comment.
14107
14108 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14109
14110 [BZ #22919]
14111 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14112 Add nop before __startcontext, add explaining comments.
14113
14114 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14115
14116 [BZ #22926]
14117 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14118 empty for __SPE__.
14119 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14120 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14121 Do not build hardware transactional code for __SPE__.
14122 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14123 (__lll_trylock_elision): Likewise.
14124 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14125 (__lll_unlock_elision): Likewise.
14126
14127 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14128 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14129 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14130 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14131 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14132 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14133 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14134 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14135 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14136 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14137 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14138 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14139 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14140 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14141 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14142 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14143 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14144 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14145 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14146 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14147 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14148 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14149 (__ASSUME_CLONE_BACKWARDS): Define.
14150 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14151 __clone2 if __NR_clone2 is defined.
14152 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14153 (__ASSUME_CLONE_BACKWARDS): Likewise.
14154 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14155 (__ASSUME_CLONE_BACKWARDS): Likewise.
14156 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14157 (__ASSUME_CLONE2): Likewise.
14158 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14159 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14160 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14161 variants and the define architecture can use.
14162 (__ASSUME_CLONE_DEFAULT): Define as default.
14163 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14164 (__ASSUME_CLONE_BACKWARDS): Likewise.
14165 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14166 (__ASSUME_CLONE_BACKWARDS): Likewise.
14167 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14168 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14169
14170 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14171
14172 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14173
14174 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14175 time.
14176
14177 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14178 (do_test_limit): Likewise.
14179
14180 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14181 for every implementation.
14182 (do_test): Likewise.
14183
14184 * benchtests/bench-strncmp.c: Convert output to json.
14185
14186 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14187
14188 * io/futimens.c: Add missing start-of-file descriptive comment.
14189 * io/utime.c: Likewise.
14190 * misc/futimesat.c: Likewise.
14191 * misc/utimes.c: Likewise.
14192 * sysdeps/mach/hurd/futimesat.c: Likewise.
14193 * sysdeps/mach/hurd/utimes.c: Likewise.
14194 * sysdeps/posix/utime.c: Likewise.
14195 * sysdeps/posix/utimes.c: Likewise.
14196 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14197 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14198 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14199 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14200
14201 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14202
14203 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14204 hurd_futimes.
14205 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14206 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14207 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14208 (__futimens): Move implementation to...
14209 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14210 utime_tvalue_from_tspec): ... new helper functions.
14211 (hurd_futimens): New function.
14212 * sysdeps/mach/hurd/futimesat.c: New file.
14213 * sysdeps/mach/hurd/utimensat.c: New file.
14214
14215 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14216
14217 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14218 UTIME_OMIT): New macros.
14219 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14220 before reverting to converting time spec to time value and calling
14221 __file_utimes.
14222 * sysdeps/mach/hurd/utime-helper.c: New file.
14223 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14224 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14225 reverting to utime_tvalue_from_tval and __file_utimes.
14226 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14227 (__lutimes): Just call hurd_futimens after lookup.
14228 * sysdeps/mach/hurd/utimes.c: Likewise.
14229
14230 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14231
14232 * bits/sigaction.h: Add include guard.
14233 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14234 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14235 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14236 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14237 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14238 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14239 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14240 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14241 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14242
14243 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14244
14245 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14246 -Wmaybe-uninitialized for -Os.
14247 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14248 this disabling.
14249
14250 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14251
14252 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14253 __INO_T_MATCHES_INO64_T is defined.
14254 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14255 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14256 of definition.
14257 * dirent/alphasort64.c: Likewise.
14258 * dirent/scandir.c: Likewise.
14259 * dirent/scandir64-tail.c: Likewise.
14260 * dirent/scandir64.c: Likewise.
14261 * dirent/scandirat.c: Likewise.
14262 * dirent/scandirat64.c: Likewise.
14263 * dirent/versionsort.c: Likewise.
14264 * dirent/versionsort64.c: Likewise.
14265 * include/dirent.h: Likewise.
14266
14267 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14268 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14269 for socketpair endpoint.
14270 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14271 WRITE_BUFFER_SIZE as buffer size for sending socket.
14272 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14273 issue on system where send is implemented with sendto syscall.
14274 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14275 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14276 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14277 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14278
14279 [BZ #21269]
14280 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14281 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14282 sa_restorer for vDSO case.
14283 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14284
14285 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14286
14287 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14288 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14289 * hurd/hurd/ioctl.h: Include <mach/port.h>
14290 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14291 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14292 <mach/mach_types.h> and <mach/message.h>.
14293 (headers): Move mach/param.h to bits/mach/param.h.
14294 * sysdeps/mach/i386/mach/param.h: Move file to ...
14295 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14296 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14297 of <mach/param.h>.
14298 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14299 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14300 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14301 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14302 trivial, for C++ conformity.
14303 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14304 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14305 Process mig output through $(migheadersed).
14306 * hurd/Makefile (migheadersed): Define variable.
14307 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14308 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14309 headers.
14310 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14311 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14312 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14313 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14314 <bits/types/sigset_t.h>.
14315 [!defined __USE_GNU]: Do not #error out.
14316 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14317 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14318 Include <stddef.h> and <bits/types/sigset_t.h>
14319 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14320 instead of sighandler_t.
14321 * stdlib/errno.h (error_t): Move definition to...
14322 * bits/types/error_t.h: ... new header.
14323 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14324 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14325 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14326 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14327 * hurd/hurd.h: Include <bits/types/error_t.h>
14328 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14329 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14330 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14331 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14332 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14333 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14334 * sysdeps/mach/hurd/futimens.c: New file.
14335
14336 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14337
14338 [BZ #22918]
14339 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14340 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14341 * nscd/gai.c (__nss_hosts_database): Readd definition.
14342 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14343 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14344 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14345
14346 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14347
14348 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14349 (ifunc_one): Likewise.
14350
14351 2018-03-01 DJ Delorie <dj@delorie.com>
14352
14353 [BZ #22342]
14354 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
14355 key value.
14356
14357 2018-03-01 Maciej W. Rozycki <macro@mips.com>
14358
14359 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
14360 `match_pid' parameter.
14361 (td_ta_thr_iter): Update accordingly.
14362
14363 2018-03-01 Florian Weimer <fweimer@redhat.com>
14364
14365 * nptl/Makefile (install-lib-ldscripts): Remove.
14366 (install): Remove rule.
14367 ($(inst_libdir)/libpthread.so): Likewise.
14368
14369 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14370
14371 [BZ #22896]
14372 * localedata/locales/an_ES: update month and day names,
14373 improve d_fmt, improve postal_fmt, add country_post,
14374 add country_isbn
14375
14376 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14377
14378 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
14379 Ukrainian instead of Bulgarian.
14380
14381 2018-03-01 Florian Weimer <fweimer@redhat.com>
14382
14383 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
14384 reference.
14385
14386 2018-03-01 Florian Weimer <fweimer@redhat.com>
14387
14388 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
14389 * nptl/Makefile (routines): Add pthread_atfork.
14390 (static-only-routines): Set to pthread_atfork.
14391 (libpthread-routines): Remove pthread_atfork.
14392 (libpthread-static-only-routines): Remove.
14393 (install): Update comment.
14394 (libpthread.so): Do not install libpthread_nonshared.a.
14395 (tests): Do not link with libpthread_nonshared.a.
14396 (generated): Remove libpthread_nonshared.a.
14397 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
14398 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
14399 with libpthread_nonshared.a.
14400
14401 2018-02-28 Joseph Myers <joseph@codesourcery.com>
14402
14403 [BZ #22902]
14404 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
14405 (libc_feholdexcept_setroundf128): New macro.
14406 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
14407
14408 [BZ #15105]
14409 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
14410 libc_hidden_def.
14411 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
14412 * include/inttypes.h: New file.
14413
14414 2018-02-27 Joseph Myers <joseph@codesourcery.com>
14415
14416 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
14417 -Os in two more places.
14418
14419 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14420
14421 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
14422 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
14423 be sorted correctly at the moment because of a bug.
14424
14425 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14426
14427 [BZ #22550] - es_ES locale (and other es_* locales): collation should
14428 treat ñ as a primary different character, sync the collation
14429 for Spanish with CLDR.
14430 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
14431 * localedata/Makefile: Add new test files.
14432 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
14433 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
14434 collation order.
14435 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
14436 * localedata/am_ET.UTF-8.in: New test file.
14437 * localedata/az_AZ.UTF-8.in: Likewise.
14438 * localedata/be_BY.UTF-8.in: Likewise.
14439 * localedata/ber_DZ.UTF-8.in: Likewise.
14440 * localedata/ber_MA.UTF-8.in: Likewise.
14441 * localedata/bg_BG.UTF-8.in: Likewise.
14442 * localedata/br_FR.UTF-8.in: Likewise.
14443 * localedata/cmn_TW.UTF-8.in: Likewise.
14444 * localedata/crh_UA.UTF-8.in: Likewise.
14445 * localedata/csb_PL.UTF-8.in: Likewise.
14446 * localedata/cv_RU.UTF-8.in: Likewise.
14447 * localedata/cy_GB.UTF-8.in: Likewise.
14448 * localedata/dz_BT.UTF-8.in: Likewise.
14449 * localedata/eo.UTF-8.in: Likewise.
14450 * localedata/es_ES.UTF-8.in: Likewise.
14451 * localedata/fa_IR.UTF-8.in: Likewise.
14452 * localedata/fi_FI.UTF-8.in: Likewise.
14453 * localedata/fil_PH.UTF-8.in: Likewise.
14454 * localedata/fur_IT.UTF-8.in: Likewise.
14455 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
14456 * localedata/ha_NG.UTF-8.in: Likewise.
14457 * localedata/ig_NG.UTF-8.in: Likewise.
14458 * localedata/ik_CA.UTF-8.in: Likewise.
14459 * localedata/kk_KZ.UTF-8.in: Likewise.
14460 * localedata/ku_TR.UTF-8.in: Likewise.
14461 * localedata/ky_KG.UTF-8.in: Likewise.
14462 * localedata/ln_CD.UTF-8.in: Likewise.
14463 * localedata/mi_NZ.UTF-8.in: Likewise.
14464 * localedata/ml_IN.UTF-8.in: Likewise.
14465 * localedata/mn_MN.UTF-8.in: Likewise.
14466 * localedata/mr_IN.UTF-8.in: Likewise.
14467 * localedata/mt_MT.UTF-8.in: Likewise.
14468 * localedata/nb_NO.UTF-8.in: Likewise.
14469 * localedata/om_KE.UTF-8.in: Likewise.
14470 * localedata/os_RU.UTF-8.in: Likewise.
14471 * localedata/ps_AF.UTF-8.in: Likewise.
14472 * localedata/ro_RO.UTF-8.in: Likewise.
14473 * localedata/ru_RU.UTF-8.in: Likewise.
14474 * localedata/sc_IT.UTF-8.in: Likewise.
14475 * localedata/se_NO.UTF-8.in: Likewise.
14476 * localedata/sq_AL.UTF-8.in: Likewise.
14477 * localedata/sv_SE.UTF-8.in: Likewise.
14478 * localedata/szl_PL.UTF-8.in: Likewise.
14479 * localedata/tg_TJ.UTF-8.in: Likewise.
14480 * localedata/tk_TM.UTF-8.in: Likewise.
14481 * localedata/tt_RU.UTF-8.in: Likewise.
14482 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
14483 * localedata/ug_CN.UTF-8.in: Likewise.
14484 * localedata/uz_UZ.UTF-8.in: Likewise.
14485 * localedata/vi_VN.UTF-8.in: Likewise.
14486 * localedata/yi_US.UTF-8.in: Likewise.
14487 * localedata/yo_NG.UTF-8.in: Likewise.
14488 * localedata/zh_CN.UTF-8.in: Likewise.
14489 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
14490 file and fix bugs in the collation.
14491 * localedata/locales/az_AZ: Likewise.
14492 * localedata/locales/be_BY: Likewise.
14493 * localedata/locales/ber_DZ: Likewise.
14494 * localedata/locales/ber_MA: Likewise.
14495 * localedata/locales/bg_BG: Likewise.
14496 * localedata/locales/br_FR: Likewise.
14497 * localedata/locales/br_FR@euro: Likewise.
14498 * localedata/locales/ca_ES: Likewise.
14499 * localedata/locales/cns11643_stroke: Likewise.
14500 * localedata/locales/crh_UA: Likewise.
14501 * localedata/locales/cs_CZ: Likewise.
14502 * localedata/locales/csb_PL: Likewise.
14503 * localedata/locales/cv_RU: Likewise.
14504 * localedata/locales/cy_GB: Likewise.
14505 * localedata/locales/da_DK: Likewise.
14506 * localedata/locales/dz_BT: Likewise.
14507 * localedata/locales/en_CA: Likewise.
14508 * localedata/locales/eo: Likewise.
14509 * localedata/locales/es_CU: Likewise.
14510 * localedata/locales/es_EC: Likewise.
14511 * localedata/locales/es_ES: Likewise.
14512 * localedata/locales/es_US: Likewise.
14513 * localedata/locales/et_EE: Likewise.
14514 * localedata/locales/fa_IR: Likewise.
14515 * localedata/locales/fi_FI: Likewise.
14516 * localedata/locales/fil_PH: Likewise.
14517 * localedata/locales/fur_IT: Likewise.
14518 * localedata/locales/gez_ER@abegede: Likewise.
14519 * localedata/locales/ha_NG: Likewise.
14520 * localedata/locales/hr_HR: Likewise.
14521 * localedata/locales/hsb_DE: Likewise.
14522 * localedata/locales/hu_HU: Likewise.
14523 * localedata/locales/ig_NG: Likewise.
14524 * localedata/locales/ik_CA: Likewise.
14525 * localedata/locales/is_IS: Likewise.
14526 * localedata/locales/iso14651_t1_pinyin: Likewise.
14527 * localedata/locales/kk_KZ: Likewise.
14528 * localedata/locales/ku_TR: Likewise.
14529 * localedata/locales/ky_KG: Likewise.
14530 * localedata/locales/ln_CD: Likewise.
14531 * localedata/locales/lt_LT: Likewise.
14532 * localedata/locales/lv_LV: Likewise.
14533 * localedata/locales/mi_NZ: Likewise.
14534 * localedata/locales/ml_IN: Likewise.
14535 * localedata/locales/mn_MN: Likewise.
14536 * localedata/locales/mr_IN: Likewise.
14537 * localedata/locales/mt_MT: Likewise.
14538 * localedata/locales/nb_NO: Likewise.
14539 * localedata/locales/om_KE: Likewise.
14540 * localedata/locales/os_RU: Likewise.
14541 * localedata/locales/pl_PL: Likewise.
14542 * localedata/locales/ps_AF: Likewise.
14543 * localedata/locales/ro_RO: Likewise.
14544 * localedata/locales/ru_RU: Likewise.
14545 * localedata/locales/ru_UA: Likewise.
14546 * localedata/locales/sc_IT: Likewise.
14547 * localedata/locales/se_NO: Likewise.
14548 * localedata/locales/si_LK: Likewise.
14549 * localedata/locales/sq_AL: Likewise.
14550 * localedata/locales/sv_FI: Likewise.
14551 * localedata/locales/sv_FI@euro: Likewise.
14552 * localedata/locales/sv_SE: Likewise.
14553 * localedata/locales/szl_PL: Likewise.
14554 * localedata/locales/tg_TJ: Likewise.
14555 * localedata/locales/ti_ER: Likewise.
14556 * localedata/locales/tk_TM: Likewise.
14557 * localedata/locales/tl_PH: Likewise.
14558 * localedata/locales/tr_TR: Likewise.
14559 * localedata/locales/tt_RU: Likewise.
14560 * localedata/locales/tt_RU@iqtelif: Likewise.
14561 * localedata/locales/ug_CN: Likewise.
14562 * localedata/locales/uk_UA: Likewise.
14563 * localedata/locales/uz_UZ: Likewise.
14564 * localedata/locales/uz_UZ@cyrillic: Likewise.
14565 * localedata/locales/vi_VN: Likewise.
14566 * localedata/locales/yi_US: Likewise.
14567 * localedata/locales/yo_NG: Likewise.
14568
14569 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14570
14571 * gen-locales.mk: Make test files which contain @ modifiers in their
14572 name work.
14573 * localedata/gen-locale.sh: Likewise.
14574
14575 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14576
14577 * posix/tst-fnmatch.input: Fix results for range expressions
14578 for non C locales.
14579 * posix/tst-regexloc.c: Do not use a range expression for
14580 de_DE.ISO-8859-1 locale.
14581
14582 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14583
14584 * posix/bug-regex5.c: Fix test case because with the new
14585 iso14651_t1_common file, the da_DK locale now has 6 collating elements
14586 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
14587 file.
14588
14589 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14590
14591 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
14592 downloaded from ISO, the collation order of @-. and space has changed.
14593 Therefore, this test file needed to be adapted.
14594 * localedata/fr_CA.UTF-8.in: Likewise.
14595 * localedata/fr_FR.UTF-8.in: Likewise.
14596 * localedata/uk_UA.UTF-8.in: Likewise.
14597
14598 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14599
14600 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
14601 order of ȥ in the new iso14651_t1_common file.
14602 * localedata/pl_PL.UTF-8.in: Likewise.
14603
14604 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14605
14606 * localedata/locales/iso14651_t1_common: Add sections for various
14607 scripts to the iso14651_t1_common file.
14608
14609 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14610
14611 * localedata/locales/iso14651_t1_common: Use the code point of a
14612 character in the fourth collation level instead of IGNORE for all
14613 entries which have IGNORE on all 4 levels.
14614
14615 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14616
14617 * localedata/locales/iso14651_t1_common: Add some convenient collation
14618 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
14619 rules similar to those in CLDR.
14620
14621 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14622
14623 * localedata/locales/iso14651_t1_common: The new version of this
14624 file downloaded from ISO contained several syntax errors which
14625 are fixed by this patch.
14626
14627 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14628
14629 * localedata/locales/iso14651_t1_common: replace all <U.....>
14630 with <U000.....> because glibc understands only 4 digit or 8 digit
14631
14632 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14633
14634 * localedata/locales/iso14651_t1_common: Necessary changes
14635 to make the file downloaded from ISO usable by glibc.
14636
14637 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14638
14639 [BZ #14095]
14640 * localedata/locales/iso14651_t1_common: Update file to
14641 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
14642
14643 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14644
14645 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
14646 of <nptl/pthreadP.h>
14647 (thread_attr_compare): Move function to...
14648 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
14649 * sysdeps/nptl/timer_routines.h: ... new header.
14650 * sysdeps/mach/hurd/gai_misc.h: New file.
14651
14652 2018-02-26 Joseph Myers <joseph@codesourcery.com>
14653
14654 * string/strcoll_l.c: Include <libc-diag.h>.
14655 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
14656 declarations of seq1 and seq2.
14657
14658 [BZ #15105]
14659 * stdlib/atoi.c (atoi): Use libc_hidden_def.
14660 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
14661
14662 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
14663
14664 [BZ #22433]
14665 [BZ #22807]
14666 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
14667 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
14668 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
14669 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
14670 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
14671 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
14672
14673 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14674
14675 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
14676 macros used in __ptrace_request.
14677
14678 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
14679
14680 [BZ #22792]
14681 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
14682 to $(CC).
14683 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
14684 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
14685 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
14686 <tcb-offsets.h>.
14687
14688 2018-02-23 Joseph Myers <joseph@codesourcery.com>
14689
14690 [BZ #15105]
14691 * ctype/ctype.c (tolower): Use libc_hidden_def.
14692 (toupper): Likewise.
14693 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
14694 [!_ISOMAC] (toupper): Likewise.
14695
14696 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14697
14698 * localedata/Makefile: Remove --quiet argument when
14699 installing locales
14700
14701 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14702
14703 [BZ #17438]
14704 * localedata/locales/pt_BR (LC_TIME): use / instead of -
14705 in d_fmt.
14706 * localedata/locales/pt_PT (LC_TIME): likewise
14707
14708 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14709
14710 [BZ #22646]
14711 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
14712 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
14713 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
14714
14715 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14716
14717 * sysdeps/sparc/fpu/libm-test-ulps: Update.
14718
14719 * nptl/Makefile (routines): Remove unregister-atfork.
14720 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
14721 (fork_handler_alloc): Remove function.
14722 (fork_handlers, fork_handler_init): New variables.
14723 (__fork_lock): Rename to atfork_lock.
14724 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
14725 to use a dynamic array to add/remove atfork handlers.
14726 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14727 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
14728 Remove declaration.
14729 (fork_handler): Remove next, refcntr, and need_signal member.
14730 (__run_fork_handler_type): New enum.
14731 (__run_fork_handlers): New prototype.
14732 * nptl/register-atfork.c: Remove file.
14733 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
14734
14735 * sysdeps/nptl/nptl-signals.h: Move to ...
14736 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
14737 comments.
14738 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
14739 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
14740 unnecessary check for SIGTIMER.
14741 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
14742 remove unnecessary removal of SIGTIMER.
14743 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
14744 include-signals.h rename.
14745 * nptl/pthreadP.h: Likewise.
14746 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
14747 __is_internal_signal instead of __nptl_is_internal_signal.
14748
14749 2018-02-22 Andrew Waterman <andrew@sifive.com>
14750
14751 [BZ # 22884]
14752 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
14753 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
14754 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
14755 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
14756
14757 2018-02-22 DJ Delorie <dj@delorie.com>
14758
14759 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
14760
14761 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
14762
14763 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
14764 do_misaligned, not misaligned8.
14765
14766 2018-02-22 Steve Ellcey <sellcey@cavium.com>
14767
14768 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
14769 Add memcpy_thunderx2.
14770 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
14771 Increment to 4.
14772 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
14773 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
14774 and IS_THUNDERX2PA checks.
14775 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
14776 Use macro to set name appropriately.
14777 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
14778 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
14779 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
14780 New macro.
14781 (IS_THUNDERX2): New macro.
14782
14783 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
14784
14785 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14786
14787 2018-02-21 Zack Weinberg <zackw@panix.com>
14788
14789 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
14790 Define here, unconditionally.
14791 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
14792 * libio/libioP.h: Remove #if 0 blocks.
14793 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
14794 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
14795 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
14796
14797 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
14798 Assume weak_alias is always defined.
14799
14800 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
14801 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
14802 Remove #if 0 and #ifdef TODO blocks.
14803 Assume text_set_element is always defined.
14804
14805 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
14806 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
14807 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
14808
14809 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
14810 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
14811 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
14812 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
14813 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
14814 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
14815 Reformat bit flags for _flags field to make occupancy clearer.
14816 Update commentary.
14817 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
14818 Keep definitions consistent with those in libio/libio.h.
14819
14820 * libio/libio.h (_IO_file_flags): Remove macro.
14821 All uses changed to _flags.
14822
14823 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
14824 (__HAVE_COLUMN, _IO_BE): Don't define.
14825 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
14826 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
14827 * libio/libioP.h (EOF): Don't define.
14828 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
14829 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
14830 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
14831 testing _IO_UNIFIED_JUMPTABLES.
14832
14833 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
14834 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
14835 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
14836 (_IO_size_t): Delete; all uses changed to size_t.
14837 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
14838 (_IO_off_t): Delete; all uses changed to off_t.
14839 (_IO_off64_t): Delete; all uses changed to off64_t.
14840 (_IO_pid_t): Delete; all uses changed to pid_t.
14841 (_IO_uid_t): Delete; all uses changed to uid_t.
14842 (_IO_wint_t): Delete; all uses changed to wint_t.
14843 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
14844 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
14845 (_IO_cookie_io_functions_t): Delete; all uses changed to
14846 cookie_io_functions_t.
14847 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
14848 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
14849 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
14850 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
14851
14852 * libio/iofopncook.c: Remove unnecessary forward declarations.
14853 * libio/iolibio.h: Correct outdated commentary.
14854 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
14855 * stdio-common/fxprintf.c (__fxprintf_nocancel):
14856 Remove unnecessary casts.
14857 * stdio-common/getline.c: Use _IO_getdelim directly.
14858 Don't redefine ssize_t.
14859 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
14860 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
14861 Remove outdated comments.
14862 * stdio-common/vfscanf.c: Don't redefine va_list.
14863
14864 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
14865 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
14866 Remove preprocessor conditionals on _LIBC and __USE_GNU,
14867 which are always true, and __cplusplus, which is always false.
14868
14869 2018-02-21 Joseph Myers <joseph@codesourcery.com>
14870
14871 [BZ #15105]
14872 [BZ #19463]
14873 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
14874 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
14875 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
14876 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
14877 libc_hidden_proto.
14878 [!_ISOMAC] (putc_unlocked): Likewise.
14879 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
14880 define inline if [__USE_EXTERN_INLINES].
14881 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
14882 putc_unlocked.
14883
14884 [BZ #15105]
14885 [BZ #19463]
14886 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
14887 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
14888 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
14889 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
14890 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
14891 getc_unlocked.
14892 * time/tzfile.c (__tzfile_read): Likewise.
14893
14894 2018-02-21 Mike FABIAN <mfabian@redhat.com>
14895
14896 [BZ #22517]
14897 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
14898
14899 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14900
14901 * io/fcntl.h: Fix a typo in a comment.
14902
14903 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14904
14905 [BZ #22862]
14906 * include/features.h: Add _ISOC11_SOURCE to test for whether to
14907 define _DEFAULT_SOURCE.
14908 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
14909
14910 2018-02-21 Florian Weimer <fweimer@redhat.com>
14911
14912 [BZ #20890]
14913 * elf/cache.c (save_cache): Call fsync on temporary file before
14914 renaming it.
14915 (save_aux_cache): Call fdatasync on temporary file before renaming
14916 it.
14917
14918 2018-02-21 Florian Weimer <fweimer@redhat.com>
14919
14920 [BZ #22787]
14921 * include/caller.h: Remove file.
14922 * elf/dl-caller.c: Likewise.
14923 * elf/Makefile (dl-routines): Remove dl-caller.
14924 (shared-only-routines): Do not add dl-caller.
14925 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
14926 __check_caller.
14927 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
14928 member.
14929 (dl_open_worker): Do not call __check_caller.
14930 (_dl_open): Do not set caller_dl_open member.
14931 * elf/rtld.c (_rtld_global_ro): Do not initialize
14932 _dl_check_caller member.
14933 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
14934 _dl_check_caller member.
14935 (_dl_check_caller): Remove declaration.
14936 * sysdeps/unix/sysv/linux/dl-execstack.c
14937 (_dl_make_stack_executable): Do not call __check_caller.
14938
14939 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
14940
14941 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
14942 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
14943
14944 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14945
14946 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
14947 description.
14948
14949 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14950
14951 [BZ #16335]
14952 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
14953 of 199606L, 200112L, and 200809L.
14954 (_XOPEN_SOURCE): Document special values of 600 and 700.
14955 (_ISOC11_SOURCE): Document macro.
14956 (_ATFILE_SOURCE): Likewise.
14957 (_FORTIFY_SOURCE): Likewise.
14958
14959 2018-02-19 Joseph Myers <joseph@codesourcery.com>
14960
14961 [BZ #15105]
14962 [BZ #19463]
14963 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
14964 and define as weak alias of __ferror_unlocked. Use
14965 libc_hidden_weak.
14966 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
14967 libc_hidden_proto.
14968 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
14969 function if [__USE_EXTERN_INLINES].
14970 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
14971 ferror_unlocked.
14972
14973 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
14974
14975 [BZ #6889]
14976 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
14977
14978 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
14979
14980 [BZ #22818]
14981 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
14982 the GLIBC_2.1 version.
14983
14984 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
14985
14986 [BZ #21508]
14987 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
14988 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
14989 intl/tst-gettext-de.po from po/de.po by removing the
14990 POT-Creation-Date line.
14991 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
14992 ../po/de.po.
14993 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
14994 ../po/de.po.
14995
14996 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14997
14998 * mach/Makefile (headers): Add mach/param.h.
14999 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
15000 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
15001 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
15002 (__ptsname_r): Move implementation to...
15003 (__ptsname_internal): ... new function. Add filling the STP
15004 structure.
15005
15006 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
15007
15008 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15009 idouble to 1 ULP.
15010
15011 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
15012
15013 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15014 syntax.
15015
15016 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
15017
15018 * nptl/Makefile (tst-mutex8-ENV): Delete.
15019 * nptl/tst-mutex8.c (check_type):
15020 Add runtime check if mutex will be elided.
15021
15022 2018-02-15 Joseph Myers <joseph@codesourcery.com>
15023
15024 [BZ #20980]
15025 [BZ #21234]
15026 * manual/install.texi (Configuring and compiling): Describe
15027 passing CC and CFLAGS on configure command line, not as
15028 environment variables. Use @code markup on those variables.
15029 Specify what options go in CC and what go in CFLAGS. Note the
15030 requirement to compile with optimization.
15031 * INSTALL: Regenerated.
15032
15033 [BZ #18124]
15034 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15035 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15036 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15037 __sigprocmask instead of sigprocmask.
15038 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15039 Likewise.
15040 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15041 __sigsetjmp and sigprocmask.
15042
15043 [BZ #15105]
15044 * include/argz.h (argz_next): Use libc_hidden_proto.
15045 (__argz_next): Likewise.
15046 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15047 (argz_next): Use libc_hidden_weak.
15048
15049 [BZ #15105]
15050 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15051 libc_hidden_proto.
15052 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15053 libc_hidden_def.
15054
15055 [BZ #15105]
15056 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15057 libc_hidden_proto.
15058 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15059
15060 [BZ #15105]
15061 [BZ #19463]
15062 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15063 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15064 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15065 (__feof_unlocked): New declaration, and inline function if
15066 [__USE_EXTERN_INLINES].
15067 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15068 instead of feof_unlocked.
15069 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15070 * nss/nsswitch.c (nss_parse_file): Likewise.
15071 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15072 Likewise.
15073 * time/getdate.c (__getdate_r): Likewise.
15074 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15075 Define as macro to call __feof_unlocked.
15076
15077 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15078
15079 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15080
15081 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15082
15083 * math/Makefile: Remove mpexp.c and mplog.c
15084 * sysdeps/i386/fpu/mpexp.c: Delete file.
15085 * sysdeps/i386/fpu/mplog.c: Likewise.
15086 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15087 * sysdeps/ia64/fpu/mplog.c: Likewise.
15088 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15089 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15090 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15091 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15092 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15093 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15094 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15095 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15096 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15097 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15098 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15099 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15100 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15101 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15102 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15103 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15104
15105 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15106
15107 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15108
15109 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15110
15111 * sysdeps/sh/libm-test-ulps: Update.
15112
15113 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15114
15115 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15116 idouble to 1 ULP.
15117
15118 2018-02-12 Zack Weinberg <zackw@panix.com>
15119
15120 [BZ #19239]
15121 * posix/sys/types.h: Don't include sys/sysmacros.h.
15122 * misc/sys/sysmacros.h: Remove the conditional deprecation
15123 warnings for the macros defined by this header.
15124
15125 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15126
15127 * manual/probes.texi: Remove slowexp probes.
15128 * math/Makefile: Remove slowexp.
15129 * sysdeps/generic/math_private.h (__slowexp): Remove.
15130 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15131 document error bounds.
15132 * sysdeps/i386/fpu/slowexp.c: Remove.
15133 * sysdeps/ia64/fpu/slowexp.c: Remove.
15134 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15135 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15136 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15137 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15138 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15139 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15140 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15141 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15142 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15143 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15144 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15145
15146 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15147
15148 [BZ #13932]
15149 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15150 * benchtests/pow-inputs: Update comment for slow path cases.
15151 * manual/probes.texi (slowpow_p10): Delete removed probe.
15152 (slowpow_p10): Likewise.
15153 * math/Makefile: Remove halfulp.c and slowpow.c.
15154 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15155 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15156 (__halfulp): Remove.
15157 (__slowpow): Remove.
15158 * sysdeps/i386/fpu/halfulp.c: Delete file.
15159 * sysdeps/i386/fpu/slowpow.c: Likewise.
15160 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15161 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15162 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15163 improve comments and add error analysis.
15164 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15165 (power1): Remove function:
15166 (log1): Remove error argument, add error analysis.
15167 (my_log2): Remove function.
15168 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15169 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15170 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15171 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15172 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15173 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15174 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15175 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15176 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15177 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15178 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15179 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15180 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15181 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15182
15183 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15184
15185 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15186 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15187
15188 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15189
15190 [BZ #22433]
15191 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15192 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15193 and PTRACE_SETHBPREGS.
15194
15195 2018-02-10 Zack Weinberg <zackw@panix.com>
15196
15197 [BZ #22830]
15198 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15199 correctly.
15200 * malloc/tst-malloc-stats-cancellation.c: New test case.
15201 * malloc/Makefile: Add new test case.
15202
15203 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15204
15205 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15206
15207 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15208
15209 * math/Makefile (libm-narrow-fns): Add add.
15210 (libm-test-funcs-narrow): Likewise.
15211 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15212 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15213 * math/gen-auto-libm-tests.c (test_functions): Add add.
15214 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15215 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15216 (NARROW_ADD_TRIVIAL): Likewise.
15217 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15218 macro.
15219 (__daddl): Likewise.
15220 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15221 dadd.
15222 (CFLAGS-nldbl-dadd.c): New variable.
15223 (CFLAGS-nldbl-fadd.c): Likewise.
15224 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15225 __nldbl_daddl.
15226 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15227 prototype.
15228 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15229 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15230 * math/auto-libm-test-in: Add tests of add.
15231 * math/auto-libm-test-out-narrow-add: New generated file.
15232 * math/libm-test-narrow-add.inc: New file.
15233 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15234 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15235 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15236 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15237 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15238 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15239 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15240 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15241 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15242 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15243 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15244 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15245 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15246 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15247 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15248 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15249 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15250 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15251 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15252 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15253 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15254 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15255 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15256 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15257 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15258 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15259 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15260 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15261 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15262 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15263 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15264 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15265 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15266 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15267 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15268 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15269 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15270 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15271 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15272 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15273 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15274 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15275 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15276 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15277 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15278 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15279
15280 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15281 (f128-pairs): New variable.
15282 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15283 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15284 to CFLAGS.
15285 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15286 Also make tests add $(f128-loader-link) to gnulib-tests.
15287
15288 2018-02-09 DJ Delorie <dj@redhat.com>
15289
15290 [BZ #22827]
15291 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15292 64-bit ELF type for 64-bit ELF objects.
15293
15294 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15295
15296 * math/libm-test-driver.c (snan_tests_arg): New variable.
15297 * math/libm-test-support.h (snan_tests_arg): New declaration.
15298 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15299
15300 * math/Makefile (test-type-pairs): New variable.
15301 (test-type-pairs-f64xf128-yes): Likewise.
15302 (tests): Add test-narrow-macros.
15303 (libm-test-funcs-narrow): New variable.
15304 (libm-test-c-narrow): Likewise.
15305 (generated): Add $(libm-test-c-narrow).
15306 (libm-tests-base-narrow): New variable.
15307 (libm-tests-narrow): Likewise.
15308 (libm-tests): Add $(libm-tests-narrow).
15309 (libm-tests-for-type): Handle $(libm-tests-narrow).
15310 (libm-test-c-narrow-obj): New variable.
15311 ($(libm-test-c-narrow-obj)): New rule.
15312 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15313 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15314 $(o-iterator) to set dependencies and CFLAGS.
15315 * math/gen-auto-libm-tests.c: Document use for narrowing
15316 functions.
15317 (output_for_one_input_case): Take argument NARROW.
15318 (generate_output): Likewise. Update call to
15319 output_for_one_input_case.
15320 (main): Take --narrow option. Update call to generate_output.
15321 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15322 (apply_lit): Update call to _apply_lit.
15323 (apply_arglit): New function.
15324 (parse_args): Handle "a" arguments.
15325 (parse_auto_input): Handle format names using ":".
15326 * math/README.libm-test: Document "a" parameter type.
15327 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15328 (ARG_TYPE_TRUE_MIN): Likewise.
15329 (ARG_TYPE_MAX): Likwise.
15330 (ARG_MIN_EXP): Likewise.
15331 (ARG_MAX_EXP): Likewise.
15332 (ARG_MANT_DIG): Likewise.
15333 (TEST_COND_arg_ibm128): Likewise.
15334 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15335 (TEST_COND_arg_fmt): New macro.
15336 (init_max_error): Update prototype.
15337 * math/libm-test-support.c (test_ibm128): New variable.
15338 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15339 instead of using [TEST_COND_ibm128] conditional.
15340 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15341 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15342 [TEST_NARROW] (TEST_MSG): New definition.
15343 (arg_plus_zero): New macro.
15344 (arg_minus_zero): Likewise.
15345 (arg_plus_infty): Likewise.
15346 (arg_minus_infty): Likewise.
15347 (arg_qnan_value_pl): Likewise.
15348 (arg_qnan_value): Likewise.
15349 (arg_snan_value_pl): Likewise.
15350 (arg_snan_value): Likewise.
15351 (arg_max_value): Likewise.
15352 (arg_min_value): Likewise.
15353 (arg_min_subnorm_value): Likewise.
15354 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
15355 (RUN_TEST_LOOP_aa_f): New macro.
15356 (TEST_SUFF): New macro.
15357 (TEST_SUFF_STR): Likewise.
15358 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
15359 (TEST_COND_any_ibm128): New macro.
15360 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
15361 this_func. Update call to init_max_error.
15362 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15363 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15364 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15365 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15366 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15367 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15368 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15369 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15370 * math/test-math-vector.h (TEST_NARROW): Likewise.
15371 * math/test-arg-double.h: New file.
15372 * math/test-arg-float128.h: Likewise.
15373 * math/test-arg-float32x.h: Likewise.
15374 * math/test-arg-float64.h: Likewise.
15375 * math/test-arg-float64x.h: Likewise.
15376 * math/test-arg-ldouble.h: Likewise.
15377 * math/test-math-narrow.h: Likewise.
15378 * math/test-narrow-macros.c: Likewise.
15379 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
15380 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
15381 test-narrow-macros-ldbl-64.
15382 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
15383
15384 * math/bits/mathcalls-narrow.h: New file.
15385 * include/bits/mathcalls-narrow.h: Likewise.
15386 * math/math-narrow.h: Likewise.
15387 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
15388 (__MATHCALL_NARROW_ARGS_2): Likewise.
15389 (__MATHCALL_NARROW_ARGS_3): Likewise.
15390 (__MATHCALL_NARROW_NORMAL): Likewise.
15391 (__MATHCALL_NARROW_REDIR): Likewise.
15392 (__MATHCALL_NARROW): Likewise.
15393 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
15394 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
15395 defined.
15396 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
15397 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
15398 (libm-narrow-fns): New variable.
15399 (libm-narrow-types-basic): Likewise.
15400 (libm-narrow-types-ldouble-yes): Likewise.
15401 (libm-narrow-types-float128-yes): Likewise.
15402 (libm-narrow-types-float128-alias-yes): Likewise.
15403 (libm-narrow-types): Likewise.
15404 (libm-routines): Add narrowing functions.
15405 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
15406 (libc_feholdexcept_setroundf128): New macro.
15407 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
15408 * sysdeps/ieee754/float128/float128_private.h: Include
15409 <math/math-narrow.h>.
15410 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
15411 Undefine and redefine.
15412 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
15413 (libm_alias_float_ldouble): Undefine and redefine.
15414 (libm_alias_double_ldouble): Likewise.
15415
15416 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
15417
15418 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
15419
15420 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
15421 FPCR/FPSR.
15422
15423 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
15424
15425 * manual/creature.texi: Convert references to gcc.info to gcc.
15426 * manual/stdio.texi: Likewise.
15427 * manual/string.texi: Likewise.
15428
15429 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15430
15431 [BZ #17979]
15432 * posix/bits/types.h (__int_least8_t): New typedef.
15433 (__uint_least8_t): Likewise.
15434 (__int_least16_t): Likewise.
15435 (__uint_least16_t): Likewise.
15436 (__int_least32_t): Likewise.
15437 (__uint_least32_t): Likewise.
15438 (__int_least64_t): Likewise.
15439 (__uint_least64_t): Likewise.
15440 * sysdeps/generic/stdint.h (int_least8_t): Define using
15441 __int_least8_t.
15442 (int_least16_t): Define using __int_least16_t.
15443 (int_least32_t): Define using __int_least32_t.
15444 (int_least64_t): Define using __int_least64_t.
15445 (uint_least8_t): Define using __uint_least8_t.
15446 (uint_least16_t): Define using __uint_least16_t.
15447 (uint_least32_t): Define using __uint_least32_t.
15448 (uint_least64_t): Define using __uint_least64_t.
15449 * wcsmbs/uchar.h: Include <bits/types.h>.
15450 (char16_t): Define using __uint_least16_t conditional only on
15451 [!__USE_ISOCXX11].
15452 (char32_t): Define using __uint_least32_t conditional only on
15453 [!__USE_ISOCXX11].
15454 * wcsmbs/test-char-types.c: New file.
15455 * wcsmbs/Makefile (tests): Add test-char-types.
15456
15457 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15458 version to 4.0.1.
15459
15460 2018-02-07 Zack Weinberg <zackw@panix.com>
15461
15462 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
15463 Delete all contents except for definitions of _G_HAVE_MMAP and
15464 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
15465 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
15466 sysdeps/unix/sysv/linux/_G_config.h. Make same content
15467 change as above.
15468
15469 * libio/libio.h: Don't include bits/_G_config.h here.
15470 Include stddef.h with __need_wchar_t defined. Include
15471 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
15472 Define _IO_iconv_t here, directly.
15473 Don't define _IO_HAVE_ST_BLKSIZE.
15474 * libio/libioP.h: Include _G_config.h here. Move include of
15475 shlib-compat.h up with rest of includes. Simplify conditionals
15476 controlling definition of _IO_JUMPS_OFFSET.
15477
15478 * csu/init.c: Remove always-true #if around entire file.
15479 Don't include stdio.h. Set _IO_stdin_used to hardwired
15480 constant 0x20001, and update commentary.
15481 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
15482 Replace all uses of _G_va_list with __gnuc_va_list.
15483 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
15484 instead of #if _IO_HAVE_ST_BLKSIZE.
15485 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
15486 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
15487 not #ifdef.
15488
15489 * libio/bits/libio.h: Move back to libio/libio.h and adjust
15490 multiple-include guard to match.
15491 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
15492 into this file.
15493 Remove preprocessor conditionals that are always true and/or
15494 redundant to other preprocessor conditionals in the same nest.
15495 Include shlib-compat.h unconditionally.
15496 Error out if _LIBC is not defined, or if _ISOMAC is defined,
15497 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
15498 defined after including stdio.h.
15499 Use __BEGIN_DECLS/__END_DECLS.
15500
15501 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
15502 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
15503 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
15504
15505 2018-02-07 Zack Weinberg <zackw@panix.com>
15506
15507 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
15508 New single-type headers split from _G_config.h.
15509 * libio/bits/types/cookie_io_functions_t.h
15510 * libio/bits/types/struct_FILE.h
15511 New single-type headers split from libio.h.
15512
15513 * libio/Makefile: Install the above new headers. Don't install
15514 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
15515 bits/libio-ldbl.h.
15516 * libio/_G_config.h, libio/libio.h: Delete file.
15517
15518 * libio/bits/libio.h: Remove improper-inclusion guard.
15519 Include stdio.h and don't repeat anything that it does.
15520 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
15521 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
15522 __io_read_fn as cookie_read_function_t,
15523 __io_write_fn as cookie_write_function_t,
15524 __io_seek_fn as cookie_seek_function_t,
15525 __io_close_fn as cookie_close_function_t,
15526 and _IO_cookie_io_functions_t as cookie_io_functions_t.
15527 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
15528 here, in the "compatibility defines" section. Remove an #if 0
15529 block. Use the "body" macros from bits/types/struct_FILE.h to
15530 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
15531 and _IO_ferror_unlocked.
15532 Move prototypes of __uflow and __overflow...
15533
15534 * libio/stdio.h: ...here. Don't include bits/libio.h.
15535 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
15536 directly from stdarg.h. Include bits/types/__fpos_t.h,
15537 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
15538 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
15539 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
15540 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
15541 cookie_io_functions_t, not _IO_cookie_io_functions_t;
15542 __ssize_t, not _IO_ssize_t. Unconditionally define
15543 BUFSIZ as 8192 and EOF as (-1).
15544
15545 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
15546 macros from bits/types/struct_FILE.h instead of _IO_* macros
15547 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
15548 instead of _IO_ssize_t.
15549 * libio/bits/stdio2.h: Similarly.
15550
15551 * libio/iolibio.h: Add multiple-include guard.
15552 Include bits/libio.h after stdio.h.
15553 * libio/libioP.h: Add multiple-include guard.
15554 Include stdio.h and bits/libio.h before iolibio.h.
15555
15556 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
15557 * include/bits/types/cookie_io_functions_t.h
15558 * include/bits/types/struct_FILE.h: New wrappers.
15559
15560 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
15561 Get definitions of _G_fpos_t and _G_fpos64_t from
15562 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
15563 respectively. Remove improper-inclusion guards.
15564
15565 * conform/data/stdio.h-data: Update expectations of va_list.
15566 * scripts/check-installed-headers.sh: Remove special case for
15567 libio.h and _G_config.h.
15568
15569 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15570
15571 [BZ #15105]
15572 [BZ #19463]
15573 * include/sys/sysmacros.h [!_ISOMAC]
15574 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
15575 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
15576 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
15577 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
15578 libc_hidden_proto.
15579 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
15580 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
15581 Likewise.
15582 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
15583 Undefine and redefine to add use __gnu_dev_ prefix.
15584 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
15585 Likewise.
15586 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
15587 and define as hidden inline function.
15588 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
15589 Likewise.
15590 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
15591 Likewise.
15592 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
15593 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
15594 (gnu_dev_minor): Likewise.
15595 (gnu_dev_makedev): Likewise.
15596 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
15597 makedev.
15598 * posix/wordexp.c (exec_comm_child): Likewise.
15599 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
15600 instead of minor and __gnu_dev_major instead of major.
15601 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
15602 __gnu_dev_major instead of major.
15603 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
15604 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
15605 instead of gnu_dev_minor.
15606 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
15607 (SLAVE_P): Likewise.
15608 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
15609 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
15610 instead of major.
15611
15612 [BZ #21313]
15613 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
15614 in another place.
15615 * locale/weightwc.h (findidx): Likewise.
15616
15617 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
15618
15619 * manual/probes.texi (slowlog): Delete documentation of removed probe.
15620 (slowlog_inexact): Likewise
15621 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
15622 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
15623
15624 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
15625
15626 [BZ #22797]
15627 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
15628 missing second underscore to parameter name.
15629
15630 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15631
15632 [BZ #14508]
15633 [BZ #15512]
15634 [BZ #17082]
15635 [BZ #20530]
15636 * bits/byteswap.h: Update file comment. Do not include
15637 <bits/byteswap-16.h>.
15638 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
15639 constant.
15640 (__bswap_16): Define as inline function.
15641 (__bswap_constant_32): Reformat definition.
15642 (__bswap_32): Always define as inline function, not macro, using
15643 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
15644 otherwise __bswap_constant_32.
15645 (__bswap_constant_64): Reformat definition. Do not use
15646 __extension__ here.
15647 (__bswap_64): Always define as inline function, not macro. Use
15648 __extension__ on function definition. Use __builtin_bswap64 if
15649 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
15650 * string/test-endian-file-scope.c: New file.
15651 * string/test-endian-sign-conversion.c: Likewise.
15652 * string/Makefile (headers): Remove bits/byteswap-16.h.
15653 (tests): Add test-endian-file-scope and
15654 test-endian-sign-conversion.
15655 (CFLAGS-test-endian-sign-conversion.c): New variable.
15656 * bits/byteswap-16.h: Remove file.
15657 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
15658 * sysdeps/ia64/bits/byteswap.h: Likewise.
15659 * sysdeps/m68k/bits/byteswap.h: Likewise.
15660 * sysdeps/s390/bits/byteswap-16.h: Likewise.
15661 * sysdeps/s390/bits/byteswap.h: Likewise.
15662 * sysdeps/tile/bits/byteswap.h: Likewise.
15663 * sysdeps/x86/bits/byteswap-16.h: Likewise.
15664 * sysdeps/x86/bits/byteswap.h: Likewise.
15665
15666 [BZ #17721]
15667 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
15668 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
15669 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
15670 199901L] (__restrict): Define to restrict.
15671
15672 [BZ #19667]
15673 * string/testcopy.c: Include <support/support.h>. Do not include
15674 <malloc.h>. Use <support/test-driver.c>.
15675 (main): Rename to do_test. Make static. Use xmalloc instead of
15676 malloc.
15677
15678 [BZ #13575]
15679 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
15680 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
15681 (SSIZE_MAX): Define to INT_MAX.
15682 * posix/test-ssize-max.c: New file.
15683 * posix/Makefile (tests): Add test-ssize-max.
15684
15685 [BZ #19668]
15686 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
15687 <support/support.h>. Do not include <malloc.h>.
15688 (query_auxv): Use xmalloc instead of malloc.
15689
15690 [BZ #14553]
15691 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
15692 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
15693 instead of loff_t.
15694
15695 2018-02-06 Florian Weimer <fweimer@redhat.com>
15696
15697 [BZ #18023]
15698 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15699 Use scratch_buffer instead of extend_alloca.
15700
15701 2018-02-06 Zack Weinberg <zackw@panix.com>
15702
15703 * libio/stdio.h: Don't define getc or putc as macros.
15704 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
15705 not _IO_getc and _IO_putc.
15706
15707 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
15708 * stdio-common/tstgetln.c: Don't redefine ssize_t.
15709
15710 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15711
15712 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
15713 (TCP_FASTOPEN_NO_COOKIE): Likewise.
15714
15715 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
15716
15717 [BZ #14890]
15718 * elf/elf.h (NT_PRFPREG): New macro.
15719 (NT_S390_VXRS_LOW): Likewise.
15720 (NT_S390_VXRS_HIGH): Likewise.
15721 (NT_S390_GS_CB): Likewise.
15722 (NT_S390_GS_BC): Likewise.
15723 (NT_S390_RI_CB): Likewise.
15724
15725 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
15726 (MAP_SYNC): New macro.
15727 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
15728 Likewise.
15729 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
15730 (MAP_SYNC): Likewise.
15731 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
15732 (MAP_SYNC): Likewise.
15733 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
15734 (MAP_SYNC): Likewise.
15735 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
15736 (MAP_SYNC): Likewise.
15737 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
15738 (MAP_SYNC): Likewise.
15739 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
15740 (MAP_SYNC): Likewise.
15741 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
15742 Likewise.
15743 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
15744 Likewise.
15745
15746 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
15747 (MAP_SHARED_VALIDATE): New macro.
15748 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15749 (MAP_SHARED_VALIDATE): Likewise.
15750
15751 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15752
15753 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
15754 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
15755 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
15756
15757 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15758
15759 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
15760 (DT_NUM): Updated to 35.
15761
15762 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15763
15764 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
15765 __builtin_expect with __glibc_likely and __glibc_unlikely.
15766 (elf_machine_rela): Likewise.
15767 (elf_machine_lazy_rel): Likewise.
15768
15769 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15770
15771 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
15772 __builtin_expect with __glibc_likely and __glibc_unlikely.
15773 (elf_machine_lazy_rel): Likewise.
15774
15775 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15776
15777 [BZ #22638]
15778 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
15779 SHARED.
15780 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
15781
15782 2018-02-05 Andreas Schwab <schwab@suse.de>
15783
15784 [BZ #22761]
15785 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
15786 string.
15787
15788 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
15789
15790 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
15791 not check against PTHREAD_STACK_MIN.
15792
15793 2018-02-02 Sean McKean <smckean83@gmail.com>
15794
15795 [BZ #22735]
15796 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
15797
15798 2018-02-02 Florian Weimer <fweimer@redhat.com>
15799
15800 [BZ #22753]
15801 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
15802 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
15803 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
15804 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
15805 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
15806 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
15807 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
15808 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
15809 * manual/llio.texi (Scatter-Gather): Mention offset -1.
15810 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
15811 * misc/tst-preadvwritev2.c (do_test): Call it.
15812 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
15813
15814 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
15815
15816 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
15817
15818 * benchtests/bench-memcmp.c: Print json instead of plain text.
15819
15820 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
15821 every test run.
15822
15823 2018-02-01 Joseph Myers <joseph@codesourcery.com>
15824
15825 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15826 version to 4.15.
15827 (s390_sthyi): New syscall.
15828
15829 * sysdeps/generic/ldbl-classify-compat.h: New file.
15830 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
15831 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
15832 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
15833 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
15834 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
15835 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
15836 * sysdeps/ieee754/dbl-64/s_finite.c: Include
15837 <ldbl-classify-compat.h>.
15838 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15839 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
15840 <ldbl-classify-compat.h>.
15841 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15842 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
15843 <ldbl-classify-compat.h>.
15844 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15845 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
15846 <ldbl-classify-compat.h>.
15847 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15848 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
15849 <ldbl-classify-compat.h>.
15850 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15851 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
15852 <ldbl-classify-compat.h>.
15853 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15854 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
15855 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
15856 * sysdeps/m68k/coldfire/math_private.h: Remove file.
15857 * sysdeps/microblaze/math_private.h: Likewise.
15858 * sysdeps/nios2/math_private.h: Likewise.
15859 * sysdeps/sh/math_private.h: Likewise.
15860
15861 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
15862 * sysdeps/m68k/coldfire/math_private.h: ... here.
15863 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
15864 * sysdeps/tile/math_private.h: Likewise.
15865 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
15866 Remove macro.
15867 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
15868 Likewise.
15869
15870 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
15871 Remove macro.
15872 (libc_fetestexcept): Likewise.
15873 (libc_feupdateenv_test): Likewise.
15874 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
15875 (libc_fetestexcept): Likewise.
15876 (libc_feupdateenv_test): Likewise.
15877 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
15878 (libc_fetestexcept): Likewise.
15879 (libc_feupdateenv_test): Likewise.
15880 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
15881 (libc_fetestexcept): Likewise.
15882 (libc_feupdateenv_test): Likewise.
15883
15884 * sysdeps/generic/math_private.h
15885 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
15886 New inline function.
15887 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
15888 Likewise.
15889
15890 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
15891 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
15892 * sysdeps/generic/math_private.h
15893 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
15894 inline function.
15895 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
15896 Likewise.
15897 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
15898 Likewise.
15899 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
15900 Likewise.
15901 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
15902 Likewise.
15903 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
15904 Likewise.
15905 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
15906 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
15907 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
15908 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
15909 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
15910 (__fegetenv): Likewise.
15911 (fesetenv): Likewise.
15912 (__fesetenv): Likewise.
15913 (feupdateenv): Likewise.
15914 (__feupdateenv): Likewise.
15915 (fegetround): Likewise.
15916 (__fegetround): Likewise.
15917 (fesetround): Likewise.
15918 (__fesetround): Likewise.
15919
15920 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
15921 (feraiseexcept): New macro.
15922 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
15923 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
15924 Remove macro.
15925 (__feraiseexcept): Likewise.
15926 (feclearexcept): Likewise.
15927 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
15928 (__feraiseexcept): Likewise.
15929 (feclearexcept): Likewise.
15930 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
15931 (__feraiseexcept): Likewise.
15932 (feclearexcept): Likewise.
15933 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
15934 (__feraiseexcept): Likewise.
15935 (feclearexcept): Likewise.
15936 (fetestexcept): Likewise.
15937
15938 * sysdeps/m68k/coldfire/math-tests.h: New file.
15939
15940 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
15941 * sysdeps/m68k/bits/fenv.h: ... here.
15942 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
15943 not define.
15944 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
15945 Likewise.
15946 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
15947 Likewise.
15948 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
15949 Likewise.
15950 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
15951 Likewise.
15952 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
15953 Define to 0.
15954 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
15955 (__FE_UNDEFINED): New enum constant.
15956 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
15957 Do not define.
15958 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
15959 Likewise.
15960 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
15961 Likewise.
15962 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
15963 to match generic bits/fenv.h.
15964 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
15965 Do not define.
15966
15967 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
15968 packed on bits.
15969 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
15970 * soft-fp/half.h (union _FP_UNION_H): Likewise.
15971 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
15972 * soft-fp/single.h (union _FP_UNION_S): Likewise.
15973
15974 2018-02-01 Carlos O'Donell <carlos@redhat.com>
15975 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
15976 Joseph Myers <joseph@codesourcery.com>
15977
15978 [BZ #21314]
15979 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
15980 (__log1p): Disable -Wmaybe-uninitialized for -Os around
15981 computation using c.
15982 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
15983 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
15984 computation using c.
15985
15986 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
15987
15988 * version.h (RELEASE): Set to "development".
15989 (VERSION): Set to "2.27.9000".
15990 * NEWS (2.28): New section.
15991
15992 * version.h (RELEASE): Set to "stable".
15993 (VERSION): Set to "2.27".
15994 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
15995
15996 * NEWS: Add the list of bugs fixed in 2.27.
15997
15998 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15999
16000 * stdlib/test-atexit-race-common.c (do_test): Check stack size
16001 against PTHREAD_STACK_MIN.
16002
16003 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16004
16005 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
16006 New entries.
16007 (Rafal Luzynski, Andreas Schwab): Update.
16008
16009 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
16010
16011 [BZ #10871]
16012 * NEWS: List the languages which actually use the alternative
16013 months feature in this release. Also explain that "alt_mon" and
16014 "ab_alt_mon" are optional.
16015
16016 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
16017
16018 [BZ #22765]
16019 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16020
16021 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
16022
16023 * manual/install.texi (Tools for Compilation): Update the newest
16024 versions of gcc, binutils, texinfo, gawk, bison, and sed.
16025 * INSTALL: Regenerated.
16026
16027 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16028
16029 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
16030 instead of __builtin_expect.
16031
16032 2018-01-30 Florian Weimer <fweimer@redhat.com>
16033
16034 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16035 data.
16036 * nss/tst-nss-getpwent.c (do_test): Likewise.
16037
16038 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16039
16040 [BZ #10871]
16041 * localedata/locales/hr_HR (mon): Rename to...
16042 (alt_mon): This.
16043 (mon): Import from CLDR (genitive case).
16044 (d_t_fmt): Update the comment.
16045
16046 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16047
16048 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16049 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16050 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16051
16052 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16053
16054 * mach/Versions: Fix version when __mach_host_self_ was added.
16055 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16056 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16057 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16058 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16059 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16060 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16061 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16062 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16063 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16064 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16065 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16066 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16067 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16068 || to respect codestyle.
16069 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16070 (do_test_bz20181): Rename accordingly.
16071 * malloc/malloc.c: Include <assert.h>.
16072 (assert): Do not define.
16073 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16074 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16075 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16076 * sysdeps/mach/hurd/hp-timing.h: New file.
16077 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16078
16079 2018-01-29 Darius Rad <darius@bluespec.com>
16080
16081 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16082
16083 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16084
16085 * sysdeps/init_array/crti.S (.section .init_array): Add
16086 PREINIT_FUNCTION when defined.
16087 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16088 * config.h.in: Regenerate.
16089 * manual/platform.texi: Add RISC-V documenation for
16090 __riscv_flush_icache.
16091 * sysdeps/riscv/__longjmp.S: New file.
16092 * sysdeps/riscv/backtrace.c: Likewise.
16093 * sysdeps/riscv/bits/endian.h: Likewise.
16094 * sysdeps/riscv/bits/setjmp.h: Likewise.
16095 * sysdeps/riscv/bits/wordsize.h: Likewise.
16096 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16097 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16098 * sysdeps/riscv/dl-trampoline.S: Likewise.
16099 * sysdeps/riscv/gccframe.h: Likewise.
16100 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16101 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16102 * sysdeps/riscv/machine-gmon.h: Likewise.
16103 * sysdeps/riscv/memusage.h: Likewise.
16104 * sysdeps/riscv/setjmp.S: Likewise.
16105 * sysdeps/riscv/sys/asm.h: Likewise.
16106 * sysdeps/riscv/tls-macros.h: Likewise.
16107 * sysdeps/riscv/dl-tls.h: New file.
16108 * sysdeps/riscv/libc-tls.c: Likewise.
16109 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16110 * sysdeps/riscv/nptl/tls.h: Likewise.
16111 * sysdeps/riscv/stackinfo.h: Likewise.
16112 * sysdeps/riscv/bits/fenv.h: New file.
16113 * sysdeps/riscv/e_sqrtl.c: Likewise.
16114 * sysdeps/riscv/fpu_control.h: Likewise.
16115 * sysdeps/riscv/math-tests.h: Likewise.
16116 * sysdeps/riscv/nofpu/Implies: Likewise.
16117 * sysdeps/riscv/sfp-machine.h: Likewise.
16118 * sysdeps/riscv/tininess.h: Likewise.
16119 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16120 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16121 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16122 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16123 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16124 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16125 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16126 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16127 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16128 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16129 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16130 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16131 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16132 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16133 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16134 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16135 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16136 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16137 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16138 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16139 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16140 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16141 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16142 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16143 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16144 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16145 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16146 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16147 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16148 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16149 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16150 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16151 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16152 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16153 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16154 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16155 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16156 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16157 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16158 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16159 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16160 * sysdeps/riscv/rvf/math_private.h: Likewise.
16161 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16162 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16163 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16164 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16165 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16166 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16167 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16168 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16169 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16170 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16171 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16172 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16173 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16174 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16175 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16176 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16177 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16178 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16179 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16180 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16181 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16182 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16183 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16184 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16185 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16186 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16187 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16188 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16189 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16190 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16191 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16192 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16193 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16194 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16195 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16196 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16197 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16198 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16199 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16200 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16201 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16202 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16203 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16204 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16205 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16206 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16207 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16208 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16209 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16210 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16211 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16212 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16213 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16214 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16215 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16216 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16217 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16218 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16219 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16220 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16221 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16222 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16223 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16224 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16225 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16226 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16227 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16228 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16229 * sysdeps/riscv/Implies: New file.
16230 * sysdeps/riscv/Makefile: Likewise.
16231 * sysdeps/riscv/configure: Likewise.
16232 * sysdeps/riscv/configure.ac: Likewise.
16233 * sysdeps/riscv/nptl/Makefile: Likewise.
16234 * sysdeps/riscv/preconfigure: Likewise.
16235 * sysdeps/riscv/rv64/Implies-after: Likewise.
16236 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16237 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16238 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16239 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16240 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16241 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16242 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16243 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16244 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16245 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16246 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16247 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16248 (Config): Likewise.
16249
16250 2018-01-29 Florian Weimer <fweimer@redhat.com>
16251
16252 [BZ #22701]
16253 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16254 libnsl_hidden_proto.
16255 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16256 libnsl_hidden_proto.
16257 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16258 * nis/Makefile (libnsl-routines): Add nss-default only for
16259 build-obsolete-nsl.
16260 * nis/nis_defaults.c (__nis_default_ttl): Add
16261 libnsl_hidden_nolink_def.
16262 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16263 declaration.
16264 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16265 * nis/ypclnt.c (yp_maplist): Likewise.
16266
16267 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16268
16269 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16270 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16271
16272 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16273
16274 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16275 clean -dxfq for git updates when replacing sources.
16276
16277 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16278 --disable-libcilkrts unconditionally, not just for the final GCC
16279 build for Hurd.
16280
16281 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16282 version to 4.15.
16283
16284 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16285
16286 [BZ #10871]
16287 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16288 case).
16289
16290 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16291
16292 [BZ #10871]
16293 * localedata/locales/be_BY (mon): Rename to...
16294 (alt_mon): This, then synchronize with CLDR (nominative case).
16295 (abmon): Rename to...
16296 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16297 (mon): Import from CLDR (genitive case).
16298 (abmon): Likewise.
16299 * localedata/locales/be_BY@latin (mon): Rename to...
16300 (alt_mon): This.
16301 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16302
16303 * localedata/locales/be_BY@latin (lang_name): Reworded to
16304 "biełaruskaja mova".
16305
16306 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16307
16308 [BZ #10871]
16309 * localedata/locales/el_CY (mon): Renamed to...
16310 (alt_mon): This.
16311 (mon): Import from CLDR (genitive case).
16312 * localedata/locales/el_GR: Likewise.
16313
16314 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16315
16316 [BZ #10871]
16317 * localedata/locales/ru_RU (mon): Rename to...
16318 (alt_mon): This.
16319 (abmon): Rename to...
16320 (ab_alt_mon): This.
16321 (mon): Import from CLDR (genitive case).
16322 (abmon): Copy from the old content except the 5th month which is
16323 now in the genitive case, even when abbreviated.
16324 * localedata/locales/ru_UA: Likewise.
16325 * time/tst-strptime.c (day_tests): Add an actual example of
16326 a difference between %b and %Ob in Russian.
16327
16328 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16329
16330 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16331 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16332 a `c' variable.
16333 * resolv/res-close.c: Include <stdlib.h>.
16334 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16335 <sys/wait.h>, <time.h>, <sys/uio.h>.
16336 (NOT_CANCEL_H): Add inclusion guard.
16337 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16338 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16339 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16340 return 0.
16341 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16342 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16343 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16344 instead of void *.
16345 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16346 timer_ptr2id to cast struct timer_node * to void *.
16347 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16348 --disable-libcilkrts to gcc configure.
16349 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16350 and make them the default for now.
16351 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16352 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16353 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16354 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
16355 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
16356 MACH_IPC_COMPAT.
16357 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
16358 __task_terminate would ever return successfully.
16359 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
16360 to global scope.
16361 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
16362 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16363 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16364 critical section to make code simpler and avoid warning.
16365 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16366 critical section to make code simpler and avoid warning.
16367 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16368 const char * instead of char *.
16369 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16370 __hurd_file_name_split, hurd_file_name_split,
16371 __hurd_directory_name_split, hurd_directory_name_split,
16372 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16373 hurd_file_name_path_lookup): Make lookup function parameter take a
16374 const char *name instead of char *name.
16375 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16376 __hurd_directory_name_split): Likewise.
16377 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16378 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
16379 * sysdeps/mach/hurd/check_native.c: New file.
16380 * sysdeps/mach/hurd/check_pf.c: New file.
16381 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
16382 (__freeifaddrs): Define macro to freeifaddrs.
16383 * sysdeps/mach/hurd/libhurduser.abilist: New file.
16384 * sysdeps/mach/libmachuser.abilist: New file.
16385 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
16386 (do_test_bz20181): Rename accordingly.
16387 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
16388 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
16389 <sys/mount.h>.
16390 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
16391 version only if __USE_EXTERN_INLINES is defined.
16392 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
16393 __hurd_sockfail): Likewise.
16394 (_hurd_fd_get): Always declare functions, and provide inline versions
16395 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
16396 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
16397 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
16398 _hurd_port_set): Always declare functions, and provide inline versions
16399 only if __USE_EXTERN_INLINES and _LIBC are defined and
16400 IS_IN(libc).
16401 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
16402 _hurd_critical_section_unlock): Likewise.
16403 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
16404 * __hurd_threadvar_location): Likewise.
16405 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
16406 _hurd_userlink_clear): Likewise.
16407 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
16408 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
16409 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
16410 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
16411 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
16412 __spin_lock_locked): Likewise.
16413 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
16414 __spin_lock_locked): Likewise.
16415 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
16416 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
16417 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
16418 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
16419 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
16420 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
16421 _POSIX_NO_TRUNC): Define to 0.
16422 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
16423 check size against PTHREAD_STACK_MIN.
16424 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
16425 IS_IN(libpthread)]: Include <sigsetops.h>.
16426 * mach/Makefile (user-interfaces): Add mach/gnumach.
16427 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
16428 * sysdeps/mach/configure (mach_interface_list): Regenerate.
16429 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
16430 instead of invalid -1.
16431 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
16432 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
16433 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
16434 <net/ppp_defs.h>.
16435
16436 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
16437
16438 * hurd/fcntl-internal.h: New file.
16439
16440 2018-01-27 James Clarke <jrtc27@jrtc27.com>
16441
16442 * sysdeps/hppa/fpu/libm-test-ulps: Update.
16443
16444 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16445
16446 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
16447
16448 [BZ #22701]
16449 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
16450 Build only shared objects.
16451
16452 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16453
16454 * README: Update for hppa.
16455
16456 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
16457
16458 * sysdeps/sparc/fpu/libm-test-ulps: Update
16459 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
16460
16461 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16462
16463 Revert:
16464
16465 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16466
16467 [BZ #22563]
16468 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16469 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
16470 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16471 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
16472 to feature_1.
16473
16474 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16475
16476 [BZ #22563]
16477 * bits/types/__cancel_jmp_buf_tag.h: New file.
16478 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
16479 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
16480 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
16481 * nptl/Makefile (headers): Add
16482 bits/types/__cancel_jmp_buf_tag.h.
16483 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
16484 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
16485 * sysdeps/nptl/pthread.h: Include
16486 <bits/types/__cancel_jmp_buf_tag.h>.
16487 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
16488 __cancel_jmp_buf.
16489 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
16490
16491 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
16492
16493 [BZ #10871]
16494 * localedata/locales/uk_UA (mon): Renamed to...
16495 (alt_mon): This.
16496 (alt_digits): "0" removed and then renamed to...
16497 (mon): This.
16498 (date_fmt): Definition changed not to use the alternative
16499 digits hack.
16500
16501 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
16502
16503 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
16504 FLAG_RISCV_FLOAT_ABI_DOUBLE.
16505 * elf/elf.h (EF_RISCV_RVC): New define.
16506 (EF_RISCV_FLOAT_ABI): Likewise.
16507 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
16508 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
16509 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16510 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
16511 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
16512 define.
16513 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16514
16515 2018-01-25 Andreas Schwab <schwab@suse.de>
16516
16517 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
16518 single quotes.
16519 * sysdeps/gnu/configure: Regenerate.
16520 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
16521 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
16522 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
16523 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
16524 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
16525 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
16526 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
16527 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
16528
16529 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16530
16531 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
16532 URL, and run autoconf, make it the default for now.
16533
16534 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16535
16536 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16537 soft-float ColdFire configuration.
16538
16539 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
16540 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
16541 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
16542
16543 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
16544 MicroBlaze file.
16545
16546 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
16547 ....
16548 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
16549 ... here.
16550 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
16551 New file.
16552
16553 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
16554 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
16555 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
16556 file.
16557
16558 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16559
16560 [BZ #22742]
16561 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
16562 Rename to __reserved and add comment.
16563 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
16564 Rename to __reserved.
16565
16566 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16567
16568 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16569 i686-gnu configurations.
16570 (Context.run_builds): Include mig, gnumach and hurd in components
16571 considered.
16572 (Context.checkout): Add mig, gnumach and hurd to components.
16573 (Context.checkout_tar): Add URL mappings for mig, gnumach and
16574 hurd.
16575 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
16576 (Config.build): Install gnumach headers, build mig and install
16577 hurd headers for 'gnu' OS.
16578 (Config.install_gnumach_headers): New function.
16579 (Config.install_hurd_headers): Likewise.
16580 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
16581 when building for 'gnu' OS.
16582
16583 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
16584
16585 * manual/tunables.texi (Hardware Capability Tunables): Fix
16586 spelling.
16587
16588 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
16589
16590 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
16591 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
16592 (ALTMON_11, ALTMON_12): Improve documentation.
16593 * manual/time.texi (strftime): Likewise.
16594
16595 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16596
16597 [BZ #10871]
16598 * localedata/locales/pl_PL: Alternative month names added,
16599 primary month names are genitive now.
16600 * time/tst-strptime.c (day_tests): Actually use a genitive case
16601 of a month name in Polish language.
16602
16603 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16604
16605 [BZ #10871]
16606 * manual/locale.texi: Document ALTMON_1..12 constants for
16607 nl_langinfo. Specify when to use ALTMON instead of MON.
16608 * manual/time.texi (strftime, strptime): Document GNU extension
16609 permitting O modifier with %B and %b. Specify when to use
16610 %OB instead of %B.
16611
16612 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16613
16614 [BZ #10871]
16615 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
16616 names, define them as the same as abbreviated month names explicitly.
16617 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
16618 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
16619 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
16620 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
16621 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
16622 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
16623 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
16624 _NL_WABALTMON_12): New enum constants.
16625 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
16626 wab_alt_mon, and ab_alt_mon_defined members.
16627 (time_output): Output ab_alt_mon and wab_alt_mon members.
16628 (time_read): Read them, initialize them as copies of abmon and wabmon
16629 respectively if they are missing, initialize ab_alt_mon_defined.
16630 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
16631 * locale/programs/locfile-kw.h: Regenerate.
16632 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
16633 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
16634 and ru_RU.UTF-8.
16635 * time/strftime_l.c (a_altmonth, aam_len): New macros.
16636 [!COMPILE_WIDE] (ABALTMON_1): New macro.
16637 (__strftime_internal): Handle %Ob and %Oh formats.
16638 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
16639 (__strptime_internal): Handle %Ob and %Oh formats.
16640 * time/tst-strptime.c (day_tests): Add more tests to parse different
16641 forms of month names including the new %Ob format specifier.
16642
16643 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16644
16645 [BZ #10871]
16646 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
16647 define them as the same as primary full month names explicitly.
16648 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
16649 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
16650 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
16651 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
16652 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
16653 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
16654 _NL_WALTMON_12): New enum constants.
16655 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
16656 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
16657 macros.
16658 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
16659 walt_mon, and alt_mon_defined members.
16660 (time_output): Output alt_mon and walt_mon members.
16661 (time_read): Read them, initialize them as copies of mon and wmon
16662 respectively if they are missing, initialize alt_mon_defined.
16663 * locale/programs/locfile-kw.gperf (alt_mon): Define.
16664 * locale/programs/locfile-kw.h: Regenerate.
16665 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
16666 * localedata/tst-langinfo.c (map): Add tests for the new constants
16667 ALTMON_1 .. ALTMON_12.
16668 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
16669 and pl_PL.UTF-8.
16670 * time/strftime_l.c (f_altmonth): New macro.
16671 (__strftime_internal): Handle %OB format.
16672 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
16673 (__strptime_internal): Handle %OB format.
16674 * time/tst-strptime.c (day_tests): Add tests to parse different forms
16675 of month names including the new %OB format specifier.
16676
16677 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16678
16679 [BZ #22685]
16680 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
16681 from ABORT_TRANSACTION.
16682 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
16683 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
16684 ABORT_TRANSACTION_IMPL): Likewise.
16685 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
16686 Linux code, but remove the code that aborts transactions.
16687
16688 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
16689
16690 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
16691
16692 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
16693
16694 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
16695 in date: "2004-14-09" should be "2004-09-14".
16696 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
16697 "2003-15-09" should be "2003-09-15".
16698
16699 2018-01-18 Arjun Shankar <arjun@redhat.com>
16700
16701 [BZ #22343]
16702 [BZ #22774]
16703 CVE-2018-6485
16704 CVE-2018-6551
16705 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
16706 after padding.
16707 (_int_memalign): check for integer overflow before calling
16708 _int_malloc.
16709 * malloc/tst-malloc-too-large.c: New test.
16710 * malloc/Makefile: Add tst-malloc-too-large.
16711
16712 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
16713
16714 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
16715 in date: "2017-24-07" should be "2017-07-24".
16716 * localedata/locales/mai_IN: Likewise.
16717 * localedata/locales/mai_NP: Likewise.
16718
16719 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
16720
16721 * po/ru.po: Update translations.
16722
16723 2018-01-17 Joseph Myers <joseph@codesourcery.com>
16724
16725 [BZ #22719]
16726 * sysdeps/hppa/backtrace.c: New file.
16727
16728 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
16729
16730 [BZ #22715]
16731 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
16732 align La_x86_64_retval to VEC_SIZE.
16733
16734 2018-01-16 Joseph Myers <joseph@codesourcery.com>
16735
16736 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
16737 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
16738
16739 2018-01-16 Florian Weimer <fweimer@redhat.com>
16740
16741 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
16742 Move tst-thread-exit-clobber ...
16743 [$(CXX)] (tests-unsupported): ... to here.
16744
16745 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16746
16747 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
16748 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
16749 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16750 (_dl_aarch64_cap_flags): Update.
16751 (_DL_HWCAP_COUNT): Update.
16752
16753 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16754
16755 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
16756 (_DL_HWCAP_LAST): Remove.
16757 (_DL_HWCAP_COUNT): Move to ...
16758 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16759 (_DL_HWCAP_COUNT): ... here.
16760
16761 2018-01-16 Florian Weimer <fweimer@redhat.com>
16762
16763 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
16764 mode with GNU extensions.
16765
16766 2018-01-15 Alan Hayward <alan.hayward@arm.com>
16767
16768 * elf/elf.h (NT_ARM_SVE): Define.
16769
16770 2018-01-15 Florian Weimer <fweimer@redhat.com>
16771
16772 [BZ #22636]
16773 * nptl/tst-minstack-throw.cc: New file.
16774 * nptl/Makefile (tests): Add tst-minstack-throw.
16775 (LDLIBS-tst-minstack-throw): Link with libstdc++.
16776 [!CXX] (tests-unsupported): Add tst-minstack-throw.
16777
16778 2018-01-15 Joseph Myers <joseph@codesourcery.com>
16779
16780 * scripts/build-many-glibcs.py (Context.checkout): Default
16781 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
16782 version to 1.1.0.
16783
16784 2018-01-13 Carlos O'Donell <carlos@redhat.com>
16785
16786 [BZ #22707]
16787 * elf/elf.h (DF_1_STUB): Define.
16788 (DF_1_PIE): Define.
16789
16790 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16791
16792 [BZ #22697]
16793 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
16794 Do not add 0.5 to integer or out-of-range arguments.
16795
16796 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16797
16798 * po/bg.po: Update translations.
16799 * po/cs.po: Likewise.
16800 * po/de.po: Likewise.
16801 * po/ko.po: Likewise.
16802 * po/pl.po: Likewise.
16803 * po/sv.po: Likewise.
16804 * po/uk.po: Likewise.
16805 * po/vi.po: Likewise.
16806
16807 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16808
16809 * aarch64/start.S (_start): Use __wrap_main.
16810 (__wrap_main): New local symbol.
16811
16812 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16813
16814 [BZ #22679]
16815 CVE-2018-1000001
16816 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
16817 generic_getcwd if the path returned by getcwd syscall is not absolute.
16818 * io/tst-getcwd-abspath.c: New test.
16819 * io/Makefile (tests): Add tst-getcwd-abspath.
16820
16821 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
16822
16823 * malloc/malloc.c (malloc_consolidate): Add size check.
16824
16825 2018-01-12 Florian Weimer <fweimer@redhat.com>
16826
16827 * support/write_message.c (write_message): Preserve errno.
16828 * support/check.c (print_failure): Likewise.
16829 * support/support_test_verify_impl.c (support_test_verify_impl):
16830 Likewise.
16831 * support/support_test_compare_failure.c
16832 (support_test_compare_failure): Likewise.
16833
16834 2018-01-12 Florian Weimer <fweimer@redhat.com>
16835
16836 [BZ #22701]
16837 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
16838 Prevent installation of libnsl.so.
16839 (libnsl-inhibit-o): Do not build (or install) static libraries.
16840
16841 2018-01-12 Egmont Koblinger <egmont@gmail.com>
16842
16843 [BZ #22657]
16844 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
16845 before the day number which may produce a double space.
16846 (date_fmt): Likewise.
16847
16848 2018-01-12 Joseph Myers <joseph@codesourcery.com>
16849
16850 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
16851 instead of fegetenv.
16852
16853 2018-01-11 Joseph Myers <joseph@codesourcery.com>
16854
16855 [BZ #22702]
16856 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
16857 comment to say exceptions are discarded.
16858 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
16859 __fegetenv.
16860 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
16861 be enabled.
16862
16863 2018-01-11 Florian Weimer <fweimer@redhat.com>
16864
16865 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
16866 and error message.
16867
16868 2018-01-11 Florian Weimer <fweimer@redhat.com>
16869
16870 [BZ #22636]
16871 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
16872 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
16873
16874 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16875
16876 [BZ #22693]
16877 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
16878 negative arguments in test for NaN or infinity argument.
16879
16880 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
16881
16882 * po/libc.pot: Regenerate.
16883
16884 2018-01-10 Florian Weimer <fweimer@redhat.com>
16885
16886 [BZ #22636]
16887 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
16888 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
16889
16890 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
16891
16892 * hurd/hurd/fd.h: Include <fcntl.h>
16893 (__hurd_at_flags): New function.
16894 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
16895 with call to __hurd_at_flags.
16896 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
16897 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
16898 __faccessat
16899 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
16900 (__access_noerrno): Use __faccessat_common instead of access_common.
16901 (__access): Likewise.
16902 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
16903 with a call to __faccessat.
16904 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
16905 (__faccessat_common): ... this. Move implementation of __access into it when
16906 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
16907 reauthenticate_cwdir_at helper to implement AT mechanism.
16908 (__faccessat_noerrno): New function, just calls __faccessat_common.
16909 (__faccessat): New function, just calls __faccessat_common.
16910 (faccessat): Define weak alias.
16911
16912 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16913
16914 [BZ #22691]
16915 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16916 (CFLAGS-s_fmaxmagl.c): New variable.
16917 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
16918
16919 [BZ #22690]
16920 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
16921 long int for arguments of possibly overflowing addition or
16922 subtraction.
16923 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
16924
16925 2018-01-09 Joseph Myers <joseph@codesourcery.com>
16926
16927 [BZ #22688]
16928 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16929 (CFLAGS-e_remainderl.c): New variable.
16930
16931 [BZ #22687]
16932 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
16933 variable.
16934 (CFLAGS-s_cacoshl.c): Likewise.
16935 (CFLAGS-s_casinhl.c): Likewise.
16936 (CFLAGS-s_catanl.c): Likewise.
16937 (CFLAGS-s_catanhl.c): Likewise.
16938 (CFLAGS-s_cexpl.c): Likewise.
16939 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
16940 (CFLAGS-s_csinhl.c): Likewise.
16941 (CFLAGS-s_clogl.c): Likewise.
16942 (CFLAGS-s_clog10l.c): Likewise.
16943 (CFLAGS-s_csinl.c): Likewise.
16944 (CFLAGS-s_csqrtl.c): Likewise.
16945
16946 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
16947 2017-01-09 Svante Signell <svante.signell@gmail.com>
16948
16949 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
16950 (_hurd_exec_paths): New function.
16951 * hurd/hurd.h (_hurd_exec): Deprecate function.
16952 (_hurd_exec_paths): Declare function.
16953 * hurd/Versions: Export _hurd_exec_paths.
16954 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
16955 (__execve): Use __getcwd to build absolute path, and use
16956 _hurd_exec_paths instead of _hurd_exec.
16957 * sysdeps/mach/hurd/spawni.c: Likewise.
16958 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
16959 _hurd_exec.
16960
16961 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
16962
16963 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
16964 test instead of failing in case of ENOENT returned by posix_openpt.
16965
16966 2018-01-08 Florian Weimer <fweimer@redhat.com>
16967
16968 resolv: Support binary labels in test framework.
16969 * support/resolv_test.c (struct to_be_freed): Remove.
16970 (struct compressed_name): New.
16971 (allocate_compressed_name, ascii_tolower)
16972 (compare_compressed_name): New functions.
16973 (struct resolv_response_builder): Update type of
16974 compression_offsets for use with tsearch. Rempve to_be_freed.
16975 (response_push_pointer_to_free): Remove function.
16976 (resolv_response_add_name): Rewrite using struct compressed_name
16977 and tsearch instead of hsearch_r.
16978 (response_builder_allocate): Remove initialization of
16979 compression_offsets.
16980 (response_builder_free): Update for removal of to_be_freed. Use
16981 tdestroy instead of hdestroy_r.
16982 * resolv/Makefile (tests): Add tst-resolv-binary.
16983 (tst-resolv-binary): Link with -lresolv -lpthread.
16984
16985 2018-01-08 Florian Weimer <fweimer@redhat.com>
16986
16987 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
16988 time. Pass positive flag instead of negative flag to
16989 support_test_compare_failure.
16990 (support_test_compare_failure): Change negative parameter to
16991 positive.
16992 * support/support_test_compare_failure.c (report)
16993 (support_test_compare_failure): Likewise.
16994 * support/tst-test_compare.c (return_ssize_t, return_int): New.
16995 (do_test): Check int/size_t, ssize_t/size_t comparisons.
16996
16997 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
16998
16999 [BZ #22637]
17000 * nptl/descr.h (stackblock, stackblock_size): Update comments.
17001 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
17002 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
17003 stacksize.
17004 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
17005
17006 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
17007
17008 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17009 Add s_sincosf-sse2 and s_sincosf-fma.
17010 (CFLAGS-s_sincosf-fma.c): New.
17011 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17012 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17013 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17014 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17015 __sincosf is defined.
17016
17017 2018-01-08 Florian Weimer <fweimer@redhat.com>
17018
17019 * nptl/tst-thread-exit-clobber.cc: New file.
17020 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17021 C++11 mode.
17022 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17023 (tests): Add tst-thread-exit-clobber.
17024 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
17025
17026 2018-01-08 Florian Weimer <fweimer@redhat.com>
17027
17028 * support/check.h (support_static_assert): Define.
17029 (TEST_COMPARE): Use it.
17030
17031 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17032
17033 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17034 [!__RLIM_T_MATCHES_RLIM64_T]
17035 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17036 __getrlimit64. Add libc_hidden_weak.
17037
17038 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17039
17040 * elf/elf.h (R_RISCV_NONE): New define.
17041 (R_RISCV_32): Likewise.
17042 (R_RISCV_64): Likewise.
17043 (R_RISCV_RELATIVE): Likewise.
17044 (R_RISCV_COPY): Likewise.
17045 (R_RISCV_JUMP_SLOT): Likewise.
17046 (R_RISCV_TLS_DTPMOD32): Likewise.
17047 (R_RISCV_TLS_DTPMOD64): Likewise.
17048 (R_RISCV_TLS_DTPREL32): Likewise.
17049 (R_RISCV_TLS_DTPREL64): Likewise.
17050 (R_RISCV_TLS_TPREL32): Likewise.
17051 (R_RISCV_TLS_TPREL64): Likewise.
17052 * Makerules (make-link-multidir): Make directories before linking into
17053 them.
17054 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17055 define.
17056 (VDSO_HASH_LINUX_4_15): Likewise.
17057 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17058 in subdirectories of lib.
17059 * nptl/Makefile (/librt.so): Always depend on
17060 "$(shared-thread-library)".
17061
17062 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17063
17064 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17065 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17066 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17067 (___tls_get_addr).
17068 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17069 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17070 "-O2 -march=i686".
17071 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17072 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17073 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17074 * sysdeps/gnu/glob-lstat-compat.c: New file.
17075 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17076 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17077
17078 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17079
17080 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17081 Reserve 16 chars to reloc_addr before calling _itoa_word.
17082
17083 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17084
17085 [BZ #22678]
17086 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17087 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17088
17089 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17090 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17091
17092 * resource/tst-getrlimit.c: Add copyright header.
17093
17094 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17095 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17096
17097 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17098 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17099 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17100 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17101 instead.
17102 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17103 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17104 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17105 RLIM64_INFINITY): Fix values to match the kernel ones.
17106 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17107 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17108 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17109 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17110 getrlimit64@@GLIBC_2_27.
17111 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17112 and setrlimit64.
17113 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17114 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17115 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17116 setrlimit, getrlimit64 and setrlimit64.
17117
17118 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17119
17120 [BZ #22648]
17121 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17122 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17123
17124 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17125
17126 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17127 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17128 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17129
17130 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17131
17132 [BZ #15479]
17133 [BZ #22666]
17134 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17135 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17136
17137 [BZ #15479]
17138 [BZ #22665]
17139 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17140 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17141 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17142 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17143
17144 2018-01-04 Florian Weimer <fweimer@redhat.com>
17145
17146 [BZ #22667]
17147 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17148 Align the stack before calling exit.
17149 * stdlib/tst-makecontext-align.c: New file.
17150 * stdlib/Makefile (tests): Add tst-makecontext-align.
17151
17152 2018-01-04 Florian Weimer <fweimer@redhat.com>
17153
17154 Add support for calling dlvsym from libc.so.
17155 * include/dlfcn.h (__libc_dlvsym): Declare.
17156 * elf/Makefile (tests-static-internal): Add
17157 tst-libc_dlvsym-static.
17158 (tests-internal): Add tst-libc_dlvsym.
17159 (modules-names): Add tst-libc_dlvsym-dso.
17160 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17161 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17162 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17163 object tst-libc_dlvsym-dso.so needs to be built before running
17164 these tests.
17165 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17166 * elf/Versions: Export __libc_dlvsym.
17167 * elf/dl-libc.c (struct do_dlvsym_args): New.
17168 (do_dlvsym, __libc_dlvsym): New functions.
17169 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17170 (_dl_open_hook2): New variable.
17171 (__libc_register_dl_open_hook): Set it.
17172 * elf/tst-libc_dlvsym-dso.c: New file.
17173 * elf/tst-libc_dlvsym-static.c: Likewise.
17174 * elf/tst-libc_dlvsym.c: Likewise.
17175 * elf/tst-libc_dlvsym.h: Likewise.
17176
17177 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17178
17179 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17180 include <sys/mount.h>.
17181
17182 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17183
17184 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17185 Add __NO_MATH_ERRNO__ check.
17186
17187 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17188
17189 * sysdeps/mips/mips32/libm-test-ulps: Update.
17190 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17191
17192 2018-01-02 Florian Weimer <fweimer@redhat.com>
17193
17194 * misc/tst-pselect.c: Add copyright header.
17195
17196 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17197
17198 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17199 comment.
17200 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17201 comment.
17202 (settrlimit): Rename into setrlimit.
17203 (__sttrlimit): Rename into __setrlimit.
17204
17205 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17206 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17207 never defined in that case.
17208
17209 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17210
17211 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17212
17213 * sysdeps/arm/libm-test-ulps: Update.
17214
17215 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17216 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17217
17218 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17219
17220 * NEWS: Add cosf and sincosf to list of optimized functions.
17221
17222 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17223
17224 [BZ #22660]
17225 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17226 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17227 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17228 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17229
17230 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17231
17232 [BZ #22433]
17233 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17234
17235 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17236 making a copy of it.
17237
17238 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17239
17240 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17241 trailing whitespace removed.
17242 * scripts/config.guess: Update to version 2018-01-01.
17243 * scripts/config.sub: Update to version 2018-01-01.
17244 * scripts/move-if-change: Update from gnulib.
17245
17246 * NEWS: Update copyright dates.
17247 * catgets/gencat.c (print_version): Likewise.
17248 * csu/version.c (banner): Likewise.
17249 * debug/catchsegv.sh: Likewise.
17250 * debug/pcprofiledump.c (print_version): Likewise.
17251 * debug/xtrace.sh (do_version): Likewise.
17252 * elf/ldconfig.c (print_version): Likewise.
17253 * elf/ldd.bash.in: Likewise.
17254 * elf/pldd.c (print_version): Likewise.
17255 * elf/sotruss.sh: Likewise.
17256 * elf/sprof.c (print_version): Likewise.
17257 * iconv/iconv_prog.c (print_version): Likewise.
17258 * iconv/iconvconfig.c (print_version): Likewise.
17259 * locale/programs/locale.c (print_version): Likewise.
17260 * locale/programs/localedef.c (print_version): Likewise.
17261 * login/programs/pt_chown.c (print_version): Likewise.
17262 * malloc/memusage.sh (do_version): Likewise.
17263 * malloc/memusagestat.c (print_version): Likewise.
17264 * malloc/mtrace.pl: Likewise.
17265 * manual/libc.texinfo: Likewise.
17266 * nptl/version.c (banner): Likewise.
17267 * nscd/nscd.c (print_version): Likewise.
17268 * nss/getent.c (print_version): Likewise.
17269 * nss/makedb.c (print_version): Likewise.
17270 * posix/getconf.c (main): Likewise.
17271 * scripts/test-installation.pl: Likewise.
17272 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17273
17274 * All files with FSF copyright notices: Update copyright dates
17275 using scripts/update-copyrights.
17276 * locale/programs/charmap-kw.h: Regenerated.
17277 * locale/programs/locfile-kw.h: Likewise.
17278
17279 2017-12-31 Zack Weinberg <zackw@panix.com>
17280
17281 * libio/bits/libio-ldbl.h: Correct check for improper
17282 inclusion. Add own multiple include guard.
17283
17284 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17285 Dmitry V. Levin <ldv@altlinux.org>
17286
17287 [BZ #22625]
17288 CVE-2017-16997
17289 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17290 string token expansion. Check for NULL pointer or empty string possibly
17291 returned by expand_dynamic_string_token.
17292 (decompose_rpath): Check for empty path after dynamic string
17293 token expansion.
17294
17295 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17296
17297 [BZ #22433]
17298 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17299
17300 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17301 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17302 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17303 and PTRACE_SYSCALL.
17304 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17305 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17306 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17307 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17308 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17309 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17310
17311 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17312 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17313 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17314 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17315 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17316 bits/ptrace-shared.h.
17317 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17318 <bits/ptrace-shared.h>.
17319 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17320 __ptrace_peeksiginfo_flags, ptrace): Remove.
17321 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17322 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17323 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17324 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17325 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17326
17327 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17328
17329 [BZ #17804]
17330 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17331 end of the loop. Improve comments.
17332
17333 2017-12-29 Zack Weinberg <zackw@panix.com>
17334
17335 [BZ #22615]
17336 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17337 might be set on success.
17338
17339 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17340
17341 [BZ #22611]
17342 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17343 is unchanged on success.
17344
17345 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17346
17347 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17348 updated.
17349 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17350 expand_dynamic_string_token): Likewise.
17351 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17352 is_path argument.
17353
17354 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
17355 contains ':'.
17356
17357 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
17358 is set and name contains ':', and all code depending on these checks.
17359
17360 2017-12-24 Zack Weinberg <zackw@panix.com>
17361
17362 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17363 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17364 respectively.
17365 * libio/libio.h: Rename the original version of this file to
17366 libio/bits/libio.h. Error out if not included by stdio.h or the
17367 stub libio.h.
17368 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17369 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17370 if not included by bits/libio.h or the stub _G_config.h.
17371 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17372 sysdeps/unix/sysv/linux/bits. Error out if not included by
17373 bits/libio.h or the stub _G_config.h.
17374 * libio/stdio.h: Include bits/libio.h, not libio.h.
17375 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17376 well as libio.h and _G_config.h.
17377
17378 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
17379 * libio/strfile.h, stdio-common/vfscanf.c
17380 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
17381 Include stdio.h, not _G_config.h nor libio.h.
17382 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
17383 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
17384
17385 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
17386
17387 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
17388
17389 [BZ #22347]
17390 * stdlib/getrandom.c (getrandom): Fix comment.
17391 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
17392
17393 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
17394
17395 [BZ #21161]
17396 * manual/arith.texi (strtoul): Fix a typo.
17397
17398 [BZ #22596]
17399 * manual/arith.texi (finite): Fix the description of the return
17400 value.
17401
17402 2017-12-22 Eric Blake <ebb9@byu.net>
17403
17404 Avoid gcc warnings on cygwin
17405 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17406 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17407 Avoid unused variable.
17408
17409 2017-12-22 Florian Weimer <fweimer@redhat.com>
17410
17411 * io/Makefile (routines): Add copy_file_range.
17412 (tests): Add tst-copy_file_range.
17413 (tests-static, tests-internal): Add tst-copy_file_range-compat.
17414 * io/Versions (GLIBC_2.27): Export copy_file_range.
17415 * io/copy_file_range-compat.c: New file.
17416 * io/copy_file_range.c: Likewise.
17417 * io/tst-copy_file_range-compat.c: Likewise.
17418 * io/tst-copy_file_range.c: Likewise.
17419 * manual/llio.texi (Copying File Data): New section.
17420 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
17421 * support/Makefile (libsupport-routines): Add support-xfstat,
17422 xftruncate, xlseek.
17423 * support/support-xfstat.c: New file.
17424 * support/xftruncate.c: Likewise.
17425 * support/xlseek.c: Likewise.
17426 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
17427 * sysdeps/unix/sysv/linux/**.abilist: Update.
17428 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
17429
17430 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
17431
17432 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17433 disable-multi-arch variant to aarch64-linux-gnu.
17434
17435 2017-12-20 Joseph Myers <joseph@codesourcery.com>
17436
17437 * manual/texinfo.tex: Update to version 2017-12-18.20 with
17438 trailing whitespace removed.
17439 * scripts/config.guess: Update to version 2017-12-17.
17440 * scripts/config.sub: Update to version 2017-11-23.
17441 * scripts/install-sh: Update to version 2017-09-23.17.
17442 * scripts/move-if-change: Update to version 2017-09-13 06:45.
17443
17444 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17445
17446 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
17447 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17448 * sysdeps/tile/_mcount.S (__mcount): Likewise.
17449 * sysdeps/tile/crti.S (_init, _fini): Likewise.
17450 * sysdeps/tile/crtn.S: Likewise.
17451 * sysdeps/tile/dl-start.S (_start): Likewise.
17452 * sysdeps/tile/dl-trampoline.S: Likewise.
17453 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
17454 * sysdeps/tile/start.S (_start): Likewise.
17455 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
17456 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
17457 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
17458 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
17459 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
17460 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
17461 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
17462
17463 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
17464 comment.
17465 * sysdeps/tile/preconfigure: Remove tilegx folder.
17466 * sysdeps/tile/tilegx/Implies: Move definitions to ...
17467 * sysdeps/tile/Implies: ... here.
17468 * sysdeps/tile/tilegx/Makefile: Move rules to ...
17469 * sysdeps/tile/Makefile: ... here.
17470 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
17471 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
17472 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
17473 * sysdeps/tile/bits/wordsize.h: ... here.
17474 * sysdeps/tile/tilegx/*: Move to ...
17475 * sysdeps/tile/*: ... here.
17476 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
17477 * sysdeps/tile/tilegx32/Implies: ... here.
17478 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
17479 * sysdeps/tile/tilegx64/Implies: ... here.
17480 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
17481 to ...
17482 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
17483 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
17484 * sysdeps/unix/sysv/linux/tile/*: ... here.
17485 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
17486 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
17487 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
17488 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
17489
17490 * README: Remove tilepro-*-linux-gnu from supported architecture.
17491 * scripts/build-many-glibcs.py: Likewise.
17492 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17493 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
17494 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
17495 elf_machine_matches_host, elf_machine_dynamic,
17496 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
17497 howto, elf_machine_rela): Likewise.
17498 * sysdeps/tile/dl-start.S (_start): Likewise.
17499 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
17500 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
17501 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
17502 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
17503 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
17504 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
17505 Likewise.
17506 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
17507 * sysdeps/tile/preconfigure: Likewise.
17508 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
17509 POINTER_CHK_GUARD): Likewise.
17510 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
17511 * sysdeps/tile/start.S (_start): Likewise.
17512 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
17513 Likewise.
17514 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
17515 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
17516 CMOVNEZ): Remove.
17517 * sysdeps/unix/sysv/linux/tile/bits/environments.h
17518 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
17519 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
17520 Likewise.
17521 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
17522 * sysdeps/tile/tilepro/Implies: Remove file.
17523 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
17524 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
17525 * sysdeps/tile/tilepro/memchr.c: Likewise.
17526 * sysdeps/tile/tilepro/memcpy.S: Likewise.
17527 * sysdeps/tile/tilepro/memset.c: Likewise.
17528 * sysdeps/tile/tilepro/memusage.h: Likewise.
17529 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
17530 * sysdeps/tile/tilepro/strchr.c: Likewise.
17531 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
17532 * sysdeps/tile/tilepro/strlen.c: Likewise.
17533 * sysdeps/tile/tilepro/strrchr.c: Likewise.
17534 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
17535 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
17536 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
17537 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
17538 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
17539 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
17540 Likewise.
17541 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
17542 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
17543 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
17544 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
17545 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
17546 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
17547 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
17548 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
17549 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
17550 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
17551 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
17552 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
17553 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
17554 tilepro mention in comment.
17555
17556 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
17557 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
17558 * nptl/pthread_join_common.c: New file: common function used on
17559 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
17560 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
17561 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
17562 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
17563 (cleanup): Move definition to pthread_join_common.c.
17564 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
17565 Remove superflous checks.
17566 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
17567 Likewise.
17568
17569 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
17570
17571 * sysdeps/aarch64/libm-test-ulps: Update.
17572
17573 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17574
17575 * sysdeps/aarch64/memset.S (MEMSET): Define.
17576
17577 2017-12-20 Florian Weimer <fweimer@redhat.com>
17578
17579 [BZ #22635]
17580 nptl: Provide full implementation of pthread_self in libc.so.
17581 * nptl/Makefile (routines): Add pthread_self.
17582 (libpthread-routines): Replace pthread_self with
17583 compat-pthread_self.
17584 * nptl/forward.c (pthread_self): Remove.
17585 * nptl/nptl-init.c (pthread_functions): Do not initialize
17586 ptr_pthread_self.
17587 * nptl/pthread_self.c (pthread_self): Remove weak alias.
17588 * nptl/compat-pthread_self.c: New file.
17589 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
17590 Remove ptr_pthread_self.
17591
17592 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
17593
17594 * posix/regcomp.c: Fix spelling in comments.
17595 * posix/regex.h: Likewise.
17596 * posix/regex_internal.c: Likewise.
17597 * posix/regexec.c: Likewise.
17598
17599 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17600
17601 [BZ #22377]
17602 * math/Makefile [C++] (tests): Add test for iseqsig.
17603 * math/math.h [C++] (iseqsig): New implementation, which does
17604 not rely on __MATH_TG/__builtin_types_compatible_p.
17605 * math/test-math-iseqsig.cc: New file.
17606 * sysdeps/powerpc/powerpc64le/Makefile
17607 (CFLAGS-test-math-iseqsig.cc): New variable.
17608
17609 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
17610
17611 * elf/dl-load.c (is_trusted_path): Remove.
17612 (fillin_rpath): Remove check_trusted argument and its use,
17613 all callers changed.
17614
17615 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17616
17617 [BZ #22630]
17618 * Makeconfig (link-pie-before-libc): Replace -pie with
17619 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
17620 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
17621 (tst-dlopen-aout-no-pie): New.
17622 (LDFLAGS-tst-prelink): Removed.
17623 (tst-prelink-no-pie): New.
17624 (LDFLAGS-tst-main1): Removed.
17625 (tst-main1-no-pie): New.
17626 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
17627 (tst-gmon-no-pie): New.
17628
17629 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17630
17631 * manual/install.texi: Document that --enable-static-pie
17632 implies PIE.
17633 * INSTALL: Regenerated.
17634
17635 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
17636
17637 [BZ #21309]
17638 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
17639 unsigned.
17640
17641 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17642
17643 Revert:
17644
17645 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17646
17647 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17648
17649 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17650
17651 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17652 <errno.h>. Include "eexp.tbl".
17653 (half): New constant.
17654 (one): Likewise.
17655 (__ieee754_exp): Rewrite.
17656 (__slowexp): Remove prototype.
17657 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17658 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17659 * sysdeps/i386/fpu/slowexp.c: Likewise.
17660 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17661 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17662 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17663 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17664 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17665 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17666 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17667 comment.
17668 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17669 (CPPFLAGS-slowexp.c): Remove variable.
17670 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17671 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17672 (CFLAGS-slowexp-fma.c): Remove variable.
17673 (CFLAGS-slowexp-fma4.c): Likewise.
17674 (CFLAGS-slowexp-avx.c): Likewise.
17675 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17676 define as macro.
17677 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17678 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17679 * math/Makefile (type-double-routines): Remove slowexp.
17680 * manual/probes.texi (slowexp_p6): Remove.
17681 (slowexp_p32): Likewise.
17682
17683 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17684
17685 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
17686 arithmetic.
17687
17688 * lib/glob.c (glob): Do not pass NULL to mempcpy.
17689
17690 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17691
17692 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17693
17694 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17695
17696 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17697 <errno.h>. Include "eexp.tbl".
17698 (half): New constant.
17699 (one): Likewise.
17700 (__ieee754_exp): Rewrite.
17701 (__slowexp): Remove prototype.
17702 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17703 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17704 * sysdeps/i386/fpu/slowexp.c: Likewise.
17705 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17706 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17707 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17708 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17709 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17710 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17711 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17712 comment.
17713 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17714 (CPPFLAGS-slowexp.c): Remove variable.
17715 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17716 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17717 (CFLAGS-slowexp-fma.c): Remove variable.
17718 (CFLAGS-slowexp-fma4.c): Likewise.
17719 (CFLAGS-slowexp-avx.c): Likewise.
17720 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17721 define as macro.
17722 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17723 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17724 * math/Makefile (type-double-routines): Remove slowexp.
17725 * manual/probes.texi (slowexp_p6): Remove.
17726 (slowexp_p32): Likewise.
17727
17728 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17729 James Clarke <jrtc27@jrtc27.com>
17730
17731 [BZ #22603]
17732 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
17733 addition.
17734
17735 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17736
17737 [BZ #22605]
17738 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
17739 code.
17740
17741 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17742
17743 [BZ #22563]
17744 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17745 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17746 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17747 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17748 to feature_1.
17749
17750 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17751
17752 [BZ #22563]
17753 * bits/types/__cancel_jmp_buf_tag.h: New file.
17754 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17755 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17756 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17757 * nptl/Makefile (headers): Add
17758 bits/types/__cancel_jmp_buf_tag.h.
17759 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17760 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17761 * sysdeps/nptl/pthread.h: Include
17762 <bits/types/__cancel_jmp_buf_tag.h>.
17763 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17764 __cancel_jmp_buf.
17765 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17766
17767 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17768
17769 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17770 --enable-static-pie variants to x86_64, x32 and i686.
17771
17772 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17773
17774 [BZ #22631]
17775 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
17776 argument for attrubutes. All callers changed.
17777 (__inline_mathop1): Likewise. All callers changed.
17778 (__inline_mathop): Likewise. All callers changed.
17779 [__USE_MISC] (scalbn): Use __inline_forward instead of
17780 __inline_forward_c.
17781 [__USE_ISOC99] (scalbln): Likewise.
17782 [__USE_ISOC99] (nearbyint): Likewise.
17783 [__USE_ISOC99] (lrint): Likewise.
17784 [__USE_MISC] (scalbnf): Likewise.
17785 [__USE_ISOC99] (scalblnf): Likewise.
17786 [__USE_ISOC99] (nearbyintf): Likewise.
17787 [__USE_ISOC99] (lrintf): Likewise.
17788 [__USE_MISC] (scalbnl): Likewise.
17789 [__USE_ISOC99] (scalblnl): Likewise.
17790 [__USE_ISOC99] (nearbyintl): Likewise.
17791 [__USE_ISOC99] (lrintl): Likewise.
17792 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
17793 __inline_mathop and __m81_defun changed.
17794
17795 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
17796 CPU or FPU for ARM hard-float configurations.
17797
17798 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17799
17800 * nptl/tst-attr3.c: Include <libc-diag.h>.
17801 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
17802
17803 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
17804
17805 * string/tester.c (test_strncat): Also disable -Warray-bounds
17806 warnings for two tests.
17807
17808 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17809
17810 [BZ #22614]
17811 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
17812 $(cc-pie-default) == yes.
17813 * config.make.in (cc-pie-default): New.
17814 * configure.ac (libc_cv_pie_default): Renamed to ...
17815 (libc_cv_cc_pie_default): This.
17816 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
17817 * configure: Regenerated.
17818
17819 2017-12-18 Florian Weimer <fweimer@redhat.com>
17820
17821 [BZ #20204]
17822 ld.so: Harden dl-libc/libdl hooks.
17823 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
17824 (rtld_active): New function.
17825 * dlfcn/dladdr.c (__dladdr): Call it.
17826 * dlfcn/dladdr1.c (__dladdr1): Likewise.
17827 * dlfcn/dlclose.c (__dlcose): Likewise.
17828 * dlfcn/dlerror.c (__dlerror): Likewise.
17829 * dlfcn/dlinfo.c (__dlinfo): Likewise.
17830 * dlfcn/dlmopen.c (__dlmopen): Likewise.
17831 * dlfcn/dlopen.c (__dlopen): Likewise.
17832 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
17833 * dlfcn/dlsym.c (__dlsym): Likewise.
17834 * dlfcn/dlvsym.c (__dlvsym): Likewise.
17835 * libio/vtables.c (_IO_vtable_check): Likewise.
17836 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
17837 (__libc_dlclose): Likewise.
17838 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
17839 assignment.
17840
17841 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17842
17843 [BZ #22446]
17844 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
17845 buffers for readlink input and output.
17846
17847 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
17848
17849 [BZ #22624]
17850 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
17851 inhibit_stack_protector.
17852
17853 [BZ #22624]
17854 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
17855 inhibit_stack_protector.
17856
17857 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
17858
17859 [BZ #22627]
17860 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
17861 code and invocation.
17862
17863 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
17864
17865 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
17866
17867 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
17868
17869 [BZ #22505]
17870 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
17871
17872 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17873
17874 * sysdeps/s390/fpu/libm-test-ulps: Update.
17875
17876 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17877
17878 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17879
17880 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17881
17882 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
17883 constants to s_sincosf.h file.
17884 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
17885 * sysdeps/ieee754/flt-32/s_sincosf.c: New
17886 implementation.
17887 * sysdeps/ieee754/flt-32/s_sincosf.h:
17888 New file.
17889
17890 2017-12-12 Carlos O'Donell <carlos@redhat.com>
17891
17892 [BZ #14681]
17893 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
17894 before mtrace.
17895
17896 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
17897
17898 [BZ #19574]
17899 * INSTALL: Regenerated.
17900 * Makeconfig (real-static-start-installed-name): New.
17901 (pic-default): Updated for --enable-static-pie.
17902 (pie-default): New for --enable-static-pie.
17903 (default-pie-ldflag): Likewise.
17904 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
17905 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
17906 Replace $(static-start-installed-name) with
17907 $(real-static-start-installed-name).
17908 (+prectorT): Updated for --enable-static-pie.
17909 (+postctorT): Likewise.
17910 (CFLAGS-.o): Add $(pie-default).
17911 (CFLAGS-.op): Likewise.
17912 * NEWS: Mention --enable-static-pie.
17913 * config.h.in (ENABLE_STATIC_PIE): New.
17914 * configure.ac (--enable-static-pie): New configure option.
17915 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
17916 (have-static-pie): Likewise.
17917 Enable static PIE if linker supports --no-dynamic-linker.
17918 (ENABLE_STATIC_PIE): New AC_DEFINE.
17919 (enable-static-pie): New LIBC_CONFIG_VAR.
17920 * configure: Regenerated.
17921 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
17922 gr$(start-installed-name) for --enable-static-pie.
17923 (extra-objs): Likewise.
17924 (install-lib): Likewise.
17925 (extra-objs): Add static-reloc.o and static-reloc.os
17926 ($(objpfx)$(start-installed-name)): Also depend on
17927 $(objpfx)static-reloc.o.
17928 ($(objpfx)r$(start-installed-name)): New.
17929 ($(objpfx)g$(start-installed-name)): Also depend on
17930 $(objpfx)static-reloc.os.
17931 ($(objpfx)gr$(start-installed-name)): New.
17932 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
17933 in libc.a.
17934 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
17935 initimage.
17936 * csu/static-reloc.c: New file.
17937 * elf/Makefile (routines): Add dl-reloc-static-pie.
17938 (elide-routines.os): Likewise.
17939 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
17940 (tst-tls1-static-non-pie-no-pie): New.
17941 * elf/dl-reloc-static-pie.c: New file.
17942 * elf/dl-support.c (_dl_get_dl_main_map): New function.
17943 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
17944 STATIC_PIE_BOOTSTRAP.
17945 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
17946 * gmon/Makefile (tests): Add tst-gmon-static-pie.
17947 (tests-static): Likewise.
17948 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
17949 (tst-gmon-static-no-pie): New.
17950 (CFLAGS-tst-gmon-static-pie.c): Likewise.
17951 (CRT-tst-gmon-static-pie): Likewise.
17952 (tst-gmon-static-pie-ENV): Likewise.
17953 (tests-special): Likewise.
17954 ($(objpfx)tst-gmon-static-pie.out): Likewise.
17955 (clean-tst-gmon-static-pie-data): Likewise.
17956 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
17957 * gmon/tst-gmon-static-pie.c: New file.
17958 * manual/install.texi: Document --enable-static-pie.
17959 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
17960 (_dl_get_dl_main_map): Likewise.
17961 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
17962 * sysdeps/x86_64/configure.ac: Likewise.
17963 * sysdeps/i386/configure: Regenerated.
17964 * sysdeps/x86_64/configure: Likewise.
17965 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
17966 (ASFLAGS-.op): Likewise.
17967
17968 2017-12-15 Joseph Myers <joseph@codesourcery.com>
17969
17970 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
17971 * posix/tst-mmap-offset.c (fname): Use /tmp.
17972 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
17973
17974 2017-12-15 Steve Ellcey <sellcey@cavium.com>
17975
17976 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
17977
17978 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
17979
17980 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
17981 errno.
17982
17983 2017-12-15 Joseph Myers <joseph@codesourcery.com>
17984
17985 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
17986 --with-float=hard for arm-linux-gnueabihf configurations.
17987
17988 [BZ #14121]
17989 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
17990 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
17991 ($(mo-installed)): Use $(objpfx)%.mo.
17992 (realclean): Remove rule.
17993
17994 * po/Makefile (linguas): Remove rule and dependencies.
17995 (linguas.mo): Likewise.
17996 (.PHONY): Do not depend on linguas and linguas.mo.
17997 (podir): Remove variable.
17998 (pofiles): Likewise.
17999 [$(pofiles)] (%.po): Remove rule.
18000
18001 * sysdeps/sparc/sparc32/Makefile
18002 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
18003 start-of-line whitespace in argument of echo.
18004 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
18005 with whitespace. Generate __wrap_.udiv alias.
18006 * sysdeps/sparc/sparc32/rem.S: Regenerated.
18007 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
18008 * sysdeps/sparc/sparc32/udiv.S: Likewise.
18009 * sysdeps/sparc/sparc32/urem.S: Likewise.
18010
18011 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18012
18013 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18014 for aligned inputs.
18015
18016 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
18017
18018 * benchtests/bench-strcmp.c: Print output in JSON format.
18019
18020 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18021
18022 2017-12-14 Florian Weimer <fweimer@redhat.com>
18023
18024 [BZ #22607]
18025 CVE-2017-1000409
18026 * elf/dl-load.c (_dl_init_paths): Compute number of components in
18027 the expanded path string.
18028
18029 2017-12-14 Florian Weimer <fweimer@redhat.com>
18030
18031 [BZ #22606]
18032 CVE-2017-1000408
18033 * elf/dl-load.c (system_dirs): Update comment.
18034 (nsystem_dirs_len): Use array_length.
18035 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18036
18037 2017-12-14 Florian Weimer <fweimer@redhat.com>
18038
18039 Simplify compiling most of support/ outside of glibc.
18040 * support/check_addrinfo.c: Include <string.h>.
18041 * support/check_dns_packet.c: Likewise.
18042 * support/check_hostent.c: Likewise.
18043 * support/support_can_chroot.c: Include <support/xunistd.h>.
18044 * support/support_format_addrinfo.c: Include <stdlib.h>
18045 * support/support_format_dns_packet.c: Include <stdbool.h>.
18046 * support/support_format_hostent.c: Include <stdlib.h>.
18047 * support/support_format_netent.c: Likewise.
18048 * support/support_write_string.c: Include <support/xunistd.h>.
18049 * support/xdlfcn.c: Include <stddef.h>.
18050
18051 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18052
18053 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18054
18055 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18056 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18057
18058 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18059 (sysdeps_routines): Add memset-niagara7.
18060 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18061 Likewise.
18062 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18063 file.
18064 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18065 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18066 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18067 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18068 Add niagara7 option.
18069 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18070 memset.
18071
18072 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18073 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18074 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18075 Likewise.
18076 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18077 New file.
18078 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18079 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18080 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18081 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18082 and __memmove_niagara7.
18083 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18084 Add niagara7 option.
18085 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18086 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18087 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18088 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18089 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18090
18091 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18092
18093 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18094 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18095 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18096 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18097
18098 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18099 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18100 _dl_sparc_cap_flags array.
18101 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18102
18103 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18104
18105 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18106 time whenever possible.
18107
18108 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18109
18110 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18111 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18112
18113 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18114
18115 * soft-fp/fmadf4.c: Move to ....
18116 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18117 * soft-fp/fmasf4.c: Move to ....
18118 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18119 * soft-fp/fmatf4.c: Move to ....
18120 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18121 * sysdeps/ieee754/soft-fp/Makefile: New file.
18122 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18123 * sysdeps/arm/preconfigure: Regenerated.
18124 * sysdeps/arm/nofpu/Implies: New file.
18125 * sysdeps/arm/s_fma.c: Remove file.
18126 * sysdeps/arm/s_fmaf.c: Likewise.
18127 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18128 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18129 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18130 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18131 * sysdeps/microblaze/s_fma.c: Remove file.
18132 * sysdeps/microblaze/s_fmaf.c: Likewise.
18133 * sysdeps/mips/mips32/nofpu/Implies: New file.
18134 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18135 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18136 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18137 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18138 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18139 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18140 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18141 implementation.
18142 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18143 * sysdeps/nios2/s_fma.c: Remove file.
18144 * sysdeps/nios2/s_fmaf.c: Likewise.
18145 * sysdeps/sh/nofpu/Implies: New file.
18146 * sysdeps/sh/s_fma.c: Remove file.
18147 * sysdeps/sh/s_fmaf.c: Likewise.
18148 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18149 * sysdeps/tile/s_fma.c: Remove file.
18150 * sysdeps/tile/s_fmaf.c: Likewise.
18151
18152 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18153
18154 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18155 Add s_cosf-sse2 and s_cosf-fma.
18156 (CFLAGS-s_cosf-fma.c): New.
18157 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18158 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18159 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18160
18161 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18162
18163 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18164
18165 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18166
18167 * libio/Makefile (tests): Add tst-bz22415.
18168 (tst-bz22415-ENV): New rule.
18169 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18170 (tests-special): Add tst-bz22415-mem.out.
18171 ($(objpfx)tst-bz22415-mem.out): New rule.
18172 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18173 in case of a successful seek operation.
18174 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18175 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18176 buffer is required.
18177 * libio/tst-bz22415.c: New test.
18178
18179 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18180
18181 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18182
18183 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18184 __IPC_64 to 0 to avoid IPC_64 being set.
18185
18186 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18187
18188 [BZ #22593]
18189 * math/bits/mathcalls.h (nextafter): Remove const.
18190 (nexttoward): Likewise.
18191
18192 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18193
18194 * configure.ac (--with-fp): Remove configure option.
18195 (with_fp_cond): New variable.
18196 (libc_cv_with_fp): New configure test. Use this variable instead
18197 of with_fp.
18198 * configure: Regenerated.
18199 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18200 * manual/install.texi (Configuring and compiling): Remove
18201 --without-fp.
18202 * INSTALL: Regenerated.
18203 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18204 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18205 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18206 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18207 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18208 use --without-fp to configure glibc.
18209
18210 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18211
18212 * manual/locale.texi (nl_langinfo): Fix a typo.
18213
18214 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18215
18216 [BZ #22588]
18217 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18218
18219 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18220
18221 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18222 (CFLAGS-argp-parse.c): Likewise.
18223 (CFLAGS-argp-fmtstream.c): Likewise.
18224 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18225 (CPPFLAGS-sha512-crypt.c): Likewise.
18226 (CPPFLAGS-md5-crypt.c): Likewise.
18227 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18228 (CFLAGS-stack_chk_fail_local.c): Likewise.
18229 (CFLAGS-backtrace.c): Likewise.
18230 (CFLAGS-sprintf_chk.c): Likewise.
18231 (CFLAGS-snprintf_chk.c): Likewise.
18232 (CFLAGS-vsprintf_chk.c): Likewise.
18233 (CFLAGS-vsnprintf_chk.c): Likewise.
18234 (CFLAGS-asprintf_chk.c): Likewise.
18235 (CFLAGS-vasprintf_chk.c): Likewise.
18236 (CFLAGS-obprintf_chk.c): Likewise.
18237 (CFLAGS-dprintf_chk.c): Likewise.
18238 (CFLAGS-vdprintf_chk.c): Likewise.
18239 (CFLAGS-printf_chk.c): Likewise.
18240 (CFLAGS-fprintf_chk.c): Likewise.
18241 (CFLAGS-vprintf_chk.c): Likewise.
18242 (CFLAGS-vfprintf_chk.c): Likewise.
18243 (CFLAGS-gets_chk.c): Likewise.
18244 (CFLAGS-fgets_chk.c): Likewise.
18245 (CFLAGS-fgets_u_chk.c): Likewise.
18246 (CFLAGS-fread_chk.c): Likewise.
18247 (CFLAGS-fread_u_chk.c): Likewise.
18248 (CFLAGS-swprintf_chk.c): Likewise.
18249 (CFLAGS-vswprintf_chk.c): Likewise.
18250 (CFLAGS-wprintf_chk.c): Likewise.
18251 (CFLAGS-fwprintf_chk.c): Likewise.
18252 (CFLAGS-vwprintf_chk.c): Likewise.
18253 (CFLAGS-vfwprintf_chk.c): Likewise.
18254 (CFLAGS-fgetws_chk.c): Likewise.
18255 (CFLAGS-fgetws_u_chk.c): Likewise.
18256 (CFLAGS-read_chk.c): Likewise.
18257 (CFLAGS-pread_chk.c): Likewise.
18258 (CFLAGS-pread64_chk.c): Likewise.
18259 (CFLAGS-recv_chk.c): Likewise.
18260 (CFLAGS-recvfrom_chk.c): Likewise.
18261 (CFLAGS-tst-longjmp_chk.c): Likewise.
18262 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18263 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18264 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18265 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18266 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18267 (CFLAGS-tst-chk1.c): Likewise.
18268 (CFLAGS-tst-chk2.c): Likewise.
18269 (CFLAGS-tst-chk3.c): Likewise.
18270 (CFLAGS-tst-chk4.cc): Likewise.
18271 (CFLAGS-tst-chk5.cc): Likewise.
18272 (CFLAGS-tst-chk6.cc): Likewise.
18273 (CFLAGS-tst-lfschk1.c): Likewise.
18274 (CFLAGS-tst-lfschk2.c): Likewise.
18275 (CFLAGS-tst-lfschk3.c): Likewise.
18276 (CFLAGS-tst-lfschk4.cc): Likewise.
18277 (CFLAGS-tst-lfschk5.cc): Likewise.
18278 (CFLAGS-tst-lfschk6.cc): Likewise.
18279 (CFLAGS-tst-ssp-1.c): Likewise.
18280 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18281 (CFLAGS-scandir64.c): Likewise.
18282 (CFLAGS-scandir-tail.c): Likewise.
18283 (CFLAGS-scandir64-tail.c): Likewise.
18284 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18285 (CFLAGS-dl-tunables.c): Likewise.
18286 (CFLAGS-dl-runtime.c): Likewise.
18287 (CFLAGS-dl-lookup.c): Likewise.
18288 (CFLAGS-dl-iterate-phdr.c): Likewise.
18289 (CFLAGS-vismain.c): Likewise.
18290 (CFLAGS-tst-linkall-static.c): Likewise.
18291 (CFLAGS-tst-linkall-static.c): Likewise.
18292 (CPPFLAGS-dl-load.c): Likewise.
18293 (CFLAGS-ldconfig.c): Likewise.
18294 (CFLAGS-dl-cache.c): Likewise.
18295 (CFLAGS-cache.c): Likewise.
18296 (CFLAGS-rtld.c): Likewise.
18297 (CFLAGS-multiload.c): Likewise.
18298 (CFLAGS-filtmod1.c): Likewise.
18299 (CFLAGS-tst-align.c): Likewise.
18300 (CFLAGS-tst-align2.c): Likewise.
18301 (CFLAGS-tst-alignmod.c): Likewise.
18302 (CFLAGS-tst-alignmod2.c): Likewise.
18303 (CPPFLAGS-tst-execstack.c): Likewise.
18304 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18305 (CFLAGS-tst-latepthreadmod.c): Likewise.
18306 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18307 (CFLAGS-getgrnam_r.c): Likewise.
18308 (CFLAGS-getgrent_r.c): Likewise.
18309 (CFLAGS-getgrent.c): Likewise.
18310 (CFLAGS-fgetgrent.c): Likewise.
18311 (CFLAGS-fgetgrent_r.c): Likewise.
18312 (CFLAGS-putgrent.c): Likewise.
18313 (CFLAGS-initgroups.c): Likewise.
18314 (CFLAGS-getgrgid.c): Likewise.
18315 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18316 (CFLAGS-getsgent.c): Likewise.
18317 (CFLAGS-fgetsgent.c): Likewise.
18318 (CFLAGS-fgetsgent_r.c): Likewise.
18319 (CFLAGS-putsgent.c): Likewise.
18320 (CFLAGS-getsgnam.c): Likewise.
18321 (CFLAGS-getsgnam_r.c): Likewise.
18322 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18323 (CFLAGS-iconv_charmap.c): Likewise.
18324 (CFLAGS-dummy-repertoire.c): Likewise.
18325 (CFLAGS-charmap.c): Likewise.
18326 (CFLAGS-linereader.c): Likewise.
18327 (CFLAGS-simple-hash.c): Likewise.
18328 (CFLAGS-gconv_conf.c): Likewise.
18329 (CFLAGS-iconvconfig.c): Likewise.
18330 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18331 (CFLAGS-gethstbyad.c): Likewise.
18332 (CFLAGS-gethstbynm_r.c): Likewise.
18333 (CFLAGS-gethstbynm.c): Likewise.
18334 (CFLAGS-gethstbynm2_r.c): Likewise.
18335 (CFLAGS-gethstbynm2.c): Likewise.
18336 (CFLAGS-gethstent_r.c): Likewise.
18337 (CFLAGS-gethstent.c): Likewise.
18338 (CFLAGS-rcmd.c): Likewise.
18339 (CFLAGS-getnetbynm_r.c): Likewise.
18340 (CFLAGS-getnetbynm.c): Likewise.
18341 (CFLAGS-getnetbyad_r.c): Likewise.
18342 (CFLAGS-getnetbyad.c): Likewise.
18343 (CFLAGS-getnetent_r.c): Likewise.
18344 (CFLAGS-getnetent.c): Likewise.
18345 (CFLAGS-getaliasent_r.c): Likewise.
18346 (CFLAGS-getaliasent.c): Likewise.
18347 (CFLAGS-getrpcent_r.c): Likewise.
18348 (CFLAGS-getrpcent.c): Likewise.
18349 (CFLAGS-getservent_r.c): Likewise.
18350 (CFLAGS-getservent.c): Likewise.
18351 (CFLAGS-getprtent_r.c): Likewise.
18352 (CFLAGS-getprtent.c): Likewise.
18353 (CFLAGS-either_ntoh.c): Likewise.
18354 (CFLAGS-either_hton.c): Likewise.
18355 (CFLAGS-getnetgrent.c): Likewise.
18356 (CFLAGS-getnetgrent_r.c): Likewise.
18357 (CFLAGS-tst-checks-posix.c): Likewise.
18358 (CFLAGS-tst-sockaddr.c): Likewise.
18359 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
18360 (CFLAGS-tst-translit.c): Likewise.
18361 (CFLAGS-tst-gettext2.c): Likewise.
18362 (CFLAGS-tst-codeset.c): Likewise.
18363 (CFLAGS-tst-gettext3.c): Likewise.
18364 (CFLAGS-tst-gettext4.c): Likewise.
18365 (CFLAGS-tst-gettext5.c): Likewise.
18366 (CFLAGS-tst-gettext6.c): Likewise.
18367 * io/Makefile (CFLAGS-open.c): Likewise.
18368 (CFLAGS-open64.c): Likewise.
18369 (CFLAGS-creat.c): Likewise.
18370 (CFLAGS-creat64.c): Likewise.
18371 (CFLAGS-fcntl.c): Likewise.
18372 (CFLAGS-poll.c): Likewise.
18373 (CFLAGS-ppoll.c): Likewise.
18374 (CFLAGS-lockf.c): Likewise.
18375 (CFLAGS-statfs.c): Likewise.
18376 (CFLAGS-fstatfs.c): Likewise.
18377 (CFLAGS-statvfs.c): Likewise.
18378 (CFLAGS-fstatvfs.c): Likewise.
18379 (CFLAGS-fts.c): Likewise.
18380 (CFLAGS-fts64.c): Likewise.
18381 (CFLAGS-ftw.c): Likewise.
18382 (CFLAGS-ftw64.c): Likewise.
18383 (CFLAGS-lockf.c): Likewise.
18384 (CFLAGS-posix_fallocate.c): Likewise.
18385 (CFLAGS-posix_fallocate64.c): Likewise.
18386 (CFLAGS-fallocate.c): Likewise.
18387 (CFLAGS-fallocate64.c): Likewise.
18388 (CFLAGS-read.c): Likewise.
18389 (CFLAGS-write.c): Likewise.
18390 (CFLAGS-test-stat.c): Likewise.
18391 (CFLAGS-test-lfs.c): Likewise.
18392 * libio/Makefile (CFLAGS-fileops.c): Likewise.
18393 (CFLAGS-fputc.c): Likewise.
18394 (CFLAGS-fputwc.c): Likewise.
18395 (CFLAGS-freopen64.c): Likewise.
18396 (CFLAGS-freopen.c): Likewise.
18397 (CFLAGS-fseek.c): Likewise.
18398 (CFLAGS-fseeko64.c): Likewise.
18399 (CFLAGS-fseeko.c): Likewise.
18400 (CFLAGS-ftello64.c): Likewise.
18401 (CFLAGS-ftello.c): Likewise.
18402 (CFLAGS-fwide.c): Likewise.
18403 (CFLAGS-genops.c): Likewise.
18404 (CFLAGS-getc.c): Likewise.
18405 (CFLAGS-getchar.c): Likewise.
18406 (CFLAGS-getwc.c): Likewise.
18407 (CFLAGS-getwchar.c): Likewise.
18408 (CFLAGS-iofclose.c): Likewise.
18409 (CFLAGS-iofflush.c): Likewise.
18410 (CFLAGS-iofgetpos64.c): Likewise.
18411 (CFLAGS-iofgetpos.c): Likewise.
18412 (CFLAGS-iofgets.c): Likewise.
18413 (CFLAGS-iofgetws.c): Likewise.
18414 (CFLAGS-iofputs.c): Likewise.
18415 (CFLAGS-iofputws.c): Likewise.
18416 (CFLAGS-iofread.c): Likewise.
18417 (CFLAGS-iofsetpos64.c): Likewise.
18418 (CFLAGS-iofsetpos.c): Likewise.
18419 (CFLAGS-ioftell.c): Likewise.
18420 (CFLAGS-iofwrite.c): Likewise.
18421 (CFLAGS-iogetdelim.c): Likewise.
18422 (CFLAGS-iogetline.c): Likewise.
18423 (CFLAGS-iogets.c): Likewise.
18424 (CFLAGS-iogetwline.c): Likewise.
18425 (CFLAGS-ioputs.c): Likewise.
18426 (CFLAGS-ioseekoff.c): Likewise.
18427 (CFLAGS-ioseekpos.c): Likewise.
18428 (CFLAGS-iosetbuffer.c): Likewise.
18429 (CFLAGS-iosetvbuf.c): Likewise.
18430 (CFLAGS-ioungetc.c): Likewise.
18431 (CFLAGS-ioungetwc.c): Likewise.
18432 (CFLAGS-oldfileops.c): Likewise.
18433 (CFLAGS-oldiofclose.c): Likewise.
18434 (CFLAGS-oldiofgetpos64.c): Likewise.
18435 (CFLAGS-oldiofgetpos.c): Likewise.
18436 (CFLAGS-oldiofsetpos64.c): Likewise.
18437 (CFLAGS-oldiofsetpos.c): Likewise.
18438 (CFLAGS-peekc.c): Likewise.
18439 (CFLAGS-putc.c): Likewise.
18440 (CFLAGS-putchar.c): Likewise.
18441 (CFLAGS-putwc.c): Likewise.
18442 (CFLAGS-putwchar.c): Likewise.
18443 (CFLAGS-rewind.c): Likewise.
18444 (CFLAGS-wfileops.c): Likewise.
18445 (CFLAGS-wgenops.c): Likewise.
18446 (CFLAGS-oldiofopen.c): Likewise.
18447 (CFLAGS-iofopen.c): Likewise.
18448 (CFLAGS-iofopen64.c): Likewise.
18449 (CFLAGS-oldtmpfile.c): Likewise.
18450 (CFLAGS-tst_putwc.c): Likewise.
18451 * locale/Makefile (CFLAGS-md5.c): Likewise.
18452 (CFLAGS-charmap.c): Likewise.
18453 (CFLAGS-locfile.c): Likewise.
18454 (CFLAGS-charmap-dir.c): Likewise.
18455 * login/Makefile (CFLAGS-grantpt.c): Likewise.
18456 (CFLAGS-getpt.c): Likewise.
18457 (CFLAGS-pt_chown.c): Likewise.
18458 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
18459 (CFLAGS-obstack.c): Likewise.
18460 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
18461 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
18462 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
18463 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
18464 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
18465 (CFLAGS-test-tgmath.c): Likewise.
18466 (CFLAGS-test-tgmath2.c): Likewise.
18467 (CFLAGS-test-tgmath-ret.c): Likewise.
18468 (CFLAGS-test-powl.c): Likewise.
18469 (CFLAGS-test-snan.c): Likewise.
18470 (CFLAGS-test-signgam-finite.c): Likewise.
18471 (CFLAGS-test-signgam-finite-c99.c): Likewise.
18472 (CFLAGS-test-signgam-finite-c11.c): Likewise.
18473 (CFLAGS-test-signgam-uchar.c): Likewise.
18474 (CFLAGS-test-signgam-uchar-init.c): Likewise.
18475 (CFLAGS-test-signgam-uchar-static.c): Likewise.
18476 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
18477 (CFLAGS-test-signgam-uint.c): Likewise.
18478 (CFLAGS-test-signgam-uint-init.c): Likewise.
18479 (CFLAGS-test-signgam-uint-static.c): Likewise.
18480 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
18481 (CFLAGS-test-signgam-ullong.c): Likewise.
18482 (CFLAGS-test-signgam-ullong-init.c): Likewise.
18483 (CFLAGS-test-signgam-ullong-static.c): Likewise.
18484 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
18485 (CFLAGS-test-math-cxx11.cc): Likewise.
18486 (CFLAGS-test-math-isinff.cc): Likewise.
18487 (CFLAGS-test-math-iszero.cc): Likewise.
18488 (CFLAGS-test-math-issignaling.cc): Likewise.
18489 (CFLAGS-test-math-iscanonical.cc): Likewise.
18490 (CFLAGS-test-iszero-excess-precision.c): Likewise.
18491 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
18492 (CFLAGS-test-flt-eval-method.c): Likewise.
18493 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
18494 (CFLAGS-test-finite-macros.c): Likewise.
18495 * misc/Makefile (CFLAGS-select.c): Likewise.
18496 (CFLAGS-tsearch.c): Likewise.
18497 (CFLAGS-lsearch.c): Likewise.
18498 (CFLAGS-pselect.c): Likewise.
18499 (CFLAGS-readv.c): Likewise.
18500 (CFLAGS-writev.c): Likewise.
18501 (CFLAGS-preadv.c): Likewise.
18502 (CFLAGS-preadv64.c): Likewise.
18503 (CFLAGS-pwritev.c): Likewise.
18504 (CFLAGS-pwritev64.c): Likewise.
18505 (CFLAGS-preadv2.c): Likewise.
18506 (CFLAGS-preadv64v2.c): Likewise.
18507 (CFLAGS-pwritev2.c): Likewise.
18508 (CFLAGS-pwritev64v2.c): Likewise.
18509 (CFLAGS-usleep.c): Likewise.
18510 (CFLAGS-syslog.c): Likewise.
18511 (CFLAGS-error.c): Likewise.
18512 (CFLAGS-getpass.c): Likewise.
18513 (CFLAGS-mkstemp.c): Likewise.
18514 (CFLAGS-mkstemp64.c): Likewise.
18515 (CFLAGS-getsysstats.c): Likewise.
18516 (CFLAGS-getusershell.c): Likewise.
18517 (CFLAGS-err.c): Likewise.
18518 (CFLAGS-tst-tsearch.c): Likewise.
18519 (CFLAGS-msync.c): Likewise.
18520 (CFLAGS-fdatasync.c): Likewise.
18521 (CFLAGS-fsync.c): Likewise.
18522 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
18523 (CFLAGS-unwind.c): Likewise.
18524 (CFLAGS-unwind-forcedunwind.c): Likewise.
18525 (CFLAGS-pthread_cancel.c): Likewise.
18526 (CFLAGS-pthread_setcancelstate.c): Likewise.
18527 (CFLAGS-pthread_setcanceltype.c): Likewise.
18528 (CFLAGS-cancellation.c): Likewise.
18529 (CFLAGS-libc-cancellation.c): Likewise.
18530 (CFLAGS-pthread_exit.c): Likewise.
18531 (CFLAGS-forward.c): Likewise.
18532 (CFLAGS-pthread_testcancel.c): Likewise.
18533 (CFLAGS-pthread_join.c): Likewise.
18534 (CFLAGS-pthread_timedjoin.c): Likewise.
18535 (CFLAGS-pthread_once.c): Likewise.
18536 (CFLAGS-pthread_cond_wait.c): Likewise.
18537 (CFLAGS-sem_wait.c): Likewise.
18538 (CFLAGS-sem_timedwait.c): Likewise.
18539 (CFLAGS-fcntl.c): Likewise.
18540 (CFLAGS-lockf.c): Likewise.
18541 (CFLAGS-pread.c): Likewise.
18542 (CFLAGS-pread64.c): Likewise.
18543 (CFLAGS-pwrite.c): Likewise.
18544 (CFLAGS-pwrite64.c): Likewise.
18545 (CFLAGS-wait.c): Likewise.
18546 (CFLAGS-waitpid.c): Likewise.
18547 (CFLAGS-sigwait.c): Likewise.
18548 (CFLAGS-msgrcv.c): Likewise.
18549 (CFLAGS-msgsnd.c): Likewise.
18550 (CFLAGS-tcdrain.c): Likewise.
18551 (CFLAGS-open.c): Likewise.
18552 (CFLAGS-open64.c): Likewise.
18553 (CFLAGS-pause.c): Likewise.
18554 (CFLAGS-recv.c): Likewise.
18555 (CFLAGS-send.c): Likewise.
18556 (CFLAGS-accept.c): Likewise.
18557 (CFLAGS-sendto.c): Likewise.
18558 (CFLAGS-connect.c): Likewise.
18559 (CFLAGS-recvfrom.c): Likewise.
18560 (CFLAGS-recvmsg.c): Likewise.
18561 (CFLAGS-sendmsg.c): Likewise.
18562 (CFLAGS-close.c): Likewise.
18563 (CFLAGS-read.c): Likewise.
18564 (CFLAGS-write.c): Likewise.
18565 (CFLAGS-nanosleep.c): Likewise.
18566 (CFLAGS-sigsuspend.c): Likewise.
18567 (CFLAGS-msync.c): Likewise.
18568 (CFLAGS-fdatasync.c): Likewise.
18569 (CFLAGS-fsync.c): Likewise.
18570 (CFLAGS-pt-system.c): Likewise.
18571 (CFLAGS-tst-cleanup2.c): Likewise.
18572 (CFLAGS-tst-cleanupx2.c): Likewise.
18573 (CFLAGS-flockfile.c): Likewise.
18574 (CFLAGS-ftrylockfile.c): Likewise.
18575 (CFLAGS-funlockfile.c): Likewise.
18576 (CFLAGS-tst-initializers1.c): Likewise.
18577 (CFLAGS-tst-initializers1-c89.c): Likewise.
18578 (CFLAGS-tst-initializers1-c99.c): Likewise.
18579 (CFLAGS-tst-initializers1-c11.c): Likewise.
18580 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
18581 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
18582 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
18583 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
18584 (CFLAGS-nscd_getgr_r.c): Likewise.
18585 (CFLAGS-nscd_gethst_r.c): Likewise.
18586 (CFLAGS-nscd_getai.c): Likewise.
18587 (CFLAGS-nscd_initgroups.c): Likewise.
18588 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
18589 (CFLAGS-pause.c): Likewise.
18590 (CFLAGS-pread.c): Likewise.
18591 (CFLAGS-pread64.c): Likewise.
18592 (CFLAGS-pwrite.c): Likewise.
18593 (CFLAGS-pwrite64.c): Likewise.
18594 (CFLAGS-sleep.c): Likewise.
18595 (CFLAGS-wait.c): Likewise.
18596 (CFLAGS-waitid.c): Likewise.
18597 (CFLAGS-waitpid.c): Likewise.
18598 (CFLAGS-getopt.c): Likewise.
18599 (CFLAGS-wordexp.c): Likewise.
18600 (CFLAGS-sysconf.c): Likewise.
18601 (CFLAGS-pathconf.c): Likewise.
18602 (CFLAGS-fpathconf.c): Likewise.
18603 (CFLAGS-spawn.c): Likewise.
18604 (CFLAGS-spawnp.c): Likewise.
18605 (CFLAGS-spawni.c): Likewise.
18606 (CFLAGS-glob.c): Likewise.
18607 (CFLAGS-glob64.c): Likewise.
18608 (CFLAGS-getconf.c): Likewise.
18609 (CFLAGS-nanosleep.c): Likewise.
18610 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
18611 (CFLAGS-getpwent.c): Likewise.
18612 (CFLAGS-getpw.c): Likewise.
18613 (CFLAGS-fgetpwent_r.c): Likewise.
18614 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
18615 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
18616 (CFLAGS-mq_timedreceive.c): Likewise.
18617 (CFLAGS-mq_timedsend.c): Likewise.
18618 (CFLAGS-clock_nanosleep.c): Likewise.
18619 (CFLAGS-librt-cancellation.c): Likewise.
18620 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
18621 (CFLAGS-getspent.c): Likewise.
18622 (CFLAGS-fgetspent.c): Likewise.
18623 (CFLAGS-fgetspent_r.c): Likewise.
18624 (CFLAGS-putspent.c): Likewise.
18625 (CFLAGS-getspnam.c): Likewise.
18626 (CFLAGS-getspnam_r.c): Likewise.
18627 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
18628 (CFLAGS-sigsuspend.c): Likewise.
18629 (CFLAGS-sigtimedwait.c): Likewise.
18630 (CFLAGS-sigwait.c): Likewise.
18631 (CFLAGS-sigwaitinfo.c): Likewise.
18632 (CFLAGS-sigreturn.c): Likewise.
18633 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
18634 (CFLAGS-vfwprintf.c): Likewise.
18635 (CFLAGS-tmpfile.c): Likewise.
18636 (CFLAGS-tmpfile64.c): Likewise.
18637 (CFLAGS-tempname.c): Likewise.
18638 (CFLAGS-psignal.c): Likewise.
18639 (CFLAGS-vprintf.c): Likewise.
18640 (CFLAGS-cuserid.c): Likewise.
18641 (CFLAGS-errlist.c): Likewise.
18642 (CFLAGS-siglist.c): Likewise.
18643 (CFLAGS-scanf15.c): Likewise.
18644 (CFLAGS-scanf17.c): Likewise.
18645 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
18646 (CFLAGS-msort.c): Likewise.
18647 (CFLAGS-qsort.c): Likewise.
18648 (CFLAGS-system.c): Likewise.
18649 (CFLAGS-fmtmsg.c): Likewise.
18650 (CFLAGS-strfmon.c): Likewise.
18651 (CFLAGS-strfmon_l.c): Likewise.
18652 (CFLAGS-strfromd.c): Likewise.
18653 (CFLAGS-strfromf.c): Likewise.
18654 (CFLAGS-strfroml.c): Likewise.
18655 (CFLAGS-tst-bsearch.c): Likewise.
18656 (CFLAGS-tst-qsort.c): Likewise.
18657 (CFLAGS-tst-makecontext2.c): Likewise.
18658 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
18659 (CFLAGS-xnlm_prot.c): Likewise.
18660 (CFLAGS-xrstat.c): Likewise.
18661 (CFLAGS-xyppasswd.c): Likewise.
18662 (CFLAGS-xklm_prot.c): Likewise.
18663 (CFLAGS-xrex.c): Likewise.
18664 (CFLAGS-xsm_inter.c): Likewise.
18665 (CFLAGS-xmount.c): Likewise.
18666 (CFLAGS-xrusers.c): Likewise.
18667 (CFLAGS-xspray.c): Likewise.
18668 (CFLAGS-xnfs_prot.c): Likewise.
18669 (CFLAGS-xrquota.c): Likewise.
18670 (CFLAGS-xkey_prot.c): Likewise.
18671 (CFLAGS-auth_unix.c): Likewise.
18672 (CFLAGS-key_call.c): Likewise.
18673 (CFLAGS-pmap_rmt.c): Likewise.
18674 (CFLAGS-clnt_perr.c): Likewise.
18675 (CFLAGS-openchild.c): Likewise.
18676 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
18677 (CFLAGS-msgsnd.c): Likewise.
18678 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
18679 * time/Makefile (CFLAGS-tzfile.c): Likewise.
18680 (CFLAGS-tzset.c): Likewise.
18681 (CFLAGS-getdate.c): Likewise.
18682 (CFLAGS-test_time.c): Likewise.
18683 (CPPFLAGS-tst-tzname.c): Likewise.
18684 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
18685 (CFLAGS-zic.c): Likewise.
18686 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
18687 (CFLAGS-wcswidth.c): Likewise.
18688 (CFLAGS-wcstol.c): Likewise.
18689 (CFLAGS-wcstoul.c): Likewise.
18690 (CFLAGS-wcstoll.c): Likewise.
18691 (CFLAGS-wcstoull.c): Likewise.
18692 (CFLAGS-wcstod.c): Likewise.
18693 (CFLAGS-wcstold.c): Likewise.
18694 (CFLAGS-wcstof128.c): Likewise.
18695 (CFLAGS-wcstof.c): Likewise.
18696 (CFLAGS-wcstol_l.c): Likewise.
18697 (CFLAGS-wcstoul_l.c): Likewise.
18698 (CFLAGS-wcstoll_l.c): Likewise.
18699 (CFLAGS-wcstoull_l.c): Likewise.
18700 (CFLAGS-wcstod_l.c): Likewise.
18701 (CFLAGS-wcstold_l.c): Likewise.
18702 (CFLAGS-wcstof128_l.c): Likewise.
18703 (CFLAGS-wcstof_l.c): Likewise.
18704 (CPPFLAGS-tst-wchar-h.c): Likewise.
18705 (CPPFLAGS-wcstold_l.c): Likewise.
18706
18707 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
18708
18709 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
18710
18711 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
18712 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18713
18714 * manual/tunables.texi (Hardware Capability Tunables): Document
18715 glibc.tune.cached_memopt.
18716 * sysdeps/powerpc/cpu-features.c: New file.
18717 * sysdeps/powerpc/cpu-features.h: New file.
18718 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
18719 _dl_powerpc_cpu_features.
18720 * sysdeps/powerpc/dl-tunables.list: New file.
18721 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
18722 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
18723 (INIT_ARCH): Initialize use_aligned_memopt.
18724 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
18725 IS_IN(rtld))]: Restrict dl_platform_init availability and
18726 initialize CPU features used by tunables.
18727 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
18728 Add memcpy-power8-cached.
18729 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
18730 __memcpy_power8_cached.
18731 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
18732 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
18733 New file.
18734
18735 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18736
18737 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
18738 (CFLAGS-noinl-tester.c): Likewise.
18739 (CFLAGS-tst-strlen.c): Likewise.
18740 (CFLAGS-stratcliff.c): Likewise.
18741 (CFLAGS-test-ffs.c): Likewise.
18742 (CFLAGS-tst-inlcall.c): Likewise.
18743 (CFLAGS-tst-xbzero-opt.c): Likewise.
18744 (CFLAGS-memcpy.c): Likewise.
18745 (CFLAGS-wordcopy.c): Likewise.
18746
18747 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
18748
18749 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
18750 Store r15 on stack and add cfi rule.
18751 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
18752 Likewise.
18753
18754 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
18755
18756 [BZ #22577]
18757 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
18758 call.
18759
18760 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18761
18762 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18763 Add s_sinf-sse2 and s_sinf-fma.
18764 (CFLAGS-s_sinf-fma.c): New.
18765 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
18766 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
18767 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
18768
18769 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18770
18771 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
18772
18773 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18774
18775 [BZ #22568]
18776 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
18777 part of result to imaginary part of argument if it is zero and the
18778 real part of the argument is not finite.
18779 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
18780 of result to real part of argument if it is zero and the imaginary
18781 part of the argument is not finite.
18782
18783 2017-12-07 Mike FABIAN <mfabian@redhat.com>
18784
18785 [BZ #22524]
18786 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
18787 and to the list of locales to be built for testing.
18788 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
18789 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
18790 and build the collation rules upon that.
18791
18792 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18793
18794 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
18795 * manual/math.texi (Mathematics): Document support for _Float32.
18796 * math/Makefile (test-types): Add float32.
18797 * math/Versions (GLIBC_2.27): Add _Float32 functions.
18798 * stdlib/Versions (GLIBC_2.27): Likewise.
18799 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18800 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18801 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18802 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18803 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18804 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18805 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18806 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18807 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18808 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18809 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18810 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18811 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18812 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18813 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18814 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18815 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18816 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18817 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18818 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18819 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18820 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18821 Likewise.
18822 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18823 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18824 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18825 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18826 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18827 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18828 Likewise.
18829 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18830 Likewise.
18831 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18832 Likewise.
18833 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18834 Likewise.
18835
18836 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18837 Likewise.
18838 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18839 Likewise.
18840 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18841 Likewise.
18842 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18843 Likewise.
18844 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18845 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18846 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18847 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18848 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18849 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18850 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18851 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18852 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18853 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18854 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18855 Likewise.
18856 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18857 Likewise.
18858 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18859 Likewise.
18860 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18861 Likewise.
18862 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18863 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18864 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18865 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18866 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18867 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18868 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18869 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18870
18871 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18872
18873 * stdlib/strtof.c: Include <bits/floatn.h>
18874 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
18875 and later undefine as macro. Define as weak alias if
18876 [!USE_WIDE_CHAR].
18877 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
18878 and later undefine as macro. Define as weak alias if
18879 [USE_WIDE_CHAR].
18880 * stdlib/strtof_l.c: Include <bits/floatn.h>
18881 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
18882 and later undefine as macro. Define as weak alias if
18883 [!USE_WIDE_CHAR].
18884 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
18885 and later undefine as macro. Define as weak alias if
18886 [USE_WIDE_CHAR].
18887
18888 * stdlib/strfromf.c: Include <bits/floatn.h>.
18889 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
18890 and later undefine as macro and define as weak alias.
18891
18892 * math/test-float32.h: New file.
18893
18894 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
18895 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
18896 (libm_alias_float_other_r): Create f32 alias.
18897 (libm_alias_float_r): Use semicolon before call to
18898 libm_alias_float_other_r.
18899
18900 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
18901 second argument to libm_alias_float_other.
18902 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
18903 second argument to libm_alias_float_other.
18904 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
18905 argument to libm_alias_float_other.
18906
18907 [BZ #22561]
18908 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
18909 real part of result for argument 0 + i * NaN.
18910 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
18911 results for tests of 0 + i * NaN.
18912
18913 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18914
18915 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18916
18917 2017-12-06 David S. Miller <davem@davemloft.net>
18918
18919 * sysdeps/sparc/fpu/libm-test-ulps: Update
18920 exp_{downward,towardzero,upward} ulps.
18921
18922 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18923
18924 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
18925 variables static.
18926
18927 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
18928 (Y0_2D): Likewise.
18929 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
18930 (Y0_2D): Likewise.
18931 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
18932 (Y0_2D): Likewise.
18933 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
18934 (Y0_2D): Likewise.
18935
18936 2017-12-06 Mike FABIAN <mfabian@redhat.com>
18937
18938 [BZ #22515]
18939 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
18940 and to the list of locales to be built for testing.
18941 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
18942 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
18943 and build the collation rules upon that.
18944
18945 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18946
18947 * NEWS: Add sinf to list of optimized functions.
18948
18949 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18950
18951 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
18952 (__HAVE_FLOAT32X): Likewise.
18953 * manual/math.texi (Mathematics): Document support for _Float64
18954 and _Float32x.
18955 * math/Makefile (test-types): Add float64 and float32x.
18956 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
18957 functions.
18958 * stdlib/Versions (GLIBC_2.27): Likewise.
18959 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18960 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18961 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18962 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18963 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18964 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18965 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18966 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18967 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18968 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18969 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18970 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18971 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18972 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18973 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18974 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18975 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18976 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18977 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18978 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18979 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18980 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18981 Likewise.
18982 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18983 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18984 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18985 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18986 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18987 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18988 Likewise.
18989 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18990 Likewise.
18991 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18992 Likewise.
18993 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18994 Likewise.
18995 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18996 Likewise.
18997 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18998 Likewise.
18999 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19000 Likewise.
19001 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19002 Likewise.
19003 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19004 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19005 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19006 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19007 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19008 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19009 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19010 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19011 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19012 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19013 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19014 Likewise.
19015 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19016 Likewise.
19017 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19018 Likewise.
19019 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19020 Likewise.
19021 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19022 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19023 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19024 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19025 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19026 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19027 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19028 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19029
19030 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19031
19032 * bits/floatn-common.h: Include <bits/long-double.h>.
19033 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19034 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19035 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19036 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19037 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19038 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19039 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19040 (__builtin_huge_valf64): Use __builtin_huge_vall.
19041 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19042 (__builtin_inff64): Use __builtin_infl.
19043 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19044 (__builtin_nanf64): Use __builtin_nanl.
19045 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19046 (__builtin_nansf64): Use __builtin_nansl.
19047
19048 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19049 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19050 Carlos O'Donnell <carlos@redhat.com>
19051
19052 * elf/dl-tunables.list: Add elision parameters.
19053 * manual/tunables.texi: Add entries about elision tunable.
19054 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19055 Add callback functions to dynamically enable/disable elision.
19056 Add multiple callbacks functions to set elision parameters.
19057 Deleted __libc_enable_secure check.
19058 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19059 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19060 * configure: Regenerated.
19061 * configure.ac: Option enable_lock_elision was deleted.
19062 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19063 * config.make.in: Remove references to enable_lock_elision.
19064 * manual/install.texi: Elision configure option was removed.
19065 * INSTALL: Regenerated to remove enable_lock_elision.
19066 * nptl/Makefile:
19067 Disable elision so it can verify error case for destroying a mutex.
19068 * sysdeps/powerpc/nptl/elide.h:
19069 Cleanup ENABLE_LOCK_ELISION check.
19070 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19071 * sysdeps/s390/configure: Regenerated.
19072 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19073 * nptl/tst-mutex8.c:
19074 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19075 * sysdeps/powerpc/powerpc32/sysdep.h:
19076 Deleted all ENABLE_LOCK_ELISION checks.
19077 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19078 * sysdeps/powerpc/sysdep.h: Likewise.
19079 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19080 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19081 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19082 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19083 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19084 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19085 enable-lock-elision.
19086
19087 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19088
19089 * stdlib/strtod.c: Include <bits/floatn.h>.
19090 (BUILD_DOUBLE): New macro.
19091 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19092 (strtof64): Define and later undefine as macro. Define as weak
19093 alias if [!USE_WIDE_CHAR].
19094 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19095 (wcstof64): Define and later undefine as macro. Define as weak
19096 alias if [USE_WIDE_CHAR].
19097 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19098 (strtof32x): Define and later undefine as macro. Define as weak
19099 alias if [!USE_WIDE_CHAR].
19100 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19101 (wcstof32x): Define and later undefine as macro. Define as weak
19102 alias if [USE_WIDE_CHAR].
19103 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19104 (BUILD_DOUBLE): New macro.
19105 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19106 (strtof64_l): Define and later undefine as macro. Define as weak
19107 alias if [!USE_WIDE_CHAR].
19108 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19109 (wcstof64_l): Define and later undefine as macro. Define as weak
19110 alias if [USE_WIDE_CHAR].
19111 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19112 (strtof32x_l): Define and later undefine as macro. Define as weak
19113 alias if [!USE_WIDE_CHAR].
19114 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19115 (wcstof32x_l): Define and later undefine as macro. Define as weak
19116 alias if [USE_WIDE_CHAR].
19117
19118 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19119
19120 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19121 (reduced): Use ones as double instead of integer.
19122
19123 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19124
19125 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19126
19127 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19128
19129 * stdlib/strfromd.c: Include <bits/floatn.h>.
19130 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19131 and later undefine as macro and define as weak alias.
19132 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19133 Likewise.
19134
19135 * math/test-float32x.h: New file.
19136 * math/test-float64.h: Likewise.
19137
19138 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19139 (libm_alias_double_other_r_f64): New macro.
19140 (libm_alias_double_other_r_f32x): Likewise.
19141 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19142 libm_alias_double_other_r_f32x.
19143 (libm_alias_double_r): Use semicolon before call to
19144 libm_alias_double_other_r.
19145 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19146 <bits/floatn.h>.
19147 (libm_alias_double_other_r_f64): New macro.
19148 (libm_alias_double_other_r_f32x): Likewise.
19149 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19150 libm_alias_double_other_r_f32x.
19151
19152 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19153
19154 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19155 int.
19156 (SINF_FUNC): Likewise. Replace floor with simple casts.
19157
19158 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19159
19160 [BZ #22517]
19161 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19162 and to the list of locales to be built for testing.
19163 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19164 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19165 and build the collation rules upon that.
19166
19167 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19168
19169 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19170 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19171 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19172 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19173 instead of __insn__xxx.
19174 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19175 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19176 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19177 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19178 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19179 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19180
19181 2017-12-05 Florian Weimer <fweimer@redhat.com>
19182
19183 Linux: Implement interfaces for memory protection keys
19184 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19185 xsignal, xsysconf.
19186 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19187 * support/xunistd.h (xsysconf): Declare.
19188 * support/xraise.c: New file.
19189 * support/xsigaction.c: Likewise.
19190 * support/xsignal.c: Likewise.
19191 * support/xsysconf.c: Likewise.
19192 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19193 pkey_set, pkey_get, pkey_mprotect.
19194 [misc] (tests): Add tst-pkey.
19195 (tst-pkey): Link with -lpthread.
19196 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19197 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19198 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19199 (PKEY_DISABLE_WRITE): Define.
19200 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19201 Declare.
19202 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19203 (SEGV_PKUERR): Add.
19204 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19205 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19206 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19207 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19208 Add.
19209 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19210 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19211 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19212 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19213 * sysdeps/unix/sysv/linux/**.abilist: Update.
19214
19215 2017-12-05 Florian Weimer <fweimer@redhat.com>
19216
19217 * support/tst-test_compare.c (subprocess): Use long long instead
19218 of long argument for consistent type width across 32-bit and
19219 64-bit architectures.
19220 (do_test): Adjust expected output.
19221
19222 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19223
19224 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19225 (cosf): Define using libm_alias_float.
19226 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19227 (fabsf): Define using libm_alias_float.
19228 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19229 (fmaf): Define using libm_alias_float.
19230 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19231 (rintf): Define using libm_alias_float.
19232 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19233 (sinf): Define using libm_alias_float.
19234 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19235 <libm-alias-float.h>.
19236 (modff): Define using libm_alias_float.
19237 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19238 <libm-alias-float.h>.
19239 (logbf): Define using libm_alias_float.
19240 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19241 <libm-alias-float.h>.
19242 (ceilf): Define using libm_alias_float.
19243 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19244 <libm-alias-float.h>.
19245 (copysignf): Define using libm_alias_float.
19246 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19247 <libm-alias-float.h>.
19248 (floorf): Define using libm_alias_float.
19249 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19250 <libm-alias-float.h>.
19251 (llrintf): Define using libm_alias_float.
19252 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19253 <libm-alias-float.h>.
19254 (llroundf): Define using libm_alias_float.
19255 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19256 <libm-alias-float.h>.
19257 (lrintf): Define using libm_alias_float.
19258 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19259 <libm-alias-float.h>.
19260 (lroundf): Define using libm_alias_float.
19261 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19262 <libm-alias-float.h>.
19263 (nearbyintf): Define using libm_alias_float.
19264 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19265 <libm-alias-float.h>.
19266 (rintf): Define using libm_alias_float.
19267 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19268 <libm-alias-float.h>.
19269 (roundf): Define using libm_alias_float.
19270 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19271 <libm-alias-float.h>.
19272 (truncf): Define using libm_alias_float.
19273 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19274 Include <libm-alias-float.h>.
19275 (ceilf): Define using libm_alias_float.
19276 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19277 Include <libm-alias-float.h>.
19278 (copysignf): Define using libm_alias_float.
19279 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19280 Include <libm-alias-float.h>.
19281 (floorf): Define using libm_alias_float.
19282 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19283 Include <libm-alias-float.h>.
19284 (llrintf): Define using libm_alias_float.
19285 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19286 Include <libm-alias-float.h>.
19287 (llroundf): Define using libm_alias_float.
19288 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19289 Include <libm-alias-float.h>.
19290 (logbf): Define using libm_alias_float.
19291 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19292 Include <libm-alias-float.h>.
19293 (lrintf): Define using libm_alias_float.
19294 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19295 Include <libm-alias-float.h>.
19296 (lroundf): Define using libm_alias_float.
19297 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19298 Include <libm-alias-float.h>.
19299 (modff): Define using libm_alias_float.
19300 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19301 Include <libm-alias-float.h>.
19302 (roundf): Define using libm_alias_float.
19303 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19304 Include <libm-alias-float.h>.
19305 (truncf): Define using libm_alias_float.
19306 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19307 <libm-alias-float.h>.
19308 (llrintf): Define using libm_alias_float.
19309 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19310 <libm-alias-float.h>.
19311 (llroundf): Define using libm_alias_float.
19312 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19313 <libm-alias-float.h>.
19314 (ceilf): Define using libm_alias_float.
19315 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19316 <libm-alias-float.h>.
19317 (floorf): Define using libm_alias_float.
19318 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19319 <libm-alias-float.h>.
19320 (llroundf): Define using libm_alias_float.
19321 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19322 <libm-alias-float.h>.
19323 (lroundf): Define using libm_alias_float.
19324 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19325 <libm-alias-float.h>.
19326 (roundf): Define using libm_alias_float.
19327 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19328 <libm-alias-float.h>.
19329 (truncf): Define using libm_alias_float.
19330 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19331 <libm-alias-float.h>.
19332 (copysignf): Define using libm_alias_float.
19333 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19334 <libm-alias-float.h>.
19335 (llrintf): Define using libm_alias_float.
19336 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19337 <libm-alias-float.h>.
19338 (llroundf): Define using libm_alias_float.
19339 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19340 <libm-alias-float.h>.
19341 (lrintf): Define using libm_alias_float.
19342 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19343 <libm-alias-float.h>.
19344 (lroundf): Define using libm_alias_float.
19345 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19346 <libm-alias-float.h>.
19347 (ceilf): Define using libm_alias_float.
19348 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19349 <libm-alias-float.h>.
19350 (copysignf): Define using libm_alias_float.
19351 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19352 <libm-alias-float.h>.
19353 (cosf): Define using libm_alias_float.
19354 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
19355 <libm-alias-float.h>.
19356 (floorf): Define using libm_alias_float.
19357 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
19358 <libm-alias-float.h>.
19359 (llrintf): Define using libm_alias_float.
19360 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
19361 <libm-alias-float.h>.
19362 (llroundf): Define using libm_alias_float.
19363 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19364 <libm-alias-float.h>.
19365 (logbf): Define using libm_alias_float.
19366 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19367 <libm-alias-float.h>.
19368 (modff): Define using libm_alias_float.
19369 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19370 <libm-alias-float.h>.
19371 (roundf): Define using libm_alias_float.
19372 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19373 <libm-alias-float.h>.
19374 (sinf): Define using libm_alias_float.
19375 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19376 <libm-alias-float.h>.
19377 (truncf): Define using libm_alias_float.
19378 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
19379 <libm-alias-float.h>.
19380 (ceilf): Define using libm_alias_float.
19381 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19382 <libm-alias-float.h>.
19383 (copysignf): Define using libm_alias_float.
19384 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
19385 <libm-alias-float.h>.
19386 (floorf): Define using libm_alias_float.
19387 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19388 <libm-alias-float.h>.
19389 (llrintf): Define using libm_alias_float.
19390 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
19391 <libm-alias-float.h>.
19392 (llroundf): Define using libm_alias_float.
19393 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
19394 <libm-alias-float.h>.
19395 (nearbyintf): Define using libm_alias_float.
19396 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
19397 <libm-alias-float.h>.
19398 (rintf): Define using libm_alias_float.
19399 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
19400 <libm-alias-float.h>.
19401 (roundf): Define using libm_alias_float.
19402 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
19403 <libm-alias-float.h>.
19404 (truncf): Define using libm_alias_float.
19405 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
19406 <libm-alias-float.h>.
19407 (ceilf): Define using libm_alias_float.
19408 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
19409 <libm-alias-float.h>.
19410 (floorf): Define using libm_alias_float.
19411 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19412 <libm-alias-float.h>.
19413 (llroundf): Define using libm_alias_float.
19414 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
19415 <libm-alias-float.h>.
19416 (roundf): Define using libm_alias_float.
19417 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
19418 <libm-alias-float.h>.
19419 (truncf): Define using libm_alias_float.
19420 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19421 <libm-alias-float.h>.
19422 (copysignf): Define using libm_alias_float.
19423 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19424 <libm-alias-float.h>.
19425 (llrintf): Define using libm_alias_float.
19426 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19427 <libm-alias-float.h>.
19428 (llroundf): Define using libm_alias_float.
19429 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
19430 <libm-alias-float.h>.
19431 (cosf): Define using libm_alias_float.
19432 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19433 <libm-alias-float.h>.
19434 (llrintf): Define using libm_alias_float.
19435 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19436 <libm-alias-float.h>.
19437 (llroundf): Define using libm_alias_float.
19438 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
19439 <libm-alias-float.h>.
19440 (sinf): Define using libm_alias_float.
19441
19442 2017-12-04 Florian Weimer <fweimer@redhat.com>
19443
19444 * support/check.h (TEST_COMPARE): Define.
19445 (support_test_compare_failure): Declare.
19446 * support/Makefile (libsupport-routines): Add
19447 support_test_compare_failure.
19448 (tests): Add tst-test_compare.
19449 * support /support_test_compare_failure.c: New file.
19450 * support/tst-test_compare.c: Likewise.
19451
19452 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19453
19454 [BZ #22527]
19455 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
19456 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
19457 available, this rewrite of the collation rules does reproduce
19458 the test file in the same order.
19459
19460 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19461
19462 [BZ #10580]
19463 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
19464 digraphs in the month and day names. Using single code points for
19465 digraphs is deprecated. While there are dedicated Unicode
19466 codepoints, for the digraphs, these are included for backwards
19467 compatibility and modern texts use a sequence of Basic Latin
19468 characters. See: https://www.unicode.org/faq/ligature_digraph.html
19469 This makes the month and day names agree exactly with CLDR now,
19470 CLDR does not use the single code points for the digraphs either.
19471
19472 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
19473
19474 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
19475
19476 2017-12-04 Joseph Myers <joseph@codesourcery.com>
19477
19478 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
19479 of floor.
19480
19481 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
19482
19483 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
19484 Define only for libc.so.
19485
19486 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
19487
19488 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19489 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
19490 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
19491 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
19492 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
19493
19494 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19495
19496 [BZ #5997]
19497 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
19498
19499 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
19500
19501 [BZ libc/19170]
19502 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
19503 PREINIT_FUNCTION_WEAK is nonzero.
19504 (gmon_initializer): New function. Put procedure label for it in
19505 .init_array section.
19506 (_init): Don't call PREINIT_FUNCTION.
19507 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
19508 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
19509 value when map argument is null.
19510
19511 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
19512 depi instruction from PIC pc-relative sequence.
19513 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
19514 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
19515 (elf_machine_load_address): Likewise.
19516 (elf_machine_runtime_setup): Likewise.
19517
19518 2017-12-02 Joseph Myers <joseph@codesourcery.com>
19519
19520 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
19521 <libm-alias-double.h>.
19522 (logb): Define using libm_alias_double.
19523 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19524 <libm-alias-double.h>.
19525 (copysign): Define using libm_alias_double.
19526 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
19527 <libm-alias-double.h>.
19528 (llrint): Define using libm_alias_double.
19529 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
19530 <libm-alias-double.h>.
19531 (llround): Define using libm_alias_double.
19532 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19533 <libm-alias-double.h>.
19534 (lrint): Define using libm_alias_double.
19535 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19536 <libm-alias-double.h>.
19537 (lround): Define using libm_alias_double.
19538 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
19539 Include <libm-alias-double.h>.
19540 (copysign): Define using libm_alias_double.
19541 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
19542 Include <libm-alias-double.h>.
19543 (llrint): Define using libm_alias_double.
19544 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
19545 Include <libm-alias-double.h>.
19546 (llround): Define using libm_alias_double.
19547 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
19548 <libm-alias-double.h>.
19549 (logb): Define using libm_alias_double.
19550 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
19551 Include <libm-alias-double.h>.
19552 (lrint): Define using libm_alias_double.
19553 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
19554 Include <libm-alias-double.h>.
19555 (lround): Define using libm_alias_double.
19556 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
19557 <libm-alias-double.h>.
19558 (llrint): Define using libm_alias_double.
19559 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19560 <libm-alias-double.h>.
19561 (llround): Define using libm_alias_double.
19562 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19563 <libm-alias-double.h>.
19564 (llround): Define using libm_alias_double.
19565 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19566 <libm-alias-double.h>.
19567 (lround): Define using libm_alias_double.
19568 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19569 <libm-alias-double.h>.
19570 (copysign): Define using libm_alias_double.
19571 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
19572 <libm-alias-double.h>.
19573 (llrint): Define using libm_alias_double.
19574 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19575 <libm-alias-double.h>.
19576 (llround): Define using libm_alias_double.
19577 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19578 <libm-alias-double.h>.
19579 (lrint): Define using libm_alias_double.
19580 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19581 <libm-alias-double.h>.
19582 (lround): Define using libm_alias_double.
19583 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
19584 <libm-alias-double.h>.
19585 (copysign): Define using libm_alias_double.
19586 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
19587 <libm-alias-double.h>.
19588 (llrint): Define using libm_alias_double.
19589 (lrint): Likewise.
19590 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
19591 <libm-alias-double.h>.
19592 (llround): Define using libm_alias_double.
19593 (lround): Likewise.
19594 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
19595 <libm-alias-double.h>.
19596 (logb): Define using libm_alias_double.
19597 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19598 <libm-alias-double.h>.
19599 (copysign): Define using libm_alias_double.
19600 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19601 <libm-alias-double.h>.
19602 (llrint): Define using libm_alias_double.
19603 (lrint): Likewise.
19604 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
19605 <libm-alias-double.h>.
19606 (llround): Define using libm_alias_double.
19607 (lround): Likewise.
19608 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19609 <libm-alias-double.h>.
19610 (llround): Define using libm_alias_double.
19611 (lround): Likewise.
19612 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19613 <libm-alias-double.h>.
19614 (copysign): Define using libm_alias_double.
19615 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19616 <libm-alias-double.h>.
19617 (llrint): Define using libm_alias_double.
19618 (lrint): Likewise.
19619 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19620 <libm-alias-double.h>.
19621 (llround): Define using libm_alias_double.
19622 (lround): Likewise.
19623 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19624 <libm-alias-double.h>.
19625 (llrint): Define using libm_alias_double.
19626 (lrint): Likewise.
19627 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19628 <libm-alias-double.h>.
19629 (llround): Define using libm_alias_double.
19630 (lround): Likewise.
19631
19632 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19633
19634 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
19635 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
19636 compat symbol based on llround.
19637
19638 * sysdeps/powerpc/power7/fpu/s_logb.c
19639 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
19640 symbol based on __logb, not on logb.
19641 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
19642 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19643 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
19644 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19645
19646 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
19647 (rint): Define using libm_alias_double.
19648 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
19649 <libm-alias-double.h>.
19650 (modf): Define using libm_alias_double.
19651 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
19652 <libm-alias-double.h>.
19653 (ceil): Define using libm_alias_double.
19654 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
19655 <libm-alias-double.h>.
19656 (floor): Define using libm_alias_double.
19657 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
19658 <libm-alias-double.h>.
19659 (nearbyint): Define using libm_alias_double.
19660 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
19661 <libm-alias-double.h>.
19662 (rint): Define using libm_alias_double.
19663 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
19664 <libm-alias-double.h>.
19665 (round): Define using libm_alias_double.
19666 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
19667 <libm-alias-double.h>.
19668 (trunc): Define using libm_alias_double.
19669 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
19670 <libm-alias-double.h>.
19671 (ceil): Define using libm_alias_double.
19672 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
19673 Include <libm-alias-double.h>.
19674 (floor): Define using libm_alias_double.
19675 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
19676 <libm-alias-double.h>.
19677 (modf): Define using libm_alias_double.
19678 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
19679 Include <libm-alias-double.h>.
19680 (round): Define using libm_alias_double.
19681 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
19682 Include <libm-alias-double.h>.
19683 (trunc): Define using libm_alias_double.
19684 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
19685 <libm-alias-double.h>.
19686 (ceil): Define using libm_alias_double.
19687 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
19688 <libm-alias-double.h>.
19689 (floor): Define using libm_alias_double.
19690 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
19691 <libm-alias-double.h>.
19692 (round): Define using libm_alias_double.
19693 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
19694 <libm-alias-double.h>.
19695 (trunc): Define using libm_alias_double.
19696 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
19697 <libm-alias-double.h>.
19698 (ceil): Define using libm_alias_double.
19699 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
19700 <libm-alias-double.h>.
19701 (floor): Define using libm_alias_double.
19702 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
19703 <libm-alias-double.h>.
19704 (modf): Define using libm_alias_double.
19705 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
19706 <libm-alias-double.h>.
19707 (round): Define using libm_alias_double.
19708 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
19709 <libm-alias-double.h>.
19710 (trunc): Define using libm_alias_double.
19711 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
19712 <libm-alias-double.h>.
19713 (ceil): Define using libm_alias_double.
19714 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
19715 <libm-alias-double.h>.
19716 (floor): Define using libm_alias_double.
19717 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
19718 <libm-alias-double.h>.
19719 (nearbyint): Define using libm_alias_double.
19720 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
19721 <libm-alias-double.h>.
19722 (rint): Define using libm_alias_double.
19723 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
19724 <libm-alias-double.h>.
19725 (round): Define using libm_alias_double.
19726 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
19727 <libm-alias-double.h>.
19728 (trunc): Define using libm_alias_double.
19729 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
19730 <libm-alias-double.h>.
19731 (ceil): Define using libm_alias_double.
19732 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
19733 <libm-alias-double.h>.
19734 (floor): Define using libm_alias_double.
19735 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
19736 <libm-alias-double.h>.
19737 (round): Define using libm_alias_double.
19738 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
19739 <libm-alias-double.h>.
19740 (trunc): Define using libm_alias_double.
19741
19742 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
19743 (fabs): Define using libm_alias_double.
19744 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
19745 (fma): Define using libm_alias_double.
19746 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
19747 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
19748 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
19749 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
19750
19751 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19752
19753 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
19754
19755 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
19756 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
19757 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
19758
19759 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
19760 due redirect macro.
19761
19762 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
19763
19764 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
19765
19766 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19767
19768 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
19769 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
19770 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
19771 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
19772
19773 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19774 (libm-sysdep_routines): Add s_nearbyintf-generic and
19775 s_nearbyint-generic.
19776 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
19777 New file.
19778 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
19779 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
19780 Likewise.
19781 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
19782 Likewise.
19783 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
19784 file.
19785 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
19786 Likewise.
19787
19788 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19789 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
19790 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
19791 file.
19792 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
19793 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
19794 Likewise.
19795 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
19796 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
19797 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
19798
19799 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19800 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
19801 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
19802 file.
19803 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
19804 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
19805 Likewise.
19806 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
19807 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
19808 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
19809
19810 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19811 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
19812 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
19813 file.
19814 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
19815 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
19816 Likewise.
19817 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
19818 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
19819 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
19820
19821 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19822 (sysdep_calls): New rule.
19823 (sysdep_routines): Use sysdep_calls as base.
19824 (libm-sysdep_routines): Add generic rule for symbols shared with
19825 libc. Add s_copysign-generic and s_copysign-generic objects.
19826 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
19827 New file.
19828 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
19829 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
19830 Likewise.
19831 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
19832 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
19833 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
19834
19835 2017-12-01 Mike FABIAN <mfabian@redhat.com>
19836
19837 [BZ #22519]
19838 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
19839 the list of locales to be built for testing.
19840 * localedata/is_IS.UTF-8.in: New file.
19841 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
19842 on iso14651_t1.
19843
19844 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19845
19846 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
19847 <libm-alias-float.h>.
19848 (fabsf): Define using libm_alias_float.
19849
19850 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
19851
19852 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
19853
19854 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19855
19856 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
19857 <libm-alias-float.h>.
19858 (fabsf): Define using libm_alias_float.
19859 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
19860 <libm-alias-float.h>.
19861 (lrintf): Define using libm_alias_float.
19862 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
19863 <libm-alias-float.h>.
19864 (rintf): Define using libm_alias_float.
19865
19866 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
19867 <libm-alias-double.h>.
19868 (fabs): Define using libm_alias_double.
19869 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
19870 <libm-alias-double.h>.
19871 (lrint): Define using libm_alias_double.
19872 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
19873 <libm-alias-double.h>.
19874 (rint): Define using libm_alias_double.
19875
19876 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
19877 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
19878 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
19879 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
19880 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
19881 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
19882 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
19883 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
19884 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
19885 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
19886 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
19887 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
19888 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
19889 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
19890 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
19891 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
19892 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
19893 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
19894 s_atan_template.c.
19895 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
19896 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
19897 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
19898 s_ceil_template.c.
19899 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
19900 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
19901 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
19902 s_cos_template.c.
19903 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
19904 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
19905 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
19906 s_expm1_template.c.
19907 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
19908 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
19909 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
19910 s_fabs_template.c.
19911 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
19912 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
19913 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
19914 s_floor_template.c.
19915 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
19916 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
19917 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
19918 s_frexp_template.c.
19919 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
19920 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
19921 s_lrint_template.c.
19922 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
19923 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
19924 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
19925 s_modf_template.c.
19926 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
19927 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
19928 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
19929 s_nearbyint_template.c.
19930 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
19931 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
19932 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
19933 s_remquo_template.c.
19934 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
19935 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
19936 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
19937 s_rint_template.c.
19938 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
19939 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
19940 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
19941 s_sin_template.c.
19942 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
19943 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
19944 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
19945 s_sincos_template.c.
19946 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
19947 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
19948 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
19949 s_tan_template.c.
19950 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
19951 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
19952 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
19953 s_tanh_template.c.
19954 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
19955 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
19956 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
19957 s_trunc_template.c.
19958 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
19959 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
19960 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
19961 s_atan.c instead of including s_atan.c.
19962 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
19963 s_atanf.c instead of including s_atanf.c.
19964 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
19965 s_atanl.c instead of including s_atanl.c.
19966 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
19967 instead of s_atan.c.
19968 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
19969 instead of s_atanf.c.
19970 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
19971 instead of s_atanl.c.
19972
19973 * scripts/update-copyrights: Do not handle intl/plural.c
19974 specially.
19975
19976 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
19977
19978 [BZ #22432]
19979 * configure.ac (BISON): Require to be present.
19980 * configure: Regenerated.
19981 * intl/Makefile (generated): Add plural.c.
19982 [$(BISON) != no]: Make code unconditional.
19983 (plural.c): Change rule to $(objpfx)plural.c.
19984 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
19985 * intl/plural.c: Remove.
19986 * manual/install.texi (Tools for Compilation): Document bison as
19987 required.
19988 * INSTALL: Regenerated.
19989
19990 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19991
19992 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
19993 <libm-alias-double.h>.
19994 (llrint): Define using libm_alias_double.
19995 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
19996 <libm-alias-float.h>.
19997 (llrintf): Define using libm_alias_float.
19998 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
19999 <libm-alias-ldouble.h>.
20000 (llrintl): Define using libm_alias_ldouble.
20001
20002 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
20003 declare_mgen_alias instead of weak_alias.
20004 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
20005 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
20006 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
20007
20008 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20009
20010 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20011 Add add_n-generic.
20012 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20013 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20014 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20015
20016 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20017 Add submul_1-generic.
20018 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20019 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20020 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20021
20022 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20023 Add addmul_1-generic.
20024 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
20025 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
20026 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
20027
20028 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20029 Add sub_n-generic.
20030 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
20031 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20032 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20033
20034 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20035 Add mul_1-generic.
20036 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20037 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20038 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20039
20040 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20041
20042 According to CLDR, collation rules for Serbian and Bosnian
20043 should be the same as for Croatian.
20044
20045 [BZ #22534]
20046 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20047 and to the list of locales to be built for testing.
20048 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20049 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20050 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20051 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20052
20053 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20054
20055 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20056 to make test case pass.
20057 * localedata/hr_HR.UTF-8.in: Add more test strings.
20058
20059 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20060
20061 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20062
20063 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20064
20065 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20066 the list of locales to built for testing.
20067 * localedata/hr_HR.UTF-8.in: New file.
20068
20069 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20070
20071 [BZ #10580]
20072 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20073 iso14651_t1.
20074 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20075 CLDR (except use ligatures for the digraphs, CLDR does not use
20076 the ligatures), add first_workday, some fixes in the date and time
20077 formats.
20078 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20079 for Đ and đ.
20080 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20081 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20082 Add int_p_cs_precedes and int_n_cs_precedes.
20083 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20084 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20085 LC_MONETARY now).
20086 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20087 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20088 name_miss.
20089 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20090 and lang_lib. Change postal_fmt.
20091
20092 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20093
20094 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20095 <setjmp.h>.
20096 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20097 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20098 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20099 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20100 * sysdeps/generic/setjmpP.h: New file.
20101 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20102 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20103 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20104 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20105 Add jmp_buf-ssp.sym.
20106 (tests): Add tst-saved_mask-1.
20107
20108 2017-11-30 Arjun Shankar <arjun@redhat.com>
20109
20110 [BZ #22375]
20111 CVE-2017-17426
20112 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20113 instead of request2size.
20114
20115 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20116
20117 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20118 (__lllrint): Remove alias.
20119 (lllrint): Likewise.
20120 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20121 (__lllrintf): Likewise.
20122 (lllrintf): Likewise.
20123
20124 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20125 <libm-alias-float.h>.
20126 (copysignf): Define using libm_alias_float.
20127 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20128 <libm-alias-float.h>.
20129 (fabsf): Define using libm_alias_float.
20130 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20131 Include <libm-alias-float.h>.
20132 (copysignf): Define using libm_alias_float.
20133 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20134 <libm-alias-float.h>.
20135 (fabsf): Define using libm_alias_float.
20136 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20137 <libm-alias-float.h>.
20138 (fdimf): Define using libm_alias_float.
20139 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20140 <libm-alias-float.h>.
20141 (fmaf): Define using libm_alias_float.
20142 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20143 <libm-alias-float.h>.
20144 (llrintf): Define using libm_alias_float.
20145 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20146 Include <libm-alias-float.h>.
20147 (nearbyintf): Define using libm_alias_float.
20148 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20149 <libm-alias-float.h>.
20150 (rintf): Define using libm_alias_float.
20151 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20152 <libm-alias-float.h>.
20153 (llrintf): Define using libm_alias_float.
20154 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20155 <libm-alias-float.h>.
20156 (lrintf): Define using libm_alias_float.
20157 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20158 <libm-alias-float.h>.
20159 (nearbyintf): Define using libm_alias_float.
20160 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20161 <libm-alias-float.h>.
20162 (rintf): Define using libm_alias_float.
20163 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20164 <libm-alias-float.h>.
20165 (ceilf): Define using libm_alias_float.
20166 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20167 <libm-alias-float.h>.
20168 (floorf): Define using libm_alias_float.
20169 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20170 <libm-alias-float.h>.
20171 (fmaf): Define using libm_alias_float.
20172 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20173 <libm-alias-float.h>.
20174 (lrintf): Define using libm_alias_float.
20175 (llrintf): Likewise.
20176 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20177 <libm-alias-float.h>.
20178 (nearbyintf): Define using libm_alias_float.
20179 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20180 <libm-alias-float.h>.
20181 (rintf): Define using libm_alias_float.
20182 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20183 <libm-alias-float.h>.
20184 (truncf): Define using libm_alias_float.
20185 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20186 <libm-alias-float.h>.
20187 (copysignf): Define using libm_alias_float.
20188 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20189 <libm-alias-float.h>.
20190 (fabsf): Define using libm_alias_float.
20191 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20192 <libm-alias-float.h>.
20193 (lrintf): Define using libm_alias_float.
20194 (llrintf): Likewise.
20195 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20196 <libm-alias-float.h>.
20197 (nearbyintf): Define using libm_alias_float.
20198 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20199 <libm-alias-float.h>.
20200 (rintf): Define using libm_alias_float.
20201
20202 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20203
20204 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20205 <libm-alias-double.h>.
20206 (copysign): Define using libm_alias_double.
20207 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20208 <libm-alias-double.h>.
20209 (fabs): Define using libm_alias_double.
20210 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20211 Include <libm-alias-double.h>.
20212 (copysign): Define using libm_alias_double.
20213 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20214 <libm-alias-double.h>.
20215 (fabs): Define using libm_alias_double.
20216 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20217 <libm-alias-double.h>.
20218 (fdim): Define using libm_alias_double.
20219 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20220 <libm-alias-double.h>.
20221 (fma): Define using libm_alias_double.
20222 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20223 <libm-alias-double.h>.
20224 (llrint): Define using libm_alias_double.
20225 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20226 Include <libm-alias-double.h>.
20227 (nearbyint): Define using libm_alias_double.
20228 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20229 <libm-alias-double.h>.
20230 (rint): Define using libm_alias_double.
20231 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20232 <libm-alias-double.h>.
20233 (fabs): Define using libm_alias_double.
20234 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20235 <libm-alias-double.h>.
20236 (llrint): Define using libm_alias_double.
20237 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20238 <libm-alias-double.h>.
20239 (nearbyint): Define using libm_alias_double.
20240 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20241 <libm-alias-double.h>.
20242 (rint): Define using libm_alias_double.
20243 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20244 <libm-alias-double.h>.
20245 (ceil): Define using libm_alias_double.
20246 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20247 <libm-alias-double.h>.
20248 (floor): Define using libm_alias_double.
20249 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20250 <libm-alias-double.h>.
20251 (fma): Define using libm_alias_double.
20252 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20253 <libm-alias-double.h>.
20254 (lrint): Define using libm_alias_double.
20255 (llrint): Likewise.
20256 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20257 <libm-alias-double.h>.
20258 (nearbyint): Define using libm_alias_double.
20259 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20260 <libm-alias-double.h>.
20261 (rint): Define using libm_alias_double.
20262 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20263 <libm-alias-double.h>.
20264 (trunc): Define using libm_alias_double.
20265 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20266 <libm-alias-double.h>.
20267 (copysign): Define using libm_alias_double.
20268 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20269 <libm-alias-double.h>.
20270 (fabs): Define using libm_alias_double.
20271 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20272 <libm-alias-double.h>.
20273 (lrint): Define using libm_alias_double.
20274 (llrint): Likewise.
20275 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20276 <libm-alias-double.h>.
20277 (nearbyint): Define using libm_alias_double.
20278 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20279 <libm-alias-double.h>.
20280 (rint): Define using libm_alias_double.
20281
20282 [BZ #22229]
20283 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20284 <math_ldbl_opt.h>.
20285 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20286
20287 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20288 SPARC --disable-multi-arch glibc variants.
20289
20290 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20291 <libm-alias-float.h>.
20292 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20293 if [SHARED].
20294 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20295 <libm-alias-float.h>.
20296 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20297 if [SHARED].
20298 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20299 <libm-alias-float.h>.
20300 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20301 if [SHARED].
20302 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20303 <libm-alias-float.h>.
20304 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20305 if [SHARED].
20306 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20307 <libm-alias-float.h>.
20308 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20309 if [SHARED].
20310 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20311 <libm-alias-float.h>.
20312 (ceilf): Define using libm_alias_float.
20313 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20314 <libm-alias-float.h>.
20315 (floorf): Define using libm_alias_float.
20316 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20317 <libm-alias-float.h>.
20318 (fmaf): Define using libm_alias_float.
20319 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20320 <libm-alias-float.h>.
20321 (nearbyintf): Define using libm_alias_float.
20322 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20323 <libm-alias-float.h>.
20324 (rintf): Define using libm_alias_float.
20325 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20326 <libm-alias-float.h>.
20327 (truncf): Define using libm_alias_float.
20328 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20329 (copysignf): Define using libm_alias_float.
20330 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20331 (cosf): Define using libm_alias_float.
20332 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20333 (fabsf): Define using libm_alias_float.
20334 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20335 (fmaxf): Define using libm_alias_float.
20336 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20337 (fminf): Define using libm_alias_float.
20338 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20339 (llrintf): Define using libm_alias_float.
20340 [!__ILP32__] (lrintf): Likewise.
20341 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20342 (sincosf): Define using libm_alias_float.
20343 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20344 (sinf): Define using libm_alias_float.
20345 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20346 (lrintf): Define using libm_alias_float.
20347
20348 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20349 <libm-alias-double.h>.
20350 (atan): Define using libm_alias_double.
20351 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20352 <libm-alias-double.h>.
20353 (ceil): Define using libm_alias_double.
20354 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
20355 <libm-alias-double.h>.
20356 (floor): Define using libm_alias_double.
20357 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
20358 <libm-alias-double.h>.
20359 (fma): Define using libm_alias_double.
20360 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
20361 <libm-alias-double.h>.
20362 (nearbyint): Define using libm_alias_double.
20363 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20364 <libm-alias-double.h>.
20365 (rint): Define using libm_alias_double.
20366 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20367 <libm-alias-double.h>.
20368 (sin): Define using libm_alias_double.
20369 (cos): Likewise.
20370 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20371 <libm-alias-double.h>.
20372 (tan): Define using libm_alias_double.
20373 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20374 <libm-alias-double.h>.
20375 (trunc): Define using libm_alias_double.
20376 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20377 (copysign): Define using libm_alias_double.
20378 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
20379 (fabs): Define using libm_alias_double.
20380 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
20381 (fmax): Define using libm_alias_double.
20382 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
20383 (fmin): Define using libm_alias_double.
20384 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
20385 (llrint): Define using libm_alias_double.
20386 [!__ILP32__] (lrint): Likewise.
20387 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
20388 (lrint): Define using libm_alias_double.
20389
20390 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20391
20392 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20393 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
20394 objects.
20395 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
20396 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
20397 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
20398 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
20399 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
20400 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20401
20402 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20403 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
20404 objects.
20405 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
20406 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
20407 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
20408 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
20409 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
20410 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20411
20412 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20413 (libm-sysdep_routines): Add s_nearbyint-generic and
20414 s_nearbyintf-generic objects.
20415 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
20416 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
20417 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
20418 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
20419 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
20420 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
20421
20422 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20423 Add s_finitef-generic and s_finite-generic objects.
20424 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
20425 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
20426 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
20427 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
20428 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
20429 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
20430
20431 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20432 Add s_isinff-generic and s_isinf-generic objects.
20433 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
20434 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
20435 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
20436 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
20437 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
20438 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
20439
20440 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20441 Add s_isnanf-generic and s_isnan-generic objects.
20442 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
20443 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
20444 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
20445 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
20446 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
20447 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
20448
20449 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
20450 macro.
20451 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
20452 rule.
20453 (sysdep_routines): Use sysdep_calls as base.
20454 (libm-sysdep_routines): Add generic rule for symbols shared with
20455 libc. Add s_signbit-generic and s_signbitf-generic objects.
20456 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
20457 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
20458 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
20459 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
20460 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
20461 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
20462
20463 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20464
20465 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
20466 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
20467 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
20468 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
20469 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
20470 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
20471 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
20472 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
20473 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
20474 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
20475 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
20476 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
20477 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
20478 libm_alias_float_r.
20479 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
20480 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
20481 (logf): Likewise.
20482 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
20483 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
20484 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
20485 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
20486 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
20487 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
20488 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
20489 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
20490 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
20491 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
20492 libm_alias_float.
20493 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
20494 (cosf): Likewise.
20495 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
20496 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
20497 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
20498 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
20499 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
20500 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
20501 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
20502 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
20503 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
20504 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
20505 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
20506 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
20507 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
20508 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
20509 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
20510 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
20511 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
20512 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
20513 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
20514 libm_alias_float.
20515 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
20516 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
20517 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
20518 * sysdeps/ia64/fpu/w_lgammaf_main.c
20519 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
20520 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
20521
20522 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20523 Alexandre Oliva <aoliva@redhat.com>
20524
20525 [BZ #17750]
20526 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
20527 * localedata/fr_CA.UTF-8.in: New file with test data for backward
20528 accents sorting.
20529 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
20530 sorting.
20531 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
20532 * localedata/locales/de_DE (LC_COLLATE): Likewise.
20533 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
20534 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
20535 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
20536 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
20537 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
20538 instead of “ifdef DIACRIT_BACKWARD”.
20539
20540 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20541
20542 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
20543 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
20544 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
20545 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
20546 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
20547 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
20548 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
20549 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
20550 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
20551 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
20552 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
20553 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
20554 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
20555 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
20556 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
20557 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20558 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
20559 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
20560 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20561 ($(have-as-vis3) == yes): Remove conditional.
20562 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
20563 Likewise.
20564 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
20565 file.
20566 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
20567 file.
20568 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
20569 file.
20570 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
20571 file.
20572 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
20573 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
20574 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
20575 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
20576 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
20577 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
20578 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
20579 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
20580
20581 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20582
20583 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
20584 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
20585 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
20586 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
20587 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
20588 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
20589 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
20590 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
20591 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
20592 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
20593 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
20594 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
20595 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
20596 libm_alias_double_r.
20597 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
20598 (log): Likewise.
20599 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
20600 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
20601 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
20602 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
20603 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
20604 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
20605 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
20606 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
20607 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
20608 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
20609 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
20610 libm_alias_double.
20611 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
20612 (cos): Likewise.
20613 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
20614 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
20615 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
20616 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
20617 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
20618 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
20619 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
20620 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
20621 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
20622 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
20623 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
20624 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
20625 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
20626 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
20627 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
20628 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
20629 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
20630 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
20631 libm_alias_double.
20632 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
20633 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
20634 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
20635 * sysdeps/ia64/fpu/w_lgamma_main.c
20636 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
20637 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
20638
20639 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
20640
20641 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
20642 address of $global$ into %dp register earlier. Use pc-relative
20643 instruction sequence for PIC case.
20644
20645 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20646
20647 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
20648 (asinhf): Define using libm_alias_float.
20649 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
20650 (atanf): Define using libm_alias_float.
20651 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
20652 (cbrtf): Define using libm_alias_float.
20653 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
20654 (ceilf): Define using libm_alias_float.
20655 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20656 (copysignf): Define using libm_alias_float.
20657 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
20658 (expm1f): Define using libm_alias_float.
20659 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
20660 (fabsf): Define using libm_alias_float.
20661 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
20662 (floorf): Define using libm_alias_float.
20663 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20664 (fmaxf): Define using libm_alias_float.
20665 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
20666 (fminf): Define using libm_alias_float.
20667 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
20668 (frexpf): Define using libm_alias_float.
20669 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20670 (llrintf): Define using libm_alias_float.
20671 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
20672 (logbf): Define using libm_alias_float.
20673 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20674 (lrintf): Define using libm_alias_float.
20675 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
20676 (nearbyintf): Define using libm_alias_float.
20677 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
20678 (remquof): Define using libm_alias_float.
20679 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
20680 (rintf): Define using libm_alias_float.
20681 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
20682 (truncf): Define using libm_alias_float.
20683 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
20684 <libm-alias-float.h>.
20685 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20686 if [SHARED].
20687 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
20688 <libm-alias-float.h>.
20689 (expf): Define using libm_alias_float, or libm_alias_float_other
20690 if [SHARED].
20691 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
20692 <libm-alias-float.h>.
20693 (log2f): Define using libm_alias_float, or libm_alias_float_other
20694 if [SHARED].
20695 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
20696 <libm-alias-float.h>.
20697 (logf): Define using libm_alias_float, or libm_alias_float_other
20698 if [SHARED].
20699 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
20700 <libm-alias-float.h>.
20701 (powf): Define using libm_alias_float, or libm_alias_float_other
20702 if [SHARED].
20703 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
20704 <libm-alias-float.h>.
20705 (cosf): Define using libm_alias_float.
20706 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
20707 <libm-alias-float.h>.
20708 (sincosf): Define using libm_alias_float.
20709 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
20710 <libm-alias-float.h>.
20711 (sinf): Define using libm_alias_float.
20712 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20713 (fmaxf): Define using libm_alias_float.
20714 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
20715 (fminf): Define using libm_alias_float.
20716 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20717 <libm-alias-float.h>.
20718 (fmaf): Define using libm_alias_float.
20719
20720 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
20721 (asinh): Define using libm_alias_double.
20722 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
20723 (atan): Define using libm_alias_double.
20724 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
20725 (cbrt): Define using libm_alias_double.
20726 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
20727 (ceil): Define using libm_alias_double.
20728 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
20729 (copysign): Define using libm_alias_double.
20730 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
20731 (expm1): Define using libm_alias_double.
20732 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
20733 (fabs): Define using libm_alias_double.
20734 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
20735 (fdim): Define using libm_alias_double.
20736 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
20737 (floor): Define using libm_alias_double.
20738 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
20739 (fmax): Define using libm_alias_double.
20740 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
20741 (fmin): Define using libm_alias_double.
20742 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
20743 (frexp): Define using libm_alias_double.
20744 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
20745 (llrint): Define using libm_alias_double.
20746 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
20747 (logb): Define using libm_alias_double.
20748 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
20749 (lrint): Define using libm_alias_double.
20750 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
20751 (nearbyint): Define using libm_alias_double.
20752 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
20753 (remquo): Define using libm_alias_double.
20754 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
20755 (rint): Define using libm_alias_double.
20756 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
20757 (trunc): Define using libm_alias_double.
20758 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
20759 (fmax): Define using libm_alias_double.
20760 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
20761 (fmin): Define using libm_alias_double.
20762 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
20763 (fma): Define using libm_alias_double.
20764
20765 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
20766
20767 [BZ #22370]
20768 * elf/dl-hwcaps.c (ROUND): Removed.
20769 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
20770 and ELF_NOTE_NEXT_OFFSET.
20771 * elf/dl-load.c (ROUND): Removed.
20772 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20773 * elf/readelflib.c (ROUND): Removed.
20774 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20775 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
20776 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
20777 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
20778
20779 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20780
20781 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20782 [!__fmaf] (fmaf): Define using libm_alias_float.
20783
20784 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
20785 [!__fma] (fma): Define using libm_alias_double.
20786 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
20787
20788 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20789
20790 [BZ #22336]
20791 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
20792 and implement the collation rules for cs from CLDR on top of that.
20793 * Makefile: Add cs_CZ.UTF-8 to test-input.
20794 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
20795
20796 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
20797
20798 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
20799
20800 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20801 Icarus Sparry <icarus.w.sparry@intel.com>
20802
20803 * benchtests/Makefile:Add BENCHSET to allow subsets of
20804 benchmarks to be run.
20805 * benchtests/README: Add documentation for: Running subsets of
20806 benchmarks.
20807
20808 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20809
20810 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
20811 range of tests names.
20812
20813 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
20814 result from property and remove "max", min" and "mean" from
20815 required properties based on benchtests/bench-skeleton.c.
20816
20817 2017-11-28 Florian Weimer <fweimer@redhat.com>
20818
20819 [BZ #20826]
20820 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
20821 due to Internet requirement.
20822 * posix/Makefile (tests): Remove tst-getaddrinfo4,
20823 tst-getaddrinfo5.
20824 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
20825
20826 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20827
20828 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20829 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
20830 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20831 (sysdep_routines): Add memset-ultra1.
20832 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
20833 file.
20834 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
20835 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
20836 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
20837 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
20838 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
20839 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
20840 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
20841 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20842
20843 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
20844 file.
20845 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
20846 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
20847 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
20848 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
20849 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
20850 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
20851 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
20852 macro.
20853 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20854 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
20855 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20856 (sysdep_routines): Add memcpy-ultra1.
20857 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
20858 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
20859
20860 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20861
20862 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
20863 (cfloat_versions): Take function argument without trailing 'f'.
20864 Call libm_alias_float_other.
20865 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
20866 * sysdeps/alpha/fpu/cargf.c: Likewise.
20867 * sysdeps/alpha/fpu/cimagf.c: Likewise.
20868 * sysdeps/alpha/fpu/conjf.c: Likewise.
20869 * sysdeps/alpha/fpu/crealf.c: Likewise.
20870 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
20871 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
20872 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
20873 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
20874 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
20875 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
20876 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
20877 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
20878 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
20879 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
20880 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
20881 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
20882 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
20883 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
20884 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
20885 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
20886 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
20887 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
20888 (clog10f): Use libm_alias_float_other.
20889 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20890 (ceilf): Define using libm_alias_float.
20891 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
20892 (copysignf): Define using libm_alias_float.
20893 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20894 (fabsf): Define using libm_alias_float.
20895 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
20896 (floorf): Define using libm_alias_float.
20897 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
20898 (fmaxf): Define using libm_alias_float.
20899 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
20900 (fminf): Define using libm_alias_float.
20901 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20902 (lrintf): Define using libm_alias_float.
20903 (llrintf): Likewise.
20904 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20905 (lroundf): Define using libm_alias_float.
20906 (llroundf): Likewise.
20907 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
20908 (rintf): Define using libm_alias_float.
20909 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
20910 (truncf): Define using libm_alias_float.
20911
20912 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20913 (ceilf): Define using libm_alias_float.
20914 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
20915 (floorf): Define using libm_alias_float.
20916 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20917 (fmaf): Define using libm_alias_float.
20918 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
20919 (fmaxf): Define using libm_alias_float.
20920 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
20921 (fminf): Define using libm_alias_float.
20922 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
20923 (llrintf): Define using libm_alias_float.
20924 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
20925 (llroundf): Define using libm_alias_float.
20926 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20927 (lrintf): Define using libm_alias_float.
20928 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20929 (lroundf): Define using libm_alias_float.
20930 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
20931 <libm-alias-float.h>.
20932 (nearbyintf): Define using libm_alias_float.
20933 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
20934 (rintf): Define using libm_alias_float.
20935 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
20936 (roundf): Define using libm_alias_float.
20937 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
20938 (truncf): Define using libm_alias_float.
20939
20940 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
20941 (ceil): Define using libm_alias_double.
20942 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
20943 (copysign): Define using libm_alias_double.
20944 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
20945 (fabs): Define using libm_alias_double.
20946 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
20947 (floor): Define using libm_alias_double.
20948 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
20949 (fmax): Define using libm_alias_double.
20950 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
20951 (fmin): Define using libm_alias_double.
20952 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
20953 (lrint): Define using libm_alias_double.
20954 (llrint): Likewise.
20955 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
20956 (lround): Define using libm_alias_double.
20957 (llround): Likewise.
20958 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
20959 (rint): Define using libm_alias_double.
20960 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
20961 (trunc): Define using libm_alias_double.
20962
20963 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
20964 (libm_alias_double_r): Add semicolon after weak_alias call.
20965
20966 2017-11-27 Joseph Myers <joseph@codesourcery.com>
20967
20968 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
20969 (ceil): Define using libm_alias_double.
20970 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
20971 (floor): Define using libm_alias_double.
20972 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
20973 (fma): Define using libm_alias_double.
20974 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
20975 (fmax): Define using libm_alias_double.
20976 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
20977 (fmin): Define using libm_alias_double.
20978 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
20979 (llrint): Define using libm_alias_double.
20980 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
20981 (llround): Define using libm_alias_double.
20982 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
20983 (lrint): Define using libm_alias_double.
20984 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
20985 (lround): Define using libm_alias_double.
20986 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
20987 (nearbyint): Define using libm_alias_double.
20988 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
20989 (rint): Define using libm_alias_double.
20990 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
20991 (round): Define using libm_alias_double.
20992 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
20993 (trunc): Define using libm_alias_double.
20994
20995 2017-11-27 Florian Weimer <fweimer@redhat.com>
20996
20997 * sysdeps/unix/sysv/linux/mlock2.c: New file.
20998 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
20999 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
21000 (tests): Add tst-mlock2.
21001 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
21002 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
21003 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
21004 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
21005 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
21006 for mlock. Document mlock2.
21007
21008 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21009
21010 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21011 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21012 Likewise.
21013 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21014 Likewise.
21015 * sysdeps/x86/Makeconfig: New file.
21016 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21017 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21018 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21019 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21020 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21021 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21022 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21023 Likewise.
21024 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21025 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21026 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21027 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21028 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21029 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21030 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21031 * manual/math.texi (Mathematics): Document support for _Float64x.
21032 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21033 * stdlib/Versions (GLIBC_2.27): Likewise.
21034 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21035 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21036 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21037 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21038 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21039 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21040 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21041 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21042 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21043 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21044 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21045 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21046 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21047 Likewise.
21048 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21049 Likewise.
21050 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21051 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21052 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21053 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21054 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21055 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21056 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21057 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21058 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21059 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21060 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21061 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21062 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21063 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21064
21065 2017-11-27 Andreas Schwab <schwab@suse.de>
21066
21067 * elf/Makefile (dl-routines): Add dl-sort-maps.
21068 * elf/dl-sort-maps.c: New file.
21069 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21070 (_dl_sort_maps): Declare.
21071 * elf/dl-fini.c (_dl_sort_fini): Remove.
21072 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21073 * elf/dl-close.c (_dl_close_worker): Likewise.
21074 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21075 open-coding it.
21076 * elf/dl-open.c (dl_open_worker): Likewise.
21077
21078 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21079
21080 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21081 using libm_alias_float128.
21082 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21083 Likewise.
21084 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21085 Likewise.
21086 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21087 (setpayloadsigf128): Likewise.
21088 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21089 Likewise.
21090 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21091 Likewise.
21092
21093 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21094 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21095 -mfloat128 to CFLAGS.
21096 ($(foreach
21097 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21098 Likewise.
21099 (CFLAGS-libm-test-support-float64x.c): New variable.
21100 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21101 $(f128-loader-link) to gnulib-tests.
21102
21103 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21104 (libm_alias_float128_other_r): If
21105 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21106 alias.
21107 (libm_alias_float128_r): Add semicolon after weak_alias call.
21108 * sysdeps/generic/libm-alias-ldouble.h
21109 (libm_alias_ldouble_other_r_f128): New macro.
21110 (libm_alias_ldouble_other_r_f64x): Likewise.
21111 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21112 and libm_alias_ldouble_other_r_f64x.
21113 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21114 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21115 (libm_alias_ldouble_other_r_f128): New macro.
21116 (libm_alias_ldouble_other_r_f64x): Likewise.
21117 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21118 and libm_alias_ldouble_other_r_f64x.
21119
21120 * stdlib/strfroml.c: Always include <stdlib.h>.
21121 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21122 undefine as macro and define as weak alias.
21123 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21124 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21125 <stdlib.h>.
21126 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21127 Define and later undefine as macro and define as weak alias.
21128
21129 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21130 Define and later undefine as macro. Define as weak alias if
21131 [!USE_WIDE_CHAR].
21132 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21133 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21134 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21135 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21136 Define and later undefine as macro. Define as weak alias if
21137 [!USE_WIDE_CHAR].
21138 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21139 Define and later undefine as macro. Define as weak alias if
21140 [USE_WIDE_CHAR].
21141 * sysdeps/ieee754/float128/strtof128_l.c
21142 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21143 Define and later undefine as macro. Define as weak alias if
21144 [!USE_WIDE_CHAR].
21145 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21146 Define and later undefine as macro. Define as weak alias if
21147 [USE_WIDE_CHAR].
21148 * sysdeps/ieee754/ldbl-128/strtold_l.c
21149 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21150 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21151 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21152 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21153 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21154 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21155 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21156 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21157 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21158 * sysdeps/ieee754/ldbl-96/strtold_l.c
21159 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21160 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21161 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21162 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21163
21164 * math/test-float64x.h: New file.
21165 * math/Makefile (type-float64x-yes): New variable.
21166 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21167
21168 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21169 function-like macro.
21170 (min_of_type_): Likewise.
21171 (min_of_type_l): Likewise.
21172 (min_of_type_f128): Likewise.
21173 (min_of_type): Pass () as last argument of __MATH_TG.
21174
21175 * stdlib/tst-strtod-round-skeleton.c
21176 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21177 headers.
21178
21179 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21180 for combinations of long double with _Float64 and _Float64x.
21181
21182 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21183 (__DECL_SIMD_cosf32): Likewise.
21184 (__DECL_SIMD_cosf64): Likewise.
21185 (__DECL_SIMD_cosf32x): Likewise.
21186 (__DECL_SIMD_cosf64x): Likewise.
21187 (__DECL_SIMD_cosf128x): Likewise.
21188 (__DECL_SIMD_sinf16): Likewise.
21189 (__DECL_SIMD_sinf32): Likewise.
21190 (__DECL_SIMD_sinf64): Likewise.
21191 (__DECL_SIMD_sinf32x): Likewise.
21192 (__DECL_SIMD_sinf64x): Likewise.
21193 (__DECL_SIMD_sinf128x): Likewise.
21194 (__DECL_SIMD_sincosf16): Likewise.
21195 (__DECL_SIMD_sincosf32): Likewise.
21196 (__DECL_SIMD_sincosf64): Likewise.
21197 (__DECL_SIMD_sincosf32x): Likewise.
21198 (__DECL_SIMD_sincosf64x): Likewise.
21199 (__DECL_SIMD_sincosf128x): Likewise.
21200 (__DECL_SIMD_logf16): Likewise.
21201 (__DECL_SIMD_logf32): Likewise.
21202 (__DECL_SIMD_logf64): Likewise.
21203 (__DECL_SIMD_logf32x): Likewise.
21204 (__DECL_SIMD_logf64x): Likewise.
21205 (__DECL_SIMD_logf128x): Likewise.
21206 (__DECL_SIMD_expf16): Likewise.
21207 (__DECL_SIMD_expf32): Likewise.
21208 (__DECL_SIMD_expf64): Likewise.
21209 (__DECL_SIMD_expf32x): Likewise.
21210 (__DECL_SIMD_expf64x): Likewise.
21211 (__DECL_SIMD_expf128x): Likewise.
21212 (__DECL_SIMD_powf16): Likewise.
21213 (__DECL_SIMD_powf32): Likewise.
21214 (__DECL_SIMD_powf64): Likewise.
21215 (__DECL_SIMD_powf32x): Likewise.
21216 (__DECL_SIMD_powf64x): Likewise.
21217 (__DECL_SIMD_powf128x): Likewise.
21218
21219 * stdlib/Versions (libc): Move entries for wcstof128 and
21220 wcstof128_l to ....
21221 * wcsmbs/Versions (libc): ... here.
21222 Include <float128-abi.h>.
21223
21224 2017-11-24 Florian Weimer <fweimer@redhat.com>
21225
21226 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21227 bits/mman-shared.h.
21228 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21229 <bits/mman-shared.h>.
21230 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21231 to ...
21232 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21233 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21234 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21235 <bits/mman-shared.h>.
21236
21237 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21238
21239 [BZ #22457]
21240 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21241 posix_memalign/free.
21242 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21243
21244 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21245
21246 [BZ #22469]
21247 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21248 and implement the collation rules for pl from CLDR on top of that.
21249 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21250 of locales to be built for testing.
21251 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21252
21253 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21254
21255 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21256 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21257 libm_alias_ldouble_other.
21258 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21259 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21260 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21261 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21262 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21263 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21264 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21265 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21266 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21267 libm_alias_ldouble_r.
21268 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21269 libm_alias_ldouble_other.
21270 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21271 (log10l): Likewise.
21272 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21273 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21274 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21275 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21276 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21277 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21278 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21279 (atan2l): Likewise.
21280 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21281 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21282 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21283 libm_alias_ldouble.
21284 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21285 (cosl): Likewise.
21286 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21287 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21288 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21289 (expl): Likewise.
21290 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21291 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21292 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21293 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21294 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21295 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21296 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21297 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21298 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21299 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21300 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21301 libm_alias_ldouble.
21302 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21303 libm_alias_ldouble_other.
21304 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21305 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21306 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21307 libm_alias_ldouble.
21308 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21309 libm_alias_ldouble_other.
21310 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21311 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21312 * sysdeps/ia64/fpu/w_lgammal_main.c
21313 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21314 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21315
21316 2017-11-23 Florian Weimer <fweimer@redhat.com>
21317
21318 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21319 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21320 alike. Remove freeres marker.
21321 * malloc/arena.c (arena_thread_freeres): Call
21322 tcache_thread_shutdown.
21323
21324 2017-11-23 Florian Weimer <fweimer@redhat.com>
21325
21326 [BZ #22459]
21327 Export nscd hash function as __nss_hash.
21328 * include/nss.h (__nss_hash): Declare.
21329 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21330 symbol.
21331 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21332 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21333 of __nscd_hash.
21334 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21335 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21336 * nss/Makefiles (routines): Add nss_hash.
21337 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21338 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21339 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21340 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21341
21342 2017-11-23 Florian Weimer <fweimer@redhat.com>
21343
21344 [BZ #22478]
21345 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21346 Return error code, not -1.
21347 * signal/tst-sigwait-eintr.c: New file.
21348 * signal/Makefile (tests): Add tst-sigwait-eintr.
21349
21350 2017-11-23 Florian Weimer <fweimer@redhat.com>
21351
21352 Linux: Add memfd_create system call wrapper
21353 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21354 tst-memfd_create.
21355 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
21356 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
21357 [__USE_GNU] (memfd_create): Declare.
21358 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
21359 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
21360 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
21361 * sysdeps/unix/sysv/linux/**.abilist: Update.
21362 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21363
21364 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21365
21366 * localedata/gen-locale.sh: Fix typo in variable name.
21367
21368 * resolv/res_debug.c (p_secstodate): Condition definition on
21369 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21370 directly as __p_secstodate, and as a compat symbol. Do not use
21371 libresolv_hidden_def.
21372 * resolv/resolv.h (p_secstodate): Remove macro and function
21373 declaration.
21374 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21375 using p_secstodate.
21376 * include/resolv.h (__p_secstodate): Do not use
21377 libresolv_hidden_proto.
21378 * resolv/Makefile (tests): Move tst-p_secstodate to ....
21379 (tests-internal): ... here.
21380 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
21381 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
21382 and declare and use __p_secstodate and use compat_symbol_reference
21383 in that case.
21384 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
21385 implementation returning 77.
21386
21387 [BZ #22463]
21388 * resolv/res_debug.c: Include <libc-diag.h>.
21389 (p_secstodate): Assert time_t at least as wide as u_long. On
21390 overflow, use integer seconds since the epoch as output, or use
21391 "<overflow>" as output and set errno to EOVERFLOW if integer
21392 seconds since the epoch would be 14 or more characters.
21393 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
21394 for sprintf call.
21395 * resolv/tst-p_secstodate.c: New file.
21396 * resolv/Makefile (tests): Add tst-p_secstodate.
21397 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
21398
21399 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
21400 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
21401 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
21402
21403 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
21404
21405 * posix/regcomp.c (init_word_char): Add comments.
21406
21407 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21408
21409 [BZ #22447]
21410 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
21411 strlen to compute length of ut_user and set trailing NUL byte of
21412 result explicitly.
21413
21414 2017-11-21 Mike FABIAN <mfabian@redhat.com>
21415
21416 [BZ #15537]
21417 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
21418 using “copy "iso14651_t1"” and then implementing the
21419 collation rules for lv from CLDR on top of that.
21420 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
21421 of locales to be built for testing.
21422 * lv_LV.UTF-8.in: New file with test data to test the Latvian
21423 sorting.
21424
21425 2017-11-21 Joseph Myers <joseph@codesourcery.com>
21426
21427 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21428 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
21429 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
21430 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
21431 [__USE_MISC] (MADV_HWPOISON): New macro.
21432 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
21433
21434 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21435
21436 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
21437 -Wmissing-braces on GCC 4.9.
21438
21439 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21440
21441 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
21442 * sysdeps/s390/s390-32/start.S (_start): Likewise
21443 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
21444 (thread_start): Likewise.
21445 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
21446 (thread_start): Likewise.
21447 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
21448 (__makecontext_ret): Likewise.
21449 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
21450 (__makecontext_ret): Likewise.
21451
21452 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21453
21454 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
21455 __wcschrnul): Remove attribute_hidden.
21456
21457 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
21458
21459 regex: don't assume uint64_t or uint32_t
21460 This avoids -Werror=overflow errors for 32-bit systems in
21461 the 64-bit case. Problem reported by Joseph Myers in:
21462 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
21463 Also, when this code is used in Gnulib it ports to platforms
21464 that lack uint64_t and uint32_t. The C standard doesn't guarantee
21465 them, and on some 32-bit compilers there is no uint64_t.
21466 Problem reported by Gianluigi Tiesi in:
21467 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
21468 * posix/regcomp.c (init_word_char): Don't assume that the types
21469 uint64_t and uint32_t exist. Adapted from Gnulib patch
21470 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
21471 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
21472
21473 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
21474
21475 * sysdeps/aarch64/memset-reg.h: New file.
21476 * sysdeps/aarch64/memset.S: Use it.
21477 (__memset): Rename to MEMSET macro.
21478 [ZVA_MACRO]: Use zva_macro.
21479 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21480 Add memset_generic and memset_falkor.
21481 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21482 (__libc_ifunc_impl_list): Add memset ifuncs.
21483 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
21484 local variable zva_size.
21485 * sysdeps/aarch64/multiarch/memset.c: New file.
21486 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
21487 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
21488 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
21489 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
21490 (DCZID_DZP_MASK): New macro.
21491 (DCZID_BS_MASK): Likewise.
21492 (init_cpu_features): Read and set zva_size.
21493 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
21494 (struct cpu_features): New member zva_size.
21495
21496 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
21497 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
21498 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
21499
21500 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
21501 backwards. Fix timing computation.
21502 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
21503 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
21504 on memset by N at a time. Fix timing computation.
21505
21506 2017-11-20 Florian Weimer <fweimer@redhat.com>
21507
21508 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
21509 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
21510
21511 2017-11-19 Florian Weimer <fweimer@redhat.com>
21512
21513 manual: Document mprotect
21514 * manual/memory.texi (Memory Protection): New section.
21515 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
21516 documentation of PROT_* flags and reference the Memory Protection
21517 section instead.
21518
21519 2017-11-19 Florian Weimer <fweimer@redhat.com>
21520
21521 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
21522 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
21523 (Scatter-Gather): ... to here. Remove misleading comment.
21524
21525 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
21526
21527 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
21528 style.
21529
21530 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
21531 when /proc/<pid>/setgroups does not exist.
21532
21533 2017-11-18 Florian Weimer <fweimer@redhat.com>
21534
21535 * sysdeps/unix/sysv/linux/tst-ttyname.c
21536 (become_root_in_mount_ns): Remove.
21537 (do_in_chroot_1): Call support_enter_mount_namespace.
21538 (do_in_chroot_2): Likewise.
21539 (do_test): Call support_become_root early.
21540
21541 2017-11-18 Florian Weimer <fweimer@redhat.com>
21542
21543 * support/namespace.h (support_enter_mount_namespace): Declare.
21544 * support/support_enter_mount_namespace.c: New file.
21545 * support/Makefile (libsupport-routines): Add
21546 support_enter_mount_namespace.
21547
21548 2017-11-18 Florian Weimer <fweimer@redhat.com>
21549
21550 * support/temp_file.c (support_create_temp_directory): Use
21551 test_dir and do not rely on the presence of the XXXXXX suffix.
21552 * support/temp_file.h (support_create_temp_directory): Update
21553 comment.
21554 * support/tst-xreadlink.c (do_test): Adjust.
21555 * support/support_chroot.c (support_chroot_create): Likewise.
21556
21557 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21558
21559 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
21560 macro.
21561 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
21562 htm-no-suspend.
21563
21564 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21565
21566 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21567 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21568 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21569 (ceill): Define using libm_alias_ldouble.
21570 * sysdeps/x86_64/fpu/s_copysignl.S: Include
21571 <libm-alias-ldouble.h>.
21572 (copysignl): Define using libm_alias_ldouble.
21573 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21574 (fabsl): Define using libm_alias_ldouble.
21575 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21576 (floorl): Define using libm_alias_ldouble.
21577 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21578 (fmaxl): Define using libm_alias_ldouble.
21579 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21580 (fminl): Define using libm_alias_ldouble.
21581 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21582 (llrintl): Define using libm_alias_ldouble.
21583 (lrintl): Likewise.
21584 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
21585 <libm-alias-ldouble.h>.
21586 (nearbyintl): Define using libm_alias_ldouble.
21587 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21588 (truncl): Define using libm_alias_ldouble.
21589 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
21590 <libm-alias-ldouble.h>.
21591 (lrintl): Define using libm_alias_ldouble.
21592
21593 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21594 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21595 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
21596 (asinhl): Define using libm_alias_ldouble.
21597 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
21598 (atanl): Define using libm_alias_ldouble.
21599 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
21600 (cbrtl): Define using libm_alias_ldouble.
21601 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21602 (ceill): Define using libm_alias_ldouble.
21603 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
21604 (copysignl): Define using libm_alias_ldouble.
21605 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21606 (fabsl): Define using libm_alias_ldouble.
21607 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21608 (floorl): Define using libm_alias_ldouble.
21609 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21610 (fmaxl): Define using libm_alias_ldouble.
21611 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21612 (fminl): Define using libm_alias_ldouble.
21613 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
21614 (frexpl): Define using libm_alias_ldouble.
21615 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21616 (llrintl): Define using libm_alias_ldouble.
21617 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
21618 (logbl): Define using libm_alias_ldouble.
21619 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
21620 (lrintl): Define using libm_alias_ldouble.
21621 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
21622 (nearbyintl): Define using libm_alias_ldouble.
21623 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
21624 (nextafterl): Define using libm_alias_ldouble.
21625 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
21626 (remquol): Define using libm_alias_ldouble.
21627 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
21628 (rintl): Define using libm_alias_ldouble.
21629 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21630 (truncl): Define using libm_alias_ldouble.
21631 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21632 (fmaxl): Define using libm_alias_ldouble.
21633 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21634 (fminl): Define using libm_alias_ldouble.
21635
21636 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
21637 to C syntax instead of availability and properties of types.
21638 * bits/floatn.h [!__ASSEMBLER]: Likewise.
21639 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
21640 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
21641 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
21642 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
21643 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
21644
21645 2017-11-17 Florian Weimer <fweimer@redhat.com>
21646
21647 support_become_root: Enable file creation in namespaces.
21648 * support/support_become_root.c (setup_mapping): New function.
21649 (support_become_root): Call it.
21650
21651 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21652
21653 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
21654 macro.
21655
21656 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21657
21658 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
21659 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
21660
21661 2017-11-16 Joseph Myers <joseph@codesourcery.com>
21662
21663 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
21664
21665 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21666 version to 4.14.
21667
21668 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
21669
21670 * INSTALL: Fix botched up regeneration.
21671
21672 * NEWS: Update sourceare link to https.
21673 * configure.ac: Likewise.
21674 * crypt/md5test-giant.c: Likewise.
21675 * dlfcn/bug-atexit1.c: Likewise.
21676 * dlfcn/bug-atexit2.c: Likewise.
21677 * localedata/README: Likewise.
21678 * malloc/tst-mallocfork.c: Likewise.
21679 * manual/install.texi: Likewise.
21680 * nptl/tst-pthread-getattr.c: Likewise.
21681 * stdio-common/tst-fgets.c: Likewise.
21682 * stdio-common/tst-fwrite.c: Likewise.
21683 * sunrpc/Makefile: Likewise.
21684 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
21685 * wcsmbs/tst-mbrtowc2.c: Likewise.
21686 * configure: Regenerate.
21687 * INSTALL: Regenerate.
21688
21689 2017-11-15 Martin Sebor <msebor@redhat.com>
21690
21691 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
21692 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
21693 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
21694
21695 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21696
21697 [BZ #22145]
21698 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
21699 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
21700
21701 [BZ #22145]
21702 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
21703 Defer is_pty check until end of the function.
21704 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21705
21706 [BZ #22145]
21707 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
21708 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
21709 (ttyname): Likewise.
21710 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
21711 (__ttyname_r): Likewise.
21712
21713 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
21714 int to bool.
21715
21716 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
21717
21718 * manual/terminal.texi (Is It a Terminal):
21719 Mention ENODEV for ttyname and ttyname_r.
21720
21721 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21722
21723 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
21724 constant and macro.
21725
21726 * sysdeps/unix/sysv/linux/bits/mman-linux.h
21727 [__USE_MISC] (MADV_WIPEONFORK): New macro.
21728 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21729 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21730 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
21731 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21732
21733 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21734
21735 * signal/sigrelse.c (sigrelse): Optimize implementation.
21736
21737 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
21738 (__sigpause): Rely on __sigsuspend to implement single thread
21739 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
21740
21741 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21742
21743 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
21744 kernel version to 4.14.
21745
21746 2017-11-15 Steve Ellcey <sellcey@cavium.com>
21747
21748 [BZ #22442]
21749 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
21750 Check if ifname is too long.
21751
21752 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21753
21754 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
21755
21756 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21757
21758 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
21759 was accidentally lost.
21760
21761 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21762
21763 * localedata/locales/az_IR: Add standard copyright header.
21764
21765 2017-11-15 Florian Weimer <fweimer@redhat.com>
21766
21767 [BZ #22439]
21768 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
21769 not just the top one. Output a new "subheaps" statistic.
21770
21771 2017-11-15 Florian Weimer <fweimer@redhat.com>
21772
21773 [BZ #22408]
21774 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
21775 under the per-arena lock.
21776 * malloc/Makefile (tests): Add tst-malloc_info.
21777 (tst-malloc_info): Link with libpthread.
21778 * malloc/tst-malloc_info.c: New file.
21779
21780 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21781
21782 [BZ #21660]
21783 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
21784 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
21785 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
21786 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
21787 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
21788 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
21789 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
21790 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
21791 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
21792 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
21793 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
21794 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
21795 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
21796 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
21797 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
21798 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
21799 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
21800 (__floating_type): Likewise.
21801 (__real_integer_type): Likewise.
21802 (__complex_integer_type): Likewise.
21803 (__expr_is_real): Likewise.
21804 (__tgmath_real_type_sub): Likewise.
21805 (__tgmath_real_type): Likewise.
21806 (__tgmath_complex_type_sub): Likewise.
21807 (__tgmath_complex_type): Likewise.
21808 (__TGMATH_F128): Likewise.
21809 (__TGMATH_CF128): Likewise.
21810 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
21811 new macros.
21812 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
21813 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
21814 Likewise.
21815 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
21816 Likewise.
21817 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
21818 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
21819 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
21820 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
21821 Likewise.
21822 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
21823 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
21824 Likewise.
21825 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
21826 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
21827 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
21828 Likewise.
21829 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
21830 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
21831 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
21832 (cimag): Likewise.
21833 (creal): Likewise.
21834
21835 2017-11-14 Joseph Myers <joseph@codesourcery.com>
21836
21837 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
21838 for stpncpy calls for GCC 8.
21839 (test_strncat): Disable -Wstringop-truncation warning for strncat
21840 calls for GCC 8. Disable -Wstringop-overflow= warning for one
21841 strncat call for GCC 7.
21842 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
21843 calls for GCC 8.
21844 (test_memcmp): Use memcpy instead of strncpy for calls not copying
21845 trailing NUL.
21846
21847 * string/bug-strncat1.c: Include <libc-diag.h>.
21848 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
21849
21850 2017-11-13 Claude Paroz <claude@2xlibre.net>
21851
21852 [BZ #22387]
21853 * localedata/locales/aa_DJ: Improved readibility by replacing
21854 <Uxxxx> sequences in the ASCII printable range by their ASCII
21855 character equivalents.
21856 * localedata/locales/aa_ER: Likewise.
21857 * localedata/locales/aa_ER@saaho: Likewise.
21858 * localedata/locales/aa_ET: Likewise.
21859 * localedata/locales/af_ZA: Likewise.
21860 * localedata/locales/agr_PE: Likewise.
21861 * localedata/locales/ak_GH: Likewise.
21862 * localedata/locales/am_ET: Likewise.
21863 * localedata/locales/anp_IN: Likewise.
21864 * localedata/locales/ar_AE: Likewise.
21865 * localedata/locales/ar_BH: Likewise.
21866 * localedata/locales/ar_DZ: Likewise.
21867 * localedata/locales/ar_EG: Likewise.
21868 * localedata/locales/ar_IN: Likewise.
21869 * localedata/locales/ar_IQ: Likewise.
21870 * localedata/locales/ar_JO: Likewise.
21871 * localedata/locales/ar_KW: Likewise.
21872 * localedata/locales/ar_LB: Likewise.
21873 * localedata/locales/ar_LY: Likewise.
21874 * localedata/locales/ar_MA: Likewise.
21875 * localedata/locales/ar_OM: Likewise.
21876 * localedata/locales/ar_QA: Likewise.
21877 * localedata/locales/ar_SA: Likewise.
21878 * localedata/locales/ar_SD: Likewise.
21879 * localedata/locales/ar_SS: Likewise.
21880 * localedata/locales/ar_SY: Likewise.
21881 * localedata/locales/ar_TN: Likewise.
21882 * localedata/locales/ar_YE: Likewise.
21883 * localedata/locales/as_IN: Likewise.
21884 * localedata/locales/ast_ES: Likewise.
21885 * localedata/locales/ayc_PE: Likewise.
21886 * localedata/locales/az_AZ: Likewise.
21887 * localedata/locales/az_IR: Likewise.
21888 * localedata/locales/be_BY: Likewise.
21889 * localedata/locales/be_BY@latin: Likewise.
21890 * localedata/locales/bem_ZM: Likewise.
21891 * localedata/locales/ber_DZ: Likewise.
21892 * localedata/locales/ber_MA: Likewise.
21893 * localedata/locales/bg_BG: Likewise.
21894 * localedata/locales/bhb_IN: Likewise.
21895 * localedata/locales/bho_IN: Likewise.
21896 * localedata/locales/bi_VU: Likewise.
21897 * localedata/locales/bn_BD: Likewise.
21898 * localedata/locales/bn_IN: Likewise.
21899 * localedata/locales/bo_CN: Likewise.
21900 * localedata/locales/bo_IN: Likewise.
21901 * localedata/locales/br_FR: Likewise.
21902 * localedata/locales/brx_IN: Likewise.
21903 * localedata/locales/bs_BA: Likewise.
21904 * localedata/locales/byn_ER: Likewise.
21905 * localedata/locales/ca_AD: Likewise.
21906 * localedata/locales/ca_ES: Likewise.
21907 * localedata/locales/ca_FR: Likewise.
21908 * localedata/locales/ca_IT: Likewise.
21909 * localedata/locales/ce_RU: Likewise.
21910 * localedata/locales/chr_US: Likewise.
21911 * localedata/locales/cmn_TW: Likewise.
21912 * localedata/locales/crh_UA: Likewise.
21913 * localedata/locales/cs_CZ: Likewise.
21914 * localedata/locales/csb_PL: Likewise.
21915 * localedata/locales/cv_RU: Likewise.
21916 * localedata/locales/cy_GB: Likewise.
21917 * localedata/locales/da_DK: Likewise.
21918 * localedata/locales/de_AT: Likewise.
21919 * localedata/locales/de_BE: Likewise.
21920 * localedata/locales/de_CH: Likewise.
21921 * localedata/locales/de_DE: Likewise.
21922 * localedata/locales/de_IT: Likewise.
21923 * localedata/locales/de_LI: Likewise.
21924 * localedata/locales/de_LU: Likewise.
21925 * localedata/locales/doi_IN: Likewise.
21926 * localedata/locales/dv_MV: Likewise.
21927 * localedata/locales/dz_BT: Likewise.
21928 * localedata/locales/el_CY: Likewise.
21929 * localedata/locales/el_GR: Likewise.
21930 * localedata/locales/en_AG: Likewise.
21931 * localedata/locales/en_AU: Likewise.
21932 * localedata/locales/en_BW: Likewise.
21933 * localedata/locales/en_CA: Likewise.
21934 * localedata/locales/en_DK: Likewise.
21935 * localedata/locales/en_GB: Likewise.
21936 * localedata/locales/en_HK: Likewise.
21937 * localedata/locales/en_IE: Likewise.
21938 * localedata/locales/en_IL: Likewise.
21939 * localedata/locales/en_IN: Likewise.
21940 * localedata/locales/en_NG: Likewise.
21941 * localedata/locales/en_NZ: Likewise.
21942 * localedata/locales/en_PH: Likewise.
21943 * localedata/locales/en_SG: Likewise.
21944 * localedata/locales/en_US: Likewise.
21945 * localedata/locales/en_ZA: Likewise.
21946 * localedata/locales/en_ZM: Likewise.
21947 * localedata/locales/en_ZW: Likewise.
21948 * localedata/locales/eo: Likewise.
21949 * localedata/locales/es_AR: Likewise.
21950 * localedata/locales/es_BO: Likewise.
21951 * localedata/locales/es_CL: Likewise.
21952 * localedata/locales/es_CO: Likewise.
21953 * localedata/locales/es_CR: Likewise.
21954 * localedata/locales/es_CU: Likewise.
21955 * localedata/locales/es_DO: Likewise.
21956 * localedata/locales/es_EC: Likewise.
21957 * localedata/locales/es_ES: Likewise.
21958 * localedata/locales/es_GT: Likewise.
21959 * localedata/locales/es_HN: Likewise.
21960 * localedata/locales/es_MX: Likewise.
21961 * localedata/locales/es_NI: Likewise.
21962 * localedata/locales/es_PA: Likewise.
21963 * localedata/locales/es_PE: Likewise.
21964 * localedata/locales/es_PR: Likewise.
21965 * localedata/locales/es_PY: Likewise.
21966 * localedata/locales/es_SV: Likewise.
21967 * localedata/locales/es_US: Likewise.
21968 * localedata/locales/es_UY: Likewise.
21969 * localedata/locales/es_VE: Likewise.
21970 * localedata/locales/et_EE: Likewise.
21971 * localedata/locales/eu_ES: Likewise.
21972 * localedata/locales/eu_ES@euro: Likewise.
21973 * localedata/locales/fa_IR: Likewise.
21974 * localedata/locales/ff_SN: Likewise.
21975 * localedata/locales/fi_FI: Likewise.
21976 * localedata/locales/fil_PH: Likewise.
21977 * localedata/locales/fo_FO: Likewise.
21978 * localedata/locales/fr_BE: Likewise.
21979 * localedata/locales/fr_CA: Likewise.
21980 * localedata/locales/fr_CH: Likewise.
21981 * localedata/locales/fr_FR: Likewise.
21982 * localedata/locales/fr_LU: Likewise.
21983 * localedata/locales/fur_IT: Likewise.
21984 * localedata/locales/fy_DE: Likewise.
21985 * localedata/locales/fy_NL: Likewise.
21986 * localedata/locales/ga_IE: Likewise.
21987 * localedata/locales/gd_GB: Likewise.
21988 * localedata/locales/gez_ER: Likewise.
21989 * localedata/locales/gez_ET: Likewise.
21990 * localedata/locales/gl_ES: Likewise.
21991 * localedata/locales/gu_IN: Likewise.
21992 * localedata/locales/gv_GB: Likewise.
21993 * localedata/locales/ha_NG: Likewise.
21994 * localedata/locales/hak_TW: Likewise.
21995 * localedata/locales/he_IL: Likewise.
21996 * localedata/locales/hi_IN: Likewise.
21997 * localedata/locales/hif_FJ: Likewise.
21998 * localedata/locales/hne_IN: Likewise.
21999 * localedata/locales/hr_HR: Likewise.
22000 * localedata/locales/hsb_DE: Likewise.
22001 * localedata/locales/ht_HT: Likewise.
22002 * localedata/locales/hu_HU: Likewise.
22003 * localedata/locales/hy_AM: Likewise.
22004 * localedata/locales/i18n: Likewise.
22005 * localedata/locales/ia_FR: Likewise.
22006 * localedata/locales/id_ID: Likewise.
22007 * localedata/locales/ig_NG: Likewise.
22008 * localedata/locales/ik_CA: Likewise.
22009 * localedata/locales/is_IS: Likewise.
22010 * localedata/locales/it_CH: Likewise.
22011 * localedata/locales/it_IT: Likewise.
22012 * localedata/locales/iu_CA: Likewise.
22013 * localedata/locales/ja_JP: Likewise.
22014 * localedata/locales/ka_GE: Likewise.
22015 * localedata/locales/kk_KZ: Likewise.
22016 * localedata/locales/kl_GL: Likewise.
22017 * localedata/locales/kn_IN: Likewise.
22018 * localedata/locales/ko_KR: Likewise.
22019 * localedata/locales/kok_IN: Likewise.
22020 * localedata/locales/ks_IN: Likewise.
22021 * localedata/locales/ks_IN@devanagari: Likewise.
22022 * localedata/locales/ku_TR: Likewise.
22023 * localedata/locales/kw_GB: Likewise.
22024 * localedata/locales/ky_KG: Likewise.
22025 * localedata/locales/lb_LU: Likewise.
22026 * localedata/locales/lg_UG: Likewise.
22027 * localedata/locales/li_BE: Likewise.
22028 * localedata/locales/li_NL: Likewise.
22029 * localedata/locales/lij_IT: Likewise.
22030 * localedata/locales/ln_CD: Likewise.
22031 * localedata/locales/lo_LA: Likewise.
22032 * localedata/locales/lt_LT: Likewise.
22033 * localedata/locales/lv_LV: Likewise.
22034 * localedata/locales/lzh_TW: Likewise.
22035 * localedata/locales/mag_IN: Likewise.
22036 * localedata/locales/mai_IN: Likewise.
22037 * localedata/locales/mg_MG: Likewise.
22038 * localedata/locales/mhr_RU: Likewise.
22039 * localedata/locales/mi_NZ: Likewise.
22040 * localedata/locales/mk_MK: Likewise.
22041 * localedata/locales/ml_IN: Likewise.
22042 * localedata/locales/mn_MN: Likewise.
22043 * localedata/locales/mni_IN: Likewise.
22044 * localedata/locales/mr_IN: Likewise.
22045 * localedata/locales/ms_MY: Likewise.
22046 * localedata/locales/mt_MT: Likewise.
22047 * localedata/locales/my_MM: Likewise.
22048 * localedata/locales/nan_TW: Likewise.
22049 * localedata/locales/nan_TW@latin: Likewise.
22050 * localedata/locales/nb_NO: Likewise.
22051 * localedata/locales/nds_DE: Likewise.
22052 * localedata/locales/nds_NL: Likewise.
22053 * localedata/locales/ne_NP: Likewise.
22054 * localedata/locales/nhn_MX: Likewise.
22055 * localedata/locales/niu_NU: Likewise.
22056 * localedata/locales/niu_NZ: Likewise.
22057 * localedata/locales/nl_AW: Likewise.
22058 * localedata/locales/nl_BE: Likewise.
22059 * localedata/locales/nl_NL: Likewise.
22060 * localedata/locales/nn_NO: Likewise.
22061 * localedata/locales/nr_ZA: Likewise.
22062 * localedata/locales/nso_ZA: Likewise.
22063 * localedata/locales/oc_FR: Likewise.
22064 * localedata/locales/om_ET: Likewise.
22065 * localedata/locales/om_KE: Likewise.
22066 * localedata/locales/or_IN: Likewise.
22067 * localedata/locales/os_RU: Likewise.
22068 * localedata/locales/pa_IN: Likewise.
22069 * localedata/locales/pa_PK: Likewise.
22070 * localedata/locales/pap_AW: Likewise.
22071 * localedata/locales/pap_CW: Likewise.
22072 * localedata/locales/pl_PL: Likewise.
22073 * localedata/locales/ps_AF: Likewise.
22074 * localedata/locales/pt_BR: Likewise.
22075 * localedata/locales/pt_PT: Likewise.
22076 * localedata/locales/quz_PE: Likewise.
22077 * localedata/locales/raj_IN: Likewise.
22078 * localedata/locales/ro_RO: Likewise.
22079 * localedata/locales/ru_RU: Likewise.
22080 * localedata/locales/ru_UA: Likewise.
22081 * localedata/locales/rw_RW: Likewise.
22082 * localedata/locales/sa_IN: Likewise.
22083 * localedata/locales/sat_IN: Likewise.
22084 * localedata/locales/sc_IT: Likewise.
22085 * localedata/locales/sd_IN: Likewise.
22086 * localedata/locales/sd_IN@devanagari: Likewise.
22087 * localedata/locales/se_NO: Likewise.
22088 * localedata/locales/sgs_LT: Likewise.
22089 * localedata/locales/shs_CA: Likewise.
22090 * localedata/locales/si_LK: Likewise.
22091 * localedata/locales/sid_ET: Likewise.
22092 * localedata/locales/sk_SK: Likewise.
22093 * localedata/locales/sl_SI: Likewise.
22094 * localedata/locales/sm_WS: Likewise.
22095 * localedata/locales/so_DJ: Likewise.
22096 * localedata/locales/so_ET: Likewise.
22097 * localedata/locales/so_KE: Likewise.
22098 * localedata/locales/so_SO: Likewise.
22099 * localedata/locales/sq_AL: Likewise.
22100 * localedata/locales/sq_MK: Likewise.
22101 * localedata/locales/sr_ME: Likewise.
22102 * localedata/locales/sr_RS: Likewise.
22103 * localedata/locales/sr_RS@latin: Likewise.
22104 * localedata/locales/ss_ZA: Likewise.
22105 * localedata/locales/st_ZA: Likewise.
22106 * localedata/locales/sv_FI: Likewise.
22107 * localedata/locales/sv_SE: Likewise.
22108 * localedata/locales/sw_KE: Likewise.
22109 * localedata/locales/sw_TZ: Likewise.
22110 * localedata/locales/szl_PL: Likewise.
22111 * localedata/locales/ta_IN: Likewise.
22112 * localedata/locales/ta_LK: Likewise.
22113 * localedata/locales/tcy_IN: Likewise.
22114 * localedata/locales/te_IN: Likewise.
22115 * localedata/locales/tg_TJ: Likewise.
22116 * localedata/locales/th_TH: Likewise.
22117 * localedata/locales/the_NP: Likewise.
22118 * localedata/locales/ti_ER: Likewise.
22119 * localedata/locales/ti_ET: Likewise.
22120 * localedata/locales/tig_ER: Likewise.
22121 * localedata/locales/tk_TM: Likewise.
22122 * localedata/locales/tl_PH: Likewise.
22123 * localedata/locales/tn_ZA: Likewise.
22124 * localedata/locales/to_TO: Likewise.
22125 * localedata/locales/tpi_PG: Likewise.
22126 * localedata/locales/tr_CY: Likewise.
22127 * localedata/locales/tr_TR: Likewise.
22128 * localedata/locales/ts_ZA: Likewise.
22129 * localedata/locales/tt_RU: Likewise.
22130 * localedata/locales/tt_RU@iqtelif: Likewise.
22131 * localedata/locales/ug_CN: Likewise.
22132 * localedata/locales/uk_UA: Likewise.
22133 * localedata/locales/unm_US: Likewise.
22134 * localedata/locales/ur_IN: Likewise.
22135 * localedata/locales/ur_PK: Likewise.
22136 * localedata/locales/uz_UZ: Likewise.
22137 * localedata/locales/uz_UZ@cyrillic: Likewise.
22138 * localedata/locales/ve_ZA: Likewise.
22139 * localedata/locales/vi_VN: Likewise.
22140 * localedata/locales/wa_BE: Likewise.
22141 * localedata/locales/wae_CH: Likewise.
22142 * localedata/locales/wal_ET: Likewise.
22143 * localedata/locales/wo_SN: Likewise.
22144 * localedata/locales/xh_ZA: Likewise.
22145 * localedata/locales/yi_US: Likewise.
22146 * localedata/locales/yo_NG: Likewise.
22147 * localedata/locales/yue_HK: Likewise.
22148 * localedata/locales/yuw_PG: Likewise.
22149 * localedata/locales/zh_CN: Likewise.
22150 * localedata/locales/zh_HK: Likewise.
22151 * localedata/locales/zh_SG: Likewise.
22152 * localedata/locales/zh_TW: Likewise.
22153 * localedata/locales/zu_ZA: Likewise.
22154
22155 2017-11-13 Florian Weimer <fweimer@redhat.com>
22156
22157 * support/next_to_fault.h, support/next_to_fault.c: New files.
22158 * support/Makefile (libsupport-routines): Add next_to_fault.
22159 * resolv/tst-inet_pton.c (struct next_to_fault)
22160 (next_to_fault_allocate, next_to_fault_free): Remove.
22161 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22162
22163 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22164
22165 * elf/dl-support.c: Include <dl-procruntime.c>.
22166 * include/link.h: Include <link_map.h>.
22167 * sysdeps/generic/dl-procruntime.c: New file.
22168 * sysdeps/generic/link_map.h: Likewise.
22169 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22170 the writable ld.so namespace.
22171
22172 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22173
22174 timezone: pacify GCC -Wstringop-truncation
22175 Problem reported by Martin Sebor in:
22176 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22177 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22178
22179 2017-11-12 Florian Weimer <fweimer@redhat.com>
22180
22181 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22182 tst-xreadlink.
22183 (tests): Add tst-xreadlink.
22184 * support/support.h (xstrndup): Declare.
22185 * support/xunistd.h (xunlink, xreadlink): Declare.
22186 * support/temp_file.h (support_create_temp_directory): Declare.
22187 * support/temp_file.c (support_create_temp_directory): New function.
22188 * support/support_chroot.c (support_chroot_create): Use it.
22189 * support/xreadlink.c: New file.
22190 * support/xstrndup.c: Likewise.
22191 * support/xunlink.c: Likewise.
22192 * support/tst-xreadlink.c: Likewise.
22193
22194 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22195
22196 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22197
22198 2017-11-11 Florian Weimer <fweimer@redhat.com>
22199
22200 [BZ #22409]
22201 [BZ #22412]
22202 * resolv/res_comp.c (printable_string, binary_hnok)
22203 (binary_leading_dash): New functions.
22204 (res_hnok): Reimplement using these functions and ns_name_pton.
22205 (res_ownok): Likewise.
22206 (res_mailok): Reimplement using printable_string, ns_name_pton and
22207 binary_hnok.
22208 (res_dnok): Reimplement using printable_string and ns_name_pton.
22209 * resolv/tst-res_hnok.c (tests): Add additional tests.
22210 (LETTERDIGITS, PRINTABLE): Define.
22211 (do_test): Adjust one_char results.
22212
22213 2017-11-11 Florian Weimer <fweimer@redhat.com>
22214
22215 [BZ #22413]
22216 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22217 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22218
22219 2017-11-11 Florian Weimer <fweimer@redhat.com>
22220
22221 * resolv/tst-ns_name_pton.c: New file.
22222 * resolv/Makefile (tests): Add tst-ns_name_pton.
22223 (tst-ns_name_pton): Link against libresolv.
22224
22225 2017-11-11 Florian Weimer <fweimer@redhat.com>
22226
22227 * resolv/tst-res_hnok.c: New file.
22228 * resolv/Makefile (tests): Add tst-res_hnok.
22229 (tst-res_hnok): Link against libresolv.
22230
22231 2017-11-11 Florian Weimer <fweimer@redhat.com>
22232
22233 * resolv/tst-resolv-network.c: Use test framework instead explicit
22234 main function.
22235
22236 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22237
22238 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22239 <jmp_buf-macros.h>.
22240 [!_ISOMAC] (STR_HELPER): New.
22241 [!_ISOMAC] (STR): Likewise.
22242 [!_ISOMAC] (TEST_SIZE): Likewise.
22243 [!_ISOMAC] (TEST_ALIGN): Likewise.
22244 [!_ISOMAC] (TEST_OFFSET): Likewise.
22245 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22246 field offsets of jmp_buf as well as sigjmp_buf.
22247 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22248 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22249 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22250 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22251 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22252 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22253 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22254 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22255 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22256 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22257 Likewise.
22258 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22259 Likewise.
22260 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22261 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22262 Likewise.
22263 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22264 Likewise.
22265 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22266 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22267 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22268 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22269 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22270 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22271 Likewise.
22272 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22273 Likewise.
22274 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22275 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22276 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22277
22278 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22279
22280 * include/float.h
22281 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22282 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22283 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22284 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22285 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22286 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22287 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22288 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22289 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22290 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22291 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22292 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22293 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22294 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22295 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22296 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22297 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22298 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22299 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22300 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22301 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22302 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22303 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22304 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22305 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22306 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22307 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22308 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22309 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22310 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22311 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22312 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22313 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22314 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22315 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22316 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22317 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22318 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22319 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22320 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22321 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22322 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22323 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22324 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22325 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22326 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22327 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22328 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22329 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22330 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22331 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22332 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22333 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22334 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22335 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22336 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22337 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22338 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22339 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22340 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22341 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22342 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22343 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22344 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22345 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22346 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22347 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22348 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22349 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22350 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22351 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22352 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22353 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22354 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
22355 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22356 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
22357 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22358 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
22359 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22360 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
22361 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22362 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22363 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22364 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22365 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22366 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22367 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22368 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22369
22370 * stdlib/tst-strtod.h (F16): New macro.
22371 (F32): Likewise.
22372 (F64): Likewise.
22373 (F32X): Likewise.
22374 (F64X): Likewise.
22375 (F128X): Likewise.
22376 (IF_FLOAT16): Likewise.
22377 (IF_FLOAT32): Likewise.
22378 (IF_FLOAT64): Likewise.
22379 (IF_FLOAT32X): Likewise.
22380 (IF_FLOAT64X): Likewise.
22381 (IF_FLOAT128X): Likewise.
22382 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
22383 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
22384 (STRTOD_TEST_FOREACH): Likewise.
22385 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
22386 (CHOOSE_f64): Likewise.
22387 (CHOOSE_f32x): Likewise.
22388 (CHOOSE_f64x): Likewise.
22389
22390 2017-11-07 Andreas Schwab <schwab@suse.de>
22391
22392 * nptl/Makefile (tests-internal): Remove tst-typesizes.
22393
22394 2017-11-07 Mike FABIAN <mfabian@redhat.com>
22395
22396 [BZ #22403]
22397 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
22398 to be escaped.
22399 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
22400 to be escaped.
22401
22402 2017-11-07 Claude Paroz <claude@2xlibre.net>
22403
22404 [BZ #22403]
22405 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
22406 to be escaped.
22407 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
22408 to be escaped.
22409 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
22410 to be escaped.
22411
22412 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22413
22414 [BZ #22298]
22415 * nptl/allocatestack.c (allocate_stack): Check if
22416 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
22417 __PTHREAD_MUTEX_HAVE_PREV is defined.
22418 * nptl/descr.h (pthread): Likewise.
22419 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
22420 Likewise.
22421 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22422 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22423 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
22424 * sysdeps/nptl/bits/thread-shared-types.h
22425 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22426 defines.
22427 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
22428 of __WORDSIZE for internal layout.
22429 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
22430 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
22431 instead of __WORDSIZE whether to use an union for __spins and __list
22432 fields.
22433 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
22434 case.
22435 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
22436 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22437 defines.
22438 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
22439 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22440 Likewise.
22441 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
22442 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22443 Likewise.
22444 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
22445 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22446 Likewise.
22447 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
22448 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22449 Likewise.
22450 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
22451 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22452 Likewise.
22453 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
22454 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22455 Likewise.
22456 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
22457 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22458 Likewise.
22459 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
22460 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22461 Likewise.
22462 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
22463 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22464 Likewise.
22465 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
22466 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22467 Likewise.
22468 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
22469 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22470 Likewise.
22471 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
22472 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22473 Likewise.
22474 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
22475 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22476 Likewise.
22477 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
22478 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22479 Likewise.
22480
22481 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
22482 New macros.
22483 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
22484 checks for expected input type size.
22485 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22486 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22487 Likewise.
22488 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22489 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
22490 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
22491 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
22492 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22493 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
22494 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
22495 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
22496 superflous runtime assert check.
22497 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
22498 Likewise.
22499 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
22500 Likewise.
22501 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22502 Likewise.
22503 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
22504 Likewise.
22505 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
22506 Likewise.
22507 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
22508 Likewise.
22509 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
22510 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
22511 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
22512 Likewise.
22513 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
22514 Likewise.
22515 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
22516 Likewise.
22517 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
22518 Likewise.
22519 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
22520 Likewise.
22521 * nptl/pthread_attr_setinheritsched.c
22522 (__pthread_attr_setinheritsched): Likewise.
22523 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
22524 Likewise.
22525 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
22526 Likewise.
22527 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
22528 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
22529 __old_pthread_attr_setstack): Likewise.
22530 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
22531 Likewise.
22532 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
22533 Likewise.
22534 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
22535 Likewise.
22536 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
22537 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
22538 Likewise.
22539 * nptl/tst-typesizes.c: Remove file.
22540
22541 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
22542 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
22543 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
22544 checks for internal pthread_mutex_t offsets.
22545 * sysdeps/aarch64/nptl/pthread-offsets.h
22546 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
22547 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
22548 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
22549 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
22550 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
22551 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
22552 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
22553 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
22554 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
22555 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
22556 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
22557 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
22558 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
22559 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
22560 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
22561 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
22562 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
22563 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
22564
22565 2017-11-07 Florian Weimer <fweimer@redhat.com>
22566
22567 * bits/mman-linux.h: Move ...
22568 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
22569 comment.
22570 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
22571 outdated comment.
22572
22573 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22574
22575 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
22576 Redefine STRNLEN as __strnlen_power8.
22577
22578 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22579
22580 * signal/sighold.c (sighold): Optimize implementation.
22581
22582 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
22583 __NR_rt_sigqueueinfo.
22584
22585 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
22586 __sigtimedwait.
22587 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
22588 assume __NR_rt_sigtimedwait.
22589 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
22590 and add LIBC_CANCEL_HANDLED for cancellation marking.
22591 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22592
22593 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22594 (sysdeps_routines): Add memchr_noneon.
22595 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
22596 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
22597 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
22598 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
22599 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
22600 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
22601 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
22602
22603 * sysdeps/arm/arm-ifunc.h: New file.
22604 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
22605 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
22606 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
22607 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
22608 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
22609 (__memcpy_neon): Avoid create hidden alias.
22610 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
22611 (__memcpy_vfp): Likewise.
22612 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22613 (sysdep_routines): Add memcpy_arm.
22614 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
22615
22616 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
22617
22618 [BZ #22362]
22619 * Makerules (make-link-multidir): New.
22620 * config.make.in (multidir): New.
22621 * configure.ac (libc_cv_multidir): New. AC_SUBST.
22622 * configure: Regenerated.
22623 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
22624 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
22625 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
22626 New target.
22627
22628 2017-11-06 Joseph Myers <joseph@codesourcery.com>
22629
22630 [BZ #22402]
22631 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
22632 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
22633
22634 2017-11-04 Mike FABIAN <mfabian@redhat.com>
22635
22636 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
22637 to be escaped.
22638
22639 2017-11-04 Florian Weimer <fweimer@redhat.com>
22640
22641 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
22642
22643 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22644
22645 * math/math.h [__HAVE_DISTINCT_FLOAT16
22646 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22647 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22648 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22649 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
22650 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
22651 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
22652 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22653 (__MATH_TG_F32): New macro.
22654 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22655 (__MATH_TG_F64X): Likewise.
22656 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22657 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
22658
22659 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
22660
22661 * po/de.po: Update translations.
22662 * po/ru.po: Likewise.
22663
22664 2017-11-03 Florian Weimer <fweimer@redhat.com>
22665
22666 * manual/filesys.texi (Hard Links): Document linkat.
22667
22668 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22669
22670 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
22671 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22672 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22673 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22674 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22675 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22676 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
22677 the same as _Float128.
22678 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22679 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22680 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
22681
22682 * stdlib/stdlib.h
22683 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
22684 Declare.
22685 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
22686 Likewise.
22687 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
22688 Likewise.
22689 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22690 (strtof32x): Likewise.
22691 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22692 (strtof64x): Likewise.
22693 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22694 (strtof128x): Likewise.
22695 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22696 (strfromf16): Likewise.
22697 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22698 (strfromf32): Likewise.
22699 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22700 (strfromf64): Likewise.
22701 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22702 (strfromf32x): Likewise.
22703 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22704 (strfromf64x): Likewise.
22705 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22706 (strfromf128x): Likewise.
22707 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
22708 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
22709 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
22710 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
22711 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
22712 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
22713
22714 2017-11-03 Richard Henderson <rth@twiddle.net>
22715
22716 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
22717
22718 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22719
22720 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
22721
22722 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22723
22724 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
22725 DT_TLSDESC_GOT initialization.
22726 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
22727 (_dl_tlsdesc_resolve_hold): Likewise.
22728 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
22729 (_dl_tlsdesc_resolve_hold): Likewise.
22730 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
22731 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22732
22733 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22734
22735 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
22736
22737 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22738
22739 [BZ #18572]
22740 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
22741 non-lazily for R_ARM_TLS_DESC.
22742
22743 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22744
22745 [BZ #17078]
22746 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
22747 R_ARM_TLS_DESC case.
22748 (elf_machine_lazy_rel): Remove the prelink check.
22749
22750 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22751
22752 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
22753 DT_TLSDESC_GOT initialization.
22754 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
22755 (_dl_tlsdesc_resolve_rela): Likewise.
22756 (_dl_tlsdesc_resolve_hold): Likewise.
22757 (_dl_tlsdesc_undefweak): Remove ldar.
22758 (_dl_tlsdesc_dynamic): Likewise.
22759 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
22760 (_dl_tlsdesc_resolve_rela): Likewise.
22761 (_dl_tlsdesc_resolve_hold): Likewise.
22762 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
22763 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22764 (_dl_tlsdesc_resolve_rela): Likewise.
22765 (_dl_tlsdesc_resolve_hold): Likewise.
22766
22767 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22768
22769 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
22770 binding and initialization non-lazily for R_AARCH64_TLSDESC.
22771
22772 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22773
22774 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
22775 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
22776
22777 2017-11-02 Joseph Myers <joseph@codesourcery.com>
22778
22779 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
22780 Declare.
22781 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
22782 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
22783 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
22784 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
22785 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
22786 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
22787 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
22788 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
22789 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
22790 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
22791 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
22792
22793 2017-11-02 Mike FABIAN <mfabian@redhat.com>
22794
22795 [BZ #22382]
22796 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
22797 * localedata/locales/tpi_PG: Add standard header.
22798
22799 2017-11-02 Florian Weimer <fweimer@redhat.com>
22800
22801 test-errno-linux: quotactl can fail with EPERM in containers.
22802 * sysdeps/unix/sysv/linux/test-errno-linux.c
22803 (LIST, LIST_FORWARD): New macros.
22804 (check_error_in_list): New function.
22805 (test_wrp_rv): Accept list of permitted error codes.
22806 (test_wrp_rv2): Remove.
22807 (test_wrp): Call test_wrp_rv with list of error codes.
22808 (test_wrp2): Accept list of error codes.
22809 (do_test): Adjust. Allow EPERM for quotactl.
22810
22811 2017-11-02 Florian Weimer <fweimer@redhat.com>
22812
22813 * stdio-common/bug16.c (do_test): Use array_length.
22814 * stdio-common/errlist.c (_sys_nerr): Likewise.
22815 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
22816 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
22817 * stdio-common/psiginfo.c (psiginfo): Use array_length.
22818 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
22819 (do_test): Use array_length.
22820 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
22821 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
22822 * stdio-common/tst-printf-round.c (do_test): Likewise.
22823 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
22824 (CHECK): Use array_length.
22825 * stdio-common/tstdiomisc.c (t3, F): Likewise.
22826 * stdio-common/tstscanf.c (main): Likewise.
22827 * stdio-common/vfprintf.c (process_string_arg): Likewise.
22828
22829 2017-11-02 Florian Weimer <fweimer@redhat.com>
22830
22831 Add array_length and array_end macros.
22832 * include/array_length.h: New file.
22833
22834 2017-11-02 Florian Weimer <fweimer@redhat.com>
22835
22836 [BZ #22332]
22837 * posix/tst-glob-tilde.c (do_noescape): New variable.
22838 (one_test): Process it.
22839 (do_test): Set do_noescape. Add unescaping test case.
22840
22841 2017-11-01 Joseph Myers <joseph@codesourcery.com>
22842
22843 * math/complex.h
22844 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
22845 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
22846 with appropriate macros defined and undefined.
22847 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
22848 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22849 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
22850 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22851 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
22852 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22853 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
22854 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22855 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
22856 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22857
22858 * math/complex.h
22859 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
22860 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
22861 that for long double. Do not condition define and undefine of
22862 _Mdouble_complex_ on [__CFLOAT128].
22863
22864 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
22865
22866 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22867 of <sysdeps/generic/sysdep.h>.
22868 (ALIGNARG): Removed.
22869 (ASM_SIZE_DIRECTIVE): Likewise.
22870 (ENTRY): Likewise.
22871 (END): Likewise.
22872 (ENTRY_CHK): Likewise.
22873 (END_CHK): Likewise.
22874 (syscall_error): Likewise.
22875 (mcount): Likewise.
22876 (PSEUDO_END): Likewise.
22877 (L): Likewise.
22878 (atom_text_section): Likewise.
22879 * sysdeps/x86/sysdep.h: New file.
22880 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22881 of <sysdeps/generic/sysdep.h>.
22882 (ALIGNARG): Removed.
22883 (ASM_SIZE_DIRECTIVE): Likewise.
22884 (ENTRY): Likewise.
22885 (END): Likewise.
22886 (ENTRY_CHK): Likewise.
22887 (END_CHK): Likewise.
22888 (syscall_error): Likewise.
22889 (mcount): Likewise.
22890 (PSEUDO_END): Likewise.
22891 (L): Likewise.
22892 (atom_text_section): Likewise.
22893
22894 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
22895
22896 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
22897 category of LC_CTYPE set to "i18n:2012".
22898 * localedata/locales/i18n_ctype: Regenerate.
22899
22900 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
22901
22902 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
22903 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
22904 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
22905 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
22906
22907 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
22908 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
22909 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
22910 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
22911
22912 2017-10-31 Joseph Myers <joseph@codesourcery.com>
22913
22914 * math/complex.h
22915 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
22916 New macro.
22917 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
22918 Likewise.
22919 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
22920 Likewise.
22921 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22922 (CMPLXF32X): Likewise.
22923 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22924 (CMPLXF64X): Likewise.
22925 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22926 (CMPLXF128X): Likewise.
22927
22928 * math/math.h
22929 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
22930 (__MATH_EVAL_FMT2): Define to add 0.0f.
22931
22932 2017-10-31 Alan Modra <amodra@gmail.com>
22933
22934 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
22935 include sysdep.h.
22936 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
22937 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
22938 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
22939 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
22940 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
22941 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
22942 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
22943 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
22944 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
22945 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
22946 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
22947 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
22948 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
22949 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
22950 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
22951 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
22952 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
22953 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
22954 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
22955 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
22956 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
22957 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
22958 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
22959 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
22960 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
22961 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
22962 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
22963 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
22964 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
22965 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
22966 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
22967 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
22968 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
22969 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
22970 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
22971 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
22972 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
22973 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
22974 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
22975 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
22976 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
22977 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
22978 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
22979 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
22980 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
22981 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
22982 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
22983 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
22984 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
22985 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
22986 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
22987 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
22988 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
22989 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
22990 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
22991 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
22992 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
22993 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
22994 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
22995 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
22996 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
22997 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
22998 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
22999 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
23000 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
23001 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
23002 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
23003 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
23004 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
23005
23006 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
23007 include sysdep.h and math_ldbl_opt.h.
23008
23009 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23010 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
23011 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23012 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23013 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23014 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23015 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23016 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23017 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23018 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23019 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23020 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23021 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23022 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23023 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
23024 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
23025 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
23026 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
23027 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
23028 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
23029 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
23030 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
23031 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23032 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23033 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23034 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23035
23036 2017-10-31 Alan Modra <amodra@gmail.com>
23037
23038 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23039 string/strncase_l.c, not string/strncase.c.
23040 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23041 (libc_hidden_def): Redefine.
23042
23043 2017-10-31 Alan Modra <amodra@gmail.com>
23044
23045 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23046 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23047 (__strcasecmp): Don't define.
23048
23049 2017-10-31 Alan Modra <amodra@gmail.com>
23050
23051 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23052 IS_IN (libc).
23053 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23054 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23055 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23056
23057 2017-10-31 Alan Modra <amodra@gmail.com>
23058
23059 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23060 USE_AS_STPNCPY.
23061
23062 2017-10-31 Alan Modra <amodra@gmail.com>
23063
23064 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23065 Redefine only when SHARED.
23066
23067 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23068
23069 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23070 Include <bits/math-finite.h> with appropriate macros defined and
23071 undefined.
23072 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23073 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23074 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23075 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23076 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23077
23078 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23079 [!_Mlong_double_] (_Mlong_double_): Likewise.
23080 [!_Mfloat16_] (_Mfloat16_): Likewise.
23081 [!_Mfloat32_] (_Mfloat32_): Likewise.
23082 [!_Mfloat64_] (_Mfloat64_): Likewise.
23083 [!_Mfloat128_] (_Mfloat128_): Likewise.
23084 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23085 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23086 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23087 (_Mdouble_): Define without indirection through those macros.
23088 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23089 [!_Mfloat128_] (_Mfloat128_): Likewise.
23090 [_Mlong_double_] (_Mlong_double_): Likewise.
23091 (_Mdouble_): Define without indirection through those macros.
23092 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23093 not add -D_Mlong_double_=double.
23094 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23095 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23096
23097 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23098
23099 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23100
23101 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23102
23103 * sysdeps/x86/libc-start.c: Reformat.
23104
23105 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23106
23107 [BZ #22353]
23108 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23109 (1): Renamed to ...
23110 (L(Src0)): This.
23111 (L(Src1)): New.
23112 (L(Src2)): Likewise.
23113 (L(1)): Renamed to ...
23114 (L(Src3)): This.
23115
23116 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23117
23118 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23119 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23120 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23121 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23122 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23123 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23124 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23125 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23126 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23127 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23128 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23129 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23130 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23131 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23132 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23133 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23134 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23135 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23136 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23137 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23138 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23139 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23140 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23141 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23142 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23143 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23144 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23145 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23146 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23147 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23148 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23149 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23150 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23151 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23152 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23153 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23154 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23155 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23156 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23157 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23158 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23159 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23160 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23161 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23162 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23163 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23164 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23165 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23166 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23167 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23168 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23169 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23170 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23171 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23172 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23173 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23174 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23175 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23176 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23177 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23178 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23179 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23180 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23181 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23182 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23183 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23184
23185 2017-10-30 Florian Weimer <fweimer@redhat.com>
23186
23187 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23188 always defined.
23189 * io/tst-mkdirat.c (do_test): Likewise.
23190 * io/tst-mkfifoat.c (do_test): Likewise.
23191 * io/tst-mknodat.c (do_test): Likewise.
23192 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23193 * locale/programs/locale.c (select_dirs): Likewise.
23194 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23195 * posix/bug-glob2.c (my_readdir): Likewise.
23196 * posix/tst-dir.c (main): Likewise.
23197 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23198 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23199
23200 2017-10-30 Florian Weimer <fweimer@redhat.com>
23201
23202 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23203 just __USE_GNU.
23204
23205 2017-10-30 Florian Weimer <fweimer@redhat.com>
23206
23207 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23208 Convert to support/test-driver.c.
23209 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23210 New macro parameters.
23211 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23212 * posix/tst-gnuglob.c: New file.
23213 * posix/tst-gnuglob64.c: Likewise.
23214 * posix/Makefile (tests): Add tst-gnuglob64.
23215
23216 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23217
23218 [BZ #19485]
23219 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23220 and use a better translation for March in “mon”.
23221 * localedata/locales/csb_PL: Use more ASCII to improve the
23222 readability of the source.
23223
23224 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23225
23226 [BZ #13953]
23227 * localedata/locales/km_KH: Use ASCII as much
23228 as possible for better readability of the source and
23229 remove useless comments.
23230 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23231 was commented out and apparently wrong anyway because it was
23232 using Lao characters. If Buddhist era should be used
23233 for km_KH, a native speaker should write the correct formaat
23234 for Khmer.
23235 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23236 (According to CLDR, the first weekday for Cambodia is Sunday).
23237 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23238 (These were using Lao characters which must be wrong. If we get
23239 the correct data from a native speaker, we could add it back, until
23240 then it is better not to have name_mr and name_mrs at all than
23241 having it wrong).
23242
23243 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23244
23245 * locale/loadlocale.c: Correct size of
23246 _nl_value_type_LC_<category> arrays.
23247
23248 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23249
23250 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23251 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23252 with appropriate macros defined and undefined.
23253 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23254 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23255 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23256 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23257 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23258
23259 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23260
23261 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23262 "-O2 -march=i586".
23263
23264 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23265
23266 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23267 with lowercase letters to make it agree with CLDR.
23268
23269 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23270
23271 [BZ #15260]
23272 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23273 first letters of yesstr and nostr in yesexpr and noexpr,
23274 not for the full words.
23275 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23276 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23277 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23278 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23279 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23280 first letters of yesstr and nostr in yesexpr and noexpr,
23281 until now only English was matched in yesexpr and noexpr.
23282 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23283 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23284 fil but not for tl. As tl and fil are very similar, using fil
23285 is probably better than using English.
23286
23287 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23288
23289 [BZ #21706]
23290 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23291 in yesstr and nostr.
23292
23293 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23294
23295 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23296 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23297 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23298 Likewise.
23299 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23300 Likewise.
23301 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23302 Likewise.
23303 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23304 Likewise.
23305 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23306 (SNANF128X): Likewise.
23307
23308 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23309 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23310 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23311 (HUGE_VAL_F32): Likewise.
23312 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23313 (HUGE_VAL_F64): Likewise.
23314 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23315 (HUGE_VAL_F32X): Likewise.
23316 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23317 (HUGE_VAL_F64X): Likewise.
23318 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23319 (HUGE_VAL_F128X): Likewise.
23320
23321 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23322
23323 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23324 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23325 for the br_FR locale.
23326
23327 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23328
23329 [BZ #21706]
23330 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23331
23332 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23333
23334 * locale/programs/record-status.h: Define globals, and function
23335 prototypes. Move function bodies...
23336 * locale/programs/record-status.c: ... to here. New file.
23337 * iconv/Makefile (iconv_prog-modules): Add record-status.
23338 * locale/Makefile (lib-modules): Likewise.
23339 * iconv/iconv_prog.c: Remove verbose.
23340 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23341 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23342 record a warning about ASCII compatibility.
23343 * locale/programs/ld-monetary.c (monetary_finish): If
23344 warn_int_curr_symbol is true then record a warning about the symbol
23345 not being in our ISO 4217 list.
23346 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23347 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23348 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23349 (OPT_NO_WARN): Define.
23350 (OPT_WARN): Define.
23351 (options): Add entry for --no-warnings, and --warnings.
23352 (set_warnings): New function to enable/disable warnings.
23353 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23354 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
23355 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
23356 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
23357 Pass flags to generate_locale.
23358 (generate_locale): Accept new flag argument and pass it to localedef
23359 invocation.
23360 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
23361 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
23362
23363 * localedata/Makefile (test-input-data): Use full file name.
23364 * localedata/da_DK.in: Rename to...
23365 * localedata/da_DK.ISO-8859-1.in: ...this.
23366 * localedata/de_DE.in: Rename to...
23367 * localedata/de_DE.ISO-8859-1.in: ...this.
23368 * localedata/en_US.in: Rename to...
23369 * localedata/en_US.ISO-8859-1.in: ...this.
23370 * localedata/fr_FR.in: Rename to...
23371 * localedata/fr_FR.UTF-8.in: ... this.
23372 * localedata/hr_HR.in: Rename to...
23373 * localedata/hr_HR.ISO-8859-2.in: ...this.
23374 * localedata/hu_HU.in: Rename to...
23375 * localedata/hu_HU.UTF-8.in: ...this.
23376 * localedata/si_LK.in: Rename to...
23377 * localedata/si_LK.UTF-8.in: ...this.
23378 * localedata/sv_SE.in: Rename to...
23379 * localedata/sv_SE.ISO-8859-1.in: ...this.
23380 * localedata/tr_TR.in: Rename to...
23381 * localedata/tr_TR.UTF-8.in: ...this.
23382 * localedata/uk_UA.in: Rename to...
23383 * localedata/uk_UA.UTF-8.in: ...this.
23384 * localedata/sort-test.sh: Test file is locale name with the
23385 suffix.
23386
23387 * localedata/unicode-gen/Makefile (check_i18n): Rename to
23388 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
23389 file.
23390 * localedata/locales/i18n_ctype: Regenerate.
23391 * localedata/locales/tr_TR: Likewise.
23392 * localedata/locales/translit_circle: Likewise.
23393 * localedata/locales/translit_cjk_compat: Likewise.
23394 * localedata/locales/translit_combining: Likewise.
23395 * localedata/locales/translit_compat: Likewise.
23396 * localedata/locales/translit_font: Likewise.
23397 * localedata/locales/translit_fraction: Likewise.
23398
23399 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23400
23401 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
23402 lxvd2x/stxvd2x with lvx/stvx.
23403 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
23404
23405 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
23406
23407 * include/alloc_buffer.h: Replace "if if " with "if " in
23408 comments.
23409 * sysdeps/mips/memcpy.S: Likkewise.
23410 * sysdeps/mips/memset.S: Likewise.
23411 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23412 Likewise.
23413 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
23414 Likewise.
23415 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
23416 Likewise.
23417
23418 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23419
23420 [BZ #15261]
23421 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
23422 yesexpr and noexpr.
23423 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23424 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23425 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23426 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23427 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23428 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23429 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23430
23431 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23432
23433 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
23434 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23435 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23436 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23437 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23438 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
23439 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23440 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23441 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23442 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23443 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23444 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23445
23446 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23447
23448 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
23449 as possible for better readability of the source.
23450 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
23451 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
23452 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
23453 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
23454 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
23455 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
23456 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
23457 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
23458 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23459 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
23460 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
23461 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
23462 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
23463 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
23464 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
23465 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
23466 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
23467 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
23468 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
23469 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
23470 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
23471 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
23472 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
23473 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
23474 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
23475 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
23476 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
23477 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
23478 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
23479 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
23480 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
23481 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23482 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
23483 * localedata/locales/en_US (LC_MESSAGES): Likewise.
23484 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
23485 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
23486 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
23487 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
23488 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
23489 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
23490 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
23491 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
23492 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
23493 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
23494 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
23495 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
23496 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
23497 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
23498 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
23499 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
23500 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
23501 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
23502 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
23503 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23504 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23505 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
23506 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
23507 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23508 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
23509 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
23510 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
23511 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
23512 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
23513 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
23514 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
23515 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
23516 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
23517 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
23518 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
23519 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
23520 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
23521 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
23522 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
23523 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
23524 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23525 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
23526 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
23527 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
23528 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
23529 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
23530 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
23531 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
23532 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
23533 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23534 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
23535 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
23536 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
23537 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23538 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
23539 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
23540 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
23541 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
23542 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23543 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
23544 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
23545 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23546 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
23547 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23548 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
23549 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
23550 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
23551 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
23552 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
23553 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
23554 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
23555 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
23556 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
23557 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
23558 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
23559 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
23560 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
23561 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
23562 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23563 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
23564 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
23565 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
23566 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
23567 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
23568 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
23569 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
23570 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
23571 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
23572 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
23573 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
23574 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
23575 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
23576 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
23577 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
23578 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
23579 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
23580 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
23581 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
23582 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
23583 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
23584 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
23585 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
23586 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
23587 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
23588 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
23589 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
23590 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
23591 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
23592 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
23593 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
23594 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
23595 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23596 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
23597 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
23598 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
23599 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
23600 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
23601 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
23602 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
23603 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
23604 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23605 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
23606 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
23607 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
23608 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
23609 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
23610 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
23611 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
23612 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
23613 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
23614 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
23615 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23616 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
23617 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
23618 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
23619 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
23620 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23621 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23622 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23623 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
23624
23625 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23626
23627 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
23628 (Use first letters of yesstr and nostr correctly instead of using
23629 full words).
23630
23631 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23632
23633 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
23634 (Use first letters of yesstr and nostr correctly).
23635
23636 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23637
23638 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
23639 also check for the first characters of yesstr and nostr.
23640 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
23641 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
23642
23643 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23644
23645 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
23646 also check for Chinese characters.
23647
23648 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23649
23650 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
23651 match also for the contents of yesstr and nostr. As the first letter
23652 of yesstr and nostr is equal, checking only for the first letter
23653 is not enough.
23654
23655 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23656
23657 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
23658 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
23659
23660 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23661
23662 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
23663 of main contributor.
23664
23665 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23666
23667 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
23668 instead of using English.
23669
23670 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23671
23672 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
23673 by including the first letters of nostr and yesexpr in the regexp.
23674 Also make it more readable by using ASCII where possible.
23675
23676 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23677
23678 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
23679 the first letter of nostr in the regexp. It agrees with CLDR now.
23680 Also make it more readable by using ASCII where possible.
23681
23682 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23683
23684 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
23685 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
23686 these strings contain a U+17D6 (which somewhat looks like a colon)
23687 instead of a real colon to separate the full words for “yes”
23688 and “no” from the single letter responses.
23689
23690 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23691
23692 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
23693 it agree with CLDR (include the first letter of yesstr).
23694 Also make it more readable by using ASCII where possible.
23695
23696 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23697
23698 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
23699 and improve yesexpr and noexpr. The yesstr and nostr apparently
23700 came from CLDR. And CLDR has a bug there: these strings contain
23701 a U+0903 (which looks like a colon) instead of a real colon
23702 to separate the full words for “yes” and “no” from the single
23703 letter responses.
23704
23705 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23706
23707 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
23708 letters of the full yesstr and nostr in yesexpr and noexpr.
23709
23710 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23711
23712 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
23713 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
23714 * localedata/locales/an_ES: Make source more readable by using ASCII
23715 where possible.
23716
23717 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23718
23719 [BZ #20952]
23720 * localedata/locales/yuw_PG: New file.
23721 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
23722 * locale/iso-639.def: Add Yau (Uruwa).
23723
23724 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23725
23726 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
23727
23728 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23729
23730 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
23731 (__libc_realloc): Likewise.
23732 (_mid_memalign): Likewise.
23733 (__libc_calloc): Likewise.
23734
23735 2017-10-23 Mike FABIAN <mfabian@redhat.com>
23736
23737 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
23738 by adding the generic +1 and -0 as in all other locales.
23739 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
23740 day names and make it more readable by using ASCII where possible.
23741
23742 2017-10-24 Joseph Myers <joseph@codesourcery.com>
23743
23744 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
23745 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
23746
23747 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23748
23749 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
23750 WNOHANG in waitpid call.
23751
23752 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
23753
23754 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
23755 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
23756
23757 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
23758 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
23759 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
23760 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
23761 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
23762 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
23763 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
23764 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
23765 variables.
23766
23767 2017-10-23 Michael Collison <michael.collison@arm.com>
23768
23769 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
23770 with __builtin_sqrt.
23771 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
23772 with __builtin_sqrtf.
23773 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
23774 with __builtin_ceil.
23775 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
23776 with __builtin_ceilf.
23777 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
23778 with __builtin_floor.
23779 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
23780 with __builtin_floorf.
23781 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
23782 with __builtin_fma.
23783 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
23784 with __builtin_fmaf.
23785 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
23786 with __builtin_fmax.
23787 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
23788 with __builtin_fmaxf.
23789 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
23790 with __builtin_fmin.
23791 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
23792 with __builtin_fminf.
23793 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
23794 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
23795 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
23796 with builtin_rint and conversion to int.
23797 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
23798 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
23799 with builtin_llround.
23800 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
23801 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
23802 with builtin_rint and conversion to long int.
23803 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
23804 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
23805 with builtin_lround.
23806 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
23807 with builtin_lroundf.
23808 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
23809 statements with __builtin_nearbyint.
23810 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
23811 statements with __builtin_nearbyintf.
23812 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
23813 with __builtin_rint.
23814 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
23815 with __builtin_rintf.
23816 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
23817 with __builtin_round.
23818 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
23819 with __builtin_roundf.
23820 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
23821 with __builtin_trunc.
23822 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
23823 with __builtin_truncf.
23824 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
23825 and s_l[l]round[f].c too.
23826
23827 2017-10-23 Alan Modra <amodra@gmail.com>
23828
23829 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
23830 Adjust stack after restoring regs. Add missing LR cfi_restore.
23831
23832 2017-10-23 Alan Modra <amodra@gmail.com>
23833
23834 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
23835 Move LR save and frame setup/teardown and LR restore to
23836 immediately around memset call. Provide cfi.
23837
23838 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23839
23840 * sysdeps/i386/fpu/e_powf.S: Removed.
23841 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
23842 * sysdeps/i386/fpu/w_powf.c: Likewise.
23843 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
23844 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23845 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23846 Add e_powf-sse2.
23847 (CFLAGS-e_powf-sse2.c): New.
23848 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
23849 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
23850
23851 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23852
23853 * sysdeps/i386/fpu/e_log2f.S: Removed.
23854 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
23855 * sysdeps/i386/fpu/w_log2f.c: Likewise.
23856 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
23857 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23858 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23859 Add e_log2f-sse2.
23860 (CFLAGS-e_log2f-sse2.c): New.
23861 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
23862 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
23863
23864 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23865
23866 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23867 Add e_powf-fma.
23868 (CFLAGS-e_powf-fma.c): New.
23869 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
23870 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
23871
23872 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23873
23874 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23875 Add e_log2f-fma.
23876 (CFLAGS-e_log2f-fma.c): New.
23877 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
23878 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
23879
23880 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23881
23882 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23883 Add e_logf-fma.
23884 (CFLAGS-e_logf-fma.c): New.
23885 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
23886 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
23887
23888 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23889
23890 * sysdeps/i386/fpu/e_logf.S: Removed.
23891 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
23892 * sysdeps/i386/fpu/w_logf.c: Likewise.
23893 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
23894 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
23895 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23896 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23897 Add e_logf-sse2.
23898 (CFLAGS-e_logf-sse2.c): New.
23899 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
23900 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
23901
23902 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23903
23904 * sysdeps/i386/fpu/e_exp2f.S: Removed.
23905 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
23906 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
23907 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23908 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23909 Add e_exp2f-sse2.
23910 (CFLAGS-e_exp2f-sse2.c): New.
23911 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
23912 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
23913
23914 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23915
23916 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23917 Add e_exp2f-fma.
23918 (CFLAGS-e_exp2f-fma.c): New.
23919 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
23920 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
23921
23922 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23923
23924 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
23925 * sysdeps/i386/fpu/e_expf.S: Likewise.
23926 * sysdeps/i386/fpu/math_errf.c: Likewise.
23927 * sysdeps/i386/fpu/w_expf.c: Likewise.
23928 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
23929 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
23930 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
23931 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
23932 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23933 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23934 Remove e_expf-ia32.
23935 (CFLAGS-e_expf-sse2.c): New.
23936 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
23937 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
23938
23939 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23940
23941 * sysdeps/x86_64/fpu/e_expf.S: Removed.
23942 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
23943 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
23944 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
23945 e_expf.c.
23946 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
23947 New.
23948 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
23949 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
23950 Renamed to ...
23951 (__redirect_expf): This.
23952 (SYMBOL_NAME): Changed to expf.
23953 (__ieee754_expf): Renamed to ...
23954 (__expf): This.
23955 (__GI___expf): This.
23956 (__ieee754_expf): Add strong_alias.
23957 (__expf_finite): Likewise.
23958 (__expf): New.
23959 Include <sysdeps/ieee754/flt-32/e_expf.c>.
23960
23961 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
23962
23963 [BZ #22332]
23964 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
23965 unescaping.
23966
23967 2017-10-21 Florian Weimer <fweimer@redhat.com>
23968
23969 * posix/Makefile (tests): Add tst-glob-tilde.
23970 (tests-special): Add tst-glob-tilde-mem.out
23971 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
23972 (tst-glob-tilde-mem.out): Add mtrace check.
23973 * posix/tst-glob-tilde.c: New file.
23974
23975 2017-10-20 Joseph Myers <joseph@codesourcery.com>
23976
23977 * bits/floatn-common.h: New file.
23978 * math/Makefile (headers): Add bits/floatn-common.h.
23979 * bits/floatn.h: Include <bits/floatn-common.h>.
23980 * sysdeps/ia64/bits/floatn.h: Likewise.
23981 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
23982 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
23983 * sysdeps/powerpc/bits/floatn.h: Likewise.
23984 * sysdeps/x86/bits/floatn.h: Likewise.
23985
23986 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23987
23988 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
23989 indicates whether compiler emits an warning for alias for
23990 functions with incompatible types.
23991
23992 [BZ #22273]
23993 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
23994 the auxiliary process is terminated by a signal before calling _exit
23995 or execve.
23996
23997 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
23998
23999 [BZ #21265]
24000 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
24001 New.
24002 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
24003 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
24004 and bit_arch_XSAVEC_Usable if needed.
24005 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
24006 and bit_arch_Use_dl_runtime_resolve_opt.
24007 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
24008 Removed.
24009 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24010 (bit_arch_Prefer_No_AVX512): Updated.
24011 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24012 (bit_arch_XSAVEC_Usable): New.
24013 (STATE_SAVE_OFFSET): Likewise.
24014 (STATE_SAVE_MASK): Likewise.
24015 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24016 (cpu_features): Add xsave_state_size and xsave_state_full_size.
24017 (index_arch_Use_dl_runtime_resolve_opt): Removed.
24018 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24019 (index_arch_XSAVEC_Usable): New.
24020 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24021 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
24022 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24023 is enabled.
24024 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
24025 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
24026 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
24027 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
24028 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
24029 _dl_runtime_resolve_xsavec.
24030 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
24031 Removed.
24032 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24033 instead of VEC_SIZE.
24034 (REGISTER_SAVE_BND0): Removed.
24035 (REGISTER_SAVE_BND1): Likewise.
24036 (REGISTER_SAVE_BND3): Likewise.
24037 (REGISTER_SAVE_RAX): Always defined to 0.
24038 (VMOV): Removed.
24039 (_dl_runtime_resolve_avx): Likewise.
24040 (_dl_runtime_resolve_avx_slow): Likewise.
24041 (_dl_runtime_resolve_avx_opt): Likewise.
24042 (_dl_runtime_resolve_avx512): Likewise.
24043 (_dl_runtime_resolve_avx512_opt): Likewise.
24044 (_dl_runtime_resolve_sse): Likewise.
24045 (_dl_runtime_resolve_sse_vex): Likewise.
24046 (USE_FXSAVE): New.
24047 (_dl_runtime_resolve_fxsave): Likewise.
24048 (USE_XSAVE): Likewise.
24049 (_dl_runtime_resolve_xsave): Likewise.
24050 (USE_XSAVEC): Likewise.
24051 (_dl_runtime_resolve_xsavec): Likewise.
24052 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24053 Removed.
24054 (_dl_runtime_resolve_avx512_opt): Likewise.
24055 (_dl_runtime_resolve_avx): Likewise.
24056 (_dl_runtime_resolve_avx_opt): Likewise.
24057 (_dl_runtime_resolve_sse): Likewise.
24058 (_dl_runtime_resolve_sse_vex): Likewise.
24059 (_dl_runtime_resolve_fxsave): New.
24060 (_dl_runtime_resolve_xsave): Likewise.
24061 (_dl_runtime_resolve_xsavec): Likewise.
24062
24063 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24064
24065 [BZ #22320]
24066 CVE-2017-15670
24067 * posix/glob.c (__glob): Fix one-byte overflow.
24068
24069 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24070
24071 * malloc/malloc.c (sysdep-cancel.h): Add include.
24072
24073 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24074
24075 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24076
24077 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24078
24079 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24080 (tests): Remove $(objpfx)ga_test depdendency.
24081 * resolv/ga_test.c: Remove file.
24082
24083 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24084
24085 [BZ #18812]
24086 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24087 * localedata/locales/kab_DZ: New file.
24088
24089 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24090
24091 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24092 _dl_relocate_static_pie instead of _dl_start to compute load
24093 address in static PIE.
24094
24095 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24096
24097 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24098
24099 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24100
24101 [BZ #13605]
24102 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24103 * localedata/locales/shn_MM: New file.
24104
24105 2017-10-20 Florian Weimer <fweimer@redhat.com>
24106
24107 [BZ #22321]
24108 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24109 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24110 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24111 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24112 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24113 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24114
24115 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24116
24117 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24118
24119 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24120
24121 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24122
24123 [BZ #22322]
24124 * sysdeps/mips/bits/long-double.h: Move to ....
24125 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24126
24127 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24128
24129 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24130
24131 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24132 H.J. Lu <hongjiu.lu@intel.com>
24133
24134 [BZ #22299]
24135 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24136 GLRO(dl_platform) to NULL.
24137 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24138 (modules-names): Add tst-platformmod-1 and
24139 x86_64/tst-platformmod-2.
24140 (CFLAGS-tst-platform-1.c): New.
24141 (CFLAGS-tst-platformmod-1.c): Likewise.
24142 (CFLAGS-tst-platformmod-2.c): Likewise.
24143 (LDFLAGS-tst-platformmod-2.so): Likewise.
24144 ($(objpfx)tst-platform-1): Likewise.
24145 ($(objpfx)tst-platform-1.out): Likewise.
24146 (tst-platform-1-ENV): Likewise.
24147 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24148 * sysdeps/x86_64/tst-platform-1.c: New file.
24149 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24150 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24151
24152 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24153
24154 [BZ #13994]
24155 * locale/iso-639.def: Add Karbi.
24156 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24157 * localedata/locales/mjw_IN: New file.
24158
24159 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24160
24161 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24162 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24163 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24164 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24165 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24166 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24167 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24168 <bits/floatn.h>.
24169 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24170 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24171 * manual/math.texi (Mathematics): Document additional architecture
24172 support for _Float128.
24173 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24174 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24175 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24176 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24177 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24178 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24179 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24180 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24181 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24182 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24183 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24184 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24185 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24186 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24187 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24188
24189 2017-10-18 Renlin Li <renlin.li@arm.com>
24190
24191 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24192 _DYNAMIC symbol to calculate load address.
24193
24194 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24195
24196 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24197 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24198 summary bits.
24199 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24200 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24201
24202 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24203
24204 [BZ #16777]
24205 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24206 and improve readability by using more ASCII.
24207 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24208 and improve readability by using more ASCII.
24209
24210 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24211
24212 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24213 not all targets support atomics on bool.
24214
24215 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24216
24217 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24218 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24219 __f128.
24220 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24221 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24222 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24223 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24224 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24225 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24226
24227 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24228
24229 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24230 defines.
24231
24232 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24233
24234 [BZ #22159]
24235 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24236 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24237 (do_check_remalloced_chunk): Fix build bug.
24238 (do_check_malloc_state): Add assert that checks arena->top.
24239 (malloc_consolidate): Remove initialization.
24240 (int_mallinfo): Remove call to malloc_consolidate.
24241 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24242
24243 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24244
24245 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24246 (have_fastchunks): Remove.
24247 (clear_fastchunks): Remove.
24248 (set_fastchunks): Remove.
24249 (malloc_state): Add have_fastchunks.
24250 (malloc_init_state): Use have_fastchunks.
24251 (do_check_malloc_state): Remove incorrect invariant checks.
24252 (_int_malloc): Use have_fastchunks.
24253 (_int_free): Likewise.
24254 (malloc_consolidate): Likewise.
24255
24256 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24257
24258 * malloc/malloc.c (tcache_put): Inline.
24259 (tcache_get): Inline.
24260
24261 2017-10-17 Jordi Mallach <jordi@gnu.org>
24262
24263 Aurelien Jarno <aurelien@aurel32.net>
24264 [BZ #2522]
24265 * localedata/locales/ca_ES@valencia: New file.
24266 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24267
24268 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24269
24270 [BZ #22296]
24271 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24272 < 6.x
24273
24274 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24275
24276 * scripts/build-many-glibcs.py (Context.add_all_configs):
24277 Add arm-linux-gnueabihf multiarch extra_glibcs.
24278
24279 * sysdeps/generic/ifunc-init.h: New file.
24280 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24281
24282 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24283
24284 [BZ #22019]
24285 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24286 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24287 * stdlib/tst-strfmon_l.c: adapt test case.
24288
24289 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24290
24291 * sysdeps/generic/float128-abi.h: New file.
24292 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24293 non-__prefixed symbols to ....
24294 * math/Versions: ... here. Include <float128-abi.h>.
24295 * stdlib/Versions ... and here. Include <float128-abi.h>
24296
24297 2017-10-16 Florian Weimer <fweimer@redhat.com>
24298
24299 * version.h (VERSION): Switch to ".9000" as the development
24300 version suffix.
24301
24302 2017-10-16 Florian Weimer <fweimer@redhat.com>
24303
24304 [BZ #22050]
24305 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24306 compat_symbol_reference to access non-default version.
24307
24308 2017-10-16 Florian Weimer <fweimer@redhat.com>
24309
24310 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24311
24312 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24313
24314 * include/shlib-compat.h (compat_symbol_reference): Update
24315 comment.
24316
24317 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24318
24319 * math/Makefile (test-types): Add
24320 $(type-float128-$(float128-alias-fcts)).
24321 * math/test-float128.h (TYPE_STR): Define conditional on
24322 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24323 (ULP_IDX): Likewise.
24324 (ULP_I_IDX): Likewise.
24325
24326 * stdlib/strtold.c: Include <bits/floatn.h>
24327 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24328 and later undefine as macro. Define as weak alias if
24329 [!USE_WIDE_CHAR].
24330 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24331 and later undefine as macro. Define as weak alias if
24332 [USE_WIDE_CHAR].
24333 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24334 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24335 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24336 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24337 Define and later undefine as macro. Define as weak alias if
24338 [USE_WIDE_CHAR].
24339 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24340 <bits/floatn.h>.
24341 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24342 Define and later undefine as macro. Define as weak alias if
24343 [!USE_WIDE_CHAR].
24344 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24345 Define and later undefine as macro. Define as weak alias if
24346 [USE_WIDE_CHAR].
24347
24348 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24349
24350 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24351 record_verbose messages.
24352
24353 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24354
24355 [BZ #22052]
24356 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
24357 to silence -O3 -Wall warning with GCC 7.
24358
24359 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
24360
24361 * Makeconfig (+link-static-before-libc): Use the first of
24362 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24363 * gmon/Makefile (tests): Add tst-gmon-static.
24364 (tests-static): Likewise.
24365 (CFLAGS-tst-gmon-static.c): New.
24366 (CRT-tst-gmon-static): Likewise.
24367 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24368 (tst-gmon-static-ENV): Likewise.
24369 (tests-special): Likewise.
24370 ($(objpfx)tst-gmon-static.out): Likewise.
24371 (clean-tst-gmon-static-data): Likewise.
24372 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24373 * gmon/tst-gmon-static-gprof.sh: New file.
24374 * gmon/tst-gmon-static.c: Likewise.
24375
24376 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24377
24378 [BZ #22295]
24379 * locale/programs/linereader.c (get_string): Don't warn on
24380 non-symbolic character.
24381
24382 [BZ #22294]
24383 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
24384 int_curr_symbol.
24385
24386 [BZ #22292]
24387 * locale/programs/record-status.h: New file
24388 * locale/programs/locale.c: Add comment.
24389 * locale/programs/charmap-dir.c: Don't include error.h.
24390 (charmap_opendir): Use record_error.
24391 * locale/programs/charmap.c: Don't include error.h.
24392 (charmap_read): Use record_error, and record_warning.
24393 (parse_charmap): Likewise.
24394 * locale/programs/ld-address.c: Don't include error.h.
24395 (address_finish): Use record_error, and record_warning.
24396 * locale/programs/ld-collate.c: Don't include error.h.
24397 (collate_finish): Use record_error, and record_error_at_line.
24398 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
24399 (ctype_class_new): Likewise.
24400 (ctype_map_new): Likewise.
24401 (set_one_default): Likewise.
24402 (set_class_defaults): Likewise.
24403 (translit_flatten): Likewise.
24404 (allocate_arrays): Use record_error, and record_verbose.
24405 * locale/programs/ld-identification.c: Don't include error.h.
24406 (indentation_finish): Use record_error and record_warning.
24407 * locale/programs/ld-measurement.c: Don't include error.h.
24408 (measurement_finish): Use record_error.
24409 * locale/programs/ld-messages.c
24410 (message_finish): Likewise.
24411 * locale/programs/ld-monetary.c
24412 (monetary_finish): Likewise.
24413 * locale/programs/ld-name.c (name_finish): Use record_error
24414 and record_warning.
24415 * locale/programs/ld-numeric.c
24416 (numeric_finish): Use record_error.
24417 * locale/programs/ld-paper.c: Don't include error.h.
24418 (paper_finish): Use record_error.
24419 * locale/programs/ld-telephone.c: Don't include error.h.
24420 (telephone_finish): Use record_error.
24421 * locale/programs/ld-time.c (time_finish): Likewise.
24422 * locale/programs/linereader.h (lr_error): Make inline func.
24423 * locale/programs/localedef.c: Define recorded_warning_count,
24424 and recorded_error_count.
24425 (main): Use record_error. Use recorded_error_count and
24426 recorded_warning_count to issue correct error returns.
24427 (add_to_readlist): Use record_error.
24428 (find_locale): Likewise.
24429 (load_locale): Likewise.
24430 * locale/programs/localedef.h: Remove be_quiet
24431 and WITH_CUR_LOCALE.
24432 * locale/programs/locarchive.c (compare_from_file): Use
24433 record_error.
24434 * locale/programs/locfile.c (write_locale_data): Use
24435 record_error.
24436 * locale/programs/repertoire.c: Dont include error.h.
24437 (repertoire_complain): Use record_error.
24438 * localedata/tst-fmon.sh: Expect failures from localedef.
24439 * localedata/tst-locale.sh: Likewise.
24440 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
24441
24442 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
24443 (REPORTS): Likewise.
24444 (check): Likewise.
24445 (i18n): Rename to...
24446 (i18n_ctype): ...this.
24447 (i18n-report): Rename to...
24448 (i18n_ctype-report): ...this.
24449 * localedata/locales/i18n_ctype: Regenerate.
24450 * localedata/locales/i18n: copy i18n_ctype.
24451
24452 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24453
24454 * stdlib/strfroml.c: Include <bits/floatn.h>.
24455 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
24456 Define before include of <stdlib.h> and undefine afterwards, then
24457 define as weak alias.
24458
24459 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
24460 Undefine and restore default definition. Use
24461 libm_alias_ldouble_other.
24462
24463 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
24464
24465 [BZ #22153]
24466 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
24467 in coredumps.
24468
24469 2017-10-13 James Clarke <jrtc27@jrtc27.com>
24470
24471 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24472 Assign sym_map to be map for local symbols, as TLS relocations
24473 use sym_map to determine whether the symbol is defined and to
24474 extract the TLS information.
24475 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24476 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24477
24478 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24479
24480 [BZ #22189]
24481 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
24482 (math_force_eval): Add powerpc version.
24483
24484 [BZ #22142]
24485 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
24486 -DBL_MAX.
24487 (do_test): Likewise.
24488 * stdio-common/tst-printf.sh: Likewise.
24489 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
24490 ifdef clause in order to set the carry bit right. Replace r0 by
24491 0 without changing the behavior.
24492
24493 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24494
24495 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
24496 <libm-alias-ldouble.h>.
24497 (fabsl): Define using libm_alias_ldouble.
24498 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
24499 <libm-alias-ldouble.h>.
24500 (fabsl): Define using libm_alias_ldouble.
24501
24502 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
24503 Remove conditional code.
24504
24505 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
24506 Rename to __clog10_internal_l.
24507 (__clog10_internal_l): Define aliases using
24508 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
24509 with __clog10.
24510
24511 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24512
24513 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
24514 * benchtests/sincosf-inputs: New file.
24515 * benchtests/cosf-inputs: New file.
24516 * benchtests/sinf-inputs: New file.
24517
24518 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24519
24520 * posix/tst-spawn.c (do_test): Wait for both children.
24521
24522 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
24523
24524 [BZ #22284]
24525 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
24526 tests-pie): Add tst-gmon-pie.
24527 (CFLAGS-tst-gmon-pie.c): New.
24528 (CRT-tst-gmon-pie): Likewise.
24529 (tst-gmon-pie-ENV): Likewise.
24530 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
24531 ($(objpfx)tst-gmon-pie.out): Likewise.
24532 (clean-tst-gmon-pie-data): Likewise.
24533 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
24534 * gmon/gmon.c [PIC]: Include <link.h>.
24535 [PIC] (callback): New function.
24536 (write_hist): Add an argument for load address. Subtract load
24537 address from PCs.
24538 (write_call_graph): Likewise.
24539 (write_gmon): Call __dl_iterate_phdr to get load address, pass
24540 it to write_hist and write_call_graph.
24541 * gmon/tst-gmon-pie.c: New file.
24542
24543 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24544
24545 * math/Makefile (test-types-basic): New variable.
24546 (test-types): Likewise.
24547 (libm-test-support): Use $(test-types) instead of $(types).
24548 (libm-tests-base-normal): Likewise.
24549 (libm-tests-base-finite): Likewise.
24550 (libm-tests-base-inline): Likewise.
24551 (generated): Likewise.
24552 ($(objpfx)libm-test-support-$(t).c): Likewise.
24553 (libm-tests-for-type iterator): Likewise.
24554 (libm-test-support iterator): Likewise.
24555 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
24556 (ulp_idx): Use ULP_IDX.
24557 * math/test-ldouble.h: Include <float.h>.
24558 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
24559 (ULP_IDX): New macro.
24560 (ULP_I_IDX): Likewise.
24561 * math/test-double.h (ULP_IDX): Likewise.
24562 (ULP_I_IDX): Likewise.
24563 * math/test-float.h (ULP_IDX): Likewise.
24564 (ULP_I_IDX): Likewise.
24565 * math/test-float128.h (ULP_IDX): Likewise.
24566 (ULP_I_IDX): Likewise.
24567
24568 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24569
24570 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
24571 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24572 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24573 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
24574 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24575 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
24576 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
24577 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24578 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24579 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24580 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
24581 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24582 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24583 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24584 (SINGLE_THREAD_BY_GLOBAL): Define.
24585 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24586 Likewise.
24587 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24588 Likewise.
24589 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24590 Likewise.
24591 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24592 Likewise.
24593 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
24594 (SINGLE_THREAD_BY_GLOBAL): Likewise.
24595 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24596 Likewise.
24597
24598 2017-10-11 Andreas Schwab <schwab@suse.de>
24599
24600 * nis/Makefile (aux): Remove.
24601 * nscd/Makefile (aux): Add nscd_hash.
24602 (nscd-modules): Likewise.
24603 ($(objpfx)nscd): Don't depend on libnsl.
24604 * nscd/nscd_hash.c: New file.
24605 * nscd/nscd_hash.h: Likewise.
24606 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
24607 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
24608 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
24609 instead of <nis/rpcsvc/nis.h>.
24610 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
24611
24612 2017-10-11 Florian Weimer <fweimer@redhat.com>
24613
24614 [BZ #22078]
24615 Avoid large NSS buffers with many addresses, aliases.
24616 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
24617 using dynarrays and struct alloc_buffer.
24618 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
24619 (tst-nss-files-hosts-multi): Link with -ldl.
24620 * nss/tst-nss-files-hosts-multi.c: New file.
24621
24622 2017-10-11 Florian Weimer <fweimer@redhat.com>
24623
24624 [BZ #18023]
24625 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
24626 scratch_buffer. Eliminate gotos.
24627
24628 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24629
24630 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
24631 libm_alias_ldouble_other.
24632 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
24633 undefine and redefine.
24634 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
24635 (exp10l): Do not define here.
24636 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
24637 (weak_alias): Undefine and redefine.
24638 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
24639 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
24640 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
24641 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
24642
24643 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
24644 [!__fma] (fma): Define using libm_alias_double.
24645 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
24646 [!__fmaf] (fmaf): Define using libm_alias_float.
24647 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
24648 (fmal): Define using libm_alias_ldouble.
24649
24650 2017-10-10 Joseph Myers <joseph@codesourcery.com>
24651
24652 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
24653 New macro.
24654 (libm_alias_double_other): Likewise.
24655 (libm_alias_double_r): Use libm_alias_double_other_r.
24656 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
24657 New macro.
24658 (libm_alias_float_other): Likewise.
24659 (libm_alias_float_r): Use libm_alias_float_other_r.
24660 * sysdeps/generic/libm-alias-float128.h
24661 (libm_alias_float128_other_r): New macro.
24662 (libm_alias_float128_other): Likewise.
24663 (libm_alias_float128_r): Use libm_alias_float128_other_r.
24664 * sysdeps/generic/libm-alias-ldouble.h
24665 (libm_alias_ldouble_other_r): New macro.
24666 (libm_alias_ldouble_other): Likewise.
24667 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24668 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24669 (libm_alias_double_other_r): New macro.
24670 (libm_alias_double_other): Likewise.
24671 (libm_alias_double_r): Use libm_alias_double_other_r.
24672 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24673 (libm_alias_ldouble_other_r): New macro.
24674 (libm_alias_ldouble_other): Likewise.
24675 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24676 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
24677 [!USE_AS_COMPAT]: Use libm_alias_double_other.
24678 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
24679 [!USE_AS_COMPAT]: Use libm_alias_float_other.
24680 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
24681 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
24682 * math/w_exp2f.c: Use libm_alias_float_other.
24683 * math/w_expf.c: Likewise.
24684 * math/w_log2f.c: Likewise.
24685 * math/w_logf.c: Likewise.
24686 * math/w_powf.c: Likewise.
24687 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
24688 [!__exp2f]: Use libm_alias_float_other.
24689 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
24690 [!__expf]: Use libm_alias_float_other.
24691 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
24692 [!__log2f]: Use libm_alias_float_other.
24693 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
24694 [!__logf]: Use libm_alias_float_other.
24695 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
24696 [!__powf]: Use libm_alias_float_other.
24697
24698 2017-10-10 Florian Weimer <fweimer@redhat.com>
24699
24700 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
24701 function.
24702 (_nss_files_gethostbyname3_r): Call it.
24703
24704 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24705
24706 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
24707 error. Remove default definition of declare_mgen_alias.
24708 [!declare_mgen_alias_r]: Likewise.
24709 * sysdeps/generic/math-type-macros-double.h
24710 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
24711 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
24712 (declare_mgen_alias_r): Likewise.
24713 * sysdeps/generic/math-type-macros-float128.h
24714 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24715 * sysdeps/generic/math-type-macros-ldouble.h
24716 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24717 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
24718 macro.
24719 (declare_mgen_alias_r_s): Likewise.
24720 (declare_mgen_alias_r): Likewise.
24721 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
24722 (lgamma_r): Define using libm_alias_double_r.
24723 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
24724 (lgammaf_r): Define using libm_alias_float_r.
24725 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
24726 (lgammal_r): Define using libm_alias_ldouble_r.
24727 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
24728 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
24729
24730 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24731
24732 * lib/glob.c (__glob_pattern_type): Remove now-spurious
24733 extern declaration.
24734
24735 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24736
24737 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
24738
24739 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
24740
24741 [BZ #21326]
24742 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
24743 [__cplusplus >= 201103] (__USE_ISOC99): Define.
24744 * math/Makefile (test-math-cxx11): New test.
24745 * math/test-math-cxx11.cc: New file.
24746
24747 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
24748
24749 * login/openpty.c (openpty): Close slave pty file descriptor on error.
24750
24751 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
24752 call to allocate the slave pty file descriptor.
24753
24754 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24755
24756 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
24757 [!__fma] (fma): Define using libm_alias_double.
24758 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
24759 [!__fma] (fma): Define using libm_alias_double.
24760
24761 * sysdeps/ieee754/float128/float128_private.h: Include
24762 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
24763 (libm_alias_ldouble_r): Undefine and redefine.
24764 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
24765 <libm-alias-ldouble.h>.
24766 (asinhl): Define using libm_alias_ldouble.
24767 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
24768 <libm-alias-ldouble.h>.
24769 (atanl): Define using libm_alias_ldouble.
24770 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
24771 <libm-alias-ldouble.h>.
24772 (cbrtl): Define using libm_alias_ldouble.
24773 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
24774 <libm-alias-ldouble.h>.
24775 (ceill): Define using libm_alias_ldouble.
24776 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
24777 <libm-alias-ldouble.h>.
24778 (copysignl): Define using libm_alias_ldouble.
24779 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
24780 <libm-alias-ldouble.h>.
24781 (cosl): Define using libm_alias_ldouble.
24782 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
24783 <libm-alias-ldouble.h>.
24784 (erfl): Define using libm_alias_ldouble.
24785 (erfcl): Likewise.
24786 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
24787 <libm-alias-ldouble.h>.
24788 (expm1l): Define using libm_alias_ldouble.
24789 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
24790 <libm-alias-ldouble.h>.
24791 (fabsl): Define using libm_alias_ldouble.
24792 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
24793 <libm-alias-ldouble.h>.
24794 (floorl): Define using libm_alias_ldouble.
24795 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
24796 <libm-alias-ldouble.h>.
24797 (fmal): Define using libm_alias_ldouble.
24798 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
24799 <libm-alias-ldouble.h>.
24800 (frexpl): Define using libm_alias_ldouble.
24801 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
24802 libm_alias_ldouble.
24803 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
24804 <libm-alias-ldouble.h>.
24805 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
24806 libm_alias_ldouble.
24807 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
24808 <libm-alias-ldouble.h>.
24809 (getpayloadl): Define using libm_alias_ldouble.
24810 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
24811 <libm-alias-ldouble.h>.
24812 (llrintl): Define using libm_alias_ldouble.
24813 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
24814 <libm-alias-ldouble.h>.
24815 (llroundl): Define using libm_alias_ldouble.
24816 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
24817 <libm-alias-ldouble.h>.
24818 (logbl): Define using libm_alias_ldouble.
24819 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
24820 <libm-alias-ldouble.h>.
24821 (lrintl): Define using libm_alias_ldouble.
24822 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
24823 <libm-alias-ldouble.h>.
24824 (lroundl): Define using libm_alias_ldouble.
24825 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
24826 <libm-alias-ldouble.h>.
24827 (modfl): Define using libm_alias_ldouble.
24828 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
24829 <libm-alias-ldouble.h>.
24830 (nearbyintl): Define using libm_alias_ldouble.
24831 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
24832 <libm-alias-ldouble.h>.
24833 (nextafterl): Define using libm_alias_ldouble.
24834 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
24835 <libm-alias-ldouble.h>.
24836 (nextupl): Define using libm_alias_ldouble.
24837 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
24838 <libm-alias-ldouble.h>.
24839 (remquol): Define using libm_alias_ldouble.
24840 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
24841 <libm-alias-ldouble.h>.
24842 (rintl): Define using libm_alias_ldouble.
24843 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
24844 <libm-alias-ldouble.h>.
24845 (roundevenl): Define using libm_alias_ldouble.
24846 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
24847 <libm-alias-ldouble.h>.
24848 (roundl): Define using libm_alias_ldouble.
24849 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
24850 using libm_alias_ldouble.
24851 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
24852 <libm-alias-ldouble.h>.
24853 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
24854 Define using libm_alias_ldouble.
24855 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
24856 <libm-alias-ldouble.h>.
24857 (sincosl): Define using libm_alias_ldouble.
24858 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
24859 <libm-alias-ldouble.h>.
24860 (sinl): Define using libm_alias_ldouble.
24861 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
24862 <libm-alias-ldouble.h>.
24863 (tanhl): Define using libm_alias_ldouble.
24864 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
24865 <libm-alias-ldouble.h>.
24866 (tanl): Define using libm_alias_ldouble.
24867 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
24868 <libm-alias-ldouble.h>.
24869 (totalorderl): Define using libm_alias_ldouble.
24870 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
24871 <libm-alias-ldouble.h>.
24872 (totalordermagl): Define using libm_alias_ldouble.
24873 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
24874 <libm-alias-ldouble.h>.
24875 (truncl): Define using libm_alias_ldouble.
24876 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
24877 libm_alias_ldouble.
24878 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
24879 libm_alias_ldouble.
24880 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
24881 <libm-alias-ldouble.h>.
24882 (weak_alias): Do not undefine and redefine.
24883 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24884 (copysignl): Define with long_double_symbol only if [IS_IN
24885 (libc)].
24886 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
24887 <libm-alias-ldouble.h>.
24888 (weak_alias): Do not undefine and redefine.
24889 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24890 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
24891 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
24892 <libm-alias-ldouble.h>.
24893 (weak_alias): Do not undefine and redefine.
24894 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24895 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
24896 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
24897 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
24898 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
24899 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
24900 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
24901 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
24902 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
24903 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
24904 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
24905 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
24906 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
24907 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
24908 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
24909 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
24910 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
24911 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
24912 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
24913 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
24914 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
24915 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
24916 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
24917 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
24918 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
24919 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
24920
24921 2017-10-06 Carlos O'Donell <carlos@redhat.com>
24922
24923 [BZ #22111]
24924 * malloc/malloc.c (tcache_shutting_down): Use bool type.
24925 (tcache_thread_freeres): Set tcache_shutting_down before
24926 freeing the tcache.
24927 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
24928 * malloc/tst-malloc-tcache-leak.c: New file.
24929
24930 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24931
24932 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
24933 back to powerpc32 file.
24934 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
24935 (memrchr): Add __memrchr_power8 to ifunc list.
24936 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
24937 extra bytes for unaligned inputs.
24938
24939 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24940
24941 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
24942 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
24943 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
24944 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24945 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24946
24947 2017-10-05 Joseph Myers <joseph@codesourcery.com>
24948
24949 * sysdeps/arm/libm-test-ulps: Update.
24950
24951 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
24952 <libm-alias-ldouble.h>.
24953 (asinhl): Define using libm_alias_ldouble.
24954 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
24955 <libm-alias-ldouble.h>.
24956 (cbrtl): Define using libm_alias_ldouble.
24957 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
24958 <libm-alias-ldouble.h>.
24959 (copysignl): Define using libm_alias_ldouble.
24960 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
24961 <libm-alias-ldouble.h>.
24962 (cosl): Define using libm_alias_ldouble.
24963 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
24964 <libm-alias-ldouble.h>.
24965 (erfl): Define using libm_alias_ldouble.
24966 (erfcl): Likewise.
24967 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
24968 <libm-alias-ldouble.h>.
24969 (fmal): Define using libm_alias_ldouble.
24970 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
24971 <libm-alias-ldouble.h>.
24972 (frexpl): Define using libm_alias_ldouble.
24973 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
24974 libm_alias_ldouble.
24975 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
24976 <libm-alias-ldouble.h>.
24977 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
24978 libm_alias_ldouble.
24979 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
24980 <libm-alias-ldouble.h>.
24981 (getpayloadl): Define using libm_alias_ldouble.
24982 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
24983 <libm-alias-ldouble.h>.
24984 (llrintl): Define using libm_alias_ldouble.
24985 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
24986 <libm-alias-ldouble.h>.
24987 (llroundl): Define using libm_alias_ldouble.
24988 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
24989 <libm-alias-ldouble.h>.
24990 (lrintl): Define using libm_alias_ldouble.
24991 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
24992 <libm-alias-ldouble.h>.
24993 (lroundl): Define using libm_alias_ldouble.
24994 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
24995 <libm-alias-ldouble.h>.
24996 (modfl): Define using libm_alias_ldouble.
24997 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
24998 <libm-alias-ldouble.h>.
24999 (nextupl): Define using libm_alias_ldouble.
25000 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
25001 <libm-alias-ldouble.h>.
25002 (remquol): Define using libm_alias_ldouble.
25003 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
25004 <libm-alias-ldouble.h>.
25005 (roundevenl): Define using libm_alias_ldouble.
25006 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
25007 <libm-alias-ldouble.h>.
25008 (roundl): Define using libm_alias_ldouble.
25009 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25010 using libm_alias_ldouble.
25011 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25012 <libm-alias-ldouble.h>.
25013 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25014 <libm-alias-ldouble.h>.
25015 (setpayloadsigl): Define using libm_alias_ldouble.
25016 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25017 <libm-alias-ldouble.h>.
25018 (sincosl): Define using libm_alias_ldouble.
25019 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25020 <libm-alias-ldouble.h>.
25021 (sinl): Define using libm_alias_ldouble.
25022 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25023 <libm-alias-ldouble.h>.
25024 (tanhl): Define using libm_alias_ldouble.
25025 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
25026 <libm-alias-ldouble.h>.
25027 (tanl): Define using libm_alias_ldouble.
25028 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
25029 <libm-alias-ldouble.h>.
25030 (totalorderl): Define using libm_alias_ldouble.
25031 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25032 <libm-alias-ldouble.h>.
25033 (totalordermagl): Define using libm_alias_ldouble.
25034 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25035 libm_alias_ldouble.
25036 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25037 libm_alias_ldouble.
25038
25039 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25040
25041 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25042 memmove_falkor.
25043 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25044 (__libc_ifunc_impl_list): Likewise.
25045 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25046 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25047
25048 * benchtests/bench-memmove-walk.c: New file.
25049 * benchtests/Makefile (string-benchset): Add it.
25050
25051 * benchtests/bench-memset-walk.c: New file.
25052 * benchtests/Makefile (string-benchset): Add it.
25053
25054 * benchtests/bench-memcpy-walk.c: New file.
25055 * benchtests/Makefile (string-benchset): Add it.
25056
25057 2017-10-05 Florian Weimer <fweimer@redhat.com>
25058
25059 nscd: Eliminate compilation time dependency in the build output.
25060 * nscd/nscd_stat.c (STATDATA_VERSION)
25061 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25062 (STATDATA_VERSION_FULL): New macro definitions.
25063 (compilation): Remove.
25064 (struct statdata): Adjust version member.
25065 (send_stats): Set version from STATDATA_VERSION_FULL.
25066 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25067
25068 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25069
25070 * configure.ac (--enable-add-ons): Remove option.
25071 (machine): Do not mention add-ons in comment.
25072 (LIBC_PRECONFIGURE): Likewise.
25073 (add_ons): Remove variable and sanity checks and logic to locate
25074 add-ons.
25075 (add_ons_automatic): Remove variable.
25076 (configured_add_ons): Likewise.
25077 (add_ons_sfx): Likewise.
25078 (add_ons_pfx): Likewise.
25079 (add_on_subdirs): Likewise.
25080 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25081 consideration of add-ons in Implies handling.
25082 (sysdeps_add_ons): Likewise.
25083 * configure: Regenerated.
25084 * libidn/configure.ac: Remove.
25085 * libidn/configure: Likewise.
25086 * sysdeps/unix/inet/configure.ac: New file.
25087 * sysdeps/unix/inet/configure: New generated file.
25088 * sysdeps/unix/inet/Subdirs: Add libidn.
25089 * Makeconfig (sysdeps-srcdirs): Remove variable.
25090 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25091 ($(common-objpfx)config.status): Do not depend on add-on files.
25092 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25093 comment.
25094 (all-subdirs): Do not include $(add-on-subdirs).
25095 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25096 * config.make.in (add-ons): Remove variable.
25097 (add-on-subdirs): Likewise.
25098 (sysdeps-add-ons): Likewise.
25099 * manual/Makefile (add-chapters): Remove.
25100 ($(objpfx)texis): Do not depend on $(add-chapters).
25101 (nonexamples): Do not handle $(add-chapters).
25102 (examples): Do not handle $(add-ons).
25103 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25104 libc-texinfo.sh.
25105 * manual/install.texi (Installation): Do not mention add-ons.
25106 (--enable-add-ons): Do not document configure option.
25107 * INSTALL: Regenerated.
25108 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25109 * manual/maint.texi (Hierarchy Conventions): Do not mention
25110 add-ons.
25111 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25112 --enable-add-ons.
25113 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25114 add-ons.
25115 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25116 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25117
25118 2017-10-05 Andreas Schwab <schwab@suse.de>
25119
25120 [BZ #15142]
25121 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25122 (_IO_flush_all_lockp): Always lock list_all_lock.
25123 (_IO_flush_all_linebuffered): Likewise.
25124 (_IO_unbuffer_all): Likewise.
25125
25126 2017-10-05 Florian Weimer <fweimer@redhat.com>
25127
25128 [BZ #15436]
25129 Do not flush stdio streams on abort.
25130 * stdlib/abort.c (fflush): Remove macro definition.
25131 (abort): Remove stages related to stdio flushing.
25132
25133 2017-10-05 Florian Weimer <fweimer@redhat.com>
25134
25135 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25136
25137 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25138
25139 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25140
25141 2017-10-05 Florian Weimer <fweimer@redhat.com>
25142
25143 * support/support_format_hostent.c (support_format_hostent): Add
25144 more error information for NETDB_INTERNAL.
25145
25146 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25147
25148 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25149 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25150 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25151 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25152 AC_DEFINE if multi-arch is enabled.
25153 * sysdeps/i386/configure: Regenerated.
25154
25155 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25156
25157 * Makeconfig (+link-static-before-libc): Use
25158 $(DEFAULT-LDFLAGS-$(@F)).
25159 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25160 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25161 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25162
25163 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25164
25165 * elf/Makefile (tests): Add tst-main1.
25166 (modules-names): Add tst-main1mod.
25167 ($(objpfx)tst-main1): New.
25168 (CRT-tst-main1): Likewise.
25169 (LDFLAGS-tst-main1): Likewise.
25170 (LDLIBS-tst-main1): Likewise.
25171 (tst-main1mod.so-no-z-defs): Likewise.
25172 * elf/tst-main1.c: New file.
25173 * elf/tst-main1mod.c: Likewise.
25174
25175 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25176
25177 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25178
25179 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25180
25181 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25182 (fma): Define using libm_alias_double.
25183 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25184 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25185 <math_ldbl_opt.h>.
25186 (fmal): Do not define as compat symbol here.
25187 * sysdeps/alpha/fpu/s_fma.c: New file.
25188
25189 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25190
25191 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25192
25193 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25194
25195 [BZ #22229]
25196 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25197 <math_ldbl_opt.h>
25198 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25199 and libc.
25200 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25201 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25202 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25203 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25204 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25205 Include <math_ldbl_opt.h>
25206 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25207 and libc.
25208 (compat_symbol): Undefine and redefine.
25209 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25210 <math_ldbl_opt.h>
25211 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25212 (compat_symbol): Undefine and redefine.
25213 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25214 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25215 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25216 GLIBC_2_1 for libm.
25217 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25218 GLIBC_2.0 copysignl symbol.
25219 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25220 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25221
25222 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25223
25224 2017-10-04 Florian Weimer <fweimer@redhat.com>
25225
25226 * scripts/check-local-headers.sh: Ignore nspr4 header file
25227 directory in addition to nspr.
25228
25229 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25230
25231 [BZ #17956]
25232 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25233 * configure: Regenerate.
25234 * crypt/Makefile (nss-cpp-flags): New variable.
25235 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25236 (CPPFLAGS-md5-crypt.c): Use it.
25237 * scripts/check-local-headers.sh: Ignore nspr header file
25238 directory.
25239
25240 2017-10-04 Andreas Schwab <schwab@suse.de>
25241
25242 * nis/Makefile (services): Remove compat.
25243 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25244 ($(objpfx)libnss_compat.so): Remove rule.
25245 * nis/Versions (libnss_compat): Remove.
25246 * nss/Makefile (services): Add compat.
25247 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25248 * nss/Versions (libnss_compat): Define.
25249 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25250 Don't include <rpc/types.h>. Replace bool_t by bool.
25251 * nss/nss_compat/compat-initgroups.c: Likewise.
25252 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25253 instead of <rpcsrv/ypclnt.h>.
25254 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25255 yp_get_default_domain.
25256 * nss/nss_compat/compat-pwd.c: Likewise.
25257 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25258 yp_get_default_domain.
25259 * nss/nss_compat/nisdomain.c: New file.
25260 * nss/nss_compat/nisdomain.h: Likewise.
25261
25262 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25263
25264 [BZ #22244]
25265 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25266 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25267
25268 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25269
25270 [BZ #22243]
25271 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25272 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25273
25274 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25275
25276 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25277 "movl main@GOTOFF(%ebx), %eax".
25278
25279 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25280
25281 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25282 allow undefined _DYNAMIC in PIE libc.a.
25283 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25284 Likewse.
25285
25286 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25287
25288 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25289 check _DYNAMIC.
25290
25291 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25292
25293 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25294 check _DYNAMIC.
25295
25296 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25297
25298 * math/test-math-iscanonical.cc (error): Replace bool with int.
25299
25300 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25301
25302 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25303 (modf): Define using libm_alias_double, only if [!__modf].
25304 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25305 <libm-alias-double.h>.
25306 (modf): Define using libm_alias_double, only if [!__modf].
25307 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25308 compat symbol here.
25309 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25310 (weak_alias): Do not undefine and redefine.
25311 (strong_alias): Likewise.
25312 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25313 (weak_alias): Likewise.
25314 (strong_alias): Likewise.
25315
25316 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25317 (logb): Define using libm_alias_double, only if [!__logb].
25318 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25319 <libm-alias-double.h>.
25320 (logb): Define using libm_alias_double, only if [!__logb].
25321 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25322 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25323 (weak_alias): Do not undefine and redefine.
25324 (strong_alias): Likewise.
25325 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25326 (weak_alias): Likewise.
25327 (strong_alias): Likewise.
25328
25329 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25330
25331 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25332 Check SHARED instead PIC.
25333
25334 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25335
25336 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25337 [!__fmaf] (fmaf): Define using libm_alias_float.
25338
25339 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25340 (frexp): Define using libm_alias_double.
25341 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25342 <libm-alias-double.h>.
25343 (frexp): Define using libm_alias_double.
25344 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25345 compat symbol here.
25346
25347 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25348
25349 [BZ #22235]
25350 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25351 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25352 (CFLAGS-test-math-iscanonical.cc): New variable.
25353 * math/test-math-iscanonical.cc: New file.
25354 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
25355 Provide a C++ implementation based on function overloading,
25356 rather than using __MATH_TG, which uses C-only builtins.
25357 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
25358 Likewise.
25359 * sysdeps/powerpc/powerpc64le/Makefile
25360 (CFLAGS-test-math-iscanonical.cc): New variable.
25361
25362 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25363
25364 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25365 (ceil): Define using libm_alias_double.
25366 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25367 (floor): Define using libm_alias_double.
25368 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25369 <libm-alias-double.h>.
25370 (llround): Define using libm_alias_double.
25371 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25372 <libm-alias-double.h>.
25373 (lround): Define using libm_alias_double.
25374 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25375 <libm-alias-double.h>.
25376 (nearbyint): Define using libm_alias_double.
25377 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25378 <libm-alias-double.h>.
25379 (remquo): Define using libm_alias_double.
25380 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
25381 (rint): Define using libm_alias_double.
25382 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
25383 (round): Define using libm_alias_double.
25384 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
25385 (trunc): Define using libm_alias_double.
25386 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
25387 <libm-alias-double.h>.
25388 (ceil): Define using libm_alias_double.
25389 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
25390 <libm-alias-double.h>.
25391 (floor): Define using libm_alias_double.
25392 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
25393 <libm-alias-double.h>.
25394 (llround): Define using libm_alias_double.
25395 [_LP64] (lround): Likewise.
25396 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
25397 <libm-alias-double.h>.
25398 [!_LP64] (lround): Define using libm_alias_double.
25399 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
25400 <libm-alias-double.h>.
25401 (nearbyint): Define using libm_alias_double.
25402 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
25403 <libm-alias-double.h>.
25404 (remquo): Define using libm_alias_double.
25405 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
25406 <libm-alias-double.h>.
25407 (rint): Define using libm_alias_double.
25408 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
25409 <libm-alias-double.h>.
25410 (round): Define using libm_alias_double.
25411 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
25412 <libm-alias-double.h>.
25413 (trunc): Define using libm_alias_double.
25414 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
25415 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
25416 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
25417 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
25418 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
25419 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
25420 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
25421 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
25422 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
25423
25424 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25425
25426 * math/w_remainder.c: New file.
25427 * math/w_remainderf.c: New file.
25428 * math/w_remainderl.c: New file.
25429
25430 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25431
25432 * elf/rtld.c (BOOTSTRAP_MAP): New.
25433 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
25434 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25435 Likewise.
25436 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25437 Likewise.
25438 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25439 Likewise.
25440
25441 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25442
25443 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
25444 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
25445 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
25446 rtld_hidden_data_ver): Define to empty.
25447 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
25448 __assert_perror_fail): Likewise.
25449 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25450 (__rewinddir): Likewise.
25451 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25452 (__profile_frequency): Likewise.
25453 * include/setjmp.h (__sigsetjmp): Likewise.
25454 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
25455 __libc_sigaction): Likewise.
25456 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
25457 not set hidden attribute.
25458 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
25459 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
25460 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
25461 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
25462 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
25463 __fxstatat64): Likewise.
25464 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25465 (__uname): Likewise.
25466 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25467 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
25468 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
25469 (NO_RTLD_HIDDEN): Set.
25470 * sysdeps/mach/hurd/configure: Refresh.
25471 * config.h.in: Refresh.
25472
25473 2017-10-02 Joseph Myers <joseph@codesourcery.com>
25474
25475 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
25476 (atan): Define using libm_alias_double.
25477 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
25478 (tan): Define using libm_alias_double.
25479 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
25480 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
25481
25482 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
25483 define as weak alias of __atan. Do not define any aliases if
25484 [__atan].
25485 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
25486 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
25487 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
25488 as weak alias of __tan. Do not define any aliases if [__tan].
25489 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
25490 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
25491 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
25492 __atan.
25493 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
25494 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
25495 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
25496 and define as weak alias of __atan.
25497 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
25498 __atan.
25499 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
25500 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
25501 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
25502 define as weak alias of __tan.
25503
25504 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25505
25506 * math/w_lgamma.c: New file.
25507 * math/w_lgammaf.c: New file.
25508 * math/w_lgammal.c: New file.
25509
25510 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25511
25512 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
25513 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
25514 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
25515 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
25516 * sysdeps/ieee754/flt-32/w_logf.c: New file.
25517 * sysdeps/ieee754/flt-32/w_powf.c: New file.
25518 * sysdeps/i386/fpu/w_log2f.c: New file.
25519 * sysdeps/i386/fpu/w_logf.c: New file.
25520 * sysdeps/i386/fpu/w_powf.c: New file.
25521 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
25522 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
25523 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
25524
25525 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25526 H.J. Lu <hongjiu.lu@intel.com>
25527
25528 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
25529 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
25530 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
25531 * sysdeps/ieee754/flt-32/w_expf.c: New file.
25532 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
25533 the new expf code.
25534 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
25535 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
25536 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
25537 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
25538 * sysdeps/i386/fpu/w_exp2f.c: New file.
25539 * sysdeps/i386/fpu/w_expf.c: New file.
25540 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
25541 * sysdeps/x86_64/fpu/w_expf.c: New file.
25542
25543 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25544
25545 * math/Versions (logf): New libm symbol at GLIBC_2.27.
25546 (log2f): Likewise.
25547 (powf): Likewise.
25548 * math/w_log2f.c: New file.
25549 * math/w_logf.c: New file.
25550 * math/w_powf.c: New file.
25551 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
25552 * math/w_logf_compat.c (__logf_compat): Likewise.
25553 * math/w_powf_compat.c (__powf_compat): Likewise.
25554 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
25555 * sysdeps/ia64/fpu/e_logf.S: Likewise.
25556 * sysdeps/ia64/fpu/e_powf.S: Likewise.
25557 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
25558 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25559 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25560 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25561 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25562 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25563 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25564 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25565 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25566 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25567 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25568 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25569 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25570 Likewise.
25571 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25572 Likewise.
25573 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25574 Likewise.
25575 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25576 Likewise.
25577 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25578 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25579 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25580 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25581 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25582 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25583 Likewise.
25584 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25585 Likewise.
25586 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25587 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25588 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25589
25590 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25591
25592 * sysdeps/powerpc/powerpc64/multiarch/Makefile
25593 (sysdep_routines): Add memrchr_power8.
25594 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
25595 (memrchr): Add __memrchr_power8 to list of memrchr functions.
25596 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
25597 New file.
25598 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25599 (memrchr): Add __memrchr_power8 to ifunc list.
25600 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
25601
25602 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25603
25604 [BZ #18822]
25605 * sysdeps/unix/sysv/linux/posix_fadvise64.c
25606 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
25607 libc_hidden_def.
25608 * sysdeps/unix/sysv/linux/posix_fallocate64.c
25609 (__posix_fallocate64_l64): Likewise.
25610
25611 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25612
25613 [BZ #18822]
25614 * sysdeps/unix/sysv/linux/sched_setaffinity.c
25615 (__sched_setaffinity_new): Add libc_hidden_proto and
25616 libc_hidden_def.
25617
25618 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25619
25620 [BZ #18822]
25621 * include/glob.h (__glob64): Add libc_hidden_proto.
25622 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
25623 libc_hidden_def.
25624
25625 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25626
25627 [BZ #18822]
25628 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
25629 attribute_hidden.
25630
25631 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25632
25633 [BZ #18822]
25634 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
25635
25636 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25637
25638 [BZ #18822]
25639 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
25640 libc_hidden_def.
25641
25642 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25643
25644 [BZ #18822]
25645 * csu/version.c (__libc_print_version): Add attribute_hidden.
25646
25647 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25648
25649 [BZ #18822]
25650 * include/libc-internal.h (__init_misc): Add attribute_hidden.
25651
25652 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25653
25654 [BZ #18822]
25655 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
25656
25657 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25658
25659 [BZ #18822]
25660 * nscd/nscd_helper.c (__nis_hash): New prototype.
25661
25662 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25663
25664 [BZ #18822]
25665 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
25666 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
25667 libc_hidden_def.
25668 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
25669 * termios/tcgetattr.c (__tcgetattr): Likewise.
25670
25671 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25672
25673 [BZ #18822]
25674 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
25675 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
25676 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
25677 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
25678 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
25679
25680 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25681
25682 [BZ #18822]
25683 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
25684
25685 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25686
25687 [BZ #18822]
25688 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
25689 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
25690
25691 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25692
25693 [BZ #18822]
25694 * intl/hash-string.h (__hash_string): Add attribute_hidden.
25695
25696 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25697
25698 [BZ #18822]
25699 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
25700 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
25701
25702 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25703
25704 [BZ #18822]
25705 * include/ifreq.h: New file.
25706 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
25707 (__ifreq): Likewise.
25708 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
25709 (__ifreq): Likewise.
25710
25711 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25712
25713 [BZ #18822]
25714 * include/idna.h: New file.
25715 * inet/getnameinfo.c: Include <idna.h> instead of
25716 <libidn/idna.h>.
25717 (__idna_to_unicode_lzlz): Removed.
25718 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
25719 <libidn/idna.h>.
25720 (__idna_to_ascii_lz): Removed.
25721 (__idna_to_unicode_lzlz): Likewise.
25722
25723 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25724
25725 [BZ #18822]
25726 * include/plural-exp.h: New file.
25727 * intl/plural-exp.c: Include <plural-exp.h> instead of
25728 "plural-exp.h".
25729
25730 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25731
25732 [BZ #18822]
25733 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
25734 "getsourcefilter.h".
25735 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
25736 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
25737 "getsourcefilter.h".
25738 (__get_sol): Removed.
25739
25740 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25741
25742 [BZ #18822]
25743 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
25744 to ...
25745 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
25746
25747 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25748
25749 [BZ #18822]
25750 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
25751 attribute_hidden.
25752
25753 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25754
25755 [BZ #18822]
25756 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
25757
25758 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25759
25760 [BZ #18822]
25761 * include/search.h (__tdestroy): Add libc_hidden_proto.
25762 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
25763
25764 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25765
25766 [BZ #18822]
25767 * include/assert.h (__assert_fail_base): Add attribute_hidden.
25768
25769 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25770
25771 [BZ #18822]
25772 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
25773 attribute_hidden.
25774
25775 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25776
25777 [BZ #18822]
25778 * include/signal.h (__kill): Add libc_hidden_proto.
25779 (__sigblock): Likewise.
25780 (__sigprocmask): Likewise.
25781 (__sigaltstack): Likewise.
25782 * signal/kill.c (__kill): Add libc_hidden_def.
25783 * signal/sigblock.c (__sigblock): Likewise.
25784 * signal/sigprocmask.c (__sigprocmask): Likewise.
25785 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
25786 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
25787 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
25788 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
25789 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
25790 Likewise.
25791 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
25792 Likewise.
25793 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
25794 (__sigprocmask): Likewise.
25795 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
25796 Likewise.
25797 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
25798 (__sigprocmask): Likewise.
25799 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
25800 Likewise.
25801
25802 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25803
25804 [BZ #18822]
25805 * include/string.h (__strsep): Add libc_hidden_proto.
25806 * string/strsep.c (__strsep): Add libc_hidden_def.
25807
25808 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25809
25810 [BZ #18822]
25811 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
25812 attribute_hidden.
25813 (__spawni): Likewise.
25814
25815 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25816
25817 [BZ #18822]
25818 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
25819 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
25820 libc_hidden_def.
25821
25822 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25823
25824 [BZ #18822]
25825 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
25826
25827 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25828
25829 [BZ #18822]
25830 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
25831 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
25832 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
25833 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
25834 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
25835 Likewise.
25836 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
25837 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
25838
25839 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25840
25841 [BZ #18822]
25842 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
25843 (__dcigettext): Likewise.
25844
25845 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25846
25847 [BZ #18822]
25848 * include/sys/sysinfo.h (__get_nprocs_conf): Add
25849 libc_hidden_proto.
25850 (__get_nprocs): Likewise.
25851 (__get_phys_pages): Likewise.
25852 (__get_avphys_pages): Likewise.
25853 (__get_child_max): Add attribute_hidden.
25854 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
25855 (__get_nprocs): Likewise.
25856 (__get_phys_pages): Likewise.
25857 (__get_avphys_pages): Likewise.
25858 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
25859 libc_hidden_def.
25860 (__get_nprocs): Likewise.
25861 (__get_phys_pages): Likewise.
25862 (__get_avphys_pages): Likewise.
25863 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
25864 libc_hidden_def.
25865 (__get_nprocs_conf): Likewise.
25866 (__get_phys_pages): Likewise.
25867 (__get_avphys_pages): Likewise.
25868
25869 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25870
25871 [BZ #18822]
25872 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
25873 attribute_hidden.
25874 (__netlink_close): Likewise.
25875 (__netlink_free_handle): Likewise.
25876 (__netlink_request): Likewise.
25877
25878 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25879
25880 [BZ #18822]
25881 * include/rpc/rpc.h (__rpc_thread_variables): Add
25882 attribute_hidden.
25883 (__rpc_thread_svc_cleanup): Likewise.
25884 (__rpc_thread_clnt_cleanup): Likewise.
25885 (__rpc_thread_key_cleanup): Likewise.
25886
25887 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25888
25889 [BZ #18822]
25890 * include/sys/uio.h (__readv): Add libc_hidden_proto.
25891 (__writev): Likewise.
25892 * misc/readv.c (__readv): Add libc_hidden_def.
25893 * misc/writev.c (__writev): Likewise.
25894 * sysdeps/posix/readv.c (__readv): Likewise.
25895 * sysdeps/posix/writev.c (__writev): Likewise.
25896 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
25897 (__readv): Likewise.
25898 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
25899 (__writev): Likewise.
25900
25901 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25902
25903 [BZ #18822]
25904 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
25905 (__regcomp): Add libc_hidden_proto.
25906 (__regexec): Likewise.
25907 (__regfree): Likewise.
25908 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
25909 (__regfree): Likewise.
25910 * posix/regexec.c (__regexec): Likewise.
25911
25912 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25913
25914 [BZ #18822]
25915 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
25916 (__getutent): Likewise.
25917 (__getutid): Likewise.
25918 (__getutline): Likewise.
25919 (__pututline): Likewise.
25920 (__getutent_r): Likewise.
25921 (__getutid_r): Likewise.
25922 (__getutline_r): Likewise.
25923 (__utmpname): Add attribute_hidden.
25924 (__setutent): Likewise.
25925 (__endutent): Likewise.
25926 * login/getutent.c (__getutent): Add libc_hidden_def.
25927 * login/getutent_r.c (__getutent_r): Likewise.
25928 (__pututline): Likewise.
25929 * login/getutid.c (__getutid): Likewise.
25930 * login/getutid_r.c (__getutid_r): Likewise.
25931 * login/getutline.c (__getutline): Likewise.
25932 * login/getutline_r.c (__getutline_r): Likewise.
25933 * login/updwtmp.c (__updwtmp): Likewise.
25934
25935 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25936
25937 [BZ #18822]
25938 * include/dirent.h (__opendir): Always add attribute_hidden.
25939 (__fdopendir): Likewise.
25940 (__closedir): Likewise.
25941 (__readdir): Likewise.
25942 (__readdir64): Add libc_hidden_proto.
25943 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
25944 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
25945 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
25946 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
25947 New alias.
25948
25949 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25950
25951 [BZ #18822]
25952 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
25953 * include/netdb.h (__gethostbyaddr_r): Likewise.
25954 (__gethostbyname_r): Likewise.
25955 (__gethostbyname2_r): Likewise.
25956 (__getnetbyaddr_r): Likewise.
25957 (__getnetbyname_r): Likewise.
25958 (__getservbyname_r): Likewise.
25959 (__getservbyport_r): Likewise.
25960 (__getprotobyname_r): Likewise.
25961 (__getprotobynumber_r): Likewise.
25962 (__getnetgrent_r): Likewise.
25963 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
25964 (__getrpcbynumber_r): Likewise.
25965 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
25966
25967 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25968
25969 [BZ #18822]
25970 * include/stdio.h (__fcloseall): Add attribute_hidden.
25971 (__getline): Likewise.
25972 (__path_search): Likewise.
25973 (__gen_tempname): Likewise.
25974 (__libc_message): Likewise.
25975 (__flockfile): Likewise.
25976 (__funlockfile): Likewise.
25977 (__fxprintf): Likewise.
25978 (__fxprintf_nocancel): Likewise.
25979
25980 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25981
25982 [BZ #18822]
25983 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
25984 (__sgetsgent_r): Likewise.
25985
25986 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25987
25988 [BZ #18822]
25989 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
25990 (__statfs64): Likewise.
25991 (__fstatfs64): Likewise.
25992 * include/sys/statvfs.h (__statvfs64): Likewise.
25993 (__fstatvfs64): Likewise.
25994 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
25995 (__statfs_filesize_max): Likewise.
25996 (__statfs_symlinks): Likewise.
25997 (__statfs_chown_restricted): Likewise.
25998
25999 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26000
26001 [BZ #18822]
26002 * include/time.h (__tzstring): Add attribute_hidden.
26003 (__tzfile_read): Likewise.
26004 (__tzfile_compute): Likewise.
26005 (__tzfile_default): Likewise.
26006 (__tzset_parse_tz): Likewise.
26007 (__offtime): Likewise.
26008 (__asctime_r): Likewise.
26009 (__tzset): Likewise.
26010 (__tz_convert): Likewise.
26011 (__getdate_r): Likewise.
26012 (__getclktck): Likewise.
26013
26014 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26015
26016 [BZ #18822]
26017 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26018 (__nscd_unmap): Likewise.
26019 (__nscd_cache_search): Likewise.
26020 (__nscd_get_nl_timestamp): Likewise.
26021 (__nscd_getpwnam_r): Likewise.
26022 (__nscd_getpwuid_r): Likewise.
26023 (__nscd_getgrnam_r): Likewise.
26024 (__nscd_getgrgid_r): Likewise.
26025 (__nscd_gethostbyname_r): Likewise.
26026 (__nscd_gethostbyname2_r): Likewise.
26027 (__nscd_gethostbyaddr_r): Likewise.
26028 (__nscd_getai): Likewise.
26029 (__nscd_getgrouplist): Likewise.
26030 (__nscd_getservbyname_r): Likewise.
26031 (__nscd_getservbyport_r): Likewise.
26032 (__nscd_innetgr): Likewise.
26033 (__nscd_setnetgrent): Likewise.
26034
26035 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26036
26037 [BZ #18822]
26038 * include/gmp.h: Declare internal functions only if _ISOMAC is
26039 undefined.
26040 (__mpn_extract_double): Add attribute_hidden.
26041 (__mpn_extract_long_double): Likewise.
26042 (__mpn_extract_float128): Likewise.
26043 (__mpn_construct_float): Likewise.
26044 (__mpn_construct_double): Likewise.
26045 (__mpn_construct_long_double): Likewise.
26046 (__mpn_construct_float128): Likewise.
26047 (mpn_add_1): Likewise.
26048 (mpn_addmul_1): Likewise.
26049 (mpn_add_n): Likewise.
26050 (mpn_cmp): Likewise.
26051 (mpn_divrem): Likewise.
26052 (mpn_lshift): Likewise.
26053 (mpn_mul): Likewise.
26054 (mpn_mul_1): Likewise.
26055 (mpn_rshift): Likewise.
26056 (mpn_sub_1): Likewise.
26057 (mpn_submul_1): Likewise.
26058 (mpn_sub_n): Likewise.
26059
26060 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26061
26062 [BZ #18822]
26063 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26064 (__wcscat): Likewise.
26065 (__btowc): Likewise.
26066 (__wcrtomb): Likewise.
26067 (__mbsrtowcs): Likewise.
26068 (__wcsrtombs): Likewise.
26069 (__mbsnrtowcs): Likewise.
26070 (__wcsnrtombs): Likewise.
26071 (__wcsncpy): Likewise.
26072 (__wcpncpy): Likewise.
26073 (__wmemcpy): Likewise.
26074 (__wmempcpy): Likewise.
26075 (__wmemmove): Likewise.
26076 (__wcschrnul): Likewise.
26077 (__vfwscanf): Likewise.
26078 (__vswprintf): Likewise.
26079 (__fwprintf): Likewise.
26080 (__vfwprintf): Likewise.
26081
26082 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26083
26084 [BZ #18822]
26085 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26086 (__getgrgid_r): Likewise.
26087 (__getgrnam_r): Likewise.
26088 * include/pwd.h (__getpwuid_r): Likewise.
26089 (__getpwnam_r): Likewise.
26090 (__fgetpwent_r): Likewise.
26091 * include/shadow.h (__getspnam_r): Likewise.
26092 (__sgetspent_r): Likewise.
26093 (__fgetspent_r): Likewise.
26094
26095 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26096
26097 [BZ #18822]
26098 * include/unistd.h (__access): Add attribute_hidden.
26099 (__lseek64): Likewise.
26100 (__libc_pread64): Likewise.
26101 (__pipe2): Likewise.
26102 (__sleep): Likewise.
26103 (__chdir): Likewise.
26104 (__fchdir): Likewise.
26105 (__getcwd): Likewise.
26106 (__rmdir): Likewise.
26107 (__execvpe): Likewise.
26108 (__execve): Likewise.
26109 (__setsid): Likewise.
26110 (__getuid): Likewise.
26111 (__geteuid): Likewise.
26112 (__getgid): Likewise.
26113 (__getegid): Likewise.
26114 (__getgroups): Likewise.
26115 (__group_member): Likewise.
26116 (__ttyname_r): Likewise.
26117 (__isatty): Likewise.
26118 (__readlink): Likewise.
26119 (__unlink): Likewise.
26120 (__gethostname): Likewise.
26121 (__profil): Likewise.
26122 (__getdtablesize): Likewise.
26123 (__brk): Likewise.
26124 (__ftruncate): Likewise.
26125 (__ftruncate64): Likewise.
26126
26127 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26128
26129 [BZ #18822]
26130 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26131 * argp/argp-fs-xinl.c: Likewise.
26132 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26133 * argp/argp-parse.c: Include <argp.h>.
26134 * argp/argp-xinl.c: Likewise.
26135 * include/argp-fmtstream.h: New file.
26136 * include/argp.h (__argp_error): Add attribute_hidden.
26137 (__argp_failure): Likewise.
26138 (__argp_input): Likewise.
26139 (__argp_state_help): Likewise.
26140
26141 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26142
26143 [BZ #18822]
26144 * include/wchar.h (____wcstof_l_internal): New prototype.
26145 (____wcstod_l_internal): Likewise.
26146 (____wcstold_l_internal): Likewise.
26147 (____wcstol_l_internal): Likewise.
26148 (____wcstoul_l_internal): Likewise.
26149 (____wcstoll_l_internal): Likewise.
26150 (____wcstoull_l_internal): Likewise.
26151 (____wcstof128_l_internal): Likewise.
26152 * sysdeps/ieee754/float128/wcstof128.c
26153 (____wcstof128_l_internal): Removed.
26154 * sysdeps/ieee754/float128/wcstof128_l.c
26155 (____wcstof128_l_internal): Likewise.
26156 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26157 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26158 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26159 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26160 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26161 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26162 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26163 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26164 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26165 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26166
26167 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26168
26169 [BZ #18822]
26170 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26171 instead of <sys/statvfs.h>.
26172 (__internal_statvfs): Removed.
26173 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26174 instead of <sys/statvfs.h>.
26175 (__internal_statvfs64): Removed.
26176 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26177 "internal_statvfs.h" instead of <sys/statvfs.h>.
26178 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26179 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26180 instead of <sys/statvfs.h>.
26181 (__internal_statvfs): Removed.
26182 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26183 instead of <sys/statvfs.h>.
26184 (__internal_statvfs64): Removed.
26185
26186 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26187
26188 [BZ #18822]
26189 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26190 (__gconv_close): Likewise.
26191 (__gconv): Likewise.
26192 (__gconv_find_transform): Likewise.
26193 (__gconv_lookup_cache): Likewise.
26194 (__gconv_compare_alias_cache): Likewise.
26195 (__gconv_load_cache): Likewise.
26196 (__gconv_get_path): Likewise.
26197 (__gconv_close_transform): Likewise.
26198 (__gconv_release_cache): Likewise.
26199 (__gconv_find_shlib): Likewise.
26200 (__gconv_release_shlib): Likewise.
26201 (__gconv_get_builtin_trans): Likewise.
26202 (__gconv_compare_alias): Likewise.
26203 * include/dlfcn.h (_dlerror_run): Likewise.
26204 * include/stdio.h (__fortify_fail_abort): Likewise.
26205 * include/time.h (__tz_compute): Likewise.
26206 (__strptime_internal): Likewise.
26207 * intl/gettextP.h (_nl_find_domain): Likewise.
26208 (_nl_load_domain): Likewise.
26209 (_nl_find_msg): Likewise.
26210 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26211 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26212 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26213 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26214 (__gai_find_request): Likewise.
26215 (__gai_remove_request): Likewise.
26216 (__gai_notify): Likewise.
26217 (__gai_notify_only): Likewise.
26218 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26219 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26220 (_dl_non_dynamic_init): Likewise.
26221 (_dl_aux_init): Likewise.
26222 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26223 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26224 Likewise.
26225 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26226 (__wcsmbs_clone_conv): Likewise.
26227 (__wcsmbs_named_conv): Likewise.
26228
26229 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26230
26231 [BZ #18822]
26232 * include/stdlib.h (__random): Add attribute_hidden.
26233 (__random_r): Likewise.
26234 (__srandom_r): Likewise.
26235 (__initstate_r): Likewise.
26236 (__setstate_r): Likewise.
26237 (__erand48_r): Likewise.
26238 (__nrand48_r): Likewise.
26239 (__jrand48_r): Likewise.
26240 (__srand48_r): Likewise.
26241 (__seed48_r): Likewise.
26242 (__lcong48_r): Likewise.
26243 (__drand48_iterate): Likewise.
26244 (__setenv): Likewise.
26245 (__unsetenv): Likewise.
26246 (__clearenv): Likewise.
26247 (__ptsname_r): Likewise.
26248 (__posix_openpt): Likewise.
26249 (__add_to_environ): Likewise.
26250 (__realpath): Add libc_hidden_proto.
26251 (__ecvt_r): Likewise.
26252 (__fcvt_r): Likewise.
26253 (__qecvt_r): Likewise.
26254 (__qfcvt_r): Likewise.
26255 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26256 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26257
26258 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26259
26260 [BZ #18822]
26261 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26262 * include/time.h (__mktime_internal): Likewise.
26263 * libio/iolibio.h (__fopen_internal): Likewise.
26264
26265 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26266
26267 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26268 pointer in frame.
26269 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26270 Correct offset used to restore PIC register.
26271
26272 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26273
26274 [BZ libc/22165]
26275 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26276 code to load address of __getcontext_ret when generating PIC code.
26277
26278 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26279
26280 * elf/Makefile (tests-static-internal): Add
26281 tst-tls1-static-non-pie.
26282 (LDFLAGS-tst-tls1-static-non-pie): New.
26283 * elf/tst-tls1-static-non-pie.c: New file.
26284
26285 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26286
26287 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26288 (asinh): Define using libm_alias_double.
26289 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26290 (cbrt): Define using libm_alias_double.
26291 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26292 <libm-alias-double.h>.
26293 (copysign): Define using libm_alias_double.
26294 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26295 (erf): Define using libm_alias_double.
26296 (erfc): Likewise.
26297 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26298 (expm1): Define using libm_alias_double.
26299 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26300 (fabs): Define using libm_alias_double.
26301 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26302 libm_alias_double.
26303 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26304 <libm-alias-double.h>.
26305 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26306 libm_alias_double.
26307 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26308 <libm-alias-double.h>.
26309 (getpayload): Define using libm_alias_double.
26310 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26311 <libm-alias-double.h>.
26312 (llrint): Define using libm_alias_double.
26313 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26314 (lrint): Define using libm_alias_double.
26315 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26316 <libm-alias-double.h>.
26317 (nextup): Define using libm_alias_double.
26318 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26319 <libm-alias-double.h>.
26320 (roundeven): Define using libm_alias_double.
26321 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26322 libm_alias_double.
26323 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26324 <libm-alias-double.h>.
26325 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26326 using libm_alias_double.
26327 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26328 (cos): Define using libm_alias_double.
26329 (sin): Likewise.
26330 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26331 <libm-alias-double.h>.
26332 (sincos): Define using libm_alias_double.
26333 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26334 (tanh): Define using libm_alias_double.
26335 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26336 <libm-alias-double.h>.
26337 (totalorder): Define using libm_alias_double.
26338 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26339 <libm-alias-double.h>.
26340 (totalordermag): Define using libm_alias_double.
26341 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26342 libm_alias_double.
26343 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26344 libm_alias_double.
26345 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26346 <libm-alias-double.h>.
26347 (getpayload): Define using libm_alias_double.
26348 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26349 <libm-alias-double.h>.
26350 (roundeven): Define using libm_alias_double.
26351 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26352 <libm-alias-double.h>.
26353 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26354 <libm-alias-double.h>.
26355 (totalorder): Define using libm_alias_double.
26356 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
26357 <libm-alias-double.h>.
26358 (totalordermag): Define using libm_alias_double.
26359 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
26360 libc compat symbol here.
26361 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
26362 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26363 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26364 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26365 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26366 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26367 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26368 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26369 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26370 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26371
26372 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26373
26374 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26375 _dl_relocate_static_pie instead of _dl_start to compute load
26376 address in static PIE. Return 0 if _DYNAMIC is undefined for
26377 static executable.
26378
26379 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26380
26381 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
26382 _DYNAMIC is undefined for static executable.
26383
26384 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26385
26386 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
26387
26388 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26389
26390 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26391
26392 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26393
26394 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
26395 (__ieee754_lgamma_r): Use fabs rather than __fabs.
26396 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
26397 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
26398 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
26399 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
26400 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
26401 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
26402 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
26403 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26404 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
26405 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
26406 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26407 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26408 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
26409 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
26410 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
26411
26412 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26413
26414 * math/bits/cmathcalls.h (cimag): Remove inline.
26415 (creal): Remove inline.
26416 (conj): Remove inline.
26417
26418 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26419
26420 * math/Makefile (type-float-routines): Add e_powf_log2_data.
26421 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
26422 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
26423 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
26424 (issignalingf_inline): Likewise.
26425 (POWF_LOG2_TABLE_BITS): Likewise.
26426 (POWF_LOG2_POLY_ORDER): Likewise.
26427 (POWF_SCALE_BITS): Likewise.
26428 (POWF_SCALE): Likewise.
26429 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
26430 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
26431 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
26432
26433 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26434
26435 * math/Makefile (type-float-routines): Add e_log2f_data.
26436 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
26437 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
26438 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
26439 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
26440 * sysdeps/i386/fpu/e_log2f_data.c: New file.
26441 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
26442 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
26443
26444 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26445
26446 * math/Makefile (type-float-routines): Add e_logf_data.
26447 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
26448 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
26449 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
26450 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
26451 * sysdeps/i386/fpu/e_logf_data.c: New file.
26452 * sysdeps/ia64/fpu/e_logf_data.c: New file.
26453 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
26454
26455 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
26456
26457 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
26458 undefined _DYNAMIC in PIE libc.a.
26459 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26460 Likewse.
26461
26462 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26463
26464 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
26465 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
26466 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
26467 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
26468 (__signbit): Remove.
26469 (__signbitl): Remove.
26470 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
26471 (__signbit): Remove.
26472 (__signbitl): Remove.
26473 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
26474 (__signbit): Remove.
26475 (__signbitl): Remove.
26476 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
26477 (__signbit): Remove.
26478 (__signbitl): Remove.
26479 * sysdeps/tile/bits/mathinline.h: Delete file.
26480 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
26481 (__signbit): Remove.
26482 (__signbitl): Remove.
26483
26484 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26485
26486 * math/math.h: Improve handling of C99 isgreater macros.
26487 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
26488 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
26489 * sysdeps/powerpc/bits/mathinline.h: Likewise.
26490 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
26491 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
26492
26493 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
26494
26495 * sysdeps/aarch64/libm-test-ulps: Update.
26496
26497 2017-09-28 Joseph Myers <joseph@codesourcery.com>
26498
26499 [BZ #22225]
26500 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
26501 math_opt_barrier on argument when doing arithmetic on it.
26502 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
26503 Likewise. Use math_force_eval not math_opt_barrier after
26504 arithmetic.
26505 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
26506 math_opt_barrier on argument when doing arithmetic on it.
26507 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
26508 Likewise.
26509
26510 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
26511
26512 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
26513 libc_hidden_def.
26514 (__freeifaddrs): Likewise.
26515
26516 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
26517
26518 * include/dirent.h (__dirfd): New declaration.
26519 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
26520 alias.
26521 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
26522 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
26523 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
26524 * include/unistd.h (__revoke): New declaration.
26525 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
26526 alias.
26527 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
26528 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
26529 revoke.
26530 * include/dirent.h (__seekdir): New declaration.
26531 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
26532 redefine as weak alias.
26533 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
26534 of seekdir.
26535 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
26536 and use libc_hidden_def on them.
26537 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
26538 them.
26539 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
26540 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
26541 instead of getifaddrs and freeifaddrs.
26542
26543 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26544
26545 [BZ #18822]
26546 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
26547 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
26548 (__dso_handle): Remove declaration.
26549 * dlfcn/tstatexit.c (__dso_handle): Removed.
26550 (main): Don't check __dso_handle.
26551 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
26552 (main): Don't check __dso_handle.
26553 * include/dso_handle.h: New file.
26554 * malloc/mtrace.c: Include <dso_handle.h>.
26555 (mtrace): Pass __dso_handle directly.
26556 * nptl/pthread_atfork.c: Include <dso_handle.h>.
26557 (__dso_handle): Remove declaration.
26558 (__pthread_atfork): Pass __dso_handle directly.
26559 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
26560 (__dso_handle): Removed.
26561 * posix/wordexp-test.c: Include <dso_handle.h>.
26562 (__dso_handle): Remove declaration.
26563 (__app_register_atfork): Pass __dso_handle directly.
26564 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
26565 (__dso_handle): Remove declaration.
26566 (at_quick_exit): Pass __dso_handle directly.
26567 * stdlib/atexit.c: Include <dso_handle.h>.
26568 (__dso_handle): Remove declaration.
26569 (atexit): Pass __dso_handle directly.
26570 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
26571 (__dso_handle): Removed.
26572
26573 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26574
26575 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
26576 using VDSO.
26577
26578 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
26579
26580 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
26581 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
26582 values to correct default value for given type.
26583
26584 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26585
26586 [BZ #22101]
26587 * elf/Makefile (tests): Add tst-debug1.
26588 ($(objpfx)tst-debug1): New.
26589 ($(objpfx)tst-debug1.out): Likewise.
26590 ($(objpfx)tst-debug1mod1.so): Likewise.
26591 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
26592 with p_filesz == 0.
26593 * elf/tst-debug1.c: New file.
26594
26595 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26596
26597 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
26598 Define using __ifunc.
26599
26600 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26601
26602 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
26603 exp2f() values.
26604
26605 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26606
26607 [BZ #22156]
26608 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
26609
26610 2017-09-26 Florian Weimer <fweimer@redhat.com>
26611
26612 * resolv/Makefile (tests-internal): Fix typo in comment.
26613
26614 2017-09-26 Florian Weimer <fweimer@redhat.com>
26615
26616 * resolv/nss_dns/dns-host.c: Fix typo in comment.
26617
26618 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26619
26620 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
26621 Use an union instead of a max_align_t array for __space,
26622 so that __space is the same size on all platforms.
26623 * malloc/scratch_buffer_grow_preserve.c
26624 (__libc_scratch_buffer_grow_preserve): Likewise.
26625
26626 [BZ #22183]
26627 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
26628 version to 2.
26629 * posix/Makefile (routines): Add glob-lstat-compat and
26630 glob64-lstat-compat.
26631 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
26632 * posix/glob-lstat-compat.c: New file.
26633 * posix/glob64-lstat-compat.c: Likewise.
26634 * posix/tst-glob_lstat_compat.c: Likewise.
26635 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
26636 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
26637 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
26638 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
26639 Likewise.
26640 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
26641 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
26642 * posix/glob.c (glob_lstat): New function.
26643 (glob): Rename to __glob and add versioned symbol to 2.27.
26644 (glob_in_dir): Use glob_lstat.
26645 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
26646 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
26647 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
26648 2.27.
26649 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
26650 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
26651 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
26652 gl_lstat on glob call.
26653 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
26654 and glob64 symbols.
26655 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26656 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
26657 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
26658 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
26659 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
26660 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
26661 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
26662 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
26663 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
26664 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26665 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26666 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
26667 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
26668 Likewise.
26669 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
26670 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
26671 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26672 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26673 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
26674 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26675 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26676 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
26677 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
26678 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
26679 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
26680 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
26681
26682 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
26683
26684 * configure.ac (AS): Require binutils 2.25 or later.
26685 * configure: Regenerated.
26686
26687 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
26688
26689 [BZ #22207]
26690 * stdlib/test-atexit-race-common.c (do_test): Minimize required
26691 VM size.
26692
26693 2017-09-25 DJ Delorie <dj@redhat.com>
26694
26695 [BZ #22161]
26696 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
26697 resetting timeout.
26698
26699 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
26700
26701 * sysdeps/ieee754/dbl-64/sincos32.h
26702 [SINCCOS32_H]: Remove define.
26703 [SINCOS32_H]: Define.
26704
26705 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26706
26707 * math/Versions (expf): New libm symbol at GLIBC_2.27.
26708 (exp2f): Likewise.
26709 * math/w_exp2f.c: New file.
26710 * math/w_expf.c: New file.
26711 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
26712 * math/w_expf_compat.c (__expf_compat): Likewise.
26713 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
26714 * sysdeps/ia64/fpu/e_expf.S: Likewise.
26715 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26716 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26717 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26718 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26719 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26720 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26721 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26722 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26723 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26724 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26725 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26726 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26727 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26728 Likewise.
26729 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26730 Likewise.
26731 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26732 Likewise.
26733 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26734 Likewise.
26735 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26736 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26737 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26738 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26739 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26740 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26741 Likewise.
26742 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26743 Likewise.
26744 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26745 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26746 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26747
26748 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26749
26750 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
26751 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
26752 (roundtoint, converttoint): Likewise.
26753 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
26754 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
26755 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
26756 * sysdeps/ieee754/flt-32/math_config.h: New file.
26757 * sysdeps/ieee754/flt-32/math_errf.c: New file.
26758 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
26759 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
26760 * sysdeps/i386/fpu/math_errf.c: New file.
26761 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
26762 * sysdeps/ia64/fpu/math_errf.c: New file.
26763 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
26764 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
26765
26766 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
26767
26768 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
26769 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
26770 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
26771 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
26772 to make sure that these symbols are defined.
26773 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
26774 of <limits.h>
26775 (__need_NULL): Do not define.
26776 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
26777 alignment.
26778 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
26779 CMGROUP_MAX, cmsgcred): Do not define.
26780 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
26781 NULL.
26782 * bits/socket.h: Likewise.
26783 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
26784 __gettimeofday instead of gettimeofday.
26785 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
26786 instead of settimeofday.
26787
26788 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26789
26790 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
26791 (asinhf): Define using libm_alias_float.
26792 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
26793 (atanf): Define using libm_alias_float.
26794 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
26795 (cbrtf): Define using libm_alias_float.
26796 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
26797 (ceilf): Define using libm_alias_float.
26798 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
26799 <libm-alias-float.h>.
26800 (copysignf): Define using libm_alias_float.
26801 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
26802 (cosf): Define using libm_alias_float.
26803 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
26804 (erff): Define using libm_alias_float.
26805 (erfcf): Likewise.
26806 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
26807 (expm1f): Define using libm_alias_float.
26808 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
26809 (fabsf): Define using libm_alias_float.
26810 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
26811 (floorf): Define using libm_alias_float.
26812 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
26813 (frexpf): Define using libm_alias_float.
26814 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
26815 libm_alias_float.
26816 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
26817 <libm-alias-float.h>.
26818 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
26819 libm_alias_float.
26820 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
26821 <libm-alias-float.h>.
26822 (getpayloadf): Define using libm_alias_float.
26823 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
26824 <libm-alias-float.h>.
26825 (llrintf): Define using libm_alias_float.
26826 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
26827 <libm-alias-float.h>.
26828 (llroundf): Define using libm_alias_float.
26829 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
26830 (logbf): Define using libm_alias_float.
26831 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
26832 (lrintf): Define using libm_alias_float.
26833 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
26834 (lroundf): Define using libm_alias_float.
26835 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
26836 (modff): Define using libm_alias_float.
26837 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
26838 <libm-alias-float.h>.
26839 (nearbyintf): Define using libm_alias_float.
26840 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
26841 <libm-alias-float.h>.
26842 (nextafterf): Define using libm_alias_float.
26843 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
26844 <libm-alias-float.h>.
26845 (nextupf): Define using libm_alias_float.
26846 * sysdeps/ieee754/flt-32/s_remquof.c: Include
26847 <libm-alias-float.h>.
26848 (remquof): Define using libm_alias_float.
26849 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
26850 (rintf): Define using libm_alias_float.
26851 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
26852 <libm-alias-float.h>.
26853 (roundevenf): Define using libm_alias_float.
26854 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
26855 (roundf): Define using libm_alias_float.
26856 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
26857 using libm_alias_float.
26858 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
26859 <libm-alias-float.h>.
26860 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
26861 Define using libm_alias_float.
26862 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
26863 <libm-alias-float.h>.
26864 (sincosf): Define using libm_alias_float.
26865 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
26866 (sinf): Define using libm_alias_float.
26867 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
26868 (tanf): Define using libm_alias_float.
26869 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
26870 (tanhf): Define using libm_alias_float.
26871 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
26872 <libm-alias-float.h>.
26873 (totalorderf): Define using libm_alias_float.
26874 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
26875 <libm-alias-float.h>.
26876 (totalordermagf): Define using libm_alias_float.
26877 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
26878 (truncf): Define using libm_alias_float.
26879 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
26880 libm_alias_float.
26881 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
26882 libm_alias_float.
26883
26884 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26885
26886 [BZ #22146]
26887 math/math.h: Let fpclassify use the builtin in C++ mode, even
26888 when optimazing for size.
26889
26890 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26891
26892 * csu/Makefile (generated): Do not add version-info.h.
26893 (before-compile): Likewise.
26894 (all-Banner-files): Remove variable.
26895 ($(objpfx)version-info.h): Remove rule.
26896 * csu/version.c (banner): Do not include "version-info.h".
26897 * libidn/Banner: Remove.
26898 * manual/contrib.texi (Simon Josefsson): New entry.
26899
26900 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26901
26902 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
26903 Remove conditionals on LDBL_MANT_DIG.
26904 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26905 (__ieee754_lgammal_r): Likewise.
26906
26907 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26908
26909 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
26910 _Float128 and L().
26911 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
26912 _Float128 and L(). Replace _Float128 with long double and L(x)
26913 with xL, throughout the file.
26914 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26915 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26916 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26917 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26918
26919 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26920
26921 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
26922 sysdeps/ieee754/ldbl-128ibm.
26923 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
26924 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
26925 of including it. Keep _Float128 and L() intact. These will be
26926 reviewed by a separate patch.
26927 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26928 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26929 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26930 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26931
26932 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26933
26934 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
26935 (__finitef128): Define to __redirect___finitef128.
26936 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
26937 (__isinff128): Define to __redirect___isinff128.
26938 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
26939 (__isnanf128): Define to __redirect___isnanf128.
26940
26941 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26942
26943 * sysdeps/powerpc/powerpc64le/Makefile
26944 (CFLAGS-tst-strtod-nan-locale.c): New variable.
26945 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
26946
26947 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
26948 Carlos O'Donell <carlos@redhat.com>
26949
26950 [BZ #22180]
26951 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
26952 * stdlib/test-dlclose-exit-race.c: New file.
26953 * stdlib/test-dlclose-exit-race-helper.c: New file.
26954 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
26955
26956 2017-09-21 Joseph Myers <joseph@codesourcery.com>
26957
26958 * crypt/Banner: Remove file.
26959 * nptl/Banner: Likewise.
26960 * resolv/Banner: Likewise.
26961 * soft-fp/Banner: Likewise.
26962 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
26963 ($(objpfx)version.d): Remove dependency on banner.h.
26964 ($(objpfx)version.os): Likewise.
26965 * nptl/version.c (banner): Do not include banner.h.
26966 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
26967 Jelinek and BIND code.
26968
26969 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
26970 Carlos O'Donell <carlos@redhat.com>
26971
26972 * support/xdlfcn.h: New file.
26973 * support/xdlfcn.c: New file.
26974 * support/Makefile (libsupport-routines): Add xdlfcn.
26975 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
26976
26977 2017-09-20 Joseph Myers <joseph@codesourcery.com>
26978
26979 [BZ #20142]
26980 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26981 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
26982 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
26983 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
26984 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
26985 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
26986 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
26987 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
26988
26989 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
26990 Ricky Zhou <rickyz@google.com>
26991 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
26992
26993 [BZ #14333]
26994 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
26995 Remove atomics.
26996 (__new_exitfn): Fail registration when we finished at_exit processing.
26997 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
26998 * stdlib/on_exit.c (__on_exit): Likewise.
26999 * stdlib/exit.c (__exit_funcs_done): New variable.
27000 (__run_exit_handlers): Use __exit_funcs_lock.
27001 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
27002 declarations.
27003 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
27004 (test-cxa_atexit-race, test-on_exit-race): New tests.
27005 * stdlib/test-atexit-race-common.c: New file.
27006 * stdlib/test-atexit-race.c: New file.
27007 * stdlib/test-at_quick_exit-race.c: New file.
27008 * stdlib/test-cxa_atexit-race.c: New file.
27009 * stdlib/test-on_exit-race.c: New file.
27010
27011 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
27012
27013 * benchtests/Makefile: Add exp2f and log2f benchmarks.
27014 * benchtests/exp2f-inputs: Copy of expf-inputs.
27015 * benchtests/log2f-inputs: Copy of logf-inputs.
27016
27017 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27018
27019 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27020 Explicitly take address of first element of array arguments in
27021 call to INLINE_SYSCALL.
27022
27023 2017-09-19 Andreas Schwab <schwab@suse.de>
27024
27025 [BZ #22134]
27026 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
27027 execveat first.
27028 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
27029 unimplemented.
27030 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
27031 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27032 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27033 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27034 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27035 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27036 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27037 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27038 * posix/Makefile (tests): Add tst-fexecve.
27039 * posix/tst-fexecve.c: New file.
27040
27041 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27042
27043 * benchtests/Makefile: Add logf benchmark.
27044 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27045
27046 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27047
27048 * benchtests/Makefile: Add expf benchmark.
27049 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27050
27051 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27052
27053 * csu/Makefile: Add -funwind-tables to libc-start.c.
27054 * debug/Makefile: Add -funwind-tables to backtrace.c.
27055 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27056 * sysdeps/arm/Makefile: Likewise.
27057 * sysdeps/i386/Makefile: Likewise.
27058 * sysdeps/m68k/Makefile: Likewise.
27059 * sysdeps/mips/Makefile: Likewise.
27060 * sysdeps/nios2/Makefile: Likewise.
27061 * sysdeps/sh/Makefile: Likewise.
27062 * sysdeps/sparc/Makefile: Likewise.
27063
27064 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27065
27066 * benchtests/Makefile (bench-math): Add trunc and truncf.
27067 (CFLAGS-bench-trunc.c): New variable.
27068 (CFLAGS-bench-truncf.c): Likewise.
27069 * benchtests/trunc-inputs: New file.
27070 * benchtests/truncf-inputs: Likewise.
27071
27072 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27073
27074 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27075
27076 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27077
27078 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27079 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27080 redefine.
27081 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27082 (exp10l): Define as weak alias.
27083 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27084 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27085 and redefine.
27086 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27087 (remainderl): Define as weak alias.
27088
27089 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27090 (fmal): Define using libm_alias_ldouble.
27091 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27092 (acoshl): Define using libm_alias_ldouble.
27093 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27094 (acosl): Define using libm_alias_ldouble.
27095 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27096 (asinl): Define using libm_alias_ldouble.
27097 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27098 (atan2l): Define using libm_alias_ldouble.
27099 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27100 (atanhl): Define using libm_alias_ldouble.
27101 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27102 (coshl): Define using libm_alias_ldouble.
27103 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27104 (exp10l): Define using libm_alias_ldouble.
27105 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27106 (exp2l): Define using libm_alias_ldouble.
27107 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27108 (expl): Define using libm_alias_ldouble.
27109 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27110 (fmodl): Define using libm_alias_ldouble.
27111 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27112 (hypotl): Define using libm_alias_ldouble.
27113 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27114 (j0l): Define using libm_alias_ldouble.
27115 (y0l): Likewise.
27116 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27117 (j1l): Define using libm_alias_ldouble.
27118 (y1l): Likewise.
27119 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27120 (jnl): Define using libm_alias_ldouble.
27121 (ynl): Likewise.
27122 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27123 (log10l): Define using libm_alias_ldouble.
27124 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27125 (log2l): Define using libm_alias_ldouble.
27126 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27127 (logl): Define using libm_alias_ldouble.
27128 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27129 (powl): Define using libm_alias_ldouble.
27130 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27131 (remainderl): Define using libm_alias_ldouble.
27132 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27133 (sinhl): Define using libm_alias_ldouble.
27134 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27135 (sqrtl): Define using libm_alias_ldouble.
27136 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27137 (tgammal): Define using libm_alias_ldouble.
27138 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27139 (exp10l): Do not use long_double_symbol here.
27140 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27141 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27142 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27143 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27144 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27145 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27146 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27147 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27148 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27149 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27150 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27151 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27152 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27153 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27154 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27155 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27156 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27157 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27158 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27159 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27160 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27161 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27162
27163 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27164
27165 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27166 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27167
27168 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27169
27170 * io/read.c (read): Add libc_hidden_weak.
27171 * sysdeps/mach/hurd/read.c (read): Likewise.
27172 * io/write.c (write): Likewise.
27173 * sysdeps/mach/hurd/write.c (write): Likewise.
27174 * io/pread64.c (__pread64): Likewise.
27175 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27176 * posix/pread64.c (__pread64): Add libc_hidden_def.
27177
27178 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27179
27180 * benchtests/scripts/compare_strings.py: New option -g.
27181 (draw_graph): Print a message that a graph is being generated.
27182 (process_results): Generate graph only if -g is passed.
27183 (main): Process option -g.
27184
27185 * benchtests/scripts/compare_strings.py (process_results):
27186 Better spacing for output.
27187
27188 * benchtests/scripts/compare_strings.py: Use argparse.
27189 * benchtests/README: Document existence of compare_strings.py.
27190
27191 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27192
27193 * math/s_fma.c: Include <libm-alias-double.h>.
27194 (fma): Define using libm_alias_double.
27195 * math/s_nextafter.c: Include <libm-alias-double.h>.
27196 (nextafter): Define using libm_alias_double.
27197 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27198 (acos): Define using libm_alias_double.
27199 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27200 (aocsh): Define using libm_alias_double.
27201 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27202 (asin): Define using libm_alias_double.
27203 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27204 (atan2): Define using libm_alias_double.
27205 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27206 (atanh): Define using libm_alias_double.
27207 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27208 (cosh): Define using libm_alias_double.
27209 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27210 (exp10): Define using libm_alias_double.
27211 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27212 (exp2): Define using libm_alias_double.
27213 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27214 (exp): Define using libm_alias_double.
27215 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27216 (fmod): Define using libm_alias_double.
27217 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27218 (hypot): Define using libm_alias_double.
27219 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27220 (j0): Define using libm_alias_double.
27221 (y0): Likewise.
27222 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27223 (j1): Define using libm_alias_double.
27224 (y1): Likewise.
27225 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27226 (jn): Define using libm_alias_double.
27227 (yn): Likewise.
27228 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27229 (log10): Define using libm_alias_double.
27230 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27231 (log2): Define using libm_alias_double.
27232 * math/w_log_compat.c: Include <libm-alias-double.h>.
27233 (log): Define using libm_alias_double.
27234 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27235 (pow): Define using libm_alias_double.
27236 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27237 (remainder): Define using libm_alias_double.
27238 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27239 (sinh): Define using libm_alias_double.
27240 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27241 (sqrt): Define using libm_alias_double.
27242 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27243 (tgamma): Define using libm_alias_double.
27244 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27245 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27246 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27247 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27248 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27249 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27250 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27251 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27252 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27253 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27254 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27255 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27256 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27257 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27258 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27259 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27260 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27261 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27262 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27263 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27264 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27265 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27266 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27267 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27268 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27269
27270 * math/e_acoshl.c: Remove.
27271 * math/e_acosl.c: Likewise.
27272 * math/e_asinl.c: Likewise.
27273 * math/e_atan2l.c: Likewise.
27274 * math/e_atanhl.c: Likewise.
27275 * math/e_coshl.c: Likewise.
27276 * math/e_expl.c: Likewise.
27277 * math/e_fmodl.c: Likewise.
27278 * math/e_gammal_r.c: Likewise.
27279 * math/e_hypotl.c: Likewise.
27280 * math/e_j0l.c: Likewise.
27281 * math/e_j1l.c: Likewise.
27282 * math/e_jnl.c: Likewise.
27283 * math/e_lgammal_r.c: Likewise.
27284 * math/e_log10l.c: Likewise.
27285 * math/e_log2l.c: Likewise.
27286 * math/e_logl.c: Likewise.
27287 * math/e_powl.c: Likewise.
27288 * math/e_rem_pio2l.c: Likewise.
27289 * math/e_sinhl.c: Likewise.
27290 * math/e_sqrtf128.c: Likewise.
27291 * math/e_sqrtl.c: Likewise.
27292 * math/k_cosl.c: Likewise.
27293 * math/k_sinl.c: Likewise.
27294 * math/k_tanl.c: Likewise.
27295 * math/s_asinhl.c: Likewise.
27296 * math/s_atanl.c: Likewise.
27297 * math/s_cbrtl.c: Likewise.
27298 * math/s_erfl.c: Likewise.
27299 * math/s_expm1l.c: Likewise.
27300 * math/s_log1pl.c: Likewise.
27301 * math/s_tanhl.c: Likewise.
27302
27303 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27304
27305 [BZ #21745]
27306 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27307 [$(subdir) = math] (sysdep_calls): New variable. Has the
27308 previous contents of sysdep_routines, but re-sorted..
27309 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27310 sysdep_calls.
27311 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27312 defined in sysdep_calls and replace by the respective m_* names.
27313 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27314 (compat_symbol): Undefine to avoid duplicated compat symbols in
27315 libc.
27316
27317 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27318
27319 * math/s_fmaf.c: Include <libm-alias-float.h>.
27320 (fmaf): Define using libm_alias_float.
27321 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27322 (acosf): Define using libm_alias_float.
27323 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27324 (acoshf): Define using libm_alias_float.
27325 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27326 (asinf): Define using libm_alias_float.
27327 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27328 (atan2f): Define using libm_alias_float.
27329 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27330 (atanhf): Define using libm_alias_float.
27331 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27332 (coshf): Define using libm_alias_float.
27333 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27334 (exp10f): Define using libm_alias_float.
27335 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27336 (fmodf): Define using libm_alias_float.
27337 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27338 (hypotf): Define using libm_alias_float.
27339 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27340 (j0f): Define using libm_alias_float.
27341 (y0f): Likewise.
27342 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27343 (j1f): Define using libm_alias_float.
27344 (y1f): Likewise.
27345 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27346 (jnf): Define using libm_alias_float.
27347 (ynf): Likewise.
27348 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27349 (log10f): Define using libm_alias_float.
27350 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27351 (log2f): Define using libm_alias_float.
27352 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27353 (logf): Define using libm_alias_float.
27354 * math/w_powf_compat.c: Include <libm-alias-float.h>.
27355 (powf): Define using libm_alias_float.
27356 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
27357 (remainderf): Define using libm_alias_float.
27358 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
27359 (sinhf): Define using libm_alias_float.
27360 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
27361 (sqrtf): Define using libm_alias_float.
27362 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27363 (tgammaf): Define using libm_alias_float.
27364
27365 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27366
27367 * include/math.h (roundeven): Change hidden_proto call to
27368 __roundeven.
27369 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27370 alias.
27371 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27372 (y0): Rename to __y0 and define as weak alias.
27373 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27374 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27375 alias.
27376 (y0f): Rename to __y0f and define as weak alias.
27377 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27378 alias.
27379 [NO_LONG_DOUBLE] (__j1l): New strong alias.
27380 (y1): Rename to __y1 and define as weak alias.
27381 [NO_LONG_DOUBLE] (__y1l): New strong alias.
27382 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
27383 alias.
27384 (y1f): Rename to __y1f and define as weak alias.
27385 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
27386 alias.
27387 [NO_LONG_DOUBLE] (__jnl): New strong alias.
27388 (yn): Rename to __yn and define as weak alias.
27389 [NO_LONG_DOUBLE] (__ynl): New strong alias.
27390 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
27391 alias.
27392 (ynf): Rename to __ynf and define as weak alias.
27393 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
27394 (fromfp): Define as weak alias.
27395 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
27396 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
27397 (fromfpx): Define as weak alias.
27398 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
27399 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
27400 __getpayload and define as weak alias.
27401 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27402 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
27403 __roundeven and define as weak alias.
27404 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27405 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
27406 __setpayload.
27407 (setpayload): Define as weak alias.
27408 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
27409 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
27410 __setpayloadsig.
27411 (setpayloadsig): Define as weak alias.
27412 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
27413 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
27414 __totalorder and define as weak alias.
27415 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27416 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
27417 to __totalordermag and define as weak alias.
27418 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27419 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
27420 (ufromfp): Define as weak alias.
27421 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
27422 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
27423 __ufromfpx.
27424 (ufromfpx): Define as weak alias.
27425 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
27426 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
27427 Rename to __getpayload and define as weak alias.
27428 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27429 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
27430 Rename to __roundeven and define as weak alias.
27431 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27432 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
27433 Rename to __totalorder and define as weak alias.
27434 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27435 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
27436 (totalordermag): Rename to __totalordermag and define as weak
27437 alias.
27438 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27439 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
27440 macro.
27441 (__roundevenl): Likewise.
27442 (__totalorderl): Likewise.
27443 (__totalordermagl): Likewise
27444 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
27445 __fromfpf128.
27446 (fromfpf128): Define as weak alias.
27447 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
27448 __fromfpxf128.
27449 (fromfpxf128): Define as weak alias.
27450 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
27451 __setpayloadf128.
27452 (setpayloadf128): Define as weak alias.
27453 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
27454 __setpayloadsigf128.
27455 (setpayloadsigf128): Define as weak alias.
27456 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
27457 __ufromfpf128.
27458 (ufromfpf128): Define as weak alias.
27459 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
27460 __ufromfpxf128.
27461 (ufromfpxf128): Define as weak alias.
27462 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
27463 (fromfpf): Define as weak alias.
27464 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
27465 __fromfpxf.
27466 (fromfpxf): Define as weak alias.
27467 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
27468 __getpayloadf and define as weak alias.
27469 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
27470 __roundevenf and define as weak alias.
27471 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
27472 __setpayloadf.
27473 (setpayloadf): Define as weak alias.
27474 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
27475 __setpayloadsigf.
27476 (setpayloadsigf): Define as weak alias.
27477 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
27478 __totalorderf and define as weak alias.
27479 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
27480 Rename to __totalordermagf and define as weak alias.
27481 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
27482 __ufromfpf.
27483 (ufromfpf): Define as weak alias.
27484 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
27485 __ufromfpxf.
27486 (ufromfpxf): Define as weak alias.
27487 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
27488 __fromfpl.
27489 (fromfpl): Define as weak alias.
27490 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
27491 __fromfpxl.
27492 (fromfpxl): Define as weak alias.
27493 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
27494 to __getpayloadl and define as weak alias.
27495 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
27496 __roundevenl and define as weak alias.
27497 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
27498 __setpayloadl.
27499 (setpayloadl): Define as weak alias.
27500 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
27501 __setpayloadsigl.
27502 (setpayloadsigl): Define as weak alias.
27503 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
27504 to __totalorderl and define as weak alias.
27505 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
27506 Rename to __totalordermagl and define as weak alias.
27507 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
27508 __ufromfpl.
27509 (ufromfpl): Define as weak alias.
27510 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
27511 __ufromfpxl.
27512 (ufromfpxl): Define as weak alias.
27513 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
27514 __fromfpl.
27515 (fromfpl): Define as weak alias.
27516 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
27517 __fromfpxl.
27518 (fromfpxl): Define as weak alias.
27519 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
27520 Rename to __getpayloadl and define as weak alias.
27521 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
27522 to __roundevenl and define as weak alias. Call __roundeven
27523 instead of roundeven.
27524 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
27525 __setpayloadl.
27526 (setpayloadl): Define as weak alias.
27527 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
27528 __setpayloadsigl.
27529 (setpayloadsigl): Define as weak alias.
27530 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
27531 Rename to __totalorderl and define as weak alias.
27532 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
27533 Rename to __totalordermagl and define as weak alias.
27534 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
27535 __ufromfpl.
27536 (ufromfpl): Define as weak alias.
27537 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
27538 __ufromfpxl.
27539 (ufromfpxl): Define as weak alias.
27540 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
27541 __fromfpl.
27542 (fromfpl): Define as weak alias.
27543 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
27544 __fromfpxl.
27545 (fromfpxl): Define as weak alias.
27546 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
27547 __getpayloadl and define as weak alias.
27548 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
27549 __roundevenl and define as weak alias.
27550 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
27551 __setpayloadl.
27552 (setpayloadl): Define as weak alias.
27553 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
27554 __setpayloadsigl.
27555 (setpayloadsigl): Define as weak alias.
27556 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
27557 __totalorderl and define as weak alias.
27558 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
27559 Rename to __totalordermagl and define as weak alias.
27560 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
27561 __ufromfpl.
27562 (ufromfpl): Define as weak alias.
27563 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
27564 __ufromfpxl.
27565 (ufromfpxl): Define as weak alias.
27566
27567 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
27568
27569 * benchtests/bench-string.h (realloc_bufs): New function.
27570 (test_init): Call it.
27571 * benchtests/bench-memset-large.c (do_test): Likewise.
27572 * benchtests/bench-memset.c (do_test): Likewise.
27573
27574 * benchtests/bench-memset-large.c: Print output in JSON
27575 format.
27576 * benchtests/bench-memset.c: Likewise.
27577
27578 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27579
27580 [BZ #21084]
27581 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
27582 * iconvdata/Makefile: Add IBM858.
27583 * iconvdata/gconv-modules: Likewise.
27584 * iconvdata/tst-tables.sh: Likewise.
27585 * iconvdata/ibm858.c: New file.
27586 * localedata/charmaps/IBM858: Likewise.
27587
27588 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
27589
27590 [BZ #22023]
27591 * locales/niu_NZ (LC_TIME): copy "niu_NU".
27592 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
27593
27594 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27595
27596 [BZ #22112]
27597 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
27598 and add tel_int_fmt.
27599
27600 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27601
27602 * sysdeps/generic/libm-alias-float128.h: New file.
27603 * sysdeps/generic/math-type-macros-float128.h: Include
27604 <libm-alias-float128.h>.
27605 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27606
27607 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27608
27609 * sysdeps/generic/libm-alias-ldouble.h: New file.
27610 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
27611 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
27612 * sysdeps/generic/math-type-macros-ldouble.h: Include
27613 <libm-alias-ldouble.h>.
27614 [!declare_mgen_alias] (declare_mgen_alias): Define to use
27615 libm_alias_ldouble.
27616
27617 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
27618
27619 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
27620 * math/w_exp_compat.c: ... here.
27621 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
27622 * math/w_expf_compat.c: ... here.
27623 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
27624 * math/w_expl_compat.c: ... here.
27625 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
27626 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
27627 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
27628 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27629
27630 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27631
27632 * math/w_scalbln_template.c (strong_alias): Do not undefine and
27633 redefine.
27634 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
27635 macro.
27636 (ldexpl): Only define as compat symbol for libc, not libm.
27637 (scalbnl): Define as compat symbol for libc here.
27638 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
27639 define for [IS_IN (libc)].
27640 (__ldexpl_2): Remove alias.
27641 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
27642 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
27643 name in long_double_symbol call.
27644 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
27645 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
27646 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
27647 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
27648 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
27649 Remove macro.
27650 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
27651 Define as compat symbol.
27652
27653 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27654
27655 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
27656 * sysdeps/unix/sysv/linux/alpha/Makefile
27657 [$(subdir) = csu] (sysdep_routines): Remove rule.
27658
27659 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27660
27661 * sysdeps/generic/libm-alias-double.h: New file.
27662 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
27663 * sysdeps/generic/math-type-macros-double.h: Include
27664 <libm-alias-double.h>.
27665 [declare_mgen_alias] (declare_mgen_alias): Define to use
27666 libm_alias_double.
27667 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
27668 (M_LIBM_NEED_COMPAT): Remove macro.
27669 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
27670 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
27671 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
27672 code.
27673 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27674 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27675 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27676 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27677 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27678 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27679 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27680 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27681 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27682 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27683 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27684 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27685 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27686 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27687 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27688 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27689 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27690 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27691 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27692 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27693 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27694 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27695 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27696 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27697 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27698 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27699 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27700 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
27701 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
27702 macro.
27703 (declare_mgen_alias): New macro.
27704 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
27705 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
27706 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
27707 (M_LIBM_NEED_COMPAT): Remove macro.
27708 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
27709 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
27710 <first-versions.h>.
27711 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
27712 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
27713
27714 2017-09-12 Joseph Myers <joseph@codesourcery.com>
27715
27716 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
27717 (declare_mgen_alias_2): Remove.
27718 * sysdeps/generic/math-type-macros-double.h
27719 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
27720 Likewise.
27721 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
27722 alias.
27723 (ldexp): Define with declare_mgen_alias.
27724 (scalbn): Likewise.
27725
27726 2017-09-12 Steve Ellcey <sellcey@cavium.com>
27727
27728 * grp/initgroups.c: Include config.h.
27729 (DEFAULT_CONFIG): New macro.
27730 (internal_getgrouplist): Use DEFAULT_CONFIG.
27731 * nscd/initgrcache.c (addinitgroupsX): Likewise.
27732 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
27733 (DEFAULT_DEFCONFIG): New macro.
27734 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
27735 * nss/grp-lookup.c: Include config.h
27736 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
27737 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
27738 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
27739 * manual/nss.texi: Update default values section.
27740
27741 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
27742
27743 [BZ #21967]
27744 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
27745 New.
27746 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
27747 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27748 Handle MathVec_Prefer_No_AVX512.
27749 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
27750 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
27751 is set.
27752
27753 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
27754
27755 * posix/sched_primax.c (__sched_get_priority_max): Add
27756 libc_hidden_def.
27757 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
27758 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
27759 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
27760 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
27761 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
27762 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
27763 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
27764 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
27765 Add aliases.
27766
27767 2017-09-11 Joseph Myers <joseph@codesourcery.com>
27768
27769 * sysdeps/generic/libm-alias-float.h: New file.
27770 * sysdeps/generic/math-type-macros-float.h: Include
27771 <libm-alias-float.h>.
27772 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27773
27774 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
27775
27776 [BZ #22093]
27777 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
27778 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
27779 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
27780 (HWCAP_IMPORTANT): Likewise.
27781 (HWCAP_X86_64): New enum.
27782 (HWCAP_X86_AVX512_1): Updated.
27783 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
27784 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
27785 (modules-names): Add x86_64/tst-x86_64mod-1.
27786 (LDFLAGS-tst-x86_64mod-1.so): New.
27787 ($(objpfx)tst-x86_64-1): Likewise.
27788 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
27789 (tst-x86_64-1-clean): Likewise.
27790 * sysdeps/x86_64/tst-x86_64-1.c: New file.
27791 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
27792
27793 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
27794
27795 * po/sv.po: Update translations.
27796 * po/fr.po: Likewise.
27797
27798 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
27799
27800 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
27801 seconds.
27802 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
27803 seconds.
27804 * elf/rtld-Rules: Fix $(error) use.
27805
27806 2017-09-09 Mike FABIAN <mfabian@redhat.com>
27807
27808 [BZ #14925]
27809 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
27810 * locale/iso-639.def: Change “Bengali” to “Bangla”.
27811 * localedata/locales/bn_BD: “Bengali” was still used in some
27812 comments. Change it to “Bangla”.
27813
27814 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
27815
27816 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
27817
27818 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27819
27820 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
27821 thunderx2t99p1 to list of cpu names.
27822 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
27823 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
27824
27825 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27826
27827 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
27828 Use strcmp instead of tunable_is_name.
27829
27830 2017-09-08 Joseph Myers <joseph@codesourcery.com>
27831
27832 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27833 (F_GET_RW_HINT): New macro.
27834 [__USE_GNU] (F_SET_RW_HINT): Likewise.
27835 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
27836 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
27837 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
27838 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
27839 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
27840 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
27841 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
27842 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
27843
27844 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27845 (F_ADD_SEALS): New macro.
27846 [__USE_GNU] (F_GET_SEALS): Likewise.
27847 [__USE_GNU] (F_SEAL_SEAL): Likewise.
27848 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
27849 [__USE_GNU] (F_SEAL_GROW): Likewise.
27850 [__USE_GNU] (F_SEAL_WRITE): Likewise.
27851
27852 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27853
27854 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
27855 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
27856 * posix/glob_internal.h (__glob_pattern_type):
27857 * posix/glob.c (glob):
27858 * posix/glob_pattern_p.c (__glob_pattern_p):
27859 Use them.
27860
27861 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
27862 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
27863 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
27864 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
27865 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27866 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
27867 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
27868 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
27869 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27870 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
27871 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27872 * sysdeps/wordsize-64/glob.c: Likewise.
27873 * sysdeps/wordsize-64/glob64.c: Likewise.
27874 * sysdeps/wordsize-64/globfree.c: Likewise.
27875 * sysdeps/wordsize-64/globfree64.c: Likewise.
27876 * sysdeps/unix/sysv/linux/glob.c: New file.
27877 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
27878 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
27879 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
27880 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27881 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
27882 adds !GLOB_NO_OLD_VERSION as an extra condition.
27883 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
27884 using relative path instead of absolute one.
27885 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
27886 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
27887 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
27888 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
27889 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
27890 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
27891
27892 [BZ #1062]
27893 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
27894 (glob): Use the same scratch buffer for both getlogin_r and
27895 getpwnam_r. Don’t require preallocation of the login name. This
27896 simplifies storage allocation, and corrects the handling of
27897 long login names.
27898
27899 [BZ #1062]
27900 * posix/glob.c (glob): Port recent patches to platforms
27901 lacking getpwnam_r.
27902 (glob): Fix longstanding misuse of errno after getpwnam_r, which
27903 returns an error number rather than setting errno.
27904
27905 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
27906 instead of GCC extension.
27907 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
27908 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
27909 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
27910
27911 [BZ #866]
27912 [BZ #1062]
27913 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
27914 * posix/bug-glob1.c: Remove file.
27915 * posix/tst-glob_symlinks.c: New file.
27916 * posix/glob.c (__lstat64): New macro.
27917 (is_dir): New function.
27918 (glob, glob_in_dir): Match symlinks even if they are dangling.
27919 (link_stat, link_exists_p): Remove. All uses removed.
27920
27921 [BZ #1062]
27922 [BZ #19971]
27923 * posix/glob.c (struct readdir_result): Remove skip_entry member.
27924 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
27925 All uses removed.
27926
27927 [BZ #1062]
27928 CVE-2017-15671
27929 * posix/Makefile (routines): Add globfree, globfree64, and
27930 glob_pattern_p.
27931 * posix/flexmember.h: New file.
27932 * posix/glob_internal.h: Likewise.
27933 * posix/glob_pattern_p.c: Likewise.
27934 * posix/globfree.c: Likewise.
27935 * posix/globfree64.c: Likewise.
27936 * sysdeps/gnu/globfree64.c: Likewise.
27937 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
27938 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27939 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
27940 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27941 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27942 * sysdeps/wordsize-64/globfree.c: Likewise.
27943 * sysdeps/wordsize-64/globfree64.c: Likewise.
27944 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
27945 [NDEBUG): Remove comments.
27946 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
27947 (dirent_type): New type. Use uint_fast8_t not
27948 uint8_t, as C99 does not require uint8_t.
27949 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
27950 (struct readdir_result): Use dirent_type. Do not define skip_entry
27951 unless it is needed; this saves a byte on platforms lacking d_ino.
27952 (readdir_result_type, readdir_result_skip_entry):
27953 New functions, replacing ...
27954 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
27955 these functions, which were removed. This makes the callers
27956 easier to read. All callers changed.
27957 (D_INO_TO_RESULT): Now empty if there is no d_ino.
27958 (size_add_wrapv, glob_use_alloca): New static functions.
27959 (glob, glob_in_dir): Check for size_t overflow in several places,
27960 and fix some size_t checks that were not quite right.
27961 Remove old code using SHELL since Bash no longer
27962 uses this.
27963 (glob, prefix_array): Separate MS code better.
27964 (glob_in_dir): Remove old Amiga and VMS code.
27965 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
27966 separate files.
27967 (glob_in_dir): Do not rely on undefined behavior in accessing
27968 struct members beyond their bounds. Use a flexible array member
27969 instead
27970 (link_stat): Rename from link_exists2_p and return -1/0 instead of
27971 0/1. Caller changed.
27972 (glob): Fix memory leaks.
27973 * posix/glob64 (globfree64): Move to separate file.
27974 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
27975 (globfree64): Remove hidden alias.
27976 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
27977 oldglob.
27978 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
27979 separate file.
27980 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
27981 define.
27982 Move compat code to separate file.
27983 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
27984 separate file.
27985
27986 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
27987
27988 * resolv/tst-resolv-qtypes.c (domain): Changed to
27989 "const char domain[] =".
27990
27991 2017-09-07 Joseph Myers <joseph@codesourcery.com>
27992
27993 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
27994 version to 3.1.6.
27995
27996 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
27997 (TCP_MD5SIG_EXT): Likewise.
27998 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
27999 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
28000 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
28001
28002 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
28003
28004 2017-09-07 Mike FABIAN <mfabian@redhat.com>
28005
28006 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
28007
28008 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
28009
28010 [BZ #22100]
28011 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28012
28013 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28014
28015 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28016 before assuming that the file is empty. Avoid testing buffer content
28017 when nread == 0.
28018
28019 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28020
28021 [BZ #18858]
28022 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28023 Remove define.
28024 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
28025 Likewise.
28026 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
28027 Likewise.
28028 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
28029 Likewise.
28030 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28031 Likewise.
28032 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28033 Likewise.
28034 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28035 Likewise.
28036
28037 2017-09-06 Florian Weimer <fweimer@redhat.com>
28038
28039 * malloc/dynarray_emplace_enlarge.c
28040 (__libc_dynarray_emplace_enlarge): Add missing else.
28041
28042 2017-09-06 Florian Weimer <fweimer@redhat.com>
28043
28044 [BZ #22096]
28045 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28046 case of failure to obtain the global conf object.
28047
28048 2017-09-06 Florian Weimer <fweimer@redhat.com>
28049
28050 [BZ #22095]
28051 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28052 dynarray allocation failure.
28053
28054 2017-09-06 Florian Weimer <fweimer@redhat.com>
28055
28056 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28057 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28058 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28059 New functions.
28060 (response): Call them. Add 'p', '6' flag processing.
28061 (test_reverse): New function.
28062 (test_get2_any): Call it.
28063 (test_no_inet6): Add 'p' test.
28064 (test_inet6): Likewise.
28065
28066 2017-09-06 Florian Weimer <fweimer@redhat.com>
28067
28068 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28069 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28070 the QNAME.
28071 (test_gai): Adjust query names. Add additional tests.
28072 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28073 test_get2. Adjust query names. Add additional tests.
28074 (test_no_inet6): New function, extracted from threadfunc.
28075 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28076 Add additional tests.
28077
28078 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28079
28080 [BZ #22070]
28081 * localedata/unicode-gen/utf8_gen.py: Set the width for
28082 characters with Prepended_Concatenation_Mark property to 1
28083 * localedata/charmaps/UTF-8: Updated using the improved script.
28084
28085 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28086
28087 [BZ #21750]
28088 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28089 use the range notation for all ranges of neighbouring characters
28090 with the same width.
28091
28092 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28093
28094 * sysdeps/generic/math-type-macros-double.h: Include
28095 <math-svid-compat.h>.
28096 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28097 * sysdeps/generic/math-type-macros-float.h: Include
28098 <math-svid-compat.h>.
28099 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28100 * sysdeps/generic/math-type-macros-ldouble.h: Include
28101 <math-svid-compat.h>.
28102 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28103 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28104 condition.
28105 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28106 * math/w_acosf_compat.c: Likewise.
28107 * math/w_acosh_compat.c: Likewise.
28108 * math/w_acoshf_compat.c: Likewise.
28109 * math/w_acoshl_compat.c: Likewise.
28110 * math/w_acosl_compat.c: Likewise.
28111 * math/w_asin_compat.c: Likewise.
28112 * math/w_asinf_compat.c: Likewise.
28113 * math/w_asinl_compat.c: Likewise.
28114 * math/w_atan2_compat.c: Likewise.
28115 * math/w_atan2f_compat.c: Likewise.
28116 * math/w_atan2l_compat.c: Likewise.
28117 * math/w_atanh_compat.c: Likewise.
28118 * math/w_atanhf_compat.c: Likewise.
28119 * math/w_atanhl_compat.c: Likewise.
28120 * math/w_cosh_compat.c: Likewise.
28121 * math/w_coshf_compat.c: Likewise.
28122 * math/w_coshl_compat.c: Likewise.
28123 * math/w_exp10_compat.c: Likewise.
28124 * math/w_exp10f_compat.c: Likewise.
28125 * math/w_exp10l_compat.c: Likewise.
28126 * math/w_exp2_compat.c: Likewise.
28127 * math/w_exp2f_compat.c: Likewise.
28128 * math/w_exp2l_compat.c: Likewise.
28129 * math/w_fmod_compat.c: Likewise.
28130 * math/w_fmodf_compat.c: Likewise.
28131 * math/w_fmodl_compat.c: Likewise.
28132 * math/w_hypot_compat.c: Likewise.
28133 * math/w_hypotf_compat.c: Likewise.
28134 * math/w_hypotl_compat.c: Likewise.
28135 * math/w_j0_compat.c: Likewise.
28136 * math/w_j0f_compat.c: Likewise.
28137 * math/w_j0l_compat.c: Likewise.
28138 * math/w_j1_compat.c: Likewise.
28139 * math/w_j1f_compat.c: Likewise.
28140 * math/w_j1l_compat.c: Likewise.
28141 * math/w_jn_compat.c: Likewise.
28142 * math/w_jnf_compat.c: Likewise.
28143 * math/w_jnl_compat.c: Likewise.
28144 * math/w_lgamma_r_compat.c: Likewise.
28145 * math/w_lgammaf_r_compat.c: Likewise.
28146 * math/w_lgammal_r_compat.c: Likewise.
28147 * math/w_log10_compat.c: Likewise.
28148 * math/w_log10f_compat.c: Likewise.
28149 * math/w_log10l_compat.c: Likewise.
28150 * math/w_log2_compat.c: Likewise.
28151 * math/w_log2f_compat.c: Likewise.
28152 * math/w_log2l_compat.c: Likewise.
28153 * math/w_log_compat.c: Likewise.
28154 * math/w_logf_compat.c: Likewise.
28155 * math/w_logl_compat.c: Likewise.
28156 * math/w_pow_compat.c: Likewise.
28157 * math/w_powf_compat.c: Likewise.
28158 * math/w_powl_compat.c: Likewise.
28159 * math/w_remainder_compat.c: Likewise.
28160 * math/w_remainderf_compat.c: Likewise.
28161 * math/w_remainderl_compat.c: Likewise.
28162 * math/w_sinh_compat.c: Likewise.
28163 * math/w_sinhf_compat.c: Likewise.
28164 * math/w_sinhl_compat.c: Likewise.
28165 * math/w_sqrt_compat.c: Likewise.
28166 * math/w_sqrtf_compat.c: Likewise.
28167 * math/w_sqrtl_compat.c: Likewise.
28168 * math/w_tgamma_compat.c: Likewise.
28169 * math/w_tgammaf_compat.c: Likewise.
28170 * math/w_tgammal_compat.c: Likewise.
28171 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28172 [LIBM_SVID_COMPAT].
28173 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28174 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28175 [LIBM_SVID_COMPAT].
28176 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28177 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28178 [LIBM_SVID_COMPAT].
28179 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28180 * sysdeps/i386/fpu/w_sqrt.c: New file.
28181 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28182 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28183 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28184 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28185 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28186 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28187 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28188 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28189 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28190 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28191 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28192 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28193 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28194 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28195 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28196 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28197 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28198 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28199 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28200 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28201 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28202 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28203 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28204 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28205 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28206 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28207 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28208 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28209 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28210 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28211 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28212 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28213 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28214 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28215 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28216 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28217 * sysdeps/ia64/fpu/w_log.c: Likewise.
28218 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28219 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28220 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28221 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28222 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28223 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28224 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28225 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28226 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28227 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28228 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28229 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28230 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28231 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28232 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28233 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28234 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28235 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28236 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28237 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28238 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28239 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28240 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28241 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28242 [LIBM_SVID_COMPAT].
28243 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28244 * sysdeps/ieee754/k_standard.c: Likewise.
28245 * sysdeps/ieee754/k_standardf.c: Likewise.
28246 * sysdeps/ieee754/k_standardl.c: Likewise.
28247 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28248 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28249 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28250 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28251 long_double_symbol call on [LIBM_SVID_COMPAT].
28252 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28253 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28254 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28255 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28256 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28257 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28258 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28259 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28260 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28261 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28262 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28263 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28264 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28265 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28266 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28267 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28268 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28269 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28270 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28271 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28272 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28273 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28274
28275 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28276
28277 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28278 * malloc/tst-mallocstate.c: Convert from test-skeleton
28279 to test-driver. Ifdef code using TEST_COMPAT macro.
28280 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28281 * math/test-matherr.c: Likewise.
28282
28283 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28284
28285 [BZ #22086]
28286 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28287 comparing word with byte-swapped constant.
28288
28289 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28290
28291 [BZ #20498]
28292 * locale/iso-639.def: add Miskito.
28293 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28294 * localedata/locales/miq_NI: New file.
28295
28296 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28297
28298 [BZ #18822]
28299 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28300 (__mkdir): Likewise.
28301 * io/chmod.c (__chmod): Add libc_hidden_def.
28302 * io/mkdir.c (__mkdir): Likewise.
28303 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28304 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28305 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28306 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28307
28308 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28309
28310 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28311 version to 4.13.
28312
28313 [BZ #22082]
28314 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28315 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28316
28317 2017-09-04 Florian Weimer <fweimer@redhat.com>
28318
28319 * math/math.h: Issue warning if log is defined.
28320
28321 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28322
28323 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28324 kernel version to 4.13.
28325
28326 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28327
28328 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28329 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28330 parameter.
28331 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28332 just <bits/types.h>.
28333 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28334 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28335 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28336 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28337 * misc/preadv2.c: Include <errno.h>.
28338 * misc/preadv64v2.c: Include <errno.h>.
28339 * misc/pwritev2.c: Include <errno.h>.
28340 * misc/pwritev64v2.c: Include <errno.h>.
28341 * sysdeps/posix/preadv2.c: Include <errno.h>.
28342 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28343 Fix <unistd.h> inclusion.
28344 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28345 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28346 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28347 __strtoul_internal): New functions.
28348 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28349 * sysdeps/posix/system.c: Include <sigsetops.h>.
28350 * sysdeps/mach/hurd/i386/Makefile
28351 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28352 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28353 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28354 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
28355 __feraiseexcept_renamed to feraiseexcept instead of
28356 __GI_feraiseexcept.
28357 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
28358 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
28359 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
28360 RWF_NOWAIT): Define to 0 if undefined already.
28361 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
28362 boils down to 0.
28363 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28364 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28365
28366 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28367
28368 * manual/math.texi (pow10): Do not document.
28369 (pow10f): Likewise.
28370 (pow10l): Likewise.
28371 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28372 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28373 * math/libm-test-exp10.inc (pow10_test): Remove.
28374 (do_test): Do not call pow10.
28375 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28376 [NO_LONG_DOUBLE] (pow10l): Likewise.
28377 * math/w_exp10f_compat.c (pow10f): Likewise.
28378 * math/w_exp10l_compat.c (pow10l): Likewise.
28379 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
28380 (pow10): Make into compat symbol.
28381 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
28382 (pow10f): Make into compat symbol.
28383 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
28384 (pow10l): Make into compat symbol.
28385 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
28386 pow10.
28387 (CFLAGS-nldbl-pow10.c): Remove variable..
28388 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
28389 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
28390 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
28391 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
28392 Undefine and redefine.
28393 (pow10l): Make into compat symbol.
28394 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
28395 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
28396 * sysdeps/arm/libm-test-ulps: Likewise.
28397 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
28398 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
28399 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28400 * sysdeps/microblaze/libm-test-ulps: Likewise.
28401 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
28402 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28403 * sysdeps/nios2/libm-test-ulps: Likewise.
28404 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28405 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
28406 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
28407 * sysdeps/sh/libm-test-ulps: Likewise.
28408 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
28409 * sysdeps/tile/libm-test-ulps: Likewise.
28410 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28411
28412 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28413
28414 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
28415
28416 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28417
28418 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
28419 "../ChangeLog.old/ChangeLog.8".
28420 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
28421 "../ChangeLog.old/ChangeLog.14".
28422
28423 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28424
28425 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
28426 Threads Library.
28427
28428 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28429
28430 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
28431
28432 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28433
28434 * csu/version.c (banner): Remove "by Roland McGrath et al.".
28435 * nptl/Banner: Remove "by Ulrich Drepper et al.".
28436
28437 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28438
28439 * stdlib/tst-atexit-common.c (do_test): Test support for at least
28440 32 atexit handlers.
28441
28442 2017-09-01 Zack Weinberg <zackw@panix.com>
28443
28444 * math/math.h (HUGE_VAL): Improve commentary.
28445
28446 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28447 Andreas Schwab <schwab@suse.de>
28448
28449 [BZ #21530]
28450 * include/stdio.h (__gen_tempfd): New function.
28451 * stdio-common/Makefile (routines): Add gentempfd.
28452 * stdio-common/gentempfd.c: New file.
28453 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
28454 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
28455 unnamed file first.
28456
28457 2017-09-01 Florian Weimer <fweimer@redhat.com>
28458
28459 [BZ #21915]
28460 [BZ #21922]
28461 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
28462 result to determine success or failure, not the errno value.
28463 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
28464 (tst-nss-files-hosts-erange): Link with -ldl.
28465 * nss/tst-nss-files-hosts-erange.c: New file.
28466 * nss/tst-resolv-basic.c (response): Handle nodata.example.
28467 (do_test): Add NO_DATA tests.
28468 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
28469 (do_test): Call it.
28470
28471 2017-09-01 Florian Weimer <fweimer@redhat.com>
28472
28473 [BZ #21922]
28474 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
28475 coming from gethostbyname2_r.
28476
28477 2017-09-01 Florian Weimer <fweimer@redhat.com>
28478
28479 * support/namespace.h (struct support_chroot_configuration): Add
28480 hosts, host_conf.
28481 (struct support_chroot): Add path_hosts, path_host_conf.
28482 * support/support_chroot.c (write_file): New function.
28483 (support_chroot_create): Call it to process /etc/resolv.conf,
28484 /etc/hosts, /etc/host.conf.
28485 (support_chroot_free): Update.
28486
28487 2017-09-01 Florian Weimer <fweimer@redhat.com>
28488
28489 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
28490 status indicates it is set.
28491
28492 2017-09-01 Florian Weimer <fweimer@redhat.com>
28493
28494 [BZ #20532]
28495 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
28496 function lookup failures more reliable.
28497
28498 2017-09-01 Florian Weimer <fweimer@redhat.com>
28499
28500 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
28501 (getcanonname): Likewise.
28502 (gaih_inet): Likewise.
28503
28504 2017-09-01 Florian Weimer <fweimer@redhat.com>
28505
28506 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
28507 (getcanonname): Likewise.
28508 (gaih_inet): Likewise.
28509
28510 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28511 Richard Henderson <rth@twiddle.net>
28512
28513 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
28514 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
28515 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
28516 (IREG_SIZE, OREG_SIZE): New macros.
28517 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
28518 (IREG_SIZE, OREG_SIZE): New macros.
28519 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
28520 (IREG_SIZE): New macro.
28521 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
28522 (IREG_SIZE): New macro.
28523 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
28524 New includes.
28525 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
28526 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28527 (__CONCATX): Handle exceptions correctly on large values that may
28528 set FE_INVALID.
28529 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
28530 Initialize if not already set.
28531 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28532
28533 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28534
28535 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
28536 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
28537 Likewise.
28538 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
28539 Likewise.
28540 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
28541 Likewise.
28542 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
28543 Likewise.
28544 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
28545 Likewise.
28546 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
28547 Likewise.
28548 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
28549 Likewise.
28550 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
28551 (NO_CANCELLATION): Likewise.
28552 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
28553 Likewise.
28554 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
28555 Likewise.
28556 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
28557 Likewise.
28558 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
28559 (NO_CANCELLATION): Likewise.
28560 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
28561 (NO_CANCELLATION): Likewise.
28562 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
28563 Likewise
28564 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
28565 Likewise.
28566 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
28567 Likewise.
28568 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
28569 Likewise.
28570 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
28571 hidden prototype.
28572 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
28573 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
28574
28575 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28576
28577 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
28578 in resolver call.
28579
28580 2017-08-31 Florian Weimer <fweimer@redhat.com>
28581
28582 * include/libc-symbols.h (internal_function): Remove.
28583
28584 2017-08-31 Florian Weimer <fweimer@redhat.com>
28585
28586 * stdlib/fmtmsg.c (internal_addseverity): Remove
28587 internal_function.
28588
28589 2017-08-31 Florian Weimer <fweimer@redhat.com>
28590
28591 * stdio-common/printf_fp.c (group_number): Remove
28592 internal_function.
28593 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
28594
28595 2017-08-31 Florian Weimer <fweimer@redhat.com>
28596
28597 * posix/fnmatch.c (internal_function): Remove definition.
28598 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
28599 * posix/regcomp.c (peek_token, init_word_char)
28600 (duplicate_node_closure, fetch_token, peek_token)
28601 (peek_token_bracket, build_range_exp, build_collating_symbol):
28602 Likewise.
28603 * posix/regex_internal.c (re_string_construct_common)
28604 (create_ci_newstate, create_cd_newstate, re_string_allocate)
28605 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
28606 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
28607 (re_string_translate_buffer, re_string_reconstruct)
28608 (re_string_peek_byte_case, re_string_fetch_byte_case)
28609 (re_string_destruct, re_string_context_at, re_node_set_alloc)
28610 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
28611 (re_node_set_add_intersect, re_node_set_init_union)
28612 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
28613 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
28614 (re_dfa_add_node, calc_state_hash, re_acquire_state)
28615 (re_acquire_state_context): Likewise.
28616 * posix/regex_internal.h (internal_function): Remove definition.
28617 (re_string_realloc_buffers, build_wcs_buffer)
28618 (build_wcs_upper_buffer, build_upper_buffer)
28619 (re_string_translate_buffer, re_string_context_at)
28620 (re_string_char_size_at, re_string_wchar_at)
28621 (re_string_elem_size_at): Likewise.
28622 * posix/regexec.c (match_ctx_init, match_ctx_clean)
28623 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
28624 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
28625 (re_search_internal, re_search_2_stub, re_search_stub)
28626 (re_copy_regs, prune_impossible_nodes, check_matching)
28627 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
28628 (free_fail_stack_return, sift_states_iter_mb)
28629 (sift_states_backward, build_sifted_states)
28630 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
28631 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
28632 (check_subexp_limits, sift_states_bkref, merge_state_array)
28633 (find_recover_state, transit_state, merge_state_with_log)
28634 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
28635 (transit_state_mb, transit_state_bkref, get_subexp)
28636 (get_subexp_sub, find_subexp_node, check_arrival)
28637 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
28638 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
28639 (check_node_accept_bytes, find_collation_sequence_value)
28640 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
28641 (acquire_init_state_context, check_halt_node_context)
28642 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
28643 (sub_epsilon_src_nodes): Likewise.
28644 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
28645 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
28646 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
28647 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
28648 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
28649 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
28650 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
28651 * sysdeps/posix/ttyname.c (getttyname): Likewise.
28652 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
28653 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
28654 (PREADV): Likewise.
28655 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
28656 (PREADV): Likewise.
28657 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
28658 (PWRITEV): Likewise.
28659 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
28660 (PWRITEV): Likewise.
28661 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
28662 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
28663
28664 2017-08-31 Florian Weimer <fweimer@redhat.com>
28665
28666 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
28667 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
28668 Remove internal_function.
28669 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
28670 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
28671 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
28672 (__deallocate_stack, __libc_pthread_init)
28673 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
28674 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
28675 (__libc_disable_asynccancel, __librt_disable_asynccancel):
28676 Likewise.
28677 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
28678 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
28679 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
28680 Likewise.
28681 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
28682 (__pthread_mutex_unlock_usercnt): Likewise.
28683
28684 2017-08-31 Florian Weimer <fweimer@redhat.com>
28685
28686 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
28687 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
28688 (fts_safe_changedir): Remove internal_function.
28689 * io/ftw.c (internal_function): Remove definition.
28690 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
28691
28692 2017-08-31 Florian Weimer <fweimer@redhat.com>
28693
28694 * inet/deadline.c (__deadline_current_time)
28695 (__deadline_from_timeval, __deadline_to_ms): Remove
28696 internal_function.
28697 * inet/getnameinfo.c (nrl_domainname): Likewise.
28698 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
28699 * inet/inet6_option.c (add_pad): Likewise.
28700 * inet/net-internal.h (__deadline_current_time)
28701 (__deadline_from_timeval, __deadline_to_ms): Likewise.
28702 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
28703 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
28704 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
28705
28706 2017-08-31 Joseph Myers <joseph@codesourcery.com>
28707
28708 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
28709 include <bits/nan.h>.
28710 * math/Makefile (headers): Remove bits/nan.h.
28711 * bits/nan.h: Remove.
28712 * sysdeps/ieee754/bits/nan.h: Likewise.
28713 * sysdeps/mips/bits/nan.h: Likewise.
28714
28715 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
28716 not include <bits/inf.h>.
28717 * math/Makefile (headers): Remove bits/inf.h.
28718 * bits/inf.h: Remove.
28719 * sysdeps/ieee754/bits/inf.h: Likewise.
28720
28721 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
28722 bits/huge_vall.h or bits/huge_val_flt128.h.
28723 (HUGE_VAL): Define directly here.
28724 [__USE_ISOC99] (HUGE_VALF): Likewise.
28725 [__USE_ISOC99] (HUGE_VALL): Likewise.
28726 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28727 (HUGE_VAL_F128): Likewise.
28728 * math/Makefile (headers): Remove bits/huge_val.h,
28729 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
28730 * bits/huge_val.h: Remove.
28731 * bits/huge_val_flt128.h: Likewise.
28732 * bits/huge_valf.h: Likewise.
28733 * bits/huge_vall.h: Likewise.
28734 * sysdeps/ia64/bits/huge_vall.h: Likewise.
28735 * sysdeps/ieee754/bits/huge_val.h: Likewise.
28736 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
28737 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
28738 * sysdeps/sh/bits/huge_val.h: Likewise.
28739 * sysdeps/sparc/bits/huge_vall.h: Likewise.
28740 * sysdeps/x86/bits/huge_vall.h: Likewise.
28741
28742 2017-08-31 Florian Weimer <fweimer@redhat.com>
28743
28744 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
28745 internal_function.
28746 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
28747 Likewise.
28748 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
28749 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
28750 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
28751 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
28752 * elf/dl-fini.c (_dl_sort_fini): Likewise.
28753 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
28754 * elf/dl-libc.c (dlerror_run): Likewise.
28755 * elf/dl-load.c (add_name_to_object, decompose_rpath)
28756 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
28757 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
28758 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
28759 Likewise.
28760 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
28761 (_dl_higher_prime_number, _dl_strtoul): Likewise.
28762 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
28763 * elf/dl-profile.c (_dl_start_profile): Likewise.
28764 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
28765 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
28766 Likewise.
28767 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
28768 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
28769 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
28770 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
28771 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
28772 (_dl_allocate_tls_storage): Likewise.
28773 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
28774 (_dl_check_all_versions): Likewise.
28775 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
28776 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
28777 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
28778 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28779 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
28780 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
28781 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
28782 internal_function from __dl_start.
28783 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
28784 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
28785 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
28786 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
28787 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
28788 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
28789 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
28790 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
28791 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
28792 (_dl_next_ld_env_entry, _dl_important_hwcaps)
28793 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
28794 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
28795 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
28796 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
28797 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
28798 Likewise.
28799 (struct rtld_global_ro): Remove internal_function from the
28800 _dl_lookup_symbol_x member.
28801 (_dl_symbol_value): Remove. No longer defined anywhere.
28802 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
28803 internal_function.
28804 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28805 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28806 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
28807 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
28808 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
28809 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
28810 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
28811 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
28812 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
28813 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
28814 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28815 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28816
28817 2017-08-31 Florian Weimer <fweimer@redhat.com>
28818
28819 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
28820 Remove internal_function.
28821 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28822 Likewise.
28823 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28824 Likewise.
28825
28826 2017-08-31 Florian Weimer <fweimer@redhat.com>
28827
28828 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
28829 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
28830 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
28831
28832 2017-08-31 Florian Weimer <fweimer@redhat.com>
28833
28834 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
28835 (__gai_enqueue_request): Remove internal_function.
28836 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
28837 (__gai_remove_request, __gai_notify, __gai_notify_only)
28838 (__gai_sigqueue): Likewise.
28839 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
28840 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
28841 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
28842 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
28843 Likewise.
28844
28845 2017-08-31 Florian Weimer <fweimer@redhat.com>
28846
28847 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
28848 * include/dirent.h (__opendirat, __getdents, __getdents64)
28849 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
28850 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
28851 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
28852 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28853 Likewise.
28854 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
28855
28856 2017-08-31 Florian Weimer <fweimer@redhat.com>
28857
28858 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
28859 internal_function.
28860 (GETCWD_RETURN_TYPE): Likewise.
28861
28862 2017-08-31 Florian Weimer <fweimer@redhat.com>
28863
28864 * include/time.h (__tz_compute, __strptime_internal): Remove
28865 internal_function.
28866 * time/strptime_l.c (__strptime_internal): Likewise.
28867 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
28868
28869 2017-08-31 Florian Weimer <fweimer@redhat.com>
28870
28871 * iconv/gconv.c (__gconv): Remove internal_function.
28872 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
28873 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
28874 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
28875 (__gconv_release_cache): Likewise.
28876 * iconv/gconv_close.c (__gconv_close): Likewise.
28877 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
28878 (read_conf_file, __gconv_get_path): Likewise.
28879 * iconv/gconv_db.c (derivation_lookup, add_derivation)
28880 (__gconv_release_step, gen_steps, increment_counter)
28881 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
28882 (__gconv_close_transform, free_modules_db): Likewise.
28883 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
28884 Likewise.
28885 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
28886 (__gconv_find_transform, __gconv_lookup_cache)
28887 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
28888 (__gconv_close_transform, __gconv_release_cache)
28889 (__gconv_loaded_object, __gconv_release_shlib)
28890 (__gconv_compare_alias): Likewise.
28891 * iconv/gconv_open.c (__gconv_open): Likewise.
28892 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
28893 * iconv/iconvconfig.c (add_module): Likewise.
28894 * intl/dcigettext.c (plural_lookup, guess_category_value)
28895 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
28896 * intl/eval-plural.h (plural_eval): Likewise.
28897 * intl/finddomain.c (_nl_find_domain): Likewise.
28898 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
28899 (_nl_load_domain, _nl_find_msg): Likewise.
28900 (internal_function): Remove definition.
28901 * intl/loadinfo.h (internal_function): Likewise.
28902 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
28903 internal_function.
28904 * intl/localealias.c (internal_function): Remove definition.
28905 (read_alias_file): Remove internal_function.
28906 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
28907 * intl/plural-exp.h (internal_function): Remove definition.
28908 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
28909 internal_function.
28910 * intl/plural.c: Regenerate.
28911 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
28912 * locale/coll-lookup.c (__collidx_table_lookup)
28913 (__collseq_table_lookup): Likewise.
28914 * locale/coll-lookup.h (__collidx_table_lookup)
28915 (__collseq_table_lookup): Likewise.
28916 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
28917 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
28918 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
28919 (_nl_unload_locale): Likewise.
28920 * locale/localeinfo.h (struct __locale_data): Remove
28921 internal_function from cleanup member.
28922 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
28923 (_nl_remove_locale, _nl_load_locale_from_archive)
28924 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
28925 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
28926 (_nl_cleanup_time): Remove internal_function.
28927 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
28928 (_nl_parse_alt_digit): Likewise.
28929 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
28930 (_nl_select_era_entry): Likewise.
28931 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
28932 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28933 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28934 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28935 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28936
28937 2017-08-31 Florian Weimer <fweimer@redhat.com>
28938
28939 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
28940 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28941 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
28942 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
28943 Likewise.
28944 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
28945 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
28946 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
28947 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
28948 Likewise.
28949 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
28950
28951 2017-08-31 Florian Weimer <fweimer@redhat.com>
28952
28953 * misc/getttyent.c (skip, value): Remove internal_function.
28954 * misc/syslog.c (openlog_internal): Likewise.
28955 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
28956
28957 2017-08-31 Florian Weimer <fweimer@redhat.com>
28958
28959 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
28960 (__nss_rewrite_field): Remove internal_function.
28961 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
28962 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
28963 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
28964 * nss/nsswitch.c (nss_parse_file, nss_getline)
28965 (nss_parse_service_list, nss_new_service): Likewise.
28966 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
28967 * nss/valid_field.c (__nss_valid_field): Likewise.
28968 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
28969
28970 2017-08-31 Florian Weimer <fweimer@redhat.com>
28971
28972 * malloc/arena.c (__malloc_fork_lock_parent)
28973 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
28974 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
28975 internal_function from defintions.
28976 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
28977 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
28978 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
28979 internal_function from declarations.
28980 * malloc/malloc.c (internal_function): Do not define.
28981 (mem2mem_check): Remove internal_function from declaration.
28982 (munmap_chunk, mremap_chunk): Remove internal_function.
28983 * malloc/mtrace.c (tr_where): Likewise.
28984
28985 2017-08-31 Florian Weimer <fweimer@redhat.com>
28986
28987 * include/rpc/pmap_clnt.h (__get_socket): Remove
28988 internal_function.
28989 * sunrpc/auth_des.c (synchronize): Likewise.
28990 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
28991 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
28992 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
28993 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
28994 (key_call): Likewise.
28995 * sunrpc/pm_getport.c (__get_socket): Likewise.
28996 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
28997 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
28998 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
28999 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
29000 (invalidate): Likewise.
29001 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
29002 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
29003 (set_input_fragment, get_input_bytes): Likewise.
29004
29005 2017-08-31 Florian Weimer <fweimer@redhat.com>
29006
29007 * malloc/malloc.c (_int_free): Remove locked variable and related
29008 asserts.
29009
29010 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
29011
29012 [BZ #22051]
29013 * Makerules (build-module-helper-objlist): Filter out
29014 $(elf-objpfx)sofini.os.
29015 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29016 needed.
29017
29018 2017-08-31 Florian Weimer <fweimer@redhat.com>
29019
29020 * libio/fcloseall.c: Assume weak_alias is defined.
29021 * libio/feof.c: Likewise.
29022 * libio/fileno.c: Likewise.
29023 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
29024 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29025 definitions.
29026 (_IO_file_open): Call __open directly.
29027 (_IO_new_file_sync): Assume ESPIPE is defined.
29028 (_IO_file_seekoff_maybe_mmap): Call __read directly.
29029 (_IO_new_file_write): Call __write directly.
29030 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
29031 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29032 * libio/genops.c: Assume _LIBC is defined.
29033 (save_for_backup): Remove internal_function.
29034 * libio/getc.c: Assume weak_alias is defined.
29035 * libio/getwc.c: Likewise.
29036 * libio/iofclose.c: Assume _LIBC is defined.
29037 * libio/iofdopen.c: Likewise.
29038 (_IO_fcntl): Remove macro definition.
29039 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29040 Call __fcntl directly.
29041 * libio/iofflush.c: Assume weak_alias is defined.
29042 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29043 defined.
29044 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29045 * libio/iofgets.c: Likewise.
29046 * libio/iofopen.c: Assume _LIBC is defined.
29047 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29048 * libio/iofputs.c: Assume weak_alias is defined.
29049 * libio/iofread.c: Likewise.
29050 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29051 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29052 * libio/ioftell.c: Assume weak_alias is defined.
29053 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29054 * libio/iofwide.c: Assume _LIBC is defined.
29055 (_IO_fwide): Drop SHARED conditional because it is implied by
29056 SHLIB_COMPAT.
29057 * libio/iofwrite.c: Assume weak_alias is defined.
29058 * libio/iogetdelim.c: Likewise.
29059 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29060 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29061 (_IO_getwline): Call __wmemcpy directly.
29062 * libio/iopopen.c: Assume _LIBC is defined.
29063 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29064 (_IO_close): Remove macro definitions.
29065 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29066 _exit directly.
29067 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29068 directly.
29069 * libio/ioputs.c: Assume weak_alias is defined.
29070 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29071 * libio/iosetbuffer.c: Assume weak_alias is defined.
29072 * libio/iosetvbuf.c: Likewise.
29073 * libio/ioungetc.c: Likewise.
29074 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29075 libc_hidden_def, libc_hidden_weak, NULL are defined.
29076 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29077 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29078 defined.
29079 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29080 definitions.
29081 (_IO_old_file_init_internal): Drop SHARED conditional because it
29082 is implied by SHLIB_COMPAT.
29083 (_IO_old_file_fopen): Call __open directly.
29084 (_IO_old_file_sync): Assume ESPIPE is defined.
29085 (_IO_old_file_write): Call __write directly.
29086 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29087 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29088 Call __fcntl directly.
29089 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29090 (_IO_old_fgetpos): Assume EIO is defined.
29091 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29092 (_IO_old_fgetpos64): Assume EIO is defined.
29093 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29094 (_IO_old_fsetpos): Assume EIO is defined.
29095 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29096 (_IO_old_fsetpos64): Assume EIO is defined.
29097 * libio/oldiopopen.c: Assume _LIBC is defined.
29098 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29099 (_IO_close): Remove macro definitions.
29100 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29101 directly.
29102 (_IO_old_proc_close): Call __close, __waitpid directly.
29103 * libio/put.c: Assume weak_alias is defined.
29104 * libio/stdfiles.c: Assume _LIBC is defined.
29105 * libio/stdio.c: Likewise.
29106 * libio/wfileops.c: Likewise.
29107 (_IO_wfile_sync): Assume ESPIPE is defined.
29108 * libio/wgenops.c: Assume _LIBC is defined.
29109 (save_for_wbackup): Remove internal_function.
29110
29111 2017-08-31 Florian Weimer <fweimer@redhat.com>
29112
29113 * malloc/malloc.c (top_check): Change return type to void. Remove
29114 internal_function.
29115 * malloc/hooks.c (top_check): Likewise.
29116 (malloc_check, realloc_check, memalign_check): Adjust.
29117
29118 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29119
29120 [BZ #21457]
29121 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29122 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29123 sigcontext and namespace requirements.
29124 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29125 * sysdeps/m68k/sys/ucontext.h: Likewise.
29126 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29127 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29128 <bits/sigcontext.h>.
29129 (__ctx): Define earlier.
29130 (mcontext_t): Define structure contents rather than using struct
29131 sigcontext.
29132 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29133 __glibc_reserved1 instead of __reserved.
29134 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29135 <bits/sigcontext.h>.
29136 (__ctx): Define earlier.
29137 (mcontext_t): Define structure contents rather than using struct
29138 sigcontext.
29139 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29140 mcontext_t instead of struct sigcontext.
29141 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29142 <bits/sigcontext.h>.
29143 (__ctx): Define earlier.
29144 (mcontext_t): Define structure contents rather than using struct
29145 sigcontext.
29146 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29147 <bits/sigcontext.h>.
29148 (__ctx): Define earlier.
29149 (mcontext_t): Define structure contents rather than using struct
29150 sigcontext.
29151 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29152 mcontext_t instead of struct sigcontext.
29153 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29154 mcontext_t instead of struct sigcontext.
29155 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29156 <bits/sigcontext.h>.
29157 (__ctx): New macro.
29158 (struct __ia64_fpreg_mcontext): New type.
29159 (mcontext_t): Define structure contents rather than using struct
29160 sigcontext.
29161 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29162 (uc_sigmask): Define using __ctx.
29163 (uc_stack): Likewise.
29164 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29165 <bits/sigcontext.h>.
29166 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29167 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29168 <bits/sigcontext.h>.
29169 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29170 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29171 <bits/sigcontext.h>.
29172 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29173 <bits/sigcontext.h>.
29174 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29175 <bits/sigcontext.h>.
29176 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29177 <bits/sigcontext.h>.
29178 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29179 <bits/sigcontext.h>.
29180 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29181 <bits/sigcontext.h>.
29182 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29183 <bits/sigcontext.h>.
29184 (__ctx): Define earlier.
29185 (mcontext_t): Define structure contents rather than using struct
29186 sigcontext.
29187 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29188 <bits/sigcontext.h>. Include <bits/types.h>.
29189 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29190 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29191 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29192 (test-xfail-UNIX98/signal.h/conform): Likewise.
29193 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29194 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29195 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29196 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29197 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29198 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29199 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29200 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29201 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29202
29203 2017-08-30 Florian Weimer <fweimer@redhat.com>
29204
29205 * malloc/dynarray_emplace_enlarge.c
29206 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29207 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29208 * malloc/tst-dynarray.c (test_long_overflow): New function.
29209 (do_test): Call it.
29210
29211 2017-08-30 Florian Weimer <fweimer@redhat.com>
29212
29213 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29214 (set_arena_corrupt): Remove definitions.
29215 (mtrim): Do not check for corrupt arena.
29216 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29217 Likewise.
29218
29219 2017-08-30 Florian Weimer <fweimer@redhat.com>
29220
29221 [BZ #21754]
29222 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29223 check_action.
29224 (ptmalloc_init): Do not set or use check_action.
29225 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29226 call to malloc_printerr. Remove return statement.
29227 (free_check): Likewise. Remove arena unlock.
29228 (top_check): Update comment. Adjust call to malloc_printerr.
29229 Remove heap repair code.
29230 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29231 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29232 (sysmalloc): Adjust call to malloc_printerr.
29233 (munmap_chunk, __libc_realloc): Likewise. Remove return
29234 statement.
29235 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29236 Remove errout label and corresponding gotos.
29237 (_int_free): Likewise. Remove arena unlock.
29238 (do_set_mallopt_check): Do not set check_action.
29239 (malloc_printerr): Adjust parameter list. Do not mark arena as
29240 corrupt.
29241 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29242 comment.
29243 * manual/probes.texi (Memory Allocation Probes): Remove
29244 memory_mallopt_check_action.
29245
29246 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29247
29248 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29249 Use pointer to uint64_t instead of long int for sp.
29250
29251 2017-08-30 Florian Weimer <fweimer@redhat.com>
29252
29253 [BZ #21754]
29254 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29255 without printing a backtrace. Do not leak any information in the
29256 error message.
29257 * manual/memory.texi (Heap Consistency Checking): Update.
29258 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29259
29260 2017-08-30 Florian Weimer <fweimer@redhat.com>
29261
29262 Do not scale NPTL tests with available number of CPUs.
29263 * nptl/tst-cond16.c (count): Set to constant value of 8.
29264 * nptl/tst-cond18.c (count): Likewise.
29265
29266 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29267
29268 [BZ #22035]
29269 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29270 Define to take a second argument that is a macro that
29271 concatentates a suffix, not the suffix itself.
29272 (__CONCAT_d): New macro.
29273 (__CONCAT_f): Likewise.
29274 (__CONCAT_l): Likewise.
29275
29276 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29277
29278 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29279 by child.
29280
29281 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29282 Aurelien Jarno <aurelien@aurel32.net>
29283 Maciej W. Rozycki <macro@imgtec.com>
29284
29285 [BZ #21956]
29286 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29287 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29288 `mips16-syscall6' and `mips16-syscall7'.
29289 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29290 (CFLAGS-mips16-syscall7.c): Remove.
29291 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29292 Remove `__mips16_syscall5', `__mips16_syscall6' and
29293 `__mips16_syscall7'.
29294 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29295 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29296 `__mips_syscall_return'.
29297 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29298 (__mips16_syscall1): Likewise.
29299 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29300 (__mips16_syscall2): Likewise.
29301 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29302 (__mips16_syscall3): Likewise.
29303 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29304 (__mips16_syscall4): Likewise.
29305 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29306 Remove.
29307 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29308 Remove.
29309 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29310 Remove.
29311 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29312 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29313 `__mips16_syscall5'. Remove prototype.
29314 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29315 `__mips16_syscall6'. Remove prototype.
29316 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29317 `__mips16_syscall7'. Remove prototype.
29318 (__nomips16, __mips16_syscall_return): Move to...
29319 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29320 (__nomips16, __mips_syscall_return): ... here.
29321 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29322 `__mips16_syscall_return' to `__mips_syscall_return'.
29323 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29324 `internal_syscall##nr'.
29325 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29326 `internal_syscall##nr'.
29327 (FORCE_FRAME_POINTER): Remove.
29328 (__mips_syscall5): New prototype.
29329 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29330 (__mips_syscall6): New prototype.
29331 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29332 (__mips_syscall7): New prototype.
29333 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29334 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29335 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29336 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29337 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29338 (sysdep_routines): Add libc-do-syscall.
29339 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29340 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29341
29342 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29343
29344 [BZ #21672]
29345 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29346 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29347 (advise_stack_range): New function.
29348 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29349 stack non required to advise_stack_range at allocatestack.c
29350
29351 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29352
29353 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29354
29355 2017-08-29 Florian Weimer <fweimer@redhat.com>
29356
29357 [BZ #22026]
29358 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
29359 __end_fct. Mangle __end_fct after setting it to NULL.
29360 * iconv/Makefile (tests): Add tst-gconv-init-failure.
29361 (modules-names, modules-names-tests): Add
29362 tst-gconv-init-failure-mod.
29363 (gconv-modules): New target.
29364 (tst-gconv-init-failure-mod.so): Link against libsupport.
29365 (tst-gconv-init-failure): Depend on gconv-modules,
29366 tst-gconv-init-failure-mod.so.
29367 * iconv/tst-gconv-init-failure-mod.c: New file.
29368 * iconv/tst-gconv-init-failure.c: Likewise.
29369 * iconv/test-gconv-modules: Likewise.
29370
29371 2017-08-29 Florian Weimer <fweimer@redhat.com>
29372
29373 [BZ #22025]
29374 * iconv/gconv_db.c (free_derivation): Remove redundant
29375 parentheses.
29376 (gen_steps): Unconditionally mangle __btowc_fct after
29377 initialization.
29378 (increment_counter): Likewise. Do not call init_fct for internal
29379 modules.
29380
29381 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29382
29383 [BZ #22028]
29384 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29385 (_MSUF_): Remove macro.
29386 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
29387 Likewise.
29388 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29389 (__REDIRFROM_X): New macro.
29390 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
29391 Likewise.
29392 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
29393 (__REDIRTO_X): Likewise.
29394 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
29395 arguments.
29396 (__MATH_REDIRCALL_2): Likewise.
29397 (__MATH_REDIRCALL_INTERNAL): Likewise.
29398 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29399 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
29400 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
29401 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29402 * math/test-finite-macros.c: New file.
29403 * math/Makefile (tests): Add test-finite-macros.
29404 (CFLAGS-test-finite-macros.c): New variable.
29405
29406 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
29407 Jeff Law <law@redhat.com>
29408
29409 [BZ #22025]
29410 Mangle NULL pointers in iconv/gconv.
29411 * iconv/gconv_cache.c (find_module): Demangle init_fct before
29412 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
29413 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
29414 is non-NULL before demangling the end_fct. Check for NULL
29415 end_fct after demangling.
29416 (__gconv_release_step): Demangle the end_fct before checking
29417 it for NULL. Remove assert on __shlibc_handle != NULL.
29418 (gen_steps): Don't check btowc_fct for NULL before mangling.
29419 Demangle init_fct before checking for NULL.
29420 (increment_counter): Likewise.
29421 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
29422 end_fct for NULL before mangling.
29423 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
29424 for NULL.
29425
29426 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
29427
29428 [BZ #21971]
29429 * locale/iso-639.def: add Morisyen.
29430
29431 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29432
29433 [BZ #21930]
29434 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
29435 (iszero): New C++ implementation that does not use
29436 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
29437 signaling nans are enabled, since __builtin_types_compatible_p
29438 is a C-only feature.
29439 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
29440 defined, include ieee754_float128.h for access to the union and
29441 member ieee854_float128.ieee.
29442 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
29443 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
29444 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29445 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
29446 options of test-math-zero on powerpc64le.
29447
29448 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
29449
29450 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29451 Change double to float.
29452
29453 2017-08-28 Joseph Myers <joseph@codesourcery.com>
29454
29455 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
29456 unconditional.
29457 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
29458 conditional code; define contents only for [LIBM_SVID_COMPAT].
29459
29460 2017-08-28 Florian Weimer <fweimer@redhat.com>
29461
29462 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
29463 (abi-lp64_be-options): Remove.
29464 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
29465 (abi-hard-options): Likewise.
29466 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
29467 (abi-o32_hard-options, abi-o32_soft_2008-options)
29468 (abi-o32_hard_2008-options, abi-n32_soft-options)
29469 (abi-n32_hard-options, abi-n32_soft_2008-options)
29470 (abi-n32_hard_2008-options, abi-n64_soft-options)
29471 (abi-n64_hard-options, abi-n64_soft_2008-options)
29472 (abi-n64_hard_2008-options): Likewise.
29473 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
29474 (abi-64-v1-options, abi-64-v2-options): Likewise.
29475 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
29476 (abi-64-options): Likewise.
29477 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
29478 (abi-64-options): Likewise.
29479 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
29480 (abi-64-options): Likewise.
29481 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
29482 (abi-64-options, abi-x32-options): Likewise.
29483
29484 2017-08-28 Florian Weimer <fweimer@redhat.com>
29485
29486 Store supported list of SYS_* system calls in the source tree.
29487 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
29488 (bits/syscall.h): Generate from list file.
29489 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
29490 [$(subdir) = misc] (tests): Add tst-syscall-list.
29491 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
29492 [$(subdir) = misc] (tst-syscall-list-macros.list)
29493 [$(subdir) = misc] (tst-syscall-list-nr.list)
29494 (tst-syscall-list-sys.list): Helper targets for new
29495 tst-syscall-list test.
29496 [$(subdir) = misc] (tst-syscall-list.out): Run test script
29497 tst-syscall-list.sh.
29498 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
29499 target. Do not include bits/syscall.d.
29500 [$(subdir) = misc] (generated): Do not update.
29501 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
29502 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
29503 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
29504 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
29505
29506 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
29507
29508 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
29509 (tst-cxa_atexit, tst-on_exit): Likewise.
29510 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
29511 tst-cxa_atexit, and tst-on_exit.
29512 * stdlib/tst-atexit-common.c: New file.
29513 * stdlib/tst-atexit.c: New file.
29514 * stdlib/tst-at_quick_exit.c: New file.
29515 * stdlib/tst-cxa_atexit.c: New file.
29516 * stdlib/tst-on_exit.c: New file.
29517
29518 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29519
29520 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
29521 * mach/stack_chk_fail_local.c: New file.
29522 * hurd/stack_chk_fail_local.c: New file.
29523 * mach/Machrules ($(interface-library)-routines): Add
29524 stack_chk_fail_local.
29525 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
29526 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
29527 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
29528 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
29529 * hurd/Makefile (CFLAGS-hurdstartup.o,
29530 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
29531
29532 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
29533
29534 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
29535 (index_cpu_*, index_arch_*): Removed.
29536
29537 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29538
29539 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
29540 Use uint64_t instead of unsigned long.
29541
29542 2017-08-25 Joseph Myers <joseph@codesourcery.com>
29543
29544 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
29545 [__HAVE_DISTINCT_FLOAT128].
29546
29547 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
29548 of <bits/math-finite.h>.
29549 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
29550 inclusion of <bits/math-finite.h>.
29551 * math/bits/math-finite.h (__REDIRTO_X): Do not define
29552 conditionally on [__MATH_DECLARING_LDOUBLE && defined
29553 __NO_LONG_DOUBLE_MATH].
29554 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
29555 (__MATH_REDIRCALL_2): Likewise.
29556 (__MATH_REDIRCALL_INTERNAL): Likewise.
29557 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29558 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
29559 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29560
29561 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
29562 Remove file.
29563 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
29564 Likewise.
29565 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
29566 Likewise.
29567 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
29568 Likewise.
29569 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
29570 Likewise.
29571 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
29572 Likewise.
29573 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
29574 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
29575 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
29576 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
29577 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
29578 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
29579 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
29580 w_sqrtf_compat-ppc32.
29581
29582 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29583
29584 * math/math.h [defined __cplusplus] (issignaling): In the long
29585 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
29586 is not defined. Call __issignaling, otherwise.
29587
29588 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29589
29590 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
29591 syscall definitions and replace __builtin_expect with __glibc_likely.
29592 * sysdeps/unix/syscall-template.S: Update comment about cancellable
29593 syscall.
29594 (SYSCALL_CANCELLABLE): Removedefinition
29595 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
29596 definition.
29597 (PSEUDO_END): Likewise.
29598 [IS_IN (libpthread)] (CENABLE): Likewise.
29599 [IS_IN (libpthread)] (CDISABLE): Likewise.
29600 [IS_IN (libc)] (CENABLE): Likewise.
29601 [IS_IN (libc)] (CENABLE): Likewise.
29602 [IS_IN (librt)] (CDISABLE): Likewise.
29603 [IS_IN (librt)] (CDISABLE): Likewise.
29604 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29605 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
29606 definition.
29607 (PSEUDO_END): Likewise.
29608 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
29609 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
29610 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29611 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29612 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29613 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29614 (CENABLE): Likewise.
29615 (CDISABLE): Likewise.
29616 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29617 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
29618 defintion.
29619 (PSEUDO_END): Likewise.
29620 [IS_IN (libpthread)] (CENABLE): Likewise.
29621 [IS_IN (libpthread)] (CDISABLE): Likewise.
29622 [IS_IN (libc)] (CENABLE): Likewise.
29623 [IS_IN (libc)] (CENABLE): Likewise.
29624 [IS_IN (librt)] (CDISABLE): Likewise.
29625 [IS_IN (librt)] (CDISABLE): Likewise.
29626 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29627 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
29628 definition.
29629 (PSEUDO_END): Likewise.
29630 [IS_IN (libpthread)] (CENABLE): Likewise.
29631 [IS_IN (libpthread)] (CDISABLE): Likewise.
29632 [IS_IN (libc)] (CENABLE): Likewise.
29633 [IS_IN (libc)] (CENABLE): Likewise.
29634 [IS_IN (librt)] (CDISABLE): Likewise.
29635 [IS_IN (librt)] (CDISABLE): Likewise.
29636 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29637 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
29638 definition.
29639 (PSEUDO_END): Likewise.
29640 [IS_IN (libpthread)] (CENABLE): Likewise.
29641 [IS_IN (libpthread)] (CDISABLE): Likewise.
29642 [IS_IN (libc)] (CENABLE): Likewise.
29643 [IS_IN (libc)] (CENABLE): Likewise.
29644 [IS_IN (librt)] (CDISABLE): Likewise.
29645 [IS_IN (librt)] (CDISABLE): Likewise.
29646 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29647 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
29648 definition.
29649 (PSEUDO_END): Likewise.
29650 [IS_IN (libpthread)] (CENABLE): Likewise.
29651 [IS_IN (libpthread)] (CDISABLE): Likewise.
29652 [IS_IN (libc)] (CENABLE): Likewise.
29653 [IS_IN (libc)] (CENABLE): Likewise.
29654 [IS_IN (librt)] (CDISABLE): Likewise.
29655 [IS_IN (librt)] (CDISABLE): Likewise.
29656 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29657 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
29658 definition.
29659 (PSEUDO_END): Likewise.
29660 [IS_IN (libpthread)] (CENABLE): Likewise.
29661 [IS_IN (libpthread)] (CDISABLE): Likewise.
29662 [IS_IN (libc)] (CENABLE): Likewise.
29663 [IS_IN (libc)] (CENABLE): Likewise.
29664 [IS_IN (librt)] (CDISABLE): Likewise.
29665 [IS_IN (librt)] (CDISABLE): Likewise.
29666 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29667 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
29668 definition.
29669 (PSEUDO_END): Likewise.
29670 [IS_IN (libpthread)] (CENABLE): Likewise.
29671 [IS_IN (libpthread)] (CDISABLE): Likewise.
29672 [IS_IN (libc)] (CENABLE): Likewise.
29673 [IS_IN (libc)] (CENABLE): Likewise.
29674 [IS_IN (librt)] (CDISABLE): Likewise.
29675 [IS_IN (librt)] (CDISABLE): Likewise.
29676 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29677 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
29678 Remove definition.
29679 (PSEUDO_END): Likewise.
29680 [IS_IN (libpthread)] (CENABLE): Likewise.
29681 [IS_IN (libpthread)] (CDISABLE): Likewise.
29682 [IS_IN (libc)] (CENABLE): Likewise.
29683 [IS_IN (libc)] (CENABLE): Likewise.
29684 [IS_IN (librt)] (CDISABLE): Likewise.
29685 [IS_IN (librt)] (CDISABLE): Likewise.
29686 (SINGLE_THREAD_P): Likewise.
29687 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
29688 definition.
29689 (PSEUDO_END): Likewise.
29690 [IS_IN (libpthread)] (CENABLE): Likewise.
29691 [IS_IN (libpthread)] (CDISABLE): Likewise.
29692 [IS_IN (libc)] (CENABLE): Likewise.
29693 [IS_IN (libc)] (CENABLE): Likewise.
29694 [IS_IN (librt)] (CDISABLE): Likewise.
29695 [IS_IN (librt)] (CDISABLE): Likewise.
29696 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29697 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
29698 definition.
29699 (PSEUDO_END): Likewise.
29700 [IS_IN (libpthread)] (CENABLE): Likewise.
29701 [IS_IN (libpthread)] (CDISABLE): Likewise.
29702 [IS_IN (libc)] (CENABLE): Likewise.
29703 [IS_IN (libc)] (CENABLE): Likewise.
29704 [IS_IN (librt)] (CDISABLE): Likewise.
29705 [IS_IN (librt)] (CDISABLE): Likewise.
29706 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29707 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
29708 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
29709 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
29710 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
29711 definition.
29712 (PSEUDO_END): Likewise.
29713 [IS_IN (libpthread)] (CENABLE): Likewise.
29714 [IS_IN (libpthread)] (CDISABLE): Likewise.
29715 [IS_IN (libc)] (CENABLE): Likewise.
29716 [IS_IN (libc)] (CENABLE): Likewise.
29717 [IS_IN (librt)] (CDISABLE): Likewise.
29718 [IS_IN (librt)] (CDISABLE): Likewise.
29719 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29720 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
29721 definition.
29722 (PSEUDO_END): Likewise.
29723 [IS_IN (libpthread)] (CENABLE): Likewise.
29724 [IS_IN (libpthread)] (CDISABLE): Likewise.
29725 [IS_IN (libc)] (CENABLE): Likewise.
29726 [IS_IN (libc)] (CENABLE): Likewise.
29727 [IS_IN (librt)] (CDISABLE): Likewise.
29728 [IS_IN (librt)] (CDISABLE): Likewise.
29729 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29730 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
29731 definition.
29732 (PSEUDO_END): Likewise.
29733 [IS_IN (libpthread)] (CENABLE): Likewise.
29734 [IS_IN (libpthread)] (CDISABLE): Likewise.
29735 [IS_IN (libc)] (CENABLE): Likewise.
29736 [IS_IN (libc)] (CENABLE): Likewise.
29737 [IS_IN (librt)] (CDISABLE): Likewise.
29738 [IS_IN (librt)] (CDISABLE): Likewise.
29739 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29740 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
29741 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
29742 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
29743 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
29744 definition.
29745 (PSEUDO_END): Likewise.
29746 [IS_IN (libpthread)] (CENABLE): Likewise.
29747 [IS_IN (libpthread)] (CDISABLE): Likewise.
29748 [IS_IN (libc)] (CENABLE): Likewise.
29749 [IS_IN (libc)] (CENABLE): Likewise.
29750 [IS_IN (librt)] (CDISABLE): Likewise.
29751 [IS_IN (librt)] (CDISABLE): Likewise.
29752 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29753 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
29754 definition.
29755 (PSEUDO_END): Likewise.
29756 [IS_IN (libpthread)] (CENABLE): Likewise.
29757 [IS_IN (libpthread)] (CDISABLE): Likewise.
29758 [IS_IN (libc)] (CENABLE): Likewise.
29759 [IS_IN (libc)] (CENABLE): Likewise.
29760 [IS_IN (librt)] (CDISABLE): Likewise.
29761 [IS_IN (librt)] (CDISABLE): Likewise.
29762 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29763
29764 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
29765
29766 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
29767
29768 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29769
29770 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29771
29772 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29773
29774 [BZ #21982]
29775 * string/stratcliff.c (do_test): Declare size, nchars, inner,
29776 middle and outer with size_t instead of int. Repleace %d and
29777 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
29778 "MAX (outer, nchars - 64)" to support unsigned outer and
29779 nchars. Also exit loop when outer == 0.
29780
29781 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29782
29783 * include/fcntl.h (__fcntl_nocancel): Remove definition.
29784 * include/signal.h (__sigsuspend_nocancel): Likewise.
29785 * include/time.h (__nanosleep_nocancel): Likewise.
29786 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
29787 * login/utmp_file.c: Include non cancellable syscall header.
29788 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
29789 prototype.
29790
29791 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29792
29793 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
29794 .byte sequences with AVX512F instructions.
29795 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
29796 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
29797 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
29798 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
29799 Likewise.
29800 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29801 Likewise.
29802
29803 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
29804 Steve Ellcey <sellcey@cavium.com>
29805
29806 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
29807 Use PTR_REG macro in cmp instruction.
29808
29809 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29810
29811 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
29812 Change the return type of the ifunc resolver to match the return
29813 type of the target function.
29814
29815 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29816
29817 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
29818 (preadv64): Likewise.
29819 (pwrite64(: Likewise.
29820 (pwritev64): Likewise.
29821
29822 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
29823 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
29824 (LOAD_ARGS_0): Likewise.
29825 (LOAD_ARGS_1): Likewise.
29826 (LOAD_ARGS_2): Likewise.
29827 (LOAD_ARGS_3): Likewise.
29828 (LOAD_ARGS_4): Likewise.
29829 (LOAD_ARGS_5): Likewise.
29830 (LOAD_ARGS_6): Likewise.
29831 (LOAD_REGS_0): Likewise.
29832 (LOAD_REGS_1): Likewise.
29833 (LOAD_REGS_2): Likewise.
29834 (LOAD_REGS_3): Likewise.
29835 (LOAD_REGS_4): Likewise.
29836 (LOAD_REGS_5): Likewise.
29837 (LOAD_REGS_6): Likewise.
29838 (ASM_ARGS_0): Likewise.
29839 (ASM_ARGS_1): Likewise.
29840 (ASM_ARGS_2): Likewise.
29841 (ASM_ARGS_3): Likewise.
29842 (ASM_ARGS_4): Likewise.
29843 (ASM_ARGS_5): Likewise.
29844 (ASM_ARGS_6): Likewise.
29845 (LOAD_ARGS_TYPES_1): Likewise.
29846 (LOAD_ARGS_TYPES_2): Likewise.
29847 (LOAD_ARGS_TYPES_3): Likewise.
29848 (LOAD_ARGS_TYPES_4): Likewise.
29849 (LOAD_ARGS_TYPES_5): Likewise.
29850 (LOAD_ARGS_TYPES_6): Likewise.
29851 (LOAD_REGS_TYPES_1): Likewise.
29852 (LOAD_REGS_TYPES_2): Likewise.
29853 (LOAD_REGS_TYPES_3): Likewise.
29854 (LOAD_REGS_TYPES_4): Likewise.
29855 (LOAD_REGS_TYPES_5): Likewise.
29856 (LOAD_REGS_TYPES_6): Likewise.
29857 (TYPEFY): New define.
29858 (ARGIFY): Likewise.
29859 (internal_syscall0): Likewise.
29860 (internal_syscall1): Likewise.
29861 (internal_syscall2): Likewise.
29862 (internal_syscall3): Likewise.
29863 (internal_syscall4): Likewise.
29864 (internal_syscall5): Likewise.
29865 (internal_syscall6): Likewise.
29866 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
29867 (INTERNAL_SYSCALL_NCS): Remove define.
29868 (internal_syscall1): Add define.
29869
29870 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29871
29872 * math/w_remainder_compat.c: Remove duplicate inclusion of
29873 math-svid-compat.h.
29874 * math/w_remainderf_compat.c: Likewise.
29875 * math/w_remainderl_compat.c: Likewise.
29876
29877 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29878
29879 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29880
29881 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29882
29883 [BZ #21684]
29884 * math/tgmath.h (__floating_type): Simplify definitions.
29885 (__real_integer_type): New macro.
29886 (__complex_integer_type): Likewise.
29887 (__expr_is_real): Likewise.
29888 (__tgmath_real_type_sub): Update comment to describe handling of
29889 complex types.
29890 (__tgmath_complex_type_sub): New macro.
29891 (__tgmath_complex_type): Likewise.
29892 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29893 (__TGMATH_CF128): Use __expr_is_real.
29894 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
29895 __expr_is_real.
29896 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29897 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
29898 * math/gen-tgmath-tests.py (Type.create_type): Create complex
29899 integer types.
29900
29901 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29902
29903 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
29904 macro.
29905 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
29906 alias.
29907 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
29908 Likewise.
29909
29910 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
29911 nanosleep_not_cancel with __nanosleep_nocancel.
29912 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
29913 (__nanosleep_nocancel): New macro.
29914 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
29915 function.
29916 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
29917 macro.
29918 (__nanosleep_nocancel): New prototype.
29919
29920 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
29921 pause_not_cancel with __pause_nocancel.
29922 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
29923 (__pause_nocancel): New macro.
29924 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
29925 macro.
29926 (__pause_nocancel): New prototype.
29927 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
29928
29929 2017-08-22 Martin Sebor <msebor@redhat.com>
29930
29931 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
29932 to return a pointer to the same type as the target function.
29933
29934 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29935
29936 [BZ #18822]
29937 [BZ #21986]
29938 * include/printf.h (__printf_fphex): Add attribute_hidden.
29939 (__guess_grouping): New prototype.
29940 * stdio-common/printf_fp.c (__guess_grouping): Removed.
29941 * stdio-common/reg-printf.c (__register_printf_specifier): Add
29942 libc_hidden_proto and libc_hidden_def.
29943 * stdlib/strfmon_l.c (__guess_grouping): Removed.
29944 (__vstrfmon_l): Remove the third argument passed to
29945 __guess_grouping.
29946
29947 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29948
29949 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
29950 definition for issignaling that does not rely on __MATH_TG,
29951 since __MATH_TG uses __builtin_types_compatible_p, which is only
29952 available in C mode.
29953 (CFLAGS-test-math-issignaling.cc): New variable.
29954 * math/Makefile [CXX] (tests): Add test-math-issignaling.
29955 * math/test-math-issignaling.cc: New test for C++ implementation
29956 of type-generic issignaling.
29957 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29958 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
29959 options of test-math-issignaling on powerpc64le.
29960
29961 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29962
29963 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
29964 building libc.a.
29965 (hidden_proto): Likewise.
29966 (hidden_tls_proto): Likewise.
29967 (__hidden_proto): Likewise.
29968
29969 2017-08-22 Florian Weimer <fweimer@redhat.com>
29970
29971 math: Statically link tests of internal functionality.
29972 * math/Makefile (tests): Remove atest-exp, atest-sincos,
29973 atest-exp2.
29974 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
29975 (gmp-objs): Remove assignment.
29976 (atest-exp, atest-sincos, atest-exp2): Remove targets.
29977
29978 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29979
29980 [BZ #21987]
29981 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
29982 and copy to ...
29983 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
29984 ... here.
29985 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
29986 ... and here.
29987
29988 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
29989 variable definitions above inclusion of ../Rules.
29990
29991 2017-08-21 Joseph Myers <joseph@codesourcery.com>
29992
29993 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
29994 case calling __builtin_unreachable.
29995
29996 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29997
29998 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
29999 __waitpid_nocancel.
30000 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
30001 (__waitpid_nocancel): New macro.
30002 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
30003 macro.
30004 (__waitpid_nocancel): Replace macro with a function.
30005 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
30006 function.
30007
30008 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30009 __fcntl_nocancel.
30010 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30011 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30012
30013 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30014 __writev_nocancel_nostatus.
30015 (write_call_graph): Likewise.
30016 (write_bb_counts): Likewise.
30017 * resolv/herror.c (herror): Likewise.
30018 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30019 macro.
30020 (__writev_nocancel_nostatus): New macro.
30021 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30022 Remove macro.
30023 (__writev_nocancel_nostatus): New function.
30024
30025 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30026
30027 Revert:
30028 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30029
30030 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30031 building libc.a.
30032 (hidden_proto): Likewise.
30033 (hidden_tls_proto): Likewise.
30034 (__hidden_proto): Likewise.
30035
30036 [BZ #21973]
30037 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30038 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30039 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30040 Likewise.
30041 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30042 Likewise.
30043 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30044 Likewise.
30045 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30046 Likewise.
30047 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30048 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30049 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30050 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30051 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30052 GLIBC_2.0 sqrtl symbol.
30053
30054 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30055 [__USE_MISC] (_LIB_VERSION): Likewise.
30056 [__USE_MISC] (struct exception): Likewise.
30057 [__USE_MISC] (matherr): Likewise.
30058 [__USE_MISC] (DOMAIN): Likewise.
30059 [__USE_MISC] (SING): Likewise.
30060 [__USE_MISC] (OVERFLOW): Likewise.
30061 [__USE_MISC] (UNDERFLOW): Likewise.
30062 [__USE_MISC] (TLOSS): Likewise.
30063 [__USE_MISC] (PLOSS): Likewise.
30064 [__USE_MISC] (HUGE): Likewise.
30065 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30066 * math/math-svid-compat.h: New file.
30067 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30068 and matherrl.
30069 * include/math.h [!_ISOMAC] (__matherr): Remove.
30070 * manual/arith.texi (FP Exceptions): Do not document matherr.
30071 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30072 (tests-internal): New variable.
30073 (install-lib): Do not add libieee.a.
30074 (non-lib.a): Likewise.
30075 (extra-objs): Do not add libieee.a and ieee-math.o.
30076 (CPPFLAGS-s_lib_version.c): Remove variable.
30077 ($(objpfx)libieee.a): Remove rule.
30078 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30079 * math/ieee-math.c: Remove.
30080 * math/libm-test-support.c (matherr): Remove.
30081 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30082 and license notices. Include <math-svid-compat.h> and
30083 <shlib-compat.h>.
30084 (matherr): Undefine as macro. Use compat_symbol_reference.
30085 (_LIB_VERSION): Likewise.
30086 * math/test-matherr-2.c: New file.
30087 * math/test-matherr-3.c: Likewise.
30088 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30089 declaration.
30090 (__kernel_standard_f): Likewise.
30091 (__kernel_standard_l): Likewise.
30092 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30093 <math_private.h>. Include <math-svid-compat.h>.
30094 (_LIB_VERSION): Undefine as macro.
30095 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30096 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30097 [LIBM_SVID_COMPAT], use compat_symbol.
30098 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30099 <math_private.h>. Include <math-svid-compat.h>.
30100 (matherr): Undefine as macro.
30101 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30102 compat_symbol.
30103 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30104 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30105 compat_symbol_reference.
30106 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30107 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30108 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30109 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30110 (MATHERR_D): Remove declaration.
30111 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30112 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30113 [LIBM_BUILD] (pmatherrf): Likewise.
30114 [LIBM_BUILD] (pmatherr): Likewise.
30115 [LIBM_BUILD] (pmatherrl): Likewise.
30116 (DOMAIN): Likewise.
30117 (SING): Likewise.
30118 (OVERFLOW): Likewise.
30119 (UNDERFLOW): Likewise.
30120 (TLOSS): Likewise.
30121 (PLOSS): Likewise.
30122 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30123 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30124 compat_symbol.
30125 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30126 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30127 compat_symbol.
30128 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30129 * math/w_acos_compat.c: Likewise.
30130 * math/w_acosf_compat.c: Likewise.
30131 * math/w_acosh_compat.c: Likewise.
30132 * math/w_acoshf_compat.c: Likewise.
30133 * math/w_acoshl_compat.c: Likewise.
30134 * math/w_acosl_compat.c: Likewise.
30135 * math/w_asin_compat.c: Likewise.
30136 * math/w_asinf_compat.c: Likewise.
30137 * math/w_asinl_compat.c: Likewise.
30138 * math/w_atan2_compat.c: Likewise.
30139 * math/w_atan2f_compat.c: Likewise.
30140 * math/w_atan2l_compat.c: Likewise.
30141 * math/w_atanh_compat.c: Likewise.
30142 * math/w_atanhf_compat.c: Likewise.
30143 * math/w_atanhl_compat.c: Likewise.
30144 * math/w_cosh_compat.c: Likewise.
30145 * math/w_coshf_compat.c: Likewise.
30146 * math/w_coshl_compat.c: Likewise.
30147 * math/w_exp10_compat.c: Likewise.
30148 * math/w_exp10f_compat.c: Likewise.
30149 * math/w_exp10l_compat.c: Likewise.
30150 * math/w_exp2_compat.c: Likewise.
30151 * math/w_exp2f_compat.c: Likewise.
30152 * math/w_exp2l_compat.c: Likewise.
30153 * math/w_fmod_compat.c: Likewise.
30154 * math/w_fmodf_compat.c: Likewise.
30155 * math/w_fmodl_compat.c: Likewise.
30156 * math/w_hypot_compat.c: Likewise.
30157 * math/w_hypotf_compat.c: Likewise.
30158 * math/w_hypotl_compat.c: Likewise.
30159 * math/w_j0_compat.c: Likewise.
30160 * math/w_j0f_compat.c: Likewise.
30161 * math/w_j0l_compat.c: Likewise.
30162 * math/w_j1_compat.c: Likewise.
30163 * math/w_j1f_compat.c: Likewise.
30164 * math/w_j1l_compat.c: Likewise.
30165 * math/w_jn_compat.c: Likewise.
30166 * math/w_jnf_compat.c: Likewise.
30167 * math/w_jnl_compat.c: Likewise.
30168 * math/w_lgamma_main.c: Likewise.
30169 * math/w_lgamma_r_compat.c: Likewise.
30170 * math/w_lgammaf_main.c: Likewise.
30171 * math/w_lgammaf_r_compat.c: Likewise.
30172 * math/w_lgammal_main.c: Likewise.
30173 * math/w_lgammal_r_compat.c: Likewise.
30174 * math/w_log10_compat.c: Likewise.
30175 * math/w_log10f_compat.c: Likewise.
30176 * math/w_log10l_compat.c: Likewise.
30177 * math/w_log2_compat.c: Likewise.
30178 * math/w_log2f_compat.c: Likewise.
30179 * math/w_log2l_compat.c: Likewise.
30180 * math/w_log_compat.c: Likewise.
30181 * math/w_logf_compat.c: Likewise.
30182 * math/w_logl_compat.c: Likewise.
30183 * math/w_pow_compat.c: Likewise.
30184 * math/w_powf_compat.c: Likewise.
30185 * math/w_powl_compat.c: Likewise.
30186 * math/w_remainder_compat.c: Likewise.
30187 * math/w_remainderf_compat.c: Likewise.
30188 * math/w_remainderl_compat.c: Likewise.
30189 * math/w_scalb_compat.c: Likewise.
30190 * math/w_scalbf_compat.c: Likewise.
30191 * math/w_scalbl_compat.c: Likewise.
30192 * math/w_sinh_compat.c: Likewise.
30193 * math/w_sinhf_compat.c: Likewise.
30194 * math/w_sinhl_compat.c: Likewise.
30195 * math/w_sqrt_compat.c: Likewise.
30196 * math/w_sqrtf_compat.c: Likewise.
30197 * math/w_sqrtl_compat.c: Likewise.
30198 * math/w_tgamma_compat.c: Likewise.
30199 * math/w_tgammaf_compat.c: Likewise.
30200 * math/w_tgammal_compat.c: Likewise.
30201 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30202 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30203 * sysdeps/ieee754/k_standard.c: Likewise.
30204 * sysdeps/ieee754/k_standardf.c: Likewise.
30205 * sysdeps/ieee754/k_standardl.c: Likewise.
30206 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30207 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30208 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30209 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30210 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30211 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30212 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30213 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30214 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30215 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30216 Likewise.
30217 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30218 Likewise.
30219 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30220 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30221 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30222 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30223
30224 2017-08-21 Florian Weimer <fweimer@redhat.com>
30225
30226 [BZ #21864]
30227 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30228 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30229 Move before inclusion of ../Rules.
30230
30231 2017-08-21 Florian Weimer <fweimer@redhat.com>
30232
30233 [BZ #21972]
30234 * assert/assert.h (assert): Use static_cast (bool) for C++.
30235 Use the ternary operator in the warning branch for GNU C.
30236 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30237 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30238 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30239 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30240 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30241
30242 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30243
30244 [BZ #18822]
30245 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30246 (__syscall_clock_gettime): Add attribute_hidden.
30247 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30248 (__start_context): Likewise.
30249
30250 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30251
30252 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30253 building libc.a.
30254 (hidden_proto): Likewise.
30255 (hidden_tls_proto): Likewise.
30256 (__hidden_proto): Likewise.
30257
30258 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30259
30260 * include/libc-symbols.h (attribute_hidden): Enable hidden
30261 visibility in libc.a compiled with PIE.
30262
30263 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30264
30265 [BZ #18822]
30266 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30267 Add attribute_hidden.
30268
30269 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30270
30271 [BZ #21864]
30272 * Makerules (all-nonlib): Add $(others-extras).
30273 * catgets/Makefile (others-extras): New.
30274 * elf/Makefile (others-extras): Likewise.
30275 * nss/Makefile (others-extras): Likewise.
30276
30277 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30278
30279 [BZ #18822]
30280 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30281 * elf/dl-open.c: Include <libc-internal.h>.
30282 (__libc_multiple_libcs): Removed.
30283 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30284 <hp-timing.h>.
30285 * include/libc-internal.h (__libc_multiple_libcs): New.
30286 * misc/sbrk.c: Include <libc-internal.h>.
30287 (__libc_multiple_libcs): Removed.
30288
30289 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30290
30291 [BZ #18822]
30292 * grp/initgroups.c (__nss_group_database): Removed.
30293 (__nss_initgroups_database): Likewise.
30294 * nscd/gai.c (__nss_hosts_database): Likewise.
30295 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30296 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30297 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30298 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30299 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30300 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30301 attribute_hidden.
30302 * nss/nsswitch.c (__nss_database_custom): Define only if
30303 USE_NSCD is defined.
30304 (__nss_configure_lookup): Use __nss_database_custom only if
30305 USE_NSCD is defined.
30306 * nss/nsswitch.h (__nss_database_custom): Declare only if
30307 USE_NSCD is defined. Add attribute_hidden.
30308 (__nss_setent): Add attribute_hidden.
30309 (__nss_endent): Likewise.
30310 (__nss_getent_r): Likewise.
30311 (__nss_getent): Likewise.
30312 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30313
30314 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30315
30316 [BZ #18822]
30317 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30318 libc_hidden_proto and libc_hidden_def.
30319
30320 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30321
30322 [BZ #18822]
30323 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30324 Add libc_hidden_proto.
30325 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30326 Add libc_hidden_def.
30327
30328 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30329
30330 [BZ #21974]
30331 * gmon/Makefile (routines): Remove bb_init_func and
30332 bb_exit_func.
30333 (elide-routines.os): Removed.
30334 * gmon/bb_exit_func.c: Likewise.
30335 * gmon/bb_init_func.c: Likewise.
30336 * include/sys/gmon.h (__bb): Likewise.
30337 (__bb_init_func): Likewise.
30338 (__bb_exit_func): Likewise.
30339 * sysdeps/alpha/bb_init_func.S: Likewise.
30340
30341 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30342
30343 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30344 * include/setjmp.h (____longjmp_chk): Here. Add
30345 attribute_hidden.
30346
30347 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30348
30349 [BZ #18822]
30350 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30351 attribute_hidden.
30352 (__strspn_sse2): Likewise.
30353
30354 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30355
30356 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
30357 (close_not_cancel_no_status): Likewise.
30358 (__close_nocancel): New macro.
30359 (__close_nocancel_nostatus): Likewise.
30360 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
30361 macro.
30362 (close_not_cancel): Likewise.
30363 (close_not_cancel_no_status): Likewise.
30364 (__close_nocancel): New prototype.
30365 (__close_nocancel_nostatus): New function.
30366 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30367 * catgets/open_catalog.c (__open_catalog): Replace
30368 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30369 * gmon/gmon.c (write_gmon): Likewise.
30370 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30371 * intl/loadmsgcat.c (close): Likewise.
30372 * io/ftw.c (open_dir_stream): Likewise.
30373 (ftw_startup): Likewise.
30374 * libio/fileops.c (_IO_file_open): Likewise.
30375 (_IO_file_close_mmap): Likewise.
30376 (_IO_file_close): Likewise.
30377 * libio/iopopen.c (_IO_dup2): Likewise.
30378 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30379 * locale/loadlocale.c (_nl_load_locale): Likewise.
30380 * login/utmp_file.c (pututline_file): Likewise.
30381 (endutent_file): Likewise.
30382 * misc/daemon.c (daemon): Likewise.
30383 * nscd/nscd_getai.c (__nscd_getai): Likewise.
30384 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30385 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30386 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30387 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30388 * nscd/nscd_helper.c (open_socket): Likewise.
30389 (__nscd_open_socket): Likewise.
30390 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
30391 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
30392 (__nscd_innetgr): Likewise.
30393 * nss/nss_db/db-open.c (internal_setent): Likewise.
30394 * resolv/res-close.c (__res_iclose): Likewise.
30395 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
30396 * sysdeps/posix/closedir.c (__closedir): Likewise.
30397 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
30398 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30399 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30400 (opendir_tail): Likewise.
30401 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30402 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
30403 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
30404 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
30405 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30406 (gethostid): Likewise.
30407 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30408 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30409 Likewise.
30410 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30411 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
30412 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30413 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30414 Likewise.
30415 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
30416 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
30417 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30418 Likewise.
30419 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
30420 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30421 Likewise.
30422 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30423 Likewise.
30424 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30425 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30426 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30427 __close_nocancel.
30428
30429 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
30430 (openat_not_cancel_3): Likewise.
30431 (openat64_not_cancel_3): Likewise).
30432 (openat_not_cancel_3): Likewise).
30433 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
30434 macro.
30435 (openat_not_cancel_3): Likewise.
30436 (openat64_not_cancel): Likewise.
30437 (openat64_not_cancel_3): Likewise.
30438 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
30439 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
30440 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
30441 __open{64}_nocancel.
30442 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30443 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30444 * sysdeps/posix/opendir.c (__opendirat): Likewise.
30445
30446 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30447
30448 [BZ #18822]
30449 * include/argz.h (__argz_create_sep): New function prototype.
30450 (__argz_append): Likewise.
30451 (__argz_add): Likewise.
30452 (__argz_add_sep): Likewise.
30453 (__argz_delete): Likewise.
30454 (__argz_insert): Likewise.
30455 (__argz_replace): Likewise.
30456 * string/argz.h (__argz_create_sep): Removed.
30457 (__argz_append): Likewise.
30458 (__argz_add): Likewise.
30459 (__argz_add_sep): Likewise.
30460 (__argz_delete): Likewise.
30461 (__argz_insert): Likewise.
30462 (__argz_replace): Likewise.
30463
30464 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30465
30466 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
30467 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
30468 (GNU_PROPERTY_STACK_SIZE): Likewie.
30469 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
30470 (GNU_PROPERTY_LOPROC): Likewise.
30471 (GNU_PROPERTY_HIPROC): Likewise.
30472 (GNU_PROPERTY_LOUSER): Likewise.
30473 (GNU_PROPERTY_HIUSER): Likewise.
30474 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
30475 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
30476 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
30477 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
30478 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
30479 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
30480 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
30481 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
30482 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
30483 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
30484 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
30485 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
30486 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
30487 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
30488 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
30489 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
30490 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
30491 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
30492 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
30493 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
30494 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
30495 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
30496 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
30497
30498 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30499
30500 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
30501 in C++ mode.
30502
30503 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30504
30505 [BZ #21930]
30506 * math/math.h (isinf): Check if in C or C++ mode before using
30507 __builtin_types_compatible_p, since this is a C mode feature.
30508
30509 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30510
30511 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
30512 (__write_nocancel): New macro.
30513 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
30514 Rewrite as a function prototype.
30515 (write_not_cancel): Remove macro.
30516 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
30517 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
30518 (write_gmon): Likewise.
30519 * libio/fileops.c (_IO_new_file_write): Likewise.
30520 * login/utmp_file.c (pututline_file): Likewise.
30521 (updwtmp_file): Likewise.
30522 * stdio-common/psiginfo.c (psiginfo): Likewise.
30523 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30524 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30525 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30526 Likewise.
30527 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30528 Likewise.
30529
30530 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
30531 (__read_nocancel): New macro.
30532 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30533 __read_nocancel.
30534 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
30535 macro.
30536 (__read_nocancel): New prototype.
30537 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
30538 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
30539 with __read_nocancel.
30540 * intl/loadmsgcat.c (read): Likewise.
30541 * libio/fileops.c (_IO_file_read): Likewise.
30542 * locale/loadlocale.c (_nl_load_locale): Likewise.
30543 * login/utmp_file.c (getutent_r_file): Likewise.
30544 (internal_getut_r): Likewise.
30545 (getutline_r_file): Likewise.
30546 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30547 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
30548 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30549 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30550 Likewise.
30551 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
30552 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30553 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30554 Likewise.
30555 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30556 Likewise.
30557 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30558 Likewise.
30559 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30560 Likewise.
30561 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30562
30563 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30564
30565 [BZ #21966]
30566 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
30567 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
30568 usable.
30569
30570 2017-08-17 DJ Delorie <dj@redhat.com>
30571
30572 * bug17079.c: Update to new test harness.
30573 * test-digits-dots.c: Likewise.
30574 * test-netdb.c: Likewise.
30575 * tst-field.c: Likewise.
30576 * tst-nss-getpwent.c: Likewise.
30577 * tst-nss-static.c: Likewise.
30578 * tst-nss-test1.c: Likewise.
30579 * tst-nss-test2.c: Likewise.
30580 * tst-nss-test3.c: Likewise.
30581 * tst-nss-test4.c: Likewise.
30582 * tst-nss-test5.c: Likewise.
30583
30584 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30585
30586 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
30587 (open_not_cancel_2): Likewise.
30588 (open_nocancel): New macro.
30589 (open64_nocancel): Likewise.
30590 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
30591 (open_not_cancel_2): Likewise.
30592 (__open_nocancel): New prototype.
30593 (__open64_nocancel): Likewise.
30594 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30595 __open_nocancel.
30596 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
30597 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
30598 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
30599 with __open_nocancel.
30600 * csu/check_fds.c (check_one_fd): Likewise.
30601 * gmon/gmon.c (write_gmon): Likewise.
30602 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
30603 * intl/loadmsgcat.c (open): Likewise.
30604 * libio/fileops.c (_IO_file_open): Likewise.
30605 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30606 * locale/loadlocale.c (_nl_load_locale): Likewise.
30607 * login/utmp_file.c (setutent_file): Likewise.
30608 * misc/daemon.c (daemon): Likewise.
30609 * nss/nss_db/db-open.c (internal_setent): Likewise.
30610 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30611 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
30612 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30613 (__opendir): Likewise.
30614 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30615 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30616 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30617 (gethostid): Likewise.
30618 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30619 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30620 Likewise.
30621 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30622 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
30623 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30624 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30625 Likewise.
30626 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30627 Likewise.
30628 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30629 Likewise.
30630 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
30631 Likewise.
30632 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30633 Likewise.
30634 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30635 Likewise.
30636 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30637 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30638
30639 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
30640
30641 * benchtests/bench-skeleton.c (main): Add support for
30642 latency benchmarking.
30643 * benchtests/scripts/bench.py: Add support for latency benchmarking.
30644
30645 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
30646
30647 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
30648 the startup object.
30649
30650 2017-08-17 Florian Weimer <fweimer@redhat.com>
30651
30652 * include/sys/socket.h (__opensock): Remove internal_function.
30653 * socket/opensock.c (__opensock): Likewise.
30654 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
30655
30656 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30657
30658 [BZ #21944]
30659 * signal/bits/types/__sigval_t.h: New file.
30660 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
30661 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
30662 and define sigval_t using __sigval_t.
30663 * include/bits/types/__sigval_t.h: New file.
30664 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
30665 instead of <bits/types/__sigval_t.h>.
30666 (struct sigevent): Use __sigval_t instead of sigval_t.
30667 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
30668 instead of <bits/types/__sigval_t.h>.
30669 (siginfo_t): Use __sigval_t instead of sigval_t.
30670 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
30671 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30672 (struct sigevent): Use __sigval_t instead of sigval_t.
30673 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
30674 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30675 (siginfo_t): Use __sigval_t instead of sigval_t.
30676 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
30677
30678 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30679
30680 * NEWS: Remove "[Add new features here]" for 2.27.
30681
30682 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30683
30684 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
30685 libc.so.
30686
30687 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30688
30689 * NEWS: Mention x86-64 FMA optimization.
30690
30691 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30692
30693 [BZ #21912]
30694 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30695 Add e_expf-fma.
30696 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
30697 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
30698 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
30699
30700 2017-08-16 Andreas Schwab <schwab@suse.de>
30701
30702 [BZ #16750]
30703 CVE-2009-5064
30704 * elf/ldd.bash.in: Never run file directly.
30705
30706 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
30707
30708 [BZ #21955]
30709 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
30710 (L(SP_INF_0)): Likewise.
30711
30712 2017-08-15 Florian Weimer <fweimer@redhat.com>
30713
30714 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
30715 run-built-tests.
30716
30717 2017-08-15 Florian Weimer <fweimer@redhat.com>
30718
30719 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
30720 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
30721 BROKEN_THREAD_SIGNALS code.
30722 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
30723 request_list): Remove caller_pid member used for
30724 BROKEN_THREAD_SIGNALS.
30725 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
30726 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30727 Remove BROKEN_THREAD_SIGNALS support.
30728 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
30729 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
30730
30731 2017-08-15 Florian Weimer <fweimer@redhat.com>
30732
30733 * gmon/Makefile (tests): Add tst-gmon.
30734 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
30735 Set.
30736 (tests-special): Add tst-gmon-prof.out.
30737 (tst-gmon.out): Depend on clean-tst-gmon-data.
30738 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
30739 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
30740 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
30741 startup object.
30742 * aclocal.m4 (GPROF): Set and substitute.
30743 * config.amke.in (GPROF): Set.
30744 * configure: Regenerate.
30745
30746 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
30747
30748 * elf/elf.h A (NT_PPC_TAR): New macro.
30749 (NT_PPC_PPR): Likewise.
30750 (NT_PPC_DSCR): Likewise.
30751 (NT_PPC_EBB): Likewise.
30752 (NT_PPC_PMU): Likewise.
30753 (NT_PPC_TM_CGPR): Likewise.
30754 (NT_PPC_TM_CFPR): Likewise.
30755 (NT_PPC_TM_CVMX): Likewise.
30756 (NT_PPC_TM_CVSX): Likewise.
30757 (NT_PPC_TM_SPR): Likewise.
30758 (NT_PPC_TM_CTAR): Likewise.
30759 (NT_PPC_TM_CPPR): Likewise.
30760 (NT_PPC_TM_CDSCR): Likewise.
30761
30762 2017-08-15 Florian Weimer <fweimer@redhat.com>
30763
30764 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
30765 regparm (2) instead of internal_function.
30766 (_MCOUNT_DECL): Adjust.
30767
30768 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
30769
30770 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
30771 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
30772
30773 2017-08-14 Joseph Myers <joseph@codesourcery.com>
30774
30775 * conform/data/sys/wait.h-data (si_value): Do not expect for
30776 XPG42.
30777
30778 2017-08-14 Florian Weimer <fweimer@redhat.com>
30779
30780 [BZ #21962]
30781 NSS: Create stubs for accidentally exported lookup functions.
30782 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
30783 Remove declaration.
30784 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
30785 (ether_hostton): Call __nss_ethers_lookup2 instead.
30786 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
30787 (ether_ntohost): Call __nss_ethers_lookup2 instead.
30788 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
30789 (setup): Call __nss_netgroup_lookup2 instead.
30790 * nss/Makefile (routines): Add compat-lookup.
30791 * nss/Versions (GLIBC_2.27): Add symbol version.
30792 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
30793 (DB_COMPAT_FCT): Remove.
30794 * nss/compat-lookup.c: New file.
30795 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
30796 from databases.def.
30797 * nss/service-lookup.c (NO_COMPAT): Remove definition.
30798 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
30799 (netname2user): Call __nss_publickey_lookup2 instead.
30800 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
30801 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
30802 instead.
30803
30804 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30805 Sergei Trofimovich <slyfox@inbox.ru>
30806
30807 [BZ #21908]
30808 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
30809 Rename to MMAP2_PAGE_UNIT.
30810 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
30811 __OFF_T_MATCHES_OFF64_T is not defined.
30812 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
30813 uint64_t.
30814 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
30815 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
30816
30817 2017-08-14 Florian Weimer <fweimer@redhat.com>
30818
30819 i386: Do not set internal_function.
30820 * config.h.in (USE_REGPARMS, internal_function): Remove.
30821 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
30822 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
30823
30824 2017-08-14 Florian Weimer <fweimer@redhat.com>
30825
30826 * elf/dl-init.c (_dl_init): Remove internal_function.
30827 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
30828 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
30829
30830 2017-08-14 Florian Weimer <fweimer@redhat.com>
30831
30832 * elf/rtld.c (_dl_start): Remove internal_function.
30833 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
30834 _dl_start.
30835
30836 2017-08-14 Florian Weimer <fweimer@redhat.com>
30837
30838 * elf/dl-fini.c (_dl_fini): Remove internal_function
30839 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
30840
30841 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
30842
30843 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
30844 (bit_cpu_SHSTK): Likewise.
30845 (index_cpu_IBT): Likewise.
30846 (index_cpu_SHSTK): Likewise.
30847 (reg_IBT): Likewise.
30848 (reg_SHSTK): Likewise.
30849 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30850 Handle index_cpu_IBT and index_cpu_SHSTK.
30851
30852 2017-08-14 Mike FABIAN <mfabian@redhat.com>
30853
30854 [BZ #19982]
30855 * po/fr.po: Fix spelling mistake.
30856
30857 2017-08-13 Florian Weimer <fweimer@redhat.com>
30858
30859 * elf/dl-addr.c (_dl_addr): Remove internal_function.
30860 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
30861 (_dl_catch_error, _dl_receive_error): Likewise.
30862 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
30863 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
30864 (_dl_deallocate_tls): Likewise.
30865 * include/dlfcn.h (_dl_addr): Likewise.
30866 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
30867 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
30868 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
30869 Likewise.
30870
30871 2017-08-13 Florian Weimer <fweimer@redhat.com>
30872
30873 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
30874 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
30875 internal_function.
30876 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
30877
30878 2017-08-13 Florian Weimer <fweimer@redhat.com>
30879
30880 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
30881 internal_function.
30882 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
30883 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
30884 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
30885 internal_function from _dl_make_stack_executable_hook member.
30886 (_dl_make_stack_executable): Remove internal_function.
30887 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
30888 Likewise.
30889 * sysdeps/unix/sysv/linux/dl-execstack.c
30890 (_dl_make_stack_executable): Likewise.
30891
30892 2017-08-13 Florian Weimer <fweimer@redhat.com>
30893
30894 * sysdeps/unix/sysv/linux/netlinkaccess.h
30895 (__netlink_assert_response): Remove internal_function.
30896 * sysdeps/unix/sysv/linux/netlink_assert_response.c
30897 (__netlink_assert_response): Likewise.
30898
30899 2017-08-13 Florian Weimer <fweimer@redhat.com>
30900
30901 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
30902 internal_function.
30903 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
30904
30905 2017-08-13 Florian Weimer <fweimer@redhat.com>
30906
30907 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
30908 internal_function.
30909 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
30910 * inet/netgroup.h (__internal_setnetgrent)
30911 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30912 * inet/getnetgrent_r.c (__internal_setnetgrent)
30913 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30914 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
30915 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
30916 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
30917 * nss/nsswitch.h (db_lookup_function): Likewise.
30918
30919 2017-08-13 Florian Weimer <fweimer@redhat.com>
30920
30921 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
30922 Remove internal_function.
30923 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
30924 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
30925 message argument on the stack.
30926 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
30927 Likeweise.
30928
30929 2017-08-12 Mike FABIAN <mfabian@redhat.com>
30930
30931 Adapt test case data to the changes in the thousands
30932 separators.
30933
30934 [BZ #20756]
30935 * localedata/tst-langinfo.sh: Adapt test case data.
30936 * stdlib/tst-strfmon_l.c: Likewise.
30937 * stdlib/tst-strtod4.c: Likewise.
30938 * stdlib/tst-strtod5i.c: Likewise.
30939
30940 2017-08-11 Florian Weimer <fweimer@redhat.com>
30941
30942 [BZ #21242]
30943 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
30944 Suppress pedantic warning resulting from statement expression.
30945 (__ASSERT_FUNCTION): Add missing __extension__.
30946
30947 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30948
30949 * benchtests/bench-memmove-large.c: Print output in JSON
30950 format.
30951 * benchtests/bench-memmove.c: Likewise.
30952
30953 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
30954 * benchtests/bench-memchr.c (do_one_test): Likewise.
30955 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
30956 * benchtests/bench-memcpy.c (do_one_test): Likewise.
30957 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
30958 * benchtests/bench-memmove.c (do_one_test): Likewise.
30959 * benchtests/bench-memset-large.c (do_one_test): Likewise.
30960 * benchtests/bench-memset.c (do_one_test): Likewise.
30961 * benchtests/bench-string.h (test_init): Remove memsets.
30962
30963 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
30964
30965 * manual/lang.texi
30966 (Computing the Width of an Integer Data Type): Rename section to
30967 "Width of an Integer Type". Remove inaccurate statement regarding
30968 lack of C language facilities for determining width of integer
30969 types, and reorder content to improve flow and context of
30970 discussion.
30971
30972 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
30973
30974 * lang.texi (va_copy): Change standard from ISO to C99.
30975 (__va_copy): Add standard and header annotation.
30976 Update description for clarity of origins and current use.
30977
30978 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30979
30980 [BZ #21941]
30981 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
30982 xssqrtqp requires operands to be in Vector Registers
30983 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
30984 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
30985 (__ieee754_sqrtf128): Likewise.
30986
30987 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
30988
30989 * sysdeps/aarch64/memcmp.S (memcmp):
30990 Rewrite of optimized memcmp.
30991
30992 2017-08-10 Florian Weimer <fweimer@redhat.com>
30993
30994 Introduce ld.so exceptions.
30995 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
30996 (_dl_exception_create, _dl_exception_create_format)
30997 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
30998 (_dl_catch_exception): Declare.
30999 (_dl_catch_error): Update comment.
31000 * elf/dl-error-skeleton.c (struct catch): Replace objname,
31001 errstring, malloced members with exception member.
31002 (_dl_out_of_memory): Remove.
31003 (fatal_error): New function, extracted from _dl_signal_error.
31004 (_dl_signal_exception, _dl_signal_cexception): New functions.
31005 (_dl_signal_error): Call _dl_exception_create to allocate an
31006 exception object.
31007 (_dl_catch_exception): New function, based on _dl_catch_error.
31008 (_dl_catch_error): Implement using _dl_catch_exception.
31009 * elf/dl-exception.c: New file.
31010 * elf/Makefile (dl-routines): Add dl-exception.
31011 (elide-routines.os): Likewise.
31012 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31013 _dl_exception_create_format, _dl_exception_free.
31014 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31015 _dl_signal_exception.
31016 * elf/dl-lookup.c (make_string): Remove.
31017 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31018 _dl_signal_cexception, _dl_exception_free.
31019 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31020 _dl_signal_exception.
31021 * elf/dl-sym.c (do_sym): Likewise.
31022 * elf/dl-version.c (make_string): Remove.
31023 (match_symbol): Use _dl_exception_create_format,
31024 _dl_signal_cexception, _dl_exception_free.
31025 (_dl_check_map_versions): Likewise.
31026 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
31027 _dl_catch_exception.
31028 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
31029 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
31030 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
31031 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31032 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31033 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31034 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31035 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31036 Likewise.
31037 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31038 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31039 (ld.so): Likewise.
31040 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31041 (ld.so): Likewise.
31042 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31043 Likewise.
31044 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31045 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31046 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31047 Likewise.
31048 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31049 Likewise.
31050 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31051
31052 2017-08-10 Florian Weimer <fweimer@redhat.com>
31053
31054 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31055 attribute_hidden, internal_function.
31056 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31057 internal_function.
31058
31059 2017-08-10 Florian Weimer <fweimer@redhat.com>
31060
31061 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31062 function which calls __builtin_unreachable.
31063
31064 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31065
31066 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31067 Indian monetary formatting
31068 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31069 test cases.
31070
31071 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31072
31073 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31074 Fix typo in comment.
31075
31076 [BZ #21928]
31077 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31078 PTRACE_SEIZE_DEVEL): Remove.
31079 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31080 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31081 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31082 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31083 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31084
31085 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31086
31087 * posix/bits/types.h (__qaddr_t): Remove.
31088
31089 [BZ #21457]
31090 * sysdeps/arm/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/generic/sys/ucontext.h (__ctx): New macro.
31094 (ucontext_t): Use __ctx with uc_flags.
31095 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31096 (__ctxt): Likewise.
31097 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31098 __glibc_reserved1.
31099 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31100 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31101 __glibc_reserved1.
31102 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31103 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31104 __glibc_reserved1.
31105 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31106 macro.
31107 (ucontext_t): Use __ctx with uc_flags.
31108 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31109 (ucontext_t): Use __ctx with uc_flags.
31110 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31111 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31112 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31113 (ucontext_t): Use __ctx with uc_flags.
31114 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31115 undefine further down.
31116 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31117 __glibc_reserved1.
31118 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31119 undefine further down.
31120 (ucontext_t): Use __ctx with uc_flags.
31121 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31122 undefine further down.
31123 (ucontext_t): Use __ctx with uc_flags.
31124 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31125 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31126 Rename uc_pad to __glibc_reserved1.
31127 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31128 undefine further down.
31129 (ucontext_t): Use __ctx with uc_flags.
31130 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31131 further down.
31132 (ucontext_t): Use __ctx with uc_flags.
31133 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31134 __ctx with uc_flags.
31135 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31136 (ucontext_t): Use __ctx with uc_flags.
31137 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31138 __ctx with uc_flags.
31139
31140 2017-08-09 Florian Weimer <fweimer@redhat.com>
31141
31142 [BZ #21932]
31143 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31144 before early return.
31145
31146 2017-08-09 Andreas Schwab <schwab@suse.de>
31147
31148 [BZ #21041]
31149 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31150 renamed alias.
31151
31152 [BZ #21041]
31153 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31154 tst-compat-forwarder.
31155 (modules-names): Add tst-compat-forwarder-mod.
31156 ($(objpfx)tst-compat-forwarder): Depend on
31157 $(objpfx)tst-compat-forwarder-mod.so.
31158 * nptl/tst-compat-forwarder.c: New file.
31159 * nptl/tst-compat-forwarder-mod.c: New file.
31160
31161 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31162
31163 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31164 comments.
31165
31166 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31167 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31168 memcpy_falkor.
31169 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31170 Bump.
31171 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31172 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31173 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31174 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31175 Add falkor.
31176 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31177 New macro.
31178
31179 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31180
31181 [BZ #759]
31182 * manual/setjmp.texi (getcontex): Document uc_stack value
31183 compatibility differences.
31184
31185 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31186
31187 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31188 (old_malloc_hook): Likewise.
31189 (old_memalign_hook): Likewise.
31190 (old_realloc_hook): Likewise.
31191 (struct hdr): Likewise.
31192 (flood): Likewise.
31193 (freehook): Likewise.
31194 (mallochook): Likewise.
31195 (memalignhook): Likewise.
31196 (reallochook): Likewise.
31197 (mprobe): Likewise.
31198 * malloc/mtrace.c (mallwatch): Likewise.
31199 (tr_old_free_hook): Likewise.
31200 (tr_old_malloc_hook): Likewise.
31201 (tr_old_realloc_hook): Likewise.
31202 (tr_old_memalign_hook): Likewise.
31203 (tr_where): Likewise.
31204 (lock_and_info): Likewise.
31205 (tr_freehook): Likewise.
31206 (tr_mallochook): Likewise.
31207 (tr_reallochook): Likewise.
31208 (tr_memalignhook): Likewise.
31209 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31210 * misc/mmap.c (__mmap): Likewise.
31211 * misc/mmap64.c (__mmap64): Likewise.
31212 * misc/mprotect.c (__mprotect): Likewise.
31213 * misc/msync.c (msync): Likewise.
31214 * misc/munmap.c (__munmap): Likewise.
31215 * posix/posix_madvise.c (posix_madvise): Likewise.
31216 * socket/send.c (__send): Likewise.
31217 * socket/sendto.c (__sendto): Likewise.
31218 * socket/setsockopt.c (__setsockopt): Likewise.
31219 * string/memcmp.c (__ptr_t): Remove macro.
31220 (MEMCMP): Use void * instead of ptr_t.
31221 * string/memrchr.c (__ptr_t): Remove macro.
31222 (__memrchr): Use void * instead of ptr_t.
31223 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31224 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31225 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31226 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31227 * sysdeps/mach/msync.c (msync): Likewise.
31228 * sysdeps/mach/munmap.c (__munmap): Likewise.
31229 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31230 Likewise.
31231 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31232 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31233 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31234 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31235 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31236 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31237 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31238 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31239 Likewise.
31240 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31241 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31242 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31243 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31244 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31245 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31246 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31247 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31248 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31249 Likewise.
31250 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31251 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31252 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31253 (MEMCMP): Use void * instead of ptr_t.
31254 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31255 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31256
31257 2017-08-08 Florian Weimer <fweimer@redhat.com>
31258
31259 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31260 return statement.
31261
31262 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31263
31264 [BZ #21913]
31265 * csu/libc-tls.c: Include <startup.h> first.
31266 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31267 * elf/dl-tunables.c: Include <startup.h> first.
31268 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31269 * sysdeps/generic/startup.h: New file.
31270 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31271 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31272 (I386_USE_SYSENTER): New. Defined to 0.
31273
31274 2017-08-08 Andreas Schwab <schwab@suse.de>
31275
31276 [BZ #21041]
31277 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31278 * nptl/pt-system.c (system): Likewise.
31279
31280 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31281
31282 [BZ #21780]
31283 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31284 EOPNOTSUPP.
31285 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31286 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31287 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31288 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31289 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31290 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31291 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31292
31293 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31294
31295 [BZ #21899]
31296 * bits/sigaction.h (struct sigaction): Define sa_handler and
31297 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31298 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31299 [__USE_XOPEN_EXTENDED].
31300 (SA_RESTART): Likewise.
31301 (SA_NODEFER): Likewise.
31302 (SA_RESETHAND): Likewise.
31303 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31304 (struct sigaction): Define sa_handler and sa_sigaction using union
31305 also for [__USE_XOPEN_EXTENDED].
31306 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31307 [__USE_XOPEN_EXTENDED].
31308 (SA_RESTART): Likewise.
31309 (SA_NODEFER): Likewise.
31310 (SA_RESETHAND): Likewise.
31311 * sysdeps/unix/sysv/linux/bits/sigaction.h
31312 (struct sigaction): Define sa_handler and sa_sigaction using union
31313 also for [__USE_XOPEN_EXTENDED].
31314 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31315 [__USE_XOPEN_EXTENDED].
31316 (SA_RESTART): Likewise.
31317 (SA_NODEFER): Likewise.
31318 (SA_RESETHAND): Likewise.
31319 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31320 (struct sigaction): Define sa_handler and sa_sigaction using union
31321 also for [__USE_XOPEN_EXTENDED].
31322 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31323 [__USE_XOPEN_EXTENDED].
31324 (SA_RESTART): Likewise.
31325 (SA_NODEFER): Likewise.
31326 (SA_RESETHAND): Likewise.
31327 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31328 (struct sigaction): Define sa_handler and sa_sigaction using union
31329 also for [__USE_XOPEN_EXTENDED].
31330 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31331 [__USE_XOPEN_EXTENDED].
31332 (SA_RESTART): Likewise.
31333 (SA_NODEFER): Likewise.
31334 (SA_RESETHAND): Likewise.
31335 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31336 (struct sigaction): Define sa_handler and sa_sigaction using union
31337 also for [__USE_XOPEN_EXTENDED].
31338 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31339 [__USE_XOPEN_EXTENDED].
31340 (SA_RESTART): Likewise.
31341 (SA_NODEFER): Likewise.
31342 (SA_RESETHAND): Likewise.
31343 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
31344 (struct sigaction): Define sa_handler and sa_sigaction using union
31345 also for [__USE_XOPEN_EXTENDED].
31346 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31347 [__USE_XOPEN_EXTENDED].
31348 (SA_RESTART): Likewise.
31349 (SA_NODEFER): Likewise.
31350 (SA_RESETHAND): Likewise.
31351 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
31352 (struct sigaction): Define sa_handler and sa_sigaction using union
31353 also for [__USE_XOPEN_EXTENDED].
31354 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31355 [__USE_XOPEN_EXTENDED].
31356 (SA_RESTART): Likewise.
31357 (SA_NODEFER): Likewise. Define directly rather than as alias.
31358 (SA_RESETHAND): Likewise.
31359 (SA_INTERRUPT): Define only for [__USE_MISC].
31360 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
31361 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
31362 [__USE_MISC].
31363 (SA_STACK): Define only for [__USE_MISC].
31364 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
31365 (struct sigaction): Define sa_handler and sa_sigaction using union
31366 also for [__USE_XOPEN_EXTENDED].
31367 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31368 [__USE_XOPEN_EXTENDED].
31369 (SA_RESTART): Likewise.
31370 (SA_NODEFER): Likewise.
31371 (SA_RESETHAND): Likewise.
31372 (SA_NOPTRACE): Define only for [__USE_MISC].
31373
31374 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31375 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31376 (struct catalog_info): Likewise.
31377 * inet/htontest.c (lo): Likewise.
31378 (foo): Likewise.
31379 * inet/inet_lnaof.c (inet_lnaof): Likewise.
31380 * inet/inet_net.c (inet_network): Likewise.
31381 * inet/inet_netof.c (inet_netof): Likewise.
31382 * inet/rcmd.c (__ivaliduser): Likewise.
31383 (iruserok): Likewise.
31384 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
31385 * locale/programs/locale-spec.c (locale_special): Likewise.
31386 * nis/nis_findserv.c (struct findserv_req): Likewise.
31387 (__nis_findfastest_with_timeout): Likewise.
31388 * nss/test-netdb.c (test_network): Likewise.
31389 * resolv/inet_neta.c (inet_neta): Likewise.
31390 * resolv/ns_date.c (ns_datetosecs): Likewise.
31391 (SECS_PER_DAY): Likewise.
31392 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
31393 Likewise.
31394 * resolv/res_comp.c (__putlong): Likewise.
31395 (__putshort): Likewise.
31396 (_getlong): Likewise.
31397 (_getshort): Likewise.
31398 * resolv/res_debug.c (p_time): Likewise.
31399 (precsize_ntoa): Likewise.
31400 (precsize_aton): Likewise.
31401 (latlon2ul): Likewise.
31402 (loc_aton): Likewise.
31403 (loc_ntoa): Likewise.
31404 * resolv/res_hconf.c (struct netaddr): Likewise.
31405 (_res_hconf_reorder_addrs): Likewise.
31406 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
31407 (clnttcp_control): Likewise.
31408 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31409 (clntudp_control): Likewise.
31410 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
31411 (clntunix_control): Likewise.
31412 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
31413 * sunrpc/rpc/auth.h (union des_block): Likewise.
31414 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
31415 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
31416 (xdrrec_create): Likewise.
31417 (xdrrec_endofrecord): Likewise.
31418 (flush_out): Likewise.
31419 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
31420 (xdrstdio_putlong): Likewise.
31421 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
31422 Likewise.
31423
31424 * misc/sys/cdefs.h (__long_double_t): Remove.
31425 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
31426 instead of __long_double_t,
31427 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
31428
31429 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
31430
31431 * benchtests/scripts/compare_strings.py: Avoid display error when
31432 running on a text terminal.
31433
31434 * benchtests/scripts/compare_strings.py (main): Add an
31435 optional -base option.
31436 (process_results): New argument base_func.
31437
31438 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
31439 hardcoding memcpy.
31440 * benchtests/bench-memcpy-large.c (test_name): Likewise.
31441 * benchtests/bench-memcpy-random.c (test_name): Likewise.
31442
31443 2017-08-07 Andreas Schwab <schwab@suse.de>
31444
31445 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
31446 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
31447 * intl/Makefile ($(objpfx)tst-gettext.out)
31448 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
31449 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
31450 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
31451 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
31452 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
31453 * posix/Makefile ($(objpfx)globtest.out)
31454 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
31455 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
31456 ($(objpfx)tst-printf.out): Likewise.
31457 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
31458 ($(objpfx)tst-setcontext3.out): Likewise.
31459
31460 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
31461
31462 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31463 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
31464 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
31465 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
31466 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
31467 and mptan-fma.
31468 (CFLAGS-doasin-fma.c): New.
31469 (CFLAGS-dosincos-fma.c): Likewise.
31470 (CFLAGS-e_asin-fma.c): Likewise.
31471 (CFLAGS-e_atan2-fma.c): Likewise.
31472 (CFLAGS-e_exp-fma.c): Likewise.
31473 (CFLAGS-e_log-fma.c): Likewise.
31474 (CFLAGS-e_pow-fma.c): Likewise.
31475 (CFLAGS-halfulp-fma.c): Likewise.
31476 (CFLAGS-mpa-fma.c): Likewise.
31477 (CFLAGS-mpatan-fma.c): Likewise.
31478 (CFLAGS-mpatan2-fma.c): Likewise.
31479 (CFLAGS-mpexp-fma.c): Likewise.
31480 (CFLAGS-mplog-fma.c): Likewise.
31481 (CFLAGS-mpsqrt-fma.c): Likewise.
31482 (CFLAGS-mptan-fma.c): Likewise.
31483 (CFLAGS-s_atan-fma.c): Likewise.
31484 (CFLAGS-sincos32-fma.c): Likewise.
31485 (CFLAGS-slowexp-fma.c): Likewise.
31486 (CFLAGS-slowpow-fma.c): Likewise.
31487 (CFLAGS-s_sin-fma.c): Likewise.
31488 (CFLAGS-s_tan-fma.c): Likewise.
31489 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
31490 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
31491 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
31492 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
31493 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
31494 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
31495 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
31496 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
31497 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
31498 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
31499 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
31500 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
31501 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
31502 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
31503 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
31504 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
31505 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
31506 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
31507 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
31508 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
31509 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
31510 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
31511 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
31512 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
31513 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
31514 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31515 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31516 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
31517 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31518 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31519 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31520
31521 2017-08-04 Joseph Myers <joseph@codesourcery.com>
31522
31523 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
31524 (min_of_type_f): New macro.
31525 (min_of_type_): Likewise.
31526 (min_of_type_l): Likewise.
31527 (min_of_type_f128): Likewise.
31528 (min_of_type): Define using __MATH_TG and taking an expression
31529 argument.
31530 (math_check_force_underflow): Pass expression instead of type to
31531 min_of_type.
31532 (math_check_force_underflow_nonneg): Likewise.
31533
31534 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31535
31536 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31537 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
31538 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
31539
31540 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31541
31542 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31543 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
31544 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
31545 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
31546 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
31547 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
31548 memcpy_chk-nonshared, mempcpy_chk-nonshared,
31549 memmove_chk-nonshared and memset_chk-nonshared
31550 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
31551 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
31552 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
31553 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
31554 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
31555 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
31556 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
31557 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
31558 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
31559 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
31560 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
31561 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
31562 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
31563 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
31564 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
31565 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
31566 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
31567 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
31568 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
31569 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
31570 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
31571 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
31572 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
31573 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
31574 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
31575 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
31576 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
31577 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
31578 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
31579 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
31580 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
31581 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
31582 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
31583 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31584 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31585 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
31586 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
31587 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
31588 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
31589 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
31590 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
31591 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
31592 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
31593 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
31594 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
31595 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
31596 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
31597 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
31598 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
31599 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
31600 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
31601 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
31602 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
31603 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
31604 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
31605 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
31606 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
31607 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
31608 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
31609 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
31610 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
31611 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
31612 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
31613 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
31614 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
31615 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
31616 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
31617 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
31618 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
31619 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
31620 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
31621 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
31622 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
31623 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
31624 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
31625 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
31626 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31627 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31628 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31629 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31630 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31631 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31632 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31633 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31634 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
31635 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
31636 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
31637 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
31638 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31639 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31640 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31641 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31642 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31643 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31644 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
31645 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
31646 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
31647 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
31648 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
31649 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
31650 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
31651 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
31652 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
31653 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
31654 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
31655 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
31656 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
31657 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
31658
31659 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31660
31661 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
31662 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
31663 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
31664 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
31665 svml_d_log2_core-sse2, svml_d_log4_core-sse,
31666 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
31667 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
31668 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
31669 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
31670 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
31671 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
31672 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
31673 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
31674 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
31675 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
31676 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
31677 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
31678 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
31679 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
31680 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
31681 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
31682 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
31683 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
31684 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
31685 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
31686 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
31687 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
31688 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
31689 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
31690 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
31691 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
31692 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
31693 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
31694 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
31695 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
31696 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
31697 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
31698 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
31699 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
31700 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
31701 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
31702 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
31703 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
31704 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
31705 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
31706 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
31707 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
31708 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
31709 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
31710 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
31711 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
31712 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
31713 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
31714 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
31715 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
31716 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
31717 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
31718 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
31719 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
31720 ...
31721 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
31722 Don't include <sysdep.h> nor <init-arch.h>.
31723 (_ZGVbN2v_cos): Removed.
31724 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
31725 ...
31726 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
31727 Don't include <sysdep.h> nor <init-arch.h>.
31728 (_ZGVdN4v_cos): Removed.
31729 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
31730 ...
31731 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
31732 Don't include <sysdep.h> nor <init-arch.h>.
31733 (_ZGVeN8v_cos): Removed.
31734 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
31735 ...
31736 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
31737 Don't include <sysdep.h> nor <init-arch.h>.
31738 (_ZGVbN2v_exp): Removed.
31739 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
31740 ...
31741 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
31742 Don't include <sysdep.h> nor <init-arch.h>.
31743 (_ZGVdN4v_exp): Removed.
31744 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
31745 ...
31746 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
31747 Don't include <sysdep.h> nor <init-arch.h>.
31748 (_ZGVeN8v_exp): Removed.
31749 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
31750 ...
31751 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
31752 Don't include <sysdep.h> nor <init-arch.h>.
31753 (_ZGVbN2v_log): Removed.
31754 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
31755 ...
31756 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
31757 Don't include <sysdep.h> nor <init-arch.h>.
31758 (_ZGVdN4v_log): Removed.
31759 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
31760 ...
31761 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
31762 Don't include <sysdep.h> nor <init-arch.h>.
31763 (_ZGVeN8v_log): Removed.
31764 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
31765 ...
31766 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
31767 Don't include <sysdep.h> nor <init-arch.h>.
31768 (_ZGVbN2vv_pow): Removed.
31769 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
31770 ...
31771 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
31772 Don't include <sysdep.h> nor <init-arch.h>.
31773 (_ZGVdN4vv_pow): Removed.
31774 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
31775 ...
31776 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
31777 Don't include <sysdep.h> nor <init-arch.h>.
31778 (_ZGVeN8vv_pow): Removed.
31779 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
31780 ...
31781 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
31782 Don't include <sysdep.h> nor <init-arch.h>.
31783 (_ZGVbN2v_sin): Removed.
31784 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
31785 ...
31786 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
31787 Don't include <sysdep.h> nor <init-arch.h>.
31788 (_ZGVbN4v_sin): Removed.
31789 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
31790 ...
31791 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
31792 Don't include <sysdep.h> nor <init-arch.h>.
31793 (_ZGVbN8v_sin): Removed.
31794 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
31795 ...
31796 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
31797 Don't include <sysdep.h> nor <init-arch.h>.
31798 (_ZGVbN2vvv_sincos): Removed.
31799 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
31800 ...
31801 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
31802 Don't include <sysdep.h> nor <init-arch.h>.
31803 (_ZGVdN4vvv_sincos): Removed.
31804 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
31805 ...
31806 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
31807 Don't include <sysdep.h> nor <init-arch.h>.
31808 (_ZGVeN8vvv_sincos): Removed.
31809 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
31810 ...
31811 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
31812 Don't include <sysdep.h> nor <init-arch.h>.
31813 (_ZGVeN16v_cosf): Removed.
31814 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
31815 ...
31816 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
31817 Don't include <sysdep.h> nor <init-arch.h>.
31818 (_ZGVbN4v_cosf): Removed.
31819 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
31820 ...
31821 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
31822 Don't include <sysdep.h> nor <init-arch.h>.
31823 (_ZGVdN8v_cosf): Removed.
31824 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
31825 ...
31826 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
31827 Don't include <sysdep.h> nor <init-arch.h>.
31828 (_ZGVeN16v_expf): Removed.
31829 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
31830 ...
31831 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
31832 Don't include <sysdep.h> nor <init-arch.h>.
31833 (_ZGVbN4v_expf): Removed.
31834 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
31835 ...
31836 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
31837 Don't include <sysdep.h> nor <init-arch.h>.
31838 (_ZGVdN8v_expf): Removed.
31839 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
31840 ...
31841 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
31842 Don't include <sysdep.h> nor <init-arch.h>.
31843 (_ZGVeN16v_logf): Removed.
31844 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
31845 ...
31846 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
31847 Don't include <sysdep.h> nor <init-arch.h>.
31848 (_ZGVbN4v_logf): Removed.
31849 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
31850 ...
31851 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
31852 Don't include <sysdep.h> nor <init-arch.h>.
31853 (_ZGVdN8v_logf): Removed.
31854 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
31855 ...
31856 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
31857 Don't include <sysdep.h> nor <init-arch.h>.
31858 (_ZGVeN16vv_powf): Removed.
31859 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
31860 ...
31861 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
31862 Don't include <sysdep.h> nor <init-arch.h>.
31863 (_ZGVbN4vv_powf): Removed.
31864 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
31865 ...
31866 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
31867 Don't include <sysdep.h> nor <init-arch.h>.
31868 (_ZGVdN8vv_powf): Removed.
31869 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
31870 ...
31871 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
31872 Don't include <sysdep.h> nor <init-arch.h>.
31873 (_ZGVeN16vvv_sincosf): Removed.
31874 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
31875 ...
31876 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
31877 Don't include <sysdep.h> nor <init-arch.h>.
31878 (_ZGVbN4vvv_sincosf): Removed.
31879 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
31880 ...
31881 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
31882 Don't include <sysdep.h> nor <init-arch.h>.
31883 (_ZGVdN8vvv_sincosf): Removed.
31884 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
31885 ...
31886 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
31887 Don't include <sysdep.h> nor <init-arch.h>.
31888 (_ZGVeN16v_sinf): Removed.
31889 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
31890 ...
31891 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
31892 Don't include <sysdep.h> nor <init-arch.h>.
31893 (_ZGVbN4v_sinf): Removed.
31894 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
31895 ...
31896 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
31897 Don't include <sysdep.h> nor <init-arch.h>.
31898 (_ZGVdN8v_sinf): Removed.
31899
31900 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31901
31902 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31903 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
31904 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
31905 s_rint-sse4_1 and s_rintf-sse4_1.
31906 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
31907 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
31908 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
31909 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
31910 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
31911 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
31912 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
31913 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
31914 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
31915 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
31916 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
31917 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31918 (__ceil): Removed.
31919 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
31920 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
31921 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31922 (__ceilf): Removed.
31923 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
31924 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
31925 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31926 (__floor): Removed.
31927 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
31928 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
31929 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31930 (__floorf): Removed.
31931 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
31932 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
31933 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31934 (__nearbyint): Removed.
31935 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
31936 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
31937 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31938 (__nearbyintf): Removed.
31939 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
31940 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
31941 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31942 (__rint): Removed.
31943 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
31944 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
31945 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31946 (__rintf): Removed.
31947
31948 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31949
31950 * sysdeps/i386/start.S (_start): Check Check PIC instead of
31951 SHARED. Avoid dynamic relocation against main in static PIE.
31952
31953 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31954
31955 [BZ #21815]
31956 * elf/Makefile (CFLAGS-tst-prelink.c): New.
31957 (LDFLAGS-tst-prelink): Likewise.
31958
31959 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31960
31961 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
31962 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
31963 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
31964 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
31965 (INTERNAL_SYSCALL_NCS): Likewise.
31966 (LOADARGS_1): Likewise.
31967 (LOADARGS_5): Likewise.
31968 (RESTOREARGS_1): Likewise.
31969 (RESTOREARGS_5): Likewise.
31970
31971 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31972
31973 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
31974 (MEMPCPY_SYMBOL): Likewise.
31975 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
31976 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
31977 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
31978 in libc.a.
31979 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
31980 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
31981 Likewise.
31982 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
31983 (__hidden_ver1): Don't use in libc.a.
31984 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
31985 (__mempcpy): Don't create a weak alias in libc.a.
31986 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
31987 libc.a.
31988 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
31989 (__hidden_ver1): Don't use in libc.a.
31990
31991 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31992
31993 * config.make.in (have-insert): New.
31994 * configure.ac (libc_cv_insert): New. Set to yes if linker
31995 supports INSERT in linker script.
31996 (AC_SUBST(libc_cv_insert): New.
31997 * configure: Regenerated.
31998 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
31999 if $(have-insert) == yes.
32000
32001 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32002
32003 * elf/Makefile (tests): Add vismain only if
32004 $(have-protected-data) == yes.
32005 (tests-pie): Likewise.
32006
32007 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32008
32009 [BZ #21871]
32010 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32011 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32012
32013 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32014
32015 [BZ #21790]
32016 * sysdeps/i386/i586/memset.S
32017 (__memset_zero_constant_len_parameter): Removed.
32018 * sysdeps/i386/i686/memset.S
32019 (__memset_zero_constant_len_parameter): Likewise.
32020 * sysdeps/i386/i686/multiarch/memset_chk.S
32021 (__memset_zero_constant_len_parameter): Likewise.
32022 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32023 Likewise.
32024
32025 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32026
32027 * stdlib/getentropy.c (getentropy): Change return type to int.
32028
32029 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32030
32031 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32032
32033 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32034
32035 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32036 u_intN_t.
32037 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32038 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32039 Likewise.
32040 (ieee_float_shape_type): Likewise.
32041 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32042 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32043 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32044 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32045 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32046 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32047 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32048 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32049 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32050 Likewise.
32051 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32052 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32053 (__ieee754_yn): Likewise.
32054 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32055 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32056 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32057 Likewise.
32058 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32059 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32060 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32061 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32062 (__erfc): Likewise.
32063 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32064 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32065 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32066 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32067 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32068 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32069 Likewise.
32070 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32071 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32072 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32073 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32074 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32075 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32076 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32077 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32078 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32079 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32080 (__issignaling): Likewise.
32081 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32082 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32083 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32084 Likewise.
32085 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32086 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32087 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32088 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32089 Likewise.
32090 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32091 Likewise.
32092 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32093 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32094 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32095 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32096 (__erfcf): Likewise.
32097 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32098 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32099 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32100 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32101 Likewise.
32102 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32103 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32104 Likewise.
32105 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32106 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32107 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32108 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32109 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32110 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32111 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32112 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32113 Likewise.
32114 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32115 Likewise.
32116 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32117 Likewise.
32118 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32119 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32120 Likewise.
32121 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32122 Likewise.
32123 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32124 (__ieee754_ynl): Likewise.
32125 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32126 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32127 Likewise.
32128 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32129 Likewise.
32130 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32131 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32132 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32133 Likewise.
32134 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32135 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32136 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32137 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32138 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32139 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32140 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32141 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32142 Likewise.
32143 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32144 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32145 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32146 Likewise.
32147 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32148 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32149 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32150 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32151 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32152 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32153 Likewise.
32154 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32155 Likewise.
32156 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32157 Likewise.
32158 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32159 Likewise.
32160 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32161 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32162 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32163 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32164 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32165 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32166 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32167 Likewise.
32168 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32169 Likewise.
32170 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32171 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32172 Likewise.
32173 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32174 (__ieee754_remainderl): Likewise.
32175 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32176 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32177 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32178 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32179 Likewise.
32180 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32181 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32182 Likewise.
32183 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32184 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32185 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32186 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32187 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32188 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32189 Likewise.
32190 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32191 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32192 (__ieee754_y0l): Likewise.
32193 (pzero): Likewise.
32194 (qzero): Likewise.
32195 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32196 (__ieee754_y1l): Likewise.
32197 (pone): Likewise.
32198 (qone): Likewise.
32199 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32200 (__ieee754_ynl): Likewise.
32201 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32202 (__ieee754_lgammal_r): Likewise.
32203 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32204 Likewise.
32205 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32206 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32207 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32208 (__erfcl): Likewise.
32209 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32210 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32211 Likewise.
32212 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32213 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32214 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32215 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32216 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32217 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32218 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32219 Likewise.
32220 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32221 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32222 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32223 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32224 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32225 Likewise.
32226 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32227 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32228 Likewise.
32229 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32230 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32231 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32232 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32233 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32234
32235 2017-08-03 Florian Weimer <fweimer@redhat.com>
32236
32237 [BZ #21885]
32238 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32239 on memory allocation failure.
32240
32241 2017-08-03 Alan Modra <amodra@gmail.com>
32242
32243 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32244 tst-tlsopt-powerpc.c with function name change and no test harness.
32245 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32246 Call tls_get_addr_opt_test.
32247 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32248 (modules-names): Add mod-tlsopt-powerpc.
32249 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32250 (tst-tlsopt-powerpc): Depend on .so.
32251 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32252 define. Expand use in TLS_GD and TLS_LD.
32253
32254 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32255
32256 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32257 function.
32258 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32259
32260 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32261
32262 [BZ #21686]
32263 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32264 comparing size with that of double.
32265 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32266 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32267 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32268 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32269 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32270 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32271 unsigned __int128 types.
32272
32273 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32274
32275 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32276 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32277 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32278 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32279 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32280
32281 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32282
32283 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32284
32285 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32286
32287 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32288 of SHARED.
32289 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32290 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32291 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32292 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32293 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32294 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32295 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32296
32297 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32298
32299 [BZ #21685]
32300 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32301 bit-field expressions passed to sizeof or typeof.
32302 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32303 (__TGMATH_F128): Likewise.
32304 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32305 (__TGMATH_CF128): Likewise.
32306 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32307 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32308 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32309 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32310 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32311 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32312 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32313 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32314 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32315 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32316 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32317 (__TGMATH_UNARY_IMAG): Likewise.
32318 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32319 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32320 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32321 type.
32322 (define_vars_for_type): Handle bit_field type specially.
32323 (Tests.__init__): Declare structure with bit-field element.
32324
32325 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32326
32327 [BZ #21791]
32328 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32329 (MEMCPY_CHK): Define only if SHARED is defined.
32330 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32331 Likewise.
32332 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32333 Likewise.
32334
32335 See ChangeLog.18 for earlier changes.