]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
io: Consolidate lockf implementation
[thirdparty/glibc.git] / ChangeLog
1 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2
3 * io/Makefile (tests): Add tst-lockf.
4 * io/lockf.c (lockf): Use __fcntl and only define for
5 !__OFF_T_MATCHES_OFF64_T.
6 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
7 __OFF_T_MATCHES_OFF64_T case.
8 * io/tst-lockf.c: New file.
9 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
10 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
11 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
12 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
13 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
14 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
15 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
16 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
17 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
18
19 2019-02-15 Florian Weimer <fweimer@redhat.com>
20
21 [BZ #24211]
22 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
23 pd->result after the thread descriptor has been freed.
24
25 2019-02-15 Joseph Myers <joseph@codesourcery.com>
26
27 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
28 from function return type.
29
30 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
31
32 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
33
34 * scripts/test_printers_common.py: Set TERM to a known harmless
35 value.
36
37 2019-02-14 Joseph Myers <joseph@codesourcery.com>
38
39 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
40 (xdr_u_int): Likewise.
41 (xdr_enum): Likewise.
42 (xdr_bytes): Reword fall-through comment.
43 (xdr_string): Likewise.
44
45 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
46
47 [BZ #2421]
48 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
49 (tests): Add tst-join8 tst-join9.
50 * nptl/lll_timedwait_tid.c: Remove file.
51 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
52 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
53 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
54 * nptl/pthread_join_common.c (timedwait_tid): New function.
55 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
56 is set.
57 * nptl/tst-join5.c (thread_join): New function.
58 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
59 check.
60 * nptl/tst-join8.c: New file.
61 * nptl/tst-join9.c: Likewise.
62 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
63 lll_futex_timed_wait_cancel): Add generic macros.
64 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
65 Remove definitions.
66 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
67 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
68 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
69 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
70 Remove function.
71 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
72 Likewise.
73 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
74 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
75 (lll_futex_timed_wait_cancel): New macro.
76
77 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
78
79 * benchtests/Makefile: Add malloc-simple benchmark.
80 * benchtests/bench-malloc-simple.c: New benchmark.
81
82 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
83
84 * benchtests/bench-memmove.c (do_one_test): Remove unused
85 ORIG_SRC.
86 (do_test): Adjust.
87 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
88 ORIG_SRC.
89 (do_test): Adjust.
90
91 2019-01-13 Jim Wilson <jimw@sifive.com>
92
93 [BZ #24040]
94 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
95 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
96 (func): New.
97 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
98 call func directly.
99 * nptl/Makefile (tests): Add tst-unwind-thread.
100 (CFLAGS-tst-unwind-thread.c): Define.
101 * nptl/tst-unwind-thread.c: New file.
102 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
103 as undefined.
104
105 2019-02-13 Joseph Myers <joseph@codesourcery.com>
106
107 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
108 comment wording.
109 * nis/nis_call.c (__do_niscall3): Likewise.
110
111 * catgets/gencat.c (normalize_line): Use braces around empty
112 'else' body.
113 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
114 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
115 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
116 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
117 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
118 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
119 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
120 definition.
121
122 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
123 execlp returns.
124
125 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
126
127 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
128 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
129 * benchtests/bench-strchr.c (stupid_strchr): Remove.
130 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
131 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
132 * benchtests/bench-strlen.c (builtin_strlen): Remove.
133 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
134 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
135 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
136 * benchtests/bench-strspn.c (stupid_strspn): Remove.
137 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
138 * benchtests/bench-bcopy.c: Delete file.
139 * benchtests/bench-bzero.c: Likewise.
140 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
141 (simple_memccpy): Remove.
142 (generic_memccpy): Add function.
143 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
144 * benchtests/bench-memmove.c (simple_bcopy): Remove.
145 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
146 (generic_mempcpy): Add new function.
147 * benchtests/bench-memset.c (simple_bzero): Remove.
148 (builtin_bzero): Remove.
149 (builtin_memset): Remove.
150 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
151 (generic_rawmemchr): Add new function.
152
153 2019-02-12 Florian Weimer <fweimer@redhat.com>
154
155 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
156
157 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
158
159 [BZ #24122]
160 * elf/Makefile (tests): Add tst-audit13.
161 (modules-names): Add tst-audit13mod1.
162 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
163 rule.
164 * elf/tst-audit13.c: New file.
165 * elf/tst-audit13mod1.c: Likewise.
166
167 2019-02-12 Florian Weimer <fweimer@redhat.com>
168
169 [BZ #24122]
170 * elf/rtld.c (unload_audit_module): New function.
171 (report_audit_module_load_error): Likewise.
172 (load_audit_module): Likewise. Extracted from dl_main. Call
173 _dl_close if the laversion symbol cannot be found. Use early
174 returns for error handling. Add malloc error check. Check for a
175 zero return value from la_version. Remove spurious comment about
176 static TLS initialization. Remove useless casts.
177 (notify_audit_modules_of_loaded_object): New function. Extracted
178 from dl_main.
179 (load_audit_module): Likewise.
180 (dl_main): Call load_audit_modules.
181
182 2019-02-12 Joseph Myers <joseph@codesourcery.com>
183
184 * elf/dl-exception.c (_dl_exception_create_format): Add
185 fall-through comments.
186 * elf/ldconfig.c (parse_conf_include): Likewise.
187 * elf/rtld.c (print_statistics): Likewise.
188 * locale/programs/charmap.c (parse_charmap): Likewise.
189 * misc/mntent_r.c (__getmntent_r): Likewise.
190 * posix/wordexp.c (parse_arith): Likewise.
191 (parse_backtick): Likewise.
192 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
193 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
194 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
195
196 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
197
198 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
199 Use float instead of double.
200
201 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
202
203 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
204
205 2019-02-08 Joseph Myers <joseph@codesourcery.com>
206
207 * sysdeps/powerpc/bits/mathinline.h: Remove.
208
209 2019-02-08 Florian Weimer <fweimer@redhat.com>
210
211 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
212 * math/bits/math-finite.h: Move to ...
213 * bits/math-finite.h: ... here.
214
215 2019-02-08 Florian Weimer <fweimer@redhat.com>
216
217 * sysdeps/generic/bits/unistd_ext.h: Move to ...
218 * bits/unistd_ext.h: here.
219
220 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
221
222 [BZ #21915]
223 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
224 * nss/tst-nss-files-hosts-long.c: New file.
225 * nss/tst-nss-files-hosts-long.root: New directory.
226 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
227 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
228
229 2019-02-08 Florian Weimer <fweimer@redhat.com>
230
231 * include/bits/unistd_ext.h: Remove file.
232 * posix/bits/unistd_ext.h: Move to ...
233 * sysdeps/generic/bits/unistd_ext.h: ... here.
234
235 2019-02-08 Florian Weimer <fweimer@redhat.com>
236
237 * include/bits/unistd_ext.h: New file.
238
239 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
240
241 * time/tst-strftime2.c: Use array_length macros instead of magic
242 numbers.
243
244 2019-02-08 Florian Weimer <fweimer@redhat.com>
245
246 [BZ #24161]
247 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
248 argument.
249 * nptl/register-atfork.c (__run_fork_handlers): Only perform
250 locking if the new do_locking argument is true.
251 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
252 __run_fork_handlers.
253
254 2019-02-08 Florian Weimer <fweimer@redhat.com>
255
256 [BZ #6399]
257 Linux: Add gettid system call wrapper.
258 * posix/Makefile (headers): Add bits/unistd_ext.h.
259 * posix/bits/unistd_ext.h: New file.
260 * posix/unistd.h: Include it.
261 * manual/process.texi (Process Identification): Document gettid.
262 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
263 tst-gettid, tst-gettid-kill.
264 (tst-gettid): Link with $(shared-thread-library).
265 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
266 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
267 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
268 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
269 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
270 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
271 Add gettid.
272 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
273 Likewise.
274 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
275 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
276 Likewise.
277 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
278 Likewise.
279 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
280 Likewise.
281 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
282 Likewise.
283 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
284 Likewise.
285 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
286 Likewise.
287 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
288 Likewise.
289 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
290 (GLIBC_2.30): Likewise.
291 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
292 (GLIBC_2.30): Likewise.
293 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
294 (GLIBC_2.30): Likewise.
295 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
296 (GLIBC_2.30): Likewise.
297 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
298 Likewise.
299 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
300 (GLIBC_2.30): Likewise.
301 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
302 (GLIBC_2.30): Likewise.
303 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
304 (GLIBC_2.30): Likewise.
305 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
306 (GLIBC_2.30): Likewise.
307 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
308 Likewise.
309 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
310 Likewise.
311 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
312 Likewise.
313 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
314 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
315 Likewise.
316 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
317 Likewise.
318 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
319 Likewise.
320 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
321 Likewise.
322 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
323
324 2019-02-07 Florian Weimer <fweimer@redhat.com>
325
326 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
327 compatibility symbols.
328
329 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
330
331 [BZ #24180]
332 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
333 Add compiler barriers and comments.
334
335 2019-02-07 Florian Weimer <fweimer@redhat.com>
336
337 * include/array_length.h (array_length): Do not use a statement
338 expression and _Static_assert, so that array_length can be used at
339 file scope and as a constant expression.
340
341 2019-02-07 Florian Weimer <fweimer@redhat.com>
342
343 * support/xdlfcn.h (xdlmopen): Declare.
344 * support/xdlmopen.c: New file.
345 * support/Makefile (libsupport-routines): Add xdlmopen.
346
347 2019-02-06 Joseph Myers <joseph@codesourcery.com>
348
349 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
350 before return type, without separate inline.
351 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
352 * elf/dl-tunables.h (tunable_is_name): Likewise.
353 * malloc/malloc.c (do_set_trim_threshold): Likewise.
354 (do_set_top_pad): Likewise.
355 (do_set_mmap_threshold): Likewise.
356 (do_set_mmaps_max): Likewise.
357 (do_set_mallopt_check): Likewise.
358 (do_set_perturb_byte): Likewise.
359 (do_set_arena_test): Likewise.
360 (do_set_arena_max): Likewise.
361 (do_set_tcache_max): Likewise.
362 (do_set_tcache_count): Likewise.
363 (do_set_tcache_unsorted_limit): Likewise.
364 * nis/nis_subr.c (count_dots): Likewise.
365 * nptl/allocatestack.c (advise_stack_range): Likewise.
366 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
367 (do_sin): Likewise.
368 (reduce_sincos): Likewise.
369 (do_sincos): Likewise.
370 * sysdeps/unix/sysv/linux/x86/elision-conf.c
371 (do_set_elision_enable): Likewise.
372 (TUNABLE_CALLBACK_FNDECL): Likewise.
373
374 2019-02-06 Florian Weimer <fweimer@redhat.com>
375
376 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
377 (xdlsym): Use dlerror to detect a NULL symbol.
378
379 2019-02-06 Florian Weimer <fweimer@redhat.com>
380
381 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
382 <stap-probe.h>.
383 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
384
385 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
386
387 * libio/tst-bz24153.c (wide): Use wide char format specifier.
388
389 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
390
391 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
392 __wmemcmp and weak alias to wmemcmp.
393
394 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
395
396 [BZ #23403]
397 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
398 TLS_TCB_AT_TP tls variant.
399 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
400 Add alignment checks.
401 * support/Makefile (libsupport-routines): Add xposix_memalign and
402 xpthread_setstack.
403 * support/support.h: Add xposix_memalign.
404 * support/xthread.h: Add xpthread_attr_setstack.
405 * support/xposix_memalign.c: New File.
406 * support/xpthread_attr_setstack.c: Likewise.
407
408 2019-02-05 Florian Weimer <fweimer@redhat.com>
409
410 [BZ #24164]
411 arm: Use "nr" constraint for Systemtap probes, to avoid the
412 compiler using memory operands for constants, due to the "o"
413 alternative in the default "nor" constraint.
414 * include/stap-probe.h [USE_STAP_PROBE]: Include
415 <stap-probe-machine.h>
416 * sysdeps/generic/stap-probe-machine.h: New file.
417 * sysdeps/arm/stap-probe-machine.h: Likewise.
418
419 2019-02-04 Joseph Myers <joseph@codesourcery.com>
420
421 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
422 with 0, not tcache->entries[tc_idx].
423
424 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
425 once.
426
427 2019-02-04 Andreas Schwab <schwab@suse.de>
428
429 [BZ #16976]
430 [BZ #17396]
431 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
432 looking up collating elements match against (wide) character
433 sequence instead of name. Correct alignment adjustment.
434 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
435 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
436 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
437 (LOCALES): Add cs_CZ.ISO-8859-2.
438 * posix/tst-fnmatch4.c: New file.
439 * posix/tst-fnmatch5.c: New file.
440 * include/wchar.h (__wmemcmp): Declare.
441 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
442 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
443 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
444 * sysdeps/s390/wmemcmp.c: Likewise.
445
446 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
447
448 [BZ #24155]
449 CVE-2019-7309
450 * NEWS: Updated for CVE-2019-7309.
451 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
452 upper 32 bits of RDX register for x32. Use unsigned Jcc
453 instructions, instead of signed.
454 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
455 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
456
457 2019-02-04 Florian Weimer <fweimer@redhat.com>
458
459 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
460 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
461 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
462 Likewise.
463 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
464 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
465 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
466 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
467 Likewise.
468 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
469 Likewise.
470 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
471 Likewise.
472 (posix_spawn_file_actions_addopen): Likewise.
473 (posix_spawn_file_actions_addclose): Likewise.
474 (posix_spawn_file_actions_adddup2): Likewise.
475 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
476 qualifiers.
477 (posix_spawn_file_actions_addfchdir_np): Likewise.
478
479 2019-02-04 David Newall <glibc@davidnewall.com>
480
481 elf: Implement --preload option for the dynamic linker.
482 * elf/rtld.c (preloadarg): New variable.
483 (handle_preload_list): Pass through “where” argument to
484 do_preload.
485 (dl_main): Handle "--preload" and add second call to
486 handle_preload_list.
487 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
488 (tst-rtld-preload-OBJS): Set variable.
489 (tst-rtld-preload.out): New target.
490 * elf/tst-rtld-preload.sh: New file.
491
492 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
493
494 * Makefile (testrun.sh): Exit in case of incorrect argument.
495
496 2019-02-04 Florian Weimer <fweimer@redhat.com>
497
498 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
499 alignment gaps.
500
501 2019-02-03 Florian Weimer <fweimer@redhat.com>
502
503 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
504 implicit overflow checks.
505
506 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
507
508 * stdlib/isomac.c: Include <unistd.h>.
509
510 2019-02-03 Florian Weimer <fweimer@redhat.com>
511
512 * include/time.h (__tzfile_default): Use int, not long int, for
513 the GMT offsets.
514 * time/tzfile.c (struct ttinfo): Change type of the offset member
515 to int.
516 (__tzfile_read): Remove useless cast.
517 (__tzfile_default): Adjust prototype.
518 * time/tzset.c (tz_rule): Change type of the offset member to int.
519 (parse_offset): Change the type of the sign variable to int.
520
521 2019-02-03 Florian Weimer <fweimer@redhat.com>
522
523 [BZ #24153]
524 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
525 * libio/getchar.c (getchar): Likewise.
526 * libio/getchar_u.c (getchar_unlocked): Likewise.
527 * libio/getwchar.c (getwchar): Likewise.
528 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
529 * libio/iogets.c (_IO_gets): Likewise.
530 * libio/vscanf.c (_IO_vscanf): Likewise.
531 * libio/vwscanf.c (__vwscanf): Likewise.
532 * libio/tst-bz24153.c: New file.
533 * libio/Makefile (tests): Add it.
534
535 2019-02-02 Florian Weimer <fweimer@redhat.com>
536
537 [BZ #14829]
538 * manual/resource.texi (Basic Scheduling Functions): Add
539 portability note. Change process to task throughout the section.
540 Remove incorrect comment about sched_yield as it affects
541 tasks/threads, not entire processes.
542 * sysdeps/unix/sysv/linux/bits/posix_opt.h
543 (_POSIX_PRIORITY_SCHEDULING): Update comment.
544
545 2019-02-01 Joseph Myers <joseph@codesourcery.com>
546
547 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
548 * configure: Regenerated.
549 * manual/install.texi (Tools for Compilation): Update minimum GCC
550 version.
551 * INSTALL: Regenerated.
552
553 2019-02-01 Florian Weimer <fweimer@redhat.com>
554
555 * support/support_test_compare_string.c
556 (support_test_compare_string): Use "string" in error message.
557 * support/tst-test_compare_string.c (do_test): Adjust.
558
559 2019-02-01 Florian Weimer <fweimer@redhat.com>
560
561 * support/support_format_address_family.c
562 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
563
564 2019-02-01 Florian Weimer <fweimer@redhat.com>
565
566 * manual/socket.texi (Internet Address Formats): Clarify the byte
567 order of struct sockaddr_in, struct sockaddr_in6. Document
568 sin6_flowinfo and sin6_scope_id.
569
570 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
571
572 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
573 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
574 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
575 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
576 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
577 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
578
579 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
580
581 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
582 [!MEMCHR](MEMCHR): Set to __memchr.
583 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
584 Add memchr_generic and memchr_nosimd.
585 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
586 (__libc_ifunc_impl_list): Add memchr ifuncs.
587 * sysdeps/aarch64/multiarch/memchr.c: New file.
588 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
589 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
590
591 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
592
593 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
594 Add memset_emag.
595 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
596 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
597 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
598 Add IS_EMAG check for ifunc dispatch.
599 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
600 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
601
602 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
603
604 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
605 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
606 Add emag.
607 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
608 New macro.
609
610 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
611
612 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
613
614 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
615
616 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
617 syscall-template file.
618
619 2019-01-31 Carlos O'Donell <carlos@redhat.com>
620 Torvald Riegel <triegel@redhat.com>
621 Rik Prohaska <prohaska7@gmail.com>
622
623 [BZ# 23844]
624 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
625 tst-rwlock-trywrlock-stall.
626 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
627 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
628 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
629 Set __wrphase_fute to 1 only if we started the write phase.
630 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
631 * nptl/tst-rwlock-trywrlock-stall.c: New file.
632 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
633 * support/xpthread_rwlock_destroy.c: New file.
634 * support/xthread.h: Declare xpthread_rwlock_destroy.
635
636 2019-02-01 Joseph Myers <joseph@codesourcery.com>
637
638 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
639 version to 4.0.2.
640
641 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
642
643 [BZ #24051]
644 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
645 * libio/fileops.c (_IO_new_file_underflow): Likewise
646 * libio/wfileops.c (_IO_wfile_underflow): Likewise
647 * libio/putchar.c (putchar): Likewise.
648 * libio/putchar_u.c (putchar_unlocked): Likewise.
649 * libio/putwchar.c (putchar): Likewise.
650 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
651 * libio/tst-bz24051.c: New test.
652 * libio/Makefile (tests): Add tst-bz24051
653
654 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
655
656 regex: fix read overrun [BZ #24114]
657 Problem found by AddressSanitizer, reported by Hongxu Chen in:
658 https://debbugs.gnu.org/34140
659 * posix/regexec.c (proceed_next_node):
660 Do not read past end of input buffer.
661
662 2019-01-31 Florian Weimer <fweimer@redhat.com>
663
664 [BZ #24059]
665 * nss/nss_files/files-alias.c (get_next_alias): Handle
666 continuation line without newline at the end.
667 * nss/tst-nss-files-alias-truncated.c: New file.
668 * nss/Makefile [$(build-shared)] (tests): Add
669 tst-nss-files-alias-truncated.
670 (tst-nss-files-alias-truncated): Link with libnss_files.so.
671 * support/namespace.h (struct support_chroot_configuration): Add
672 aliases member.
673 (struct support_chroot): Add path_aliases member.
674 * support/support_chroot.c (support_chroot_create): Handle
675 aliases.
676 (support_chroot_free): Free path_aliases.
677
678 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
679
680 * version.h (RELEASE): Set to "development".
681 (VERSION): Set to "2.29.9000".
682 * NEWS: Add section for 2.30.
683
684 * version.h (RELEASE): Set to "stable".
685 (VERSION): Set to "2.29".
686 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
687
688 * NEWS: Add the list of bugs fixed in 2.29.
689 * manual/contrib.texi: Update contributors list with some more
690 names.
691 * manual/install.texi: Update latest versions of packages
692 tested.
693 * INSTALL: Regenerated.
694
695 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
696
697 * po/be.po: Update translations.
698 * po/bg.po: Likewise.
699 * po/ca.po: Likewise.
700 * po/cs.po: Likewise.
701 * po/da.po: Likewise.
702 * po/de.po: Likewise.
703 * po/el.po: Likewise.
704 * po/eo.po: Likewise.
705 * po/es.po: Likewise.
706 * po/fi.po: Likewise.
707 * po/fr.po: Likewise.
708 * po/gl.po: Likewise.
709 * po/hr.po: Likewise.
710 * po/hu.po: Likewise.
711 * po/ia.po: Likewise.
712 * po/id.po: Likewise.
713 * po/it.po: Likewise.
714 * po/ja.po: Likewise.
715 * po/ko.po: Likewise.
716 * po/lt.po: Likewise.
717 * po/nb.po: Likewise.
718 * po/nl.po: Likewise.
719 * po/pl.po: Likewise.
720 * po/pt_BR.po: Likewise.
721 * po/ru.po: Likewise.
722 * po/rw.po: Likewise.
723 * po/sk.po: Likewise.
724 * po/sl.po: Likewise.
725 * po/sv.po: Likewise.
726 * po/tr.po: Likewise.
727 * po/uk.po: Likewise.
728 * po/vi.po: Likewise.
729 * po/zh_CN.po: Likewise.
730 * po/zh_TW.po: Likewise.
731
732 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
733
734 [BZ #24130]
735 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
736 of $f3 register on $y_is_neg path.
737
738 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
739
740 [BZ #24110]
741 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
742 sigaltstack.ss_flags.
743
744 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
745
746 [BZ #23758]
747 * manual/time.texi (strftime): Document "%Ey".
748 * time/strftime_l.c (__strftime_internal): Set the default width
749 padding with zero of "%Ey" to 2.
750
751 [BZ #24096]
752 * manual/time.texi (strftime): Document "%EC" and "%EY".
753 * time/Makefile (tests): Add tst-strftime2.
754 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
755 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
756 override padding for "%Ey".
757 If an optional flag ('_' or '-') is specified to "%EY", interpret the
758 "%Ey" in the subformat as if decorated with that flag.
759 * time/tst-strftime2.c: New file.
760
761 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
762
763 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
764 are not defined.
765
766 [BZ #24122]
767 * elf/Makefile (tests): Add tst-audit13.
768 (modules-names): Add tst-audit13mod1.
769 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
770 rule.
771 * elf/rtld.c (dl_main): Handle invalid audit module version.
772 * elf/tst-audit13.c: New file.
773 * elf/tst-audit13mod1.c: Likewise.
774
775 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
776
777 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
778 returned by __hurd_at_flags.
779 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
780 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
781 directly instead of __hurd_file_name_lookup.
782
783 2019-01-21 Joseph Myers <joseph@codesourcery.com>
784
785 * scripts/build-many-glibcs.py (Context.checkout): Default
786 binutils version to 2.32 branch.
787
788 2019-01-21 Florian Weimer <fweimer@redhat.com>
789
790 [BZ #20018]
791 CVE-2016-10739
792 resolv: Reject trailing characters in host names
793 * include/arpa/inet.h (__inet_aton_exact): Declare.
794 (inet_aton): Remove hidden prototype. No longer used internally.
795 * nscd/gai.c (__inet_aton): Do not define.
796 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
797 * nss/digits_dots.c (__inet_aton): Likewise.
798 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
799 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
800 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
801 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
802 (tst-resolv-trailing): Likewise.
803 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
804 libc.
805 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
806 Make static. Add endp parameter.
807 (__inet_aton_exact): New function.
808 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
809 (__inet_addr): Call inet_aton_end.
810 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
811 not just IPv6. Call __inet_aton_exact.
812 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
813 (tests): Make const. Add additional test cases with trailing
814 characters.
815 (do_test): Use array_length.
816 * resolv/tst-inet_aton_exact.c: New file.
817 * resolv/tst-resolv-trailing.c: Likewise.
818 * resolv/tst-resolv-nondecimal.c: Likewise.
819 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
820
821 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
822
823 [BZ# 24097]
824 CVE-2019-6488
825 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
826 Clear the upper 32 bits of RSI register.
827 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
828 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
829 and tst-size_t-wcsnlen.
830 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
831 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
832
833 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
834
835 [BZ# 24097]
836 CVE-2019-6488
837 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
838 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
839 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
840 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
841 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
842
843 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
844
845 [BZ# 24097]
846 CVE-2019-6488
847 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
848 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
849 * sysdeps/x86_64/strcmp.S: Likewise.
850 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
851 tst-size_t-strncmp and tst-size_t-wcsncmp.
852 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
853 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
854 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
855
856 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
857
858 [BZ# 24097]
859 CVE-2019-6488
860 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
861 RDX_LP for length. Clear the upper 32 bits of RDX register.
862 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
863 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
864 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
865 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
866
867 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
868
869 [BZ# 24097]
870 CVE-2019-6488
871 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
872 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
873 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
874 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
875
876 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
877
878 [BZ# 24097]
879 CVE-2019-6488
880 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
881 length. Clear the upper 32 bits of RDX register.
882 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
883 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
884 Likewise.
885 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
886 Likewise.
887 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
888 tst-size_t-wmemchr.
889 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
890
891 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
892
893 [BZ# 24097]
894 CVE-2019-6488
895 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
896 length. Clear the upper 32 bits of RDX register.
897 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
898 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
899 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
900 tst-size_t-wmemcmp.
901 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
902 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
903
904 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
905
906 [BZ# 24097]
907 CVE-2019-6488
908 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
909 upper 32 bits of RDX register.
910 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
911 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
912 tst-size_t-wmemchr.
913 * sysdeps/x86_64/x32/test-size_t.h: New file.
914 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
915 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
916
917 2019-01-18 Florian Weimer <fweimer@redhat.com>
918
919 [BZ #24112]
920 resolv: Do not send queries for non-host-names in nss_dns.
921 * resolv/nss_dns/dns-host.c (check_name): New function.
922 (_nss_dns_gethostbyname2_r): Use it.
923 (_nss_dns_gethostbyname_r): Likewise.
924 (_nss_dns_gethostbyname4_r): Likewise.
925
926 2019-01-21 Florian Weimer <fweimer@redhat.com>
927
928 * resolv/inet_addr.c: Reformat to GNU style.
929 (__inet_addr, __inet_aton): Update comment.
930
931 2019-01-18 Florian Weimer <fweimer@redhat.com>
932
933 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
934 ("malloc: Use current (C11-style) atomics for fastbin access").
935 This commit introduces a substantial performance regression on
936 POWER and Aarch64.
937 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
938 (REMOVE_FB): Define.
939 (_int_malloc): Use it and reindent.
940 (_int_free): Use CAS loop with
941 catomic_compare_and_exchange_val_rel.
942 (malloc_consolidate): Use atomic_exchange_acq.
943
944
945 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
946
947 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
948 -Wl,-z,now.
949 (LDFLAGS-tst-minsigstksz-2): Likewise.
950 (LDFLAGS-tst-minsigstksz-3): Likewise.
951 (LDFLAGS-tst-minsigstksz-3a): Likewise.
952 (LDFLAGS-tst-minsigstksz-4): Likewise.
953
954 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
955
956 * manual/time.texi (strftime): Fix the wording to "alternative" rather
957 than "alternate".
958
959 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
960
961 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
962
963 2019-01-16 Zack Weinberg <zackw@panix.com>
964
965 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
966 (xget_sigstack_location): New test support functions.
967 * support/xsigstack.c: New file, implementing them.
968 * support/tst-xsigstack.c: New test for them.
969 * support/Makefile: Update.
970
971 * signal/tst-minsigstksz-1.c
972 * signal/tst-minsigstksz-2.c
973 * signal/tst-minsigstksz-3.c
974 * signal/tst-minsigstksz-3a.c
975 * signal/tst-minsigstksz-4.c: New tests.
976 * signal/Makefile: Run them.
977
978 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
979
980 * po/libc.pot: Regenerate.
981
982 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
983
984 * math/libm-test-fma.inc (fma_test_data): Set
985 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
986
987 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
988
989 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
990 (do_test): Changed __vector __int128_t to __vector unsigned int.
991
992 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
993
994 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
995 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
996 stpcpy-avx2 and stpncpy-avx2.
997 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
998 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
999 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1000 and __stpncpy_avx2.
1001 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1002 ifunc-strcpy.h}: rename header for a more generic name.
1003 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1004 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1005 AVX unaligned load is fast and vzeroupper is preferred.
1006 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1007 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1008 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1009 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1010 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1011 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1012
1013 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1014
1015 * argp/argp-help.c: Fix typo in comment.
1016 * misc/sys/cdefs.h: Likewise.
1017 * posix/regexec.c (sift_states_iter_mb): Likewise.
1018 * socket/sockatmark.c: Likewise.
1019 * socket/sys/socket.h: Likewise.
1020 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1021 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1022 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1023 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1024 * sysdeps/unix/sockatmark.c: Likewise.
1025 * time/strptime_l.c: Likewise.
1026
1027 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1028
1029 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1030 missing space after the cast of "_NL_CURRENT".
1031
1032 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1033
1034 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1035 ifdef to fix read of VSCR.
1036 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1037 tst-ucontext-ppc64-vscr.c to test list.
1038 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1039
1040 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1041
1042 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1043 fall-through.
1044
1045 2019-01-09 Jim Wilson <jimw@sifive.com>
1046
1047 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1048
1049 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1050
1051 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1052 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1053 __memcpy_falkor for ares.
1054 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1055 Add new define.
1056 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1057 Add ares cpu.
1058
1059 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1060
1061 [BZ #24066]
1062 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1063 4_FP_W_TYPEs are used for IEEE quad precision.
1064 * soft-fp/extendhftf2.c: Likewise.
1065 * soft-fp/extendsftf2.c: Likewise.
1066 * soft-fp/extendxftf2.c: Likewise.
1067 * soft-fp/trunctfdf2.c: Likewise.
1068 * soft-fp/trunctfhf2.c: Likewise.
1069 * soft-fp/trunctfsf2.c: Likewise.
1070 * soft-fp/trunctfxf2.c: Likewise.
1071 * sysdeps/alpha/ots_cvttx.c: Likewise.
1072 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1073 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1074 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1075 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1076 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1077 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1078 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1079 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1080 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1081 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1082 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1083 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1084 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1085 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1086 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1087 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1088 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1089
1090 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1091
1092 [BZ #24024]
1093 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1094 code with -fmath-errno.
1095 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1096 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1097 * string/test-strerror-errno.c: New file.
1098
1099 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1100
1101 [BZ #24046]
1102 * localedata/locales/en_US (date_fmt): Add, set to
1103 "%a %d %b %Y %r %Z".
1104
1105 2019-01-07 Florian Weimer <fweimer@redhat.com>
1106
1107 [BZ #24063]
1108 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1109 instead of @var{errno}.
1110 (Parsing of Integers): Likewise.
1111 (Parsing of Floats): Likewise.
1112 * manual/filesys.texi (Working with Directory Trees): Likewise.
1113 (Temporary Files): Likewise.
1114 * manual/job.texi (Terminal Access Functions): Likewise.
1115 * manual/llio.texi (Synchronizing I/O): Likewise.
1116 * manual/math.texi (SVID Random): Likewise.
1117 * manual/message.texi (The catgets Functions): Likewise.
1118 (Translation with gettext): Likewise.
1119 (Locating gettext catalog): Likewise.
1120 (Charset conversion in gettext): Likewise.
1121 * manual/nss.texi (NSS Module Function Internals): Likewise.
1122 * manual/search.texi (Hash Search Function): Likewise.
1123 * manual/setjmp.texi (System V contexts): Likewise.
1124 * manual/time.texi (Sleeping): Likewise.
1125 * manual/users.texi (Lookup User): Likewise.
1126 (Lookup Group): Likewise.
1127
1128 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1129
1130 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1131 fix typo.
1132
1133 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1134
1135 [BZ #19444]
1136 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1137 __builtin_unreachable for default case in switch.
1138 (__ieee754_yn): Likewise.
1139 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1140 (__ieee754_ynl): Likewise.
1141 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1142 (__ieee754_ynl): Likewise.
1143 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1144 (__ieee754_ynl): Likewise.
1145
1146 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1147
1148 * manual/maint.texi: Use @{ and @}.
1149
1150 2019-01-04 Florian Weimer <fweimer@redhat.com>
1151
1152 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1153 function.
1154 (do_in_chroot_1): Call it.
1155 (run_chroot_tests):
1156 Improve error reporting in case it is not possible to create a
1157 collision for the PTY name required by the test.
1158
1159 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1160
1161 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1162 lll_wait_tid with timeout.
1163 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1164 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1165 futex_reltimed_wait_cancelable for cancelabla mode.
1166 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1167 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1168 macros.
1169 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1170 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1171 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1172 SYSCALL_CANCEL_NCS): New macro.
1173 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1174 (lll_timedwait_tid): Remove macro.
1175 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1176 Likewise.
1177 (lll_timedwait_tid): Likewise.
1178 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1179 Likewise.
1180 (lll_timedwait_tid): Likewise.
1181 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1182 Likewise.
1183 (lll_timedwait_tid): Likewise.
1184 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1185 Use INTERNAL_SYSCALL_CANCEL.
1186 * sysdeps/unix/sysv/linux/futex-internal.h
1187 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1188 instead of __pthread_{enable,disable}_asynccancel.
1189 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1190 (lll_futex_wait_cancel): New macro.
1191
1192 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1193 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1194
1195 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1196 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1197
1198 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1199 in backtrace analysis.
1200 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1201 side-effects.
1202 (tf_send): Likewise.
1203
1204 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1205 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1206 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1207 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1208 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1209 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1210 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1211 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1212 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1213 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1214 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1215 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1216 Likewise.
1217 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1218 tst-cancel-wrappers.sh.
1219 (generated): Remove tst-cancel-wrappers.out.
1220 (tst-cancel-wrappers.out): Remove rule.
1221 * nptl/tst-cancel-wrappers.sh: Remove file.
1222
1223 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1224
1225 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1226 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1227 Update.
1228
1229 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1230
1231 [BZ #23640]
1232 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1233 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1234 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1235 close-on-exec reset for adddup2 file action.
1236 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1237
1238 2019-01-03 Zack Weinberg <zackw@panix.com>
1239
1240 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1241 parameter. Only use deprecated scanf when __USE_GNU is defined
1242 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1243 than 201103L, whichever is relevant for the language being compiled.
1244
1245 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1246 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1247 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1248 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1249 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1250
1251 * libio/iovsscanf.c
1252 * libio/fwscanf.c
1253 * libio/iovswscanf.c
1254 * libio/swscanf.c
1255 * libio/vscanf.c
1256 * libio/vwscanf.c
1257 * libio/wscanf.c
1258 * stdio-common/fscanf.c
1259 * stdio-common/scanf.c
1260 * stdio-common/vfscanf.c
1261 * stdio-common/vfwscanf.c
1262 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1263 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1264 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1265 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1266 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1267 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1268 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1269 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1270 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1271 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1272 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1273 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1274 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1275 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1276 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1277
1278 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1279 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1280 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1281 not sscanf.
1282 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1283 with a preprocessor macro.
1284
1285 * stdio-common/bug21.c, stdio-common/scanf14.c:
1286 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1287 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1288 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1289 to xscanf, xfscanf, xsscanf.
1290
1291 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1292 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1293 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1294 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1295 xfscanf, xsscanf.
1296 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1297 override feature selection macros or provide definitions of u_char etc.
1298 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1299 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1300 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1301 with -std=gnu89.
1302
1303 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1304
1305 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1306 bits/termios-misc.h.
1307 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1308 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1309 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1310 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1311 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1312 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1313
1314 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
1315 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1316 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
1317 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
1318 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
1319 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
1320 termios-misc.h.
1321 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
1322 (sysdep_headers): Add termios-misc.h.
1323
1324 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1325 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1326 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1327
1328 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1329 termios-tcflow.h.
1330 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1331 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1332 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1333 TCSAFLUSH): Move to termios-tcflow.h.
1334 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1335 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1336 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1337 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1338
1339 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1340 termios-c_lflag.h.
1341 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
1342 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
1343 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
1344 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
1345 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
1346 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
1347 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
1348 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
1349 Likewise.
1350 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1351 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1352 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1353 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1354
1355 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1356 termios-c_cflag.h.
1357 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
1358 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
1359 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
1360 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
1361 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
1362 termios-c_cflag.h.
1363 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1364 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1365 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1366 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1367
1368 [BZ #23783]
1369 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1370 termios-baud.h.
1371 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
1372 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
1373 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
1374 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
1375 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
1376 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
1377 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
1378 __MAX_BAUD): Move to termios-baud.h.
1379 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
1380 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
1381 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1382 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1383 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1384
1385 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
1386 termios-c_oflag.h.
1387 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
1388 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
1389 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
1390 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
1391 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
1392 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
1393 termios-c_oflag.h.
1394 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
1395 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
1396 FFR1): Likewise.
1397 [USE_MISC] (XTABS): Likewise.
1398 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1399 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1400 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1401 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
1402
1403 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1404 termios-c_iflag.h.
1405 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
1406 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
1407 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
1408 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
1409 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
1410 IUTF8): Move to termios-c_iflag.h.
1411 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1412 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1413 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1414 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1415
1416 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1417 termios-cc.h.
1418 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
1419 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
1420 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
1421 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
1422 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
1423 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
1424 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
1425 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
1426 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1427 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1428 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1429 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1430
1431 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
1432 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
1433 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
1434 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
1435 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1436 termios-struct.h.
1437 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
1438 termios-struct.h.
1439 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
1440 Likewise.
1441 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
1442 Likewise.
1443 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
1444 Likewise.
1445 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
1446 Likewise.
1447 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
1448 _HAVE_C_OSPEED): Define.
1449 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
1450 _HAVE_C_OSPEED): Likewise.
1451 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
1452 _HAVE_C_OSPEED): Likewise.
1453 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
1454 (cfsetospeed): Check for define value instead of existence.
1455 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
1456 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1457 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
1458 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1459 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
1460
1461 [BZ #17783]
1462 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
1463 Define.
1464 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1465 (TIOCSER_TEMT): Likewise.
1466 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
1467 (TEOCSER_TEMT): Likewise.
1468
1469 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
1470
1471 [BZ #24011]
1472 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
1473
1474 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1475
1476 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1477
1478 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1479
1480 * sysdeps/htl/pt-barrierattr-setpshared.c
1481 (pthread_barrierattr_setpshared): Add stub warning.
1482 * sysdeps/htl/pt-condattr-setpshared.c
1483 (pthread_condattr_setpshared): Likewise.
1484 * sysdeps/htl/pt-mutexattr-setpshared.c
1485 (pthread_mutexattr_setpshared): Likewise.
1486 * sysdeps/htl/pt-rwlockattr-setpshared.c
1487 (pthread_rwlockattr_setpshared): Likewise.
1488 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
1489 (pthread_mutexattr_setpshared): Likewise.
1490
1491 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1492
1493 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
1494 constants to match with Linux 4.20.
1495
1496 * sysdeps/mips/mips32/libm-test-ulps: Update.
1497 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
1498
1499 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
1500
1501 [BZ #24034]
1502 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
1503 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
1504 than __typeof (...) for the a_ptr variable.
1505
1506 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1507
1508 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
1509 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
1510 * libio/Makefile (tests): Add tst-sprintf-ub and
1511 tst-sprintf-chk-ub.
1512 (CFLAGS-tst-sprintf-ub.c): New variable.
1513 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
1514 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
1515 destination buffer and check for overflows in fortified mode.
1516 * libio/libioP.h (PRINTF_CHK): New macro.
1517 * libio/tst-sprintf-chk-ub.c: New file.
1518 * libio/tst-sprintf-ub.c: Likewise.
1519
1520 2019-01-02 Florian Weimer <fweimer@redhat.com>
1521
1522 [BZ #24018]
1523 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
1524 failure.
1525
1526 2019-01-02 Florian Weimer <fweimer@redhat.com>
1527
1528 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
1529
1530 2019-01-01 Joseph Myers <joseph@codesourcery.com>
1531
1532 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
1533 macro.
1534
1535 * sysdeps/unix/sysv/linux/netpacket/packet.h
1536 (PACKET_IGNORE_OUTGOING): New macro.
1537
1538 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
1539 macro.
1540
1541 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1542 version to 4.20.
1543 (riscv_flush_icache): New syscall.
1544
1545 * manual/texinfo.tex: Update to version 2018-12-28.17 with
1546 trailing whitespace removed.
1547 * scripts/config.guess: Update to version 2019-01-01.
1548 * scripts/config.sub: Update to version 2019-01-01.
1549 * scripts/move-if-change: Update from gnulib.
1550
1551 * NEWS: Update copyright dates.
1552 * catgets/gencat.c (print_version): Likewise.
1553 * csu/version.c (banner): Likewise.
1554 * debug/catchsegv.sh: Likewise.
1555 * debug/pcprofiledump.c (print_version): Likewise.
1556 * debug/xtrace.sh (do_version): Likewise.
1557 * elf/ldconfig.c (print_version): Likewise.
1558 * elf/ldd.bash.in: Likewise.
1559 * elf/pldd.c (print_version): Likewise.
1560 * elf/sotruss.sh: Likewise.
1561 * elf/sprof.c (print_version): Likewise.
1562 * iconv/iconv_prog.c (print_version): Likewise.
1563 * iconv/iconvconfig.c (print_version): Likewise.
1564 * locale/programs/locale.c (print_version): Likewise.
1565 * locale/programs/localedef.c (print_version): Likewise.
1566 * login/programs/pt_chown.c (print_version): Likewise.
1567 * malloc/memusage.sh (do_version): Likewise.
1568 * malloc/memusagestat.c (print_version): Likewise.
1569 * malloc/mtrace.pl: Likewise.
1570 * manual/libc.texinfo: Likewise.
1571 * nptl/version.c (banner): Likewise.
1572 * nscd/nscd.c (print_version): Likewise.
1573 * nss/getent.c (print_version): Likewise.
1574 * nss/makedb.c (print_version): Likewise.
1575 * posix/getconf.c (main): Likewise.
1576 * scripts/test-installation.pl: Likewise.
1577 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1578
1579 * All files with FSF copyright notices: Update copyright dates
1580 using scripts/update-copyrights.
1581 * locale/programs/charmap-kw.h: Regenerated.
1582 * locale/programs/locfile-kw.h: Likewise.
1583
1584 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1585
1586 * timezone/zdump.c: Update from tzcode 2018i.
1587 * timezone/zic.c: Likewise.
1588
1589 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
1590
1591 regex: improve Gnulib port to AIX
1592 From the glibc point of view, this removes duplicate macro
1593 definitions and is obviously safe.
1594 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
1595 * posix/regex_internal.h:
1596 (__attribute__, __attribute_warn_unused_result__):
1597 Remove; already defined elsewhere.
1598
1599 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
1600
1601 [BZ #24027]
1602 * malloc/malloc.c (_int_realloc): Always call memcpy for the
1603 copying operation. (ncopies had the wrong type, resulting in an
1604 integer wraparound and too few elements being copied.)
1605
1606 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
1607
1608 [BZ #24022]
1609 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
1610 <asm/syscalls.h> exists with __has_include__ before including it.
1611
1612 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1613
1614 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1615 version to 4.20.
1616
1617 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
1618
1619 * hurd/lookup-retry: Include <unistd.h>.
1620 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
1621 Release it on return. Handle "pid" magical lookup retry.
1622
1623 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1624
1625 [BZ #10496]
1626 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
1627 (t_fmt_ampm): Likewise.
1628 * localedata/locales/aa_ER (t_fmt): Likewise.
1629 (t_fmt_ampm): Likewise.
1630 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
1631 (t_fmt_ampm): Likewise.
1632 * localedata/locales/aa_ET (t_fmt): Likewise.
1633 (t_fmt_ampm): Likewise.
1634 * localedata/locales/am_ET (t_fmt): Likewise.
1635 (t_fmt_ampm): Likewise.
1636 * localedata/locales/byn_ER (t_fmt): Likewise.
1637 (t_fmt_ampm): Likewise.
1638 * localedata/locales/om_ET (t_fmt): Likewise.
1639 (t_fmt_ampm): Likewise.
1640 * localedata/locales/sid_ET (t_fmt): Likewise.
1641 (t_fmt_ampm): Likewise.
1642 * localedata/locales/so_DJ (t_fmt): Likewise.
1643 (t_fmt_ampm): Likewise.
1644 * localedata/locales/so_ET (t_fmt): Likewise.
1645 (t_fmt_ampm): Likewise.
1646 * localedata/locales/so_SO (t_fmt): Likewise.
1647 (t_fmt_ampm): Likewise.
1648 * localedata/locales/ti_ER (t_fmt): Likewise.
1649 (t_fmt_ampm): Likewise.
1650 * localedata/locales/ti_ET (t_fmt): Likewise.
1651 (t_fmt_ampm): Likewise.
1652 * localedata/locales/tig_ER (t_fmt): Likewise.
1653 (t_fmt_ampm): Likewise.
1654 * localedata/locales/wal_ET (t_fmt): Likewise.
1655 (t_fmt_ampm): Likewise.
1656
1657 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
1658 * localedata/locales/ar_IN (t_fmt): Likewise.
1659 * localedata/locales/bhb_IN (t_fmt): Likewise.
1660 * localedata/locales/bho_IN (t_fmt): Likewise.
1661 * localedata/locales/bi_VU (t_fmt): Likewise.
1662 * localedata/locales/bn_BD (t_fmt): Likewise.
1663 * localedata/locales/bn_IN (t_fmt): Likewise.
1664 * localedata/locales/brx_IN (t_fmt): Likewise.
1665 * localedata/locales/doi_IN (t_fmt): Likewise.
1666 * localedata/locales/en_HK (t_fmt): Likewise.
1667 (t_fmt_ampm): Likewise.
1668 * localedata/locales/en_IN (t_fmt): Likewise.
1669 * localedata/locales/en_PH (t_fmt): Likewise.
1670 * localedata/locales/gu_IN (t_fmt): Likewise.
1671 * localedata/locales/hi_IN (t_fmt): Likewise.
1672 * localedata/locales/hif_FJ (t_fmt): Likewise.
1673 * localedata/locales/hne_IN (t_fmt): Likewise.
1674 * localedata/locales/kn_IN (t_fmt): Likewise.
1675 * localedata/locales/kok_IN (t_fmt): Likewise.
1676 * localedata/locales/ks_IN (t_fmt): Likewise.
1677 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
1678 * localedata/locales/mag_IN (t_fmt): Likewise.
1679 * localedata/locales/mai_IN (t_fmt): Likewise.
1680 * localedata/locales/mjw_IN (t_fmt): Likewise.
1681 * localedata/locales/ml_IN (t_fmt): Likewise.
1682 * localedata/locales/mni_IN (t_fmt): Likewise.
1683 * localedata/locales/mr_IN (t_fmt): Likewise.
1684 * localedata/locales/ms_MY (t_fmt): Likewise.
1685 * localedata/locales/pa_IN (t_fmt): Likewise.
1686 * localedata/locales/raj_IN (t_fmt): Likewise.
1687 * localedata/locales/sa_IN (t_fmt): Likewise.
1688 * localedata/locales/sat_IN (t_fmt): Likewise.
1689 * localedata/locales/sd_IN (t_fmt): Likewise.
1690 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
1691 * localedata/locales/tcy_IN (t_fmt): Likewise.
1692 * localedata/locales/the_NP (t_fmt): Likewise.
1693 * localedata/locales/to_TO (t_fmt): Likewise.
1694 * localedata/locales/ur_IN (t_fmt): Likewise.
1695
1696 * localedata/locales/hif_FJ (d_t_fmt): Set to
1697 "%A %d %b %Y %I:%M:%S %p".
1698 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
1699
1700 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
1701 * localedata/locales/ar_BH (t_fmt): Likewise.
1702 * localedata/locales/ar_DZ (t_fmt): Likewise.
1703 * localedata/locales/ar_EG (t_fmt): Likewise.
1704 * localedata/locales/ar_IQ (t_fmt): Likewise.
1705 * localedata/locales/ar_JO (t_fmt): Likewise.
1706 * localedata/locales/ar_KW (t_fmt): Likewise.
1707 * localedata/locales/ar_LB (t_fmt): Likewise.
1708 * localedata/locales/ar_LY (t_fmt): Likewise.
1709 * localedata/locales/ar_OM (t_fmt): Likewise.
1710 * localedata/locales/ar_QA (t_fmt): Likewise.
1711 * localedata/locales/ar_SD (t_fmt): Likewise.
1712 * localedata/locales/ar_SS (t_fmt): Likewise.
1713 * localedata/locales/ar_SY (t_fmt): Likewise.
1714 * localedata/locales/ar_TN (t_fmt): Likewise.
1715 * localedata/locales/ar_YE (t_fmt): Likewise.
1716
1717 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
1718 (t_fmt_ampm): Likewise.
1719 * localedata/locales/gez_ET (t_fmt): Likewise.
1720 (t_fmt_ampm): Likewise.
1721
1722 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
1723 (t_fmt_ampm): Likewise.
1724 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
1725
1726 * localedata/locales/zh_HK (t_fmt):
1727 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
1728
1729 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
1730 because this locale does not use the 12-hour clock.
1731 (t_fmt): Set to "%Z %H:%M:%S".
1732 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
1733
1734 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
1735 because this locale does not use the 12-hour clock.
1736 (t_fmt): Set to "%H:%M:%S %Z".
1737 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
1738
1739 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
1740 because this locale does not use the 12-hour clock.
1741 (t_fmt): Set to "%T".
1742 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
1743 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
1744
1745 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
1746 because this locale does not use the 12-hour clock.
1747 (t_fmt): Set to "%H:%M:%S %Z".
1748 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
1749
1750 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
1751 because this locale does not use the 12-hour clock.
1752 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
1753 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
1754
1755 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1756
1757 [BZ #10496]
1758 [BZ #23724]
1759 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
1760 (t_fmt_ampm): Likewise.
1761 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
1762 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
1763 (d_fmt): Set to "%-d.%-m.%y".
1764
1765 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1766
1767 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
1768 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
1769 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
1770 Likewise.
1771 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
1772 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
1773 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
1774 function.
1775 * support/blob_repeat.c (check_mul_overflow_size_t,
1776 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
1777
1778 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
1779
1780 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
1781
1782 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
1783
1784 regex: simplify Gnulib port
1785 This simplifies the code, by removing stuff intended for porting
1786 to Gnulib but no longer needed there.
1787 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
1788 uses of libc_hidden_def, weak_alias.
1789 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
1790 _Restrict_ except for public-facing headers.
1791 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
1792 Remove; already defined elsewhere.
1793 * posix/regex.c, posix/regex_internal.h:
1794 Use __GNUC_PREREQ instead of rolling our own.
1795 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
1796
1797 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
1798
1799 * benchtests/bench-strlen.c (generic_strlen): New function.
1800 (memchr_strlen): New function.
1801
1802 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1803
1804 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
1805 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
1806 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
1807
1808 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1809
1810 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1811
1812 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1813
1814 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
1815 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
1816 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
1817 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
1818 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
1819 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
1820 <sysdeps/ieee754/flt-32/s_sincosf.c>.
1821
1822 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1823
1824 [BZ #24023]
1825 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
1826 PLT reference in libc.so.
1827 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
1828 _Q_lltoq and _Q_qtod PLT references in libc.so.
1829
1830 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
1831
1832 * benchtests/bench-memchr.c: Cleanup defines.
1833 * benchtests/bench-memcmp.c: Likewise.
1834 * benchtests/bench-memset.c: Likewise.
1835 * benchtests/bench-memset-large.c: Likewise.
1836 * benchtests/bench-memset-walk.c: Likewise.
1837 * benchtests/bench-stpcpy.c: Likewise.
1838 * benchtests/bench-stpncpy.c: Likewise.
1839 * benchtests/bench-strcat.c: Likewise.
1840 * benchtests/bench-strchr.c: Likewise.
1841 * benchtests/bench-strcmp.c: Likewise.
1842 * benchtests/bench-strcpy.c: Likewise.
1843 * benchtests/bench-strcspn.c: Likewise.
1844 * benchtests/bench-string.h: Likewise.
1845 * benchtests/bench-strlen.c: Likewise.
1846 * benchtests/bench-strncat.c: Likewise.
1847 * benchtests/bench-strncmp.c: Likewise.
1848 * benchtests/bench-strncpy.c: Likewise.
1849 * benchtests/bench-strnlen.c: Likewise.
1850 * benchtests/bench-strpbrk.c: Likewise.
1851 * benchtests/bench-strrchr.c: Likewise.
1852 * benchtests/bench-strspn.c: Likewise.
1853
1854 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1855
1856 * stdlib/longlong.h: Update from GCC.
1857
1858 [BZ #23993]
1859 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
1860 * configure: Regenerated.
1861 * manual/install.texi (Tools for Compilation): Update minimum GCC
1862 version.
1863 * INSTALL: Regenerated.
1864
1865 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
1866
1867 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
1868
1869 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
1870
1871 * malloc/malloc.c (mremap_chunk): Additional checks.
1872
1873 2018-12-21 Mao Han <han_mao@c-sky.com>
1874
1875 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
1876 * scripts/build-many-glibcs.py: Add C-SKY targets.
1877 * sysdeps/csky/Implies: New file.
1878 * sysdeps/csky/Makefile: Likewise.
1879 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
1880 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
1881 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
1882 * sysdeps/csky/abiv2/memcmp.S: Likewise.
1883 * sysdeps/csky/abiv2/memcpy.S: Likewise.
1884 * sysdeps/csky/abiv2/memmove.S: Likewise.
1885 * sysdeps/csky/abiv2/memset.S: Likewise.
1886 * sysdeps/csky/abiv2/setjmp.S: Likewise.
1887 * sysdeps/csky/abiv2/start.S: Likewise.
1888 * sysdeps/csky/abiv2/strcmp.S: Likewise.
1889 * sysdeps/csky/abiv2/strcpy.S: Likewise.
1890 * sysdeps/csky/abiv2/strlen.S: Likewise.
1891 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
1892 * sysdeps/csky/abort-instr.h: Likewise.
1893 * sysdeps/csky/atomic-machine.h: Likewise.
1894 * sysdeps/csky/bits/endian.h: Likewise.
1895 * sysdeps/csky/bits/fenv.h: Likewise.
1896 * sysdeps/csky/bits/link.h: Likewise.
1897 * sysdeps/csky/bits/setjmp.h: Likewise.
1898 * sysdeps/csky/bsd-_setjmp.S: Likewise.
1899 * sysdeps/csky/bsd-setjmp.S: Likewise.
1900 * sysdeps/csky/configure: Likewise.
1901 * sysdeps/csky/configure.ac: Likewise.
1902 * sysdeps/csky/dl-machine.h: Likewise.
1903 * sysdeps/csky/dl-procinfo.c: Likewise.
1904 * sysdeps/csky/dl-procinfo.h: Likewise.
1905 * sysdeps/csky/dl-sysdep.h: Likewise.
1906 * sysdeps/csky/dl-tls.h: Likewise.
1907 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
1908 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
1909 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
1910 * sysdeps/csky/fpu/fegetenv.c: Likewise.
1911 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
1912 * sysdeps/csky/fpu/fegetmode.c: Likewise.
1913 * sysdeps/csky/fpu/fegetround.c: Likewise.
1914 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
1915 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
1916 * sysdeps/csky/fpu/fenv_private.h: Likewise.
1917 * sysdeps/csky/fpu/fesetenv.c: Likewise.
1918 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
1919 * sysdeps/csky/fpu/fesetmode.c: Likewise.
1920 * sysdeps/csky/fpu/fesetround.c: Likewise.
1921 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
1922 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
1923 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
1924 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
1925 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
1926 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
1927 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
1928 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
1929 * sysdeps/csky/fpu_control.h: Likewise.
1930 * sysdeps/csky/gccframe.h: Likewise.
1931 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
1932 * sysdeps/csky/ldsodefs.h: Likewise.
1933 * sysdeps/csky/libc-tls.c: Likewise.
1934 * sysdeps/csky/linkmap.h: Likewise.
1935 * sysdeps/csky/machine-gmon.h: Likewise.
1936 * sysdeps/csky/memusage.h: Likewise.
1937 * sysdeps/csky/nofpu/Implies: Likewise.
1938 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
1939 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
1940 * sysdeps/csky/nptl/Makefile: Likewise.
1941 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
1942 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
1943 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
1944 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
1945 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
1946 * sysdeps/csky/nptl/tls.h: Likewise.
1947 * sysdeps/csky/preconfigure: Likewise.
1948 * sysdeps/csky/sfp-machine.h: Likewise.
1949 * sysdeps/csky/sotruss-lib.c: Likewise.
1950 * sysdeps/csky/stackinfo.h: Likewise.
1951 * sysdeps/csky/sysdep.h: Likewise.
1952 * sysdeps/csky/tininess.h: Likewise.
1953 * sysdeps/csky/tst-audit.h: Likewise.
1954 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
1955 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
1956 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
1957 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
1958 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
1959 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
1960 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
1961 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
1962 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
1963 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
1964 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
1965 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
1966 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
1967 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
1968 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
1969 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
1970 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
1971 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
1972 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
1973 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
1974 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
1975 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
1976 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
1977 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
1978 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
1979 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
1980 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
1981 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
1982 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
1983 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
1984 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
1985 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
1986 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
1987 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
1988 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
1989 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
1990 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
1991 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
1992 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
1993 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
1994 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
1995 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
1996 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
1997 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
1998
1999 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2000
2001 * include/time.h (__difftime64): Add.
2002 * time/difftime.c (subtract): convert to 64-bit time.
2003 * time/difftime.c (__difftime64): Add.
2004 * time/difftime.c (__difftime): Wrap around __difftime64.
2005
2006 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2007
2008 * manual/examples/add.c: Remove redundant "if not".
2009 * manual/examples/argp-ex1.c: Likewise.
2010 * manual/examples/argp-ex2.c: Likewise.
2011 * manual/examples/argp-ex3.c: Likewise.
2012 * manual/examples/argp-ex4.c: Likewise.
2013 * manual/examples/atexit.c: Likewise.
2014 * manual/examples/db.c: Likewise.
2015 * manual/examples/dir.c: Likewise.
2016 * manual/examples/dir2.c: Likewise.
2017 * manual/examples/execinfo.c: Likewise.
2018 * manual/examples/filecli.c: Likewise.
2019 * manual/examples/filesrv.c: Likewise.
2020 * manual/examples/fmtmsgexpl.c: Likewise.
2021 * manual/examples/genpass.c: Likewise.
2022 * manual/examples/inetcli.c: Likewise.
2023 * manual/examples/inetsrv.c: Likewise.
2024 * manual/examples/isockad.c: Likewise.
2025 * manual/examples/longopt.c: Likewise.
2026 * manual/examples/memopen.c: Likewise.
2027 * manual/examples/memstrm.c: Likewise.
2028 * manual/examples/mkdirent.c: Likewise.
2029 * manual/examples/mkfsock.c: Likewise.
2030 * manual/examples/mkisock.c: Likewise.
2031 * manual/examples/mygetpass.c: Likewise.
2032 * manual/examples/pipe.c: Likewise.
2033 * manual/examples/popen.c: Likewise.
2034 * manual/examples/rprintf.c: Likewise.
2035 * manual/examples/search.c: Likewise.
2036 * manual/examples/select.c: Likewise.
2037 * manual/examples/setjmp.c: Likewise.
2038 * manual/examples/sigh1.c: Likewise.
2039 * manual/examples/sigusr.c: Likewise.
2040 * manual/examples/stpcpy.c: Likewise.
2041 * manual/examples/strdupa.c: Likewise.
2042 * manual/examples/strftim.c: Likewise.
2043 * manual/examples/subopt.c: Likewise.
2044 * manual/examples/swapcontext.c: Likewise.
2045 * manual/examples/termios.c: Likewise.
2046 * manual/examples/testopt.c: Likewise.
2047 * manual/examples/testpass.c: Likewise.
2048 * manual/examples/timeval_subtract.c: Likewise.
2049
2050 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2051
2052 * sysdeps/x86/fpu/math_private.h: New file.
2053 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2054
2055 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2056 definition.
2057 (cosh): Likewise.
2058 (tanh): Likewise.
2059
2060 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2061
2062 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2063 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2064 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2065 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2066 fields.
2067 (_dl_show_auxv): Give a special treatment to
2068 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2069 and AT_L3_CACHEGEOMETRY.
2070 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2071 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2072 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2073 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2074
2075 2018-12-19 Andreas Schwab <schwab@suse.de>
2076
2077 * nscd/connections.c (check_use): Don't abort on invalid len.
2078
2079 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2080
2081 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2082 values in the 64bit value cases.
2083
2084 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2085
2086 * include/time.h
2087 (__ctime64_r): Add.
2088 * time/ctime_r.c
2089 (__ctime64_r): Add.
2090 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2091
2092 * include/time.h
2093 (__ctime64): Add.
2094 * time/gmtime.c
2095 (__ctime64): Add.
2096 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2097
2098 * include/time.h
2099 (__gmtime64_r): Add.
2100 * time/gmtime.c
2101 (__gmtime64_r): Add.
2102 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2103
2104 * include/time.h
2105 (__gmtime64): Add.
2106 * time/gmtime.c
2107 (__gmtime64): Add.
2108 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2109
2110 * include/time.h
2111 (__localtime64_r): Add.
2112 * time/localtime.c
2113 (__localtime64_r): Add.
2114 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2115
2116 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2117
2118 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2119 kernel_sigction definition.
2120
2121 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2122
2123 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2124
2125 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2126 __syscall_rt_sigaction.
2127 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2128 (kernel_sigaction): Use Linux generic defintion.
2129 (STUB): Define.
2130 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2131 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2132 (__syscall_rt_sigaction): Remove implementation.
2133 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2134 hidden.
2135 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2136 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2137 INTERNAL_SYSCALL): Remove definitions.
2138 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2139 action and signal set size.
2140 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2141 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2142
2143 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2144 James Clarke <jrtc27@jrtc27.com>
2145
2146 [BZ #23967]
2147 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2148 Define if SA_RESTORER is defined.
2149 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2150 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2151 already defined.
2152 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2153 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2154 definitions.
2155 (HAS_SA_RESTORER): Define.
2156 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2157 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2158 (HAS_SA_RESTORER): Define.
2159 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2160 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2161 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2162 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2163 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2164
2165 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2166
2167 * sysdeps/unix/sysv/linux/kernel-features.h
2168 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2169 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2170 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2171 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2172 (__ASSUME_ST_INO_64_BIT): Likewise.
2173 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2174 <kernel-features.h>.
2175 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2176 Remove conditional code.
2177 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2178 <kernel-features.h>.
2179 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2180 Remove conditional code.
2181 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2182 <kernel-features.h>.
2183 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2184 Remove conditional code.
2185 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2186 <kernel-features.h>.
2187 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2188 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2189
2190 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2191
2192 * sysdeps/s390/multiarch/ifunc-resolve.h
2193 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2194 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2195 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2196 Delete macro definition.
2197 (s390_libc_ifunc_init): Rename to
2198 s390_libc_ifunc_expr_stfle_init.
2199 * sysdeps/s390/bzero: Use
2200 s390_libc_ifunc_expr_stfle_init instead of
2201 s390_libc_ifunc_init.
2202 * sysdeps/s390/memcmp.c: Likewise.
2203 * sysdeps/s390/memcpy.c: Likewise.
2204 * sysdeps/s390/mempcpy.c: Likewise.
2205 * sysdeps/s390/memset.c: Likewise.
2206
2207 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2208
2209 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2210 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2211
2212 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2213
2214 * sysdeps/s390/multiarch/Makefile
2215 (sysdep_routines): Remove wmemcmp variants.
2216 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2217 * sysdeps/s390/multiarch/ifunc-impl-list.c
2218 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2219 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2220 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2221 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2222 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2223 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2224 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2225 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2226
2227 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2228
2229 * sysdeps/s390/multiarch/Makefile
2230 (sysdep_routines): Remove wmemset variants.
2231 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2232 * sysdeps/s390/multiarch/ifunc-impl-list.c
2233 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2234 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2235 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2236 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2237 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2238 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2239 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2240 * sysdeps/s390/ifunc-wmemset.h: New file.
2241
2242 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2243
2244 * sysdeps/s390/multiarch/Makefile
2245 (sysdep_routines): Remove wmemchr variants.
2246 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2247 * sysdeps/s390/multiarch/ifunc-impl-list.c
2248 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2249 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2250 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2251 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2252 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2253 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2254 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2255 * sysdeps/s390/ifunc-wmemchr.h: New file.
2256
2257 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2258
2259 * sysdeps/s390/multiarch/Makefile
2260 (sysdep_routines): Remove wcscspn variants.
2261 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2262 * sysdeps/s390/multiarch/ifunc-impl-list.c
2263 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2264 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2265 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2266 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2267 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2268 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2269 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2270 * sysdeps/s390/ifunc-wcscspn.h: New file.
2271
2272 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2273
2274 * sysdeps/s390/multiarch/Makefile
2275 (sysdep_routines): Remove wcspbrk variants.
2276 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2277 * sysdeps/s390/multiarch/ifunc-impl-list.c
2278 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2279 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2280 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2281 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2282 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2283 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2284 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2285 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2286
2287 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2288
2289 * sysdeps/s390/multiarch/Makefile
2290 (sysdep_routines): Remove wcsspn variants.
2291 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2292 * sysdeps/s390/multiarch/ifunc-impl-list.c
2293 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2294 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2295 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2296 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2297 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2298 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2299 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2300 * sysdeps/s390/ifunc-wcsspn.h: New file.
2301
2302 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2303
2304 * sysdeps/s390/multiarch/Makefile
2305 (sysdep_routines): Remove wcsrchr variants.
2306 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2307 * sysdeps/s390/multiarch/ifunc-impl-list.c
2308 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2309 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2310 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2311 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2312 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2313 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2314 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
2315 * sysdeps/s390/ifunc-wcsrchr.h: New file.
2316
2317 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2318
2319 * sysdeps/s390/multiarch/Makefile
2320 (sysdep_routines): Remove wcschrnul variants.
2321 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
2322 * sysdeps/s390/multiarch/ifunc-impl-list.c
2323 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2324 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2325 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2326 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2327 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2328 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2329 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2330 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2331
2332 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2333
2334 * sysdeps/s390/multiarch/Makefile
2335 (sysdep_routines): Remove wcschr variants.
2336 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2337 * sysdeps/s390/multiarch/ifunc-impl-list.c
2338 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
2339 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
2340 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
2341 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
2342 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
2343 * sysdeps/s390/multiarch/wcschr.c: Move to ...
2344 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
2345 * sysdeps/s390/ifunc-wcschr.h: New file.
2346
2347 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2348
2349 * sysdeps/s390/multiarch/Makefile
2350 (sysdep_routines): Remove wcsncmp variants.
2351 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
2352 * sysdeps/s390/multiarch/ifunc-impl-list.c
2353 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
2354 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
2355 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
2356 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
2357 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
2358 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
2359 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
2360 * sysdeps/s390/ifunc-wcsncmp.h: New file.
2361
2362 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2363
2364 * sysdeps/s390/multiarch/Makefile
2365 (sysdep_routines): Remove wcscmp variants.
2366 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
2367 * sysdeps/s390/multiarch/ifunc-impl-list.c
2368 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
2369 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
2370 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
2371 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
2372 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
2373 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
2374 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
2375 * sysdeps/s390/ifunc-wcscmp.h: New file.
2376
2377 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2378
2379 * sysdeps/s390/multiarch/Makefile
2380 (sysdep_routines): Remove wcsncat variants.
2381 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
2382 * sysdeps/s390/multiarch/ifunc-impl-list.c
2383 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
2384 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
2385 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
2386 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
2387 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
2388 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
2389 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
2390 * sysdeps/s390/ifunc-wcsncat.h: New file.
2391
2392 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2393
2394 * sysdeps/s390/multiarch/Makefile
2395 (sysdep_routines): Remove wcscat variants.
2396 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
2397 * sysdeps/s390/multiarch/ifunc-impl-list.c
2398 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
2399 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
2400 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
2401 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
2402 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
2403 * sysdeps/s390/multiarch/wcscat.c: Move to ...
2404 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
2405 * sysdeps/s390/ifunc-wcscat.h: New file.
2406
2407 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2408
2409 * sysdeps/s390/multiarch/Makefile
2410 (sysdep_routines): Remove wcpncpy variants.
2411 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
2412 * sysdeps/s390/multiarch/ifunc-impl-list.c
2413 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
2414 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
2415 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
2416 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
2417 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
2418 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
2419 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
2420 * sysdeps/s390/ifunc-wcpncpy.h: New file.
2421
2422 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2423
2424 * sysdeps/s390/multiarch/Makefile
2425 (sysdep_routines): Remove wcsncpy variants.
2426 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
2427 * sysdeps/s390/multiarch/ifunc-impl-list.c
2428 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
2429 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
2430 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
2431 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
2432 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
2433 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
2434 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
2435 * sysdeps/s390/ifunc-wcsncpy.h: New file.
2436
2437 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2438
2439 * sysdeps/s390/multiarch/Makefile
2440 (sysdep_routines): Remove wcpcpy variants.
2441 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
2442 * sysdeps/s390/multiarch/ifunc-impl-list.c
2443 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
2444 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
2445 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
2446 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
2447 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
2448 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
2449 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
2450 * sysdeps/s390/ifunc-wcpcpy.h: New file.
2451
2452 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2453
2454 * sysdeps/s390/multiarch/Makefile
2455 (sysdep_routines): Remove wcscpy variants.
2456 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
2457 * sysdeps/s390/multiarch/ifunc-impl-list.c
2458 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
2459 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
2460 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
2461 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
2462 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
2463 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
2464 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
2465 * sysdeps/s390/ifunc-wcscpy.h: New file.
2466
2467 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2468
2469 * sysdeps/s390/multiarch/Makefile
2470 (sysdep_routines): Remove wcsnlen variants.
2471 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
2472 * sysdeps/s390/multiarch/ifunc-impl-list.c
2473 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
2474 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
2475 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
2476 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
2477 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
2478 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
2479 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
2480 * sysdeps/s390/ifunc-wcsnlen.h: New file.
2481
2482 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2483
2484 * sysdeps/s390/multiarch/Makefile
2485 (sysdep_routines): Remove wcslen variants.
2486 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
2487 * sysdeps/s390/multiarch/ifunc-impl-list.c
2488 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
2489 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
2490 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
2491 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
2492 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
2493 * sysdeps/s390/multiarch/wcslen.c: Move to ...
2494 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
2495 * sysdeps/s390/ifunc-wcslen.h: New file.
2496
2497 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2498
2499 * sysdeps/s390/multiarch/Makefile
2500 (sysdep_routines): Remove memrchr variants.
2501 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
2502 * sysdeps/s390/multiarch/ifunc-impl-list.c
2503 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
2504 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
2505 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
2506 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
2507 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
2508 * sysdeps/s390/multiarch/memrchr.c: Move to ...
2509 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
2510 * sysdeps/s390/ifunc-memrchr.h: New file.
2511
2512 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2513
2514 * sysdeps/s390/multiarch/Makefile
2515 (sysdep_routines): Remove memccpy variants.
2516 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
2517 * sysdeps/s390/multiarch/ifunc-impl-list.c
2518 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
2519 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
2520 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
2521 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
2522 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
2523 * sysdeps/s390/multiarch/memccpy.c: Move to ...
2524 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
2525 * sysdeps/s390/ifunc-memccpy.h: New file.
2526
2527 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2528
2529 * sysdeps/s390/multiarch/Makefile
2530 (sysdep_routines): Remove rawmemchr variants.
2531 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
2532 * sysdeps/s390/multiarch/ifunc-impl-list.c
2533 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
2534 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
2535 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
2536 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
2537 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
2538 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
2539 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
2540 * sysdeps/s390/ifunc-rawmemchr.h: New file.
2541
2542 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2543
2544 * sysdeps/s390/multiarch/Makefile
2545 (sysdep_routines): Remove memchr variants.
2546 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
2547 * sysdeps/s390/multiarch/ifunc-impl-list.c
2548 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
2549 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
2550 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
2551 * sysdeps/s390/multiarch/memchr.c: Move to ...
2552 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
2553 * sysdeps/s390/ifunc-memchr.h: New file.
2554 * sysdeps/s390/s390-64/memchr.S: Move to ...
2555 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
2556 for 31/64bit and ifunc handling.
2557 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
2558 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
2559 * sysdeps/s390/s390-32/memchr.S: Likewise.
2560
2561 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2562
2563 * sysdeps/s390/multiarch/Makefile
2564 (sysdep_routines): Remove strcspn variants.
2565 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
2566 * sysdeps/s390/multiarch/ifunc-impl-list.c
2567 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
2568 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
2569 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
2570 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
2571 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
2572 * sysdeps/s390/multiarch/strcspn.c: Move to ...
2573 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
2574 * sysdeps/s390/ifunc-strcspn.h: New file.
2575
2576 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2577
2578 * sysdeps/s390/multiarch/Makefile
2579 (sysdep_routines): Remove strpbrk variants.
2580 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
2581 * sysdeps/s390/multiarch/ifunc-impl-list.c
2582 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
2583 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
2584 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
2585 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
2586 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
2587 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
2588 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
2589 * sysdeps/s390/ifunc-strpbrk.h: New file.
2590
2591 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2592
2593 * sysdeps/s390/multiarch/Makefile
2594 (sysdep_routines): Remove strspn variants.
2595 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
2596 * sysdeps/s390/multiarch/ifunc-impl-list.c
2597 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
2598 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
2599 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
2600 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
2601 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
2602 * sysdeps/s390/multiarch/strspn.c: Move to ...
2603 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
2604 * sysdeps/s390/ifunc-strspn.h: New file.
2605
2606 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2607
2608 * sysdeps/s390/multiarch/Makefile
2609 (sysdep_routines): Remove strrchr variants.
2610 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
2611 * sysdeps/s390/multiarch/ifunc-impl-list.c
2612 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
2613 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
2614 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
2615 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
2616 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
2617 * sysdeps/s390/multiarch/strrchr.c: Move to ...
2618 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
2619 * sysdeps/s390/ifunc-strrchr.h: New file.
2620
2621 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2622
2623 * sysdeps/s390/multiarch/Makefile
2624 (sysdep_routines): Remove strchrnul variants.
2625 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
2626 * sysdeps/s390/multiarch/ifunc-impl-list.c
2627 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
2628 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
2629 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
2630 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
2631 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
2632 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
2633 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
2634 * sysdeps/s390/ifunc-strchrnul.h: New file.
2635
2636 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2637
2638 * sysdeps/s390/multiarch/Makefile
2639 (sysdep_routines): Remove strchr variants.
2640 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
2641 * sysdeps/s390/multiarch/ifunc-impl-list.c
2642 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
2643 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
2644 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
2645 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
2646 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
2647 * sysdeps/s390/multiarch/strchr.c: Move to ...
2648 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
2649 * sysdeps/s390/ifunc-strchr.h: New file.
2650
2651 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2652
2653 * sysdeps/s390/multiarch/Makefile
2654 (sysdep_routines): Remove strncmp variants.
2655 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
2656 * sysdeps/s390/multiarch/ifunc-impl-list.c
2657 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
2658 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
2659 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
2660 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
2661 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
2662 * sysdeps/s390/multiarch/strncmp.c: Move to ...
2663 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
2664 * sysdeps/s390/ifunc-strncmp.h: New file.
2665
2666 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2667
2668 * sysdeps/s390/multiarch/Makefile
2669 (sysdep_routines): Remove strcmp variants.
2670 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
2671 * sysdeps/s390/multiarch/ifunc-impl-list.c
2672 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
2673 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
2674 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
2675 * sysdeps/s390/multiarch/strcmp.c: Move to ...
2676 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
2677 * sysdeps/s390/ifunc-strcmp.h: New file.
2678 * sysdeps/s390/s390-64/strcmp.S: Move to ...
2679 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
2680 for 31/64bit and ifunc handling.
2681 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
2682 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
2683 * sysdeps/s390/s390-32/strcmp.S: Likewise.
2684
2685 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2686
2687 * sysdeps/s390/multiarch/Makefile
2688 (sysdep_routines): Remove strncat variants.
2689 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
2690 * sysdeps/s390/multiarch/ifunc-impl-list.c
2691 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
2692 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
2693 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
2694 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
2695 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
2696 * sysdeps/s390/multiarch/strncat.c: Move to ...
2697 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
2698 * sysdeps/s390/ifunc-strncat.h: New file.
2699
2700 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2701
2702 * sysdeps/s390/multiarch/Makefile
2703 (sysdep_routines): Remove strcat variants.
2704 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
2705 * sysdeps/s390/multiarch/ifunc-impl-list.c
2706 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
2707 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
2708 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
2709 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
2710 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
2711 * sysdeps/s390/multiarch/strcat.c: Move to ...
2712 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
2713 * sysdeps/s390/ifunc-strcat.h: New file.
2714
2715 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2716
2717 * sysdeps/s390/multiarch/Makefile
2718 (sysdep_routines): Remove stpncpy variants.
2719 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
2720 * sysdeps/s390/multiarch/ifunc-impl-list.c
2721 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
2722 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
2723 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
2724 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
2725 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
2726 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
2727 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
2728 * sysdeps/s390/ifunc-stpncpy.h: New file.
2729
2730 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2731
2732 * sysdeps/s390/multiarch/Makefile
2733 (sysdep_routines): Remove strncpy variants.
2734 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
2735 * sysdeps/s390/multiarch/ifunc-impl-list.c
2736 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
2737 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
2738 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
2739 * sysdeps/s390/multiarch/strncpy.c: Move to ...
2740 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
2741 * sysdeps/s390/ifunc-strncpy.h: New file.
2742 * sysdeps/s390/s390-64/strncpy.S: Move to ...
2743 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
2744 and adjust ifunc handling.
2745 * sysdeps/s390/s390-32/strncpy.S: Move to ...
2746 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
2747 and adjust ifunc handling.
2748 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
2749 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
2750
2751 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2752
2753 * sysdeps/s390/multiarch/Makefile
2754 (sysdep_routines): Remove stpcpy variants.
2755 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
2756 * sysdeps/s390/multiarch/ifunc-impl-list.c
2757 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
2758 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
2759 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
2760 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
2761 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
2762 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
2763 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
2764 * sysdeps/s390/ifunc-stpcpy.h: New file.
2765
2766 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2767
2768 * sysdeps/s390/multiarch/Makefile
2769 (sysdep_routines): Remove strcpy variants.
2770 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
2771 * sysdeps/s390/multiarch/ifunc-impl-list.c
2772 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
2773 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
2774 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
2775 * sysdeps/s390/multiarch/strcpy.c: Move to ...
2776 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
2777 * sysdeps/s390/ifunc-strcpy.h: New file.
2778 * sysdeps/s390/s390-64/strcpy.S: Move to ...
2779 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
2780 for 31/64bit and ifunc handling.
2781 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
2782 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
2783 * sysdeps/s390/s390-32/strcpy.S: Likewise.
2784
2785 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2786
2787 * sysdeps/s390/multiarch/Makefile
2788 (sysdep_routines): Remove strnlen variants.
2789 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
2790 * sysdeps/s390/multiarch/ifunc-impl-list.c
2791 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
2792 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
2793 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
2794 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
2795 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
2796 * sysdeps/s390/multiarch/strnlen.c: Move to ...
2797 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
2798 * sysdeps/s390/ifunc-strnlen.h: New file.
2799
2800 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2801
2802 * sysdeps/s390/multiarch/Makefile
2803 (sysdep_routines): Remove strlen variants.
2804 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
2805 * sysdeps/s390/multiarch/ifunc-impl-list.c
2806 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
2807 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
2808 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
2809 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
2810 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
2811 * sysdeps/s390/multiarch/strlen.c: Move to ...
2812 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
2813 * sysdeps/s390/ifunc-strlen.h: New file.
2814
2815 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2816
2817 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
2818 * sysdeps/s390/multiarch/ifunc-impl-list.c
2819 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
2820 * sysdeps/s390/ifunc-memmem.h: New file.
2821 * sysdeps/s390/memmem.c: Likewise.
2822 * sysdeps/s390/memmem-c.c: Likewise.
2823 * sysdeps/s390/memmem-vx.c: Likewise.
2824
2825 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2826
2827 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
2828 * sysdeps/s390/multiarch/ifunc-impl-list.c
2829 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
2830 * sysdeps/s390/ifunc-strstr.h: New file.
2831 * sysdeps/s390/strstr.c: Likewise.
2832 * sysdeps/s390/strstr-c.c: Likewise.
2833 * sysdeps/s390/strstr-vx.c: Likewise.
2834
2835 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2836
2837 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
2838 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
2839 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
2840 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
2841 New defines.
2842 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
2843 * sysdeps/s390/memmove-c.c: New file.
2844 * sysdeps/s390/memmove.c: Likewise.
2845 * sysdeps/s390/multiarch/ifunc-impl-list.c
2846 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
2847
2848 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2849
2850 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
2851 * sysdeps/s390/configure.ac: Add check for z13 support.
2852 * sysdeps/s390/configure: Regenerated.
2853
2854 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2855
2856 * sysdeps/s390/memcopy.h: New file.
2857
2858 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2859
2860 * sysdeps/s390/s390-32/bcopy.S: Remove.
2861 * sysdeps/s390/s390-64/bcopy.S: Likewise.
2862
2863 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2864
2865 * sysdeps/s390/ifunc-memcpy.h: New File.
2866 * sysdeps/s390/memcpy.S: Move to ...
2867 * sysdeps/s390/memcpy-z900.S ... here.
2868 Move implementations from memcpy-s390x.s to here.
2869 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
2870 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2871 Remove memcpy/mempcpy variants.
2872 * sysdeps/s390/Makefile (sysdep_routines):
2873 Add memcpy/mempcpy variants.
2874 * sysdeps/s390/multiarch/ifunc-impl-list.c
2875 (__libc_ifunc_impl_list): Adjust ifunc variants for
2876 memcpy and mempcpy.
2877 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
2878 to ...
2879 * sysdeps/s390/memcpy.c: ... here.
2880 Adjust ifunc variants for memcpy.
2881 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
2882 * sysdeps/s390/mempcpy.c: ... here.
2883 Adjust ifunc variants for mempcpy.
2884 * sysdeps/s390/mempcpy.S: Delete file.
2885
2886 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2887
2888 * sysdeps/s390/s390-64/memcpy.S: Move to ...
2889 * sysdeps/s390/memcpy.S: ... here.
2890 Adjust to be usable for 31/64bit.
2891 * sysdeps/s390/s390-32/memcpy.S: Delete File.
2892 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
2893 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
2894 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2895 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
2896 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
2897 Adjust to be usable for 31/64bit.
2898 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
2899 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
2900 * sysdeps/s390/multiarch/memcpy.c: ... here.
2901 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
2902
2903 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2904
2905 * sysdeps/s390/ifunc-memcmp.h: New File.
2906 * sysdeps/s390/memcmp.S: Move to ...
2907 * sysdeps/s390/memcmp-z900.S ... here.
2908 Move implementations from memcmp-s390x.s to here.
2909 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
2910 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2911 Remove memcmp variants.
2912 * sysdeps/s390/Makefile (sysdep_routines):
2913 Add memcmp variants.
2914 * sysdeps/s390/multiarch/ifunc-impl-list.c
2915 (__libc_ifunc_impl_list): Adjust ifunc variants for
2916 memcmp.
2917 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
2918 to ...
2919 * sysdeps/s390/memcmp.c: ... here.
2920 Adjust ifunc variants for memcmp.
2921
2922 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2923
2924 * sysdeps/s390/s390-64/memcmp.S: Move to ...
2925 * sysdeps/s390/memcmp.S: ... here.
2926 Adjust to be usable for 31/64bit.
2927 * sysdeps/s390/s390-32/memcmp.S: Delete File.
2928 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
2929 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
2930 Remove memcmp.
2931 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2932 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
2933 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
2934 Adjust to be usable for 31/64bit.
2935 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
2936 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
2937 * sysdeps/s390/multiarch/memcmp.c: ... here.
2938 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
2939
2940 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2941
2942 * sysdeps/s390/s390-32/bzero.S: Delete file.
2943 * sysdeps/s390/s390-64/bzero.S: Likewise.
2944 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
2945 * sysdeps/s390/bzero.c: New file.
2946 * sysdeps/s390/memset-z900.S: Add bzero entry points.
2947 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
2948 * sysdeps/s390/multiarch/ifunc-impl-list.c
2949 (__libc_ifunc_impl_list): Add bzero ifunc variants.
2950
2951 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2952
2953 * sysdeps/s390/ifunc-memset.h: New File.
2954 * sysdeps/s390/memset.S: Move to ...
2955 * sysdeps/s390/memset-z900.S ... here.
2956 Move implementations from memset-s390x.s to here.
2957 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
2958 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2959 Remove memset variants.
2960 * sysdeps/s390/Makefile (sysdep_routines):
2961 Add memset variants.
2962 * sysdeps/s390/multiarch/ifunc-impl-list.c
2963 (__libc_ifunc_impl_list): Adjust ifunc variants for
2964 memset.
2965 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
2966 to ...
2967 * sysdeps/s390/memset.c: ... here.
2968 Adjust ifunc variants for memset.
2969
2970 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2971
2972 * sysdeps/s390/s390-64/memset.S: Move to ...
2973 * sysdeps/s390/memset.S: ... here.
2974 Adjust to be usable for 31/64bit.
2975 * sysdeps/s390/s390-32/memset.S: Delete File.
2976 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
2977 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
2978 Remove memset.
2979 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2980 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
2981 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
2982 Adjust to be usable for 31/64bit.
2983 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
2984 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
2985 * sysdeps/s390/multiarch/memset.c: ... here.
2986 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
2987
2988 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2989
2990 * sysdeps/s390/multiarch/ifunc-resolve.h
2991 (s390_libc_ifunc_init, s390_libc_ifunc,
2992 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
2993
2994 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2995
2996 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
2997 * sysdeps/s390/configure.ac: Add check for z10 support.
2998 * sysdeps/s390/configure: Regenerated.
2999
3000 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3001
3002 * sysdeps/i386/atomic-machine.h: Merged with ...
3003 * sysdeps/x86_64/atomic-machine.h: To ...
3004 * sysdeps/x86/atomic-machine.h: This. New file.
3005
3006 2018-12-18 Florian Weimer <fweimer@redhat.com>
3007
3008 Rewrite locale/gen-translit.pl in Python.
3009 * locale/Makefile (generated): Add C-translit.h.
3010 (before-compile): Add $(objpfx)C-translit.h.
3011 (C-translit.h): Move to $(objpfx). Create target directory.
3012 Build using Python script.
3013 * locale/gen-translit.py: New file.
3014 * locale/gen-translit.pl: Remove file.
3015 * locale/C-translit.h.in: Change comment character to '#' for
3016 easier parsing without a C preprocessor.
3017 * locale/C-translit.h: Remove generated file.
3018 * manual/install.texi (Tools for Compilation): Do not mention
3019 C-translit.h.
3020 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3021 Remove locale/C-translit.h.
3022 * scripts/update-copyrights: Likewise.
3023 * INSTALL: Regenerate.
3024
3025 2018-12-18 Florian Weimer <fweimer@redhat.com>
3026
3027 [BZ #23995]
3028 * localedata/locales/bi_VU: Remove executable bit from file.
3029
3030 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3031
3032 * include/time.h
3033 (__localtime64): Add.
3034 * manual/maint.texi: Document Y2038 symbol handling.
3035 * time/localtime.c
3036 (__localtime64): Add.
3037 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3038
3039 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3040
3041 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3042 Do not clobber r12.
3043
3044 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3045 to allow extra macros from first or second sources.
3046 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3047 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3048 (tests-special): Add $(objpfx)tst-mman-consts.out.
3049 ($(objpfx)tst-mman-consts.out): New makefile target.
3050
3051 2018-12-17 Mao Han <han_mao@c-sky.com>
3052
3053 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3054 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3055 without stat64 system call support.
3056 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3057 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3058 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3059 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3060 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3061 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3062 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3063 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3064 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3065 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3066 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3067
3068 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3069
3070 regex: fix storage-exhaustion error
3071 [BZ #18040]
3072 * posix/regexec.c (get_subexp):
3073 Do not continue if storage is exhausted.
3074
3075 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3076
3077 regex: fix heap-use-after-free error
3078 [BZ #18040]
3079 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3080 https://debbugs.gnu.org/32592
3081 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3082 call extend_buffers which reallocates the re_string_t internal buffer.
3083 Local variable 'buf' was not updated in such case, resulting in
3084 use-after-free.
3085 * posix/regexec.c (get_subexp): Update 'buf' after call to
3086 get_subexp_sub.
3087
3088 2018-12-15 Florian Weimer <fweimer@redhat.com>
3089
3090 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3091 (minimum_stride_size): Use it.
3092 (support_blob_repeat_allocate): Likewise.
3093
3094 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3095
3096 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3097 definition.
3098 (acosh): Likewise.
3099 (atanh): Likewise.
3100
3101 2018-12-14 Florian Weimer <fweimer@redhat.com>
3102
3103 * manual/process.texi (Process Creation Concepts): Remove
3104 documentation of process (ID) lifetime. List more process
3105 creation functions. Reference Process Identification section.
3106 (Process Identification): Add information about process ID
3107 lifetime. Describe Linux thread/task IDs.
3108 * manual/signal.texi (Signaling Another Process): Mention that the
3109 signal is always sent to the process.
3110
3111 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3112
3113 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3114 and tst-ldbl-efgcvt.
3115 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3116 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3117 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3118 (fcvt_tests, output_error, output_r_error, do_test): Use the
3119 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3120 select the type of floating-point variables and arguments; to
3121 produce extra tests for double and conversion specifiers for
3122 printf; and to set the names of called functions.
3123 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3124 in tst-efgcvt-template.c.
3125 * misc/tst-ldbl-efgcvt.c: Likewise.
3126
3127 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3128
3129 * nss/Makefile (tst-nss-test3.out): New rule.
3130
3131 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3132
3133 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3134 clobber sp.
3135
3136 2018-12-13 fanjinke <fanjinke@hygon.cn>
3137
3138 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3139 "HygonGenuine".
3140
3141 2018-12-13 Andreas Schwab <schwab@suse.de>
3142
3143 [BZ #23861]
3144 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3145 (__pthread_rwlock_rdlock_full): Update expected value for
3146 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3147 * nptl/tst-rwlock-pwn.c: New file.
3148 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3149
3150 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3151
3152 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3153 definition.
3154
3155 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3156
3157 * benchtests/scripts/compare_bench.py (do_compare): write to
3158 stderr in casestat is not present.
3159 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3160 stderr in case timings field is not present. Also string showing
3161 the output filename goes into the stderr.
3162
3163 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3164
3165 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3166 and ZeroDivisorError exceptions.
3167 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3168 argument to loop through user provided statistics.
3169 * benchtests/scripts/compare_bench.py (main): Include the --stats
3170 argument.
3171
3172 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3173
3174 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3175 instead of return.
3176
3177 2018-12-12 Florian Weimer <fweimer@redhat.com>
3178
3179 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3180 clause to copyright header.
3181
3182 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3183
3184 [BZ #23614]
3185 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3186 registers saved in the stack frame.
3187 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3188 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3189
3190 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3191
3192 * include/bits/monetary-ldbl.h: New file.
3193 * include/bits/printf-ldbl.h: Likewise.
3194 * include/bits/stdio-ldbl.h: Likewise.
3195 * include/bits/stdlib-ldbl.h: Likewise.
3196 * include/bits/syslog-ldbl.h: Likewise.
3197 * include/bits/wchar-ldbl.h: Likewise.
3198
3199 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3200
3201 * libio/libio.h: Remove redirection for _IO_vfprintf.
3202
3203 2018-12-11 Andreas Schwab <schwab@suse.de>
3204
3205 * Makerules: Remove all references to abilist-pattern.
3206 (update-all-abi): Simplify find expression.
3207
3208 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3209
3210 [BZ #23961]
3211 * math/auto-libm-test-in: Add new test case.
3212 * math/auto-libm-test-out-pow: Regenerated.
3213 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3214
3215 2018-12-10 DJ Delorie <dj@redhat.com>
3216
3217 [BZ #23948]
3218 * support/test-container.c: Move postclean step to before we
3219 change namespaces.
3220
3221 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3222
3223 * scripts/gen-as-const.py (main): Handle --python option.
3224 * scripts/gen-py-const.awk: Remove.
3225 * Makerules (py-const-script): Use gen-as-const.py.
3226 ($(py-const)): Likewise.
3227 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3228 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3229 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3230 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3231 ~PTHREAD_MUTEX_NO_ELISION_NP.
3232 * manual/README.pretty-printers: Update reference to
3233 gen-py-const.awk.
3234
3235 * scripts/glibcextract.py: New file.
3236 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3237 or tempfile. Import glibcexctract.
3238 (compute_c_consts): Remove. Moved to glibcextract.py.
3239 (gen_test): Update reference to compute_c_consts.
3240 (main): Likewise.
3241 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3242 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3243 * sysdeps/unix/sysv/linux/Makefile
3244 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3245 Redirect stderr as well as stdout.
3246
3247 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3248
3249 [BZ #19767]
3250 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3251 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3252 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3253 ALWAYS_USE_VSYSCALL.
3254 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3255 ALWAYS_USE_VSYSCALL.
3256 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3257 ALWAYS_USE_VSYSCALL.
3258
3259 2018-12-10 Florian Weimer <fweimer@redhat.com>
3260
3261 [BZ #23972]
3262 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3263 offset instead of count for clarity. Fix typo in comment.
3264 (__old_getdents64): Keep track of previous offset. Use it to call
3265 handle_overflow.
3266 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3267 that d_off is never zero.
3268
3269 2018-12-10 Andreas Schwab <schwab@suse.de>
3270
3271 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3272 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3273 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3274 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3275 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3276
3277 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3278
3279 * timezone/private.h: Update from tzcode 2018g.
3280 * timezone/tzfile.h: Likewise.
3281 * timezone/tzselect.ksh: Likewise.
3282 * timezone/zdump.c: Likewise.
3283 * timezone/zic.c: Likewise.
3284
3285 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3286
3287 [BZ #23490]
3288 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3289 (do_test): Adjust buffer size and fix format.
3290
3291 2018-12-07 DJ Delorie <dj@redhat.com>
3292
3293 [BZ #23907]
3294 * malloc/tst-tcfree3.c: New.
3295 * malloc/Makefile: Add it.
3296
3297 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3298
3299 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3300
3301 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3302
3303 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3304 used as a mask for the mode argument of __vfscanf_internal and
3305 __vfwscanf_internal.
3306 * stdio-common/vfscanf-internal.c
3307 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3308 (__strtof128_internal): Define to __wcstof128_internal.
3309 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3310 __strtof128_internal or __wcstof128_internal when the format of
3311 long double is the same as _Float128.
3312
3313 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3314
3315 * include/unistd.h (__confstr): Add prototype and hidden prototype.
3316 * posix/confstr.c (confstr): Rename to __confstr.
3317 (__confstr): Add hidden def.
3318 (confstr): Add weak alias for __confstr.
3319 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
3320 confstr.
3321
3322 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3323
3324 * NEWS: Mention getcpu.
3325 * include/sched.h (__getcpu): New libc_hidden_proto.
3326 * manual/resource.texi: Document getcpu.
3327 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3328 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3329 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3330 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3331 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3332 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3333 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3334 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3335 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3336 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3337 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3338 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3339 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3340 Likewise.
3341 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3342 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3343 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3344 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3345 Likewise.
3346 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3347 Likewise.
3348 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3349 Likewise.
3350 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3351 Likewise.
3352 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3353 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3354 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3355 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3356 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3357 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3358 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3359 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3360 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
3361 * sysdeps/unix/sysv/linux/getcpu.c: New file.
3362 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
3363 Also check getcpu.
3364
3365 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3366
3367 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
3368 functions.
3369 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
3370
3371 2018-12-07 Florian Weimer <fweimer@redhat.com>
3372
3373 [BZ #17405]
3374 * posix/Makefile (routines): Add spawn_faction_addfchdir.
3375 * posix/Versions (GLIBC_2.29): Export
3376 posix_spawn_file_actions_addfchdir_np.
3377 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
3378 * posix/spawn_faction_destroy.c
3379 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
3380 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
3381 and the field action.fchdir_action.
3382 * posix/tst-spawn-chdir.c (add_chdir): New function.
3383 (do_test): Add do_fchdir loop. Call add_chdir.
3384 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
3385 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3386 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
3387 posix_spawn_file_actions_addfchdir_np.
3388 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
3389 Likewise.
3390 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
3391 Likewise.
3392 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
3393 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
3394 Likewise.
3395 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
3396 Likewise.
3397 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
3398 Likewise.
3399 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
3400 Likewise.
3401 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
3402 Likewise.
3403 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
3404 Likewise.
3405 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3406 (GLIBC_2.29): Likewise.
3407 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3408 (GLIBC_2.29): Likewise.
3409 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3410 (GLIBC_2.29): Likewise.
3411 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3412 (GLIBC_2.29): Likewise.
3413 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
3414 Likewise.
3415 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3416 (GLIBC_2.29): Likewise.
3417 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3418 (GLIBC_2.29): Likewise.
3419 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
3420 (GLIBC_2.29): Likewise.
3421 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
3422 (GLIBC_2.29): Likewise.
3423 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
3424 Likewise.
3425 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
3426 Likewise.
3427 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
3428 Likewise.
3429 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
3430 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
3431 Likewise.
3432 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
3433 Likewise.
3434 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
3435 Likewise.
3436 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
3437 Likewise.
3438
3439 2018-12-06 Joseph Myers <joseph@codesourcery.com>
3440
3441 * manual/texinfo.tex: Update to version 2018-09-21.20 with
3442 trailing whitespace removed.
3443 * scripts/config.guess: Update to version 2018-11-28.
3444 * scripts/config.sub: Update to version 2018-11-28.
3445 * scripts/install-sh: Update to version 2018-03-11.20.
3446 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
3447 * scripts/move-if-change: Update to version 2018-03-07 03:47.
3448
3449 2018-12-07 Florian Weimer <fweimer@redhat.com>
3450
3451 [BZ #23927]
3452 CVE-2018-19591
3453 * inet/tst-if_index-long.c: New file.
3454 * inet/Makefile (tests): Add tst-if_index-long.
3455
3456 2018-12-07 Florian Weimer <fweimer@redhat.com>
3457
3458 * support/check.h (support_record_failure_is_failed): Declare.
3459 * support/descriptors.h: New file.
3460 * support/support_descriptors.c: Likewise.
3461 * support/tst-support_descriptors.c: Likewise.
3462 * support/support_record_failure.c
3463 (support_record_failure_is_failed): New function.
3464 * support/Makefile (libsupport-routines): Add support_descriptors.
3465 (tests): Add tst-support_descriptors.
3466
3467 2018-12-05 Zack Weinberg <zackw@panix.com>
3468 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3469
3470 * stdio-common/vfprintf-internal.c
3471 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
3472 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
3473 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
3474 and __no_long_double.
3475 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
3476 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
3477 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
3478 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
3479 and __nldbl_*syslog* functions.
3480 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
3481 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
3482 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
3483 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
3484 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
3485 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
3486 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
3487 (__nldbl_vwprintf, __nldbl_wprintf):
3488 Directly call the appropriate __v*printf_internal routine, passing
3489 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
3490 variable names.
3491 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
3492 (__nldbl___printf_chk, __nldbl___snprintf_chk)
3493 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
3494 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
3495 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
3496 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3497 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
3498 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
3499 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
3500 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
3501 Likewise, and also pass PRINTF_FORTIFY when appropriate.
3502 (__nldbl_syslog, __nldbl_vsyslog):
3503 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
3504 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3505 appropriate.
3506 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3507 appropriate.
3508
3509 2018-12-05 Zack Weinberg <zackw@panix.com>
3510 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3511
3512 [BZ #11319]
3513 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
3514 Moved here from debug/vsprintf_chk.c.
3515 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
3516 and completion logic for the strfile to match exactly what
3517 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
3518 _IO_str_init_static_internal instead of maxlen-1.
3519 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3520 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
3521 __vsprintf_internal.
3522
3523 * debug/vsprintf_chk.c (__vsprintf_chk)
3524 * debug/sprintf_chk.c (__sprintf_chk):
3525 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
3526 'flags' argument is positive, and slen as maxlen. No need to lock
3527 the FILE and/or construct a temporary FILE. Minimize and normalize
3528 header inclusions and variable names. Do not libc_hidden_def anything.
3529
3530 * debug/asprintf_chk.c (__asprintf_chk)
3531 * debug/dprintf_chk.c (__dprintf_chk)
3532 * debug/fprintf_chk.c (__fprintf_chk)
3533 * debug/fwprintf_chk.c (__fwprintf_chk)
3534 * debug/printf_chk.c (__printf_chk)
3535 * debug/snprintf_chk.c (__snprintf_chk)
3536 * debug/swprintf_chk.c (__swprintf_chk)
3537 * debug/vasprintf_chk.c (__vasprintf_chk)
3538 * debug/vdprintf_chk.c (__vdprintf_chk)
3539 * debug/vfprintf_chk.c (__vfprintf_chk)
3540 * debug/vfwprintf_chk.c (__vfwprintf_chk)
3541 * debug/vprintf_chk.c (__vprintf_chk)
3542 * debug/vsnprintf_chk.c (__vsnprintf_chk)
3543 * debug/vswprintf_chk.c (__vswprintf_chk)
3544 * debug/vwprintf_chk.c (__vwprintf_chk)
3545 * debug/wprintf_chk.c (__wprintf_chk):
3546 Directly call the corresponding vxxprintf_internal function, passing
3547 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
3548 the FILE and/or construct a temporary FILE. Minimize and normalize
3549 header inclusions and variable names. Do not libc_hidden_def anything.
3550
3551 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
3552 __obstack_vprintf_internal.
3553 (__obstack_vprintf_chk): Convert into a wrapper that calls
3554 __obstack_vprintf_internal (these two functions already had the
3555 same code) and move to new file...
3556 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
3557 file.
3558 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
3559 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
3560 * debug/Makefile (routines): Add vobprintf_chk.
3561
3562 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3563 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3564 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
3565 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3566 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
3567 (__nldbl___obstack_vfprintf_chk):
3568 Directly call the corresponding vxxprintf_internal function,
3569 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
3570 duplicate comparison of slen with 0 or maxlen from the corresponding
3571 non-__nldbl function.
3572
3573 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
3574 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
3575 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
3576 Remove libc_hidden_proto.
3577
3578 * stdio-common/vfprintf-internal.c
3579 (__vfprintf_internal, __vfwprintf_internal):
3580 Do not check _IO_FLAGS2_FORTIFY.
3581 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
3582 * libio/libioP.h: Update prototype of __vsprintf_internal and add
3583 a comment explaining why it has the maxlen argument.
3584 (_IO_acquire_lock_clear_flags2_fct): Remove.
3585 (_IO_acquire_lock_clear_flags2): Remove.
3586 (_IO_release_lock): Remove conditional statement which will
3587 now never execute.
3588 (_IO_acquire_lock): Remove variable which is now unused.
3589 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3590 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3591
3592 * stdio-common/Makefile (tests): Add tst-bz11319 and
3593 tst-bz11319-fortify2.
3594 (CFLAGS-tst-bz11319-fortify2.c): New macro.
3595 * stdio-common/tst-bz11319-fortify2.c: New file.
3596 * stdio-common/tst-bz11319.c: Likewise.
3597
3598 2018-12-05 Zack Weinberg <zackw@panix.com>
3599 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3600
3601 * misc/syslog.c: Include libioP.h, not iolibio.h.
3602 (__vsyslog_internal): New function with the former body of
3603 __vsyslog_chk; takes mode_flags argument same as
3604 __v*printf_internal. Call __vfprintf_internal directly.
3605
3606 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
3607 Remove libc_hidden_def.
3608 (__syslog, __syslog_chk): Use __vsyslog_internal.
3609 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
3610
3611 * include/sys/syslog.h: Add multiple inclusion guard.
3612 Add prototype for __vsyslog_internal.
3613 Remove declaration and libc_hidden_proto for __vsyslog_chk.
3614
3615 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
3616 Use __vsyslog_internal.
3617
3618 2018-12-05 Zack Weinberg <zackw@panix.com>
3619 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3620
3621 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
3622 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
3623 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
3624 New functions.
3625 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
3626 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
3627
3628 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
3629 Include wctype.h here if COMPILE_WPRINTF is defined.
3630 Define __vfprintf_internal or __vfwprintf_internal, depending
3631 on COMPILE_WPRINTF.
3632 Temporarily, on entry to this function, update mode_flags
3633 according to the environmental settings corresponding to
3634 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
3635 Throughout, check mode_flags instead of __ldbl_is_dbl and
3636 _IO_FLAGS2_FORTIFY on the destination FILE.
3637 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
3638 Include vfprintf-internal.c. Don't include wctype.h.
3639 * stdio-common/vfprintf.c: New file. Just define __vfprintf
3640 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
3641 and vfprintf.
3642 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
3643 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
3644 and vfwprintf.
3645 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
3646
3647 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
3648 and add mode_flags argument; use __vfprintf_internal.
3649 (__vdprintf): New function. Alias vdprintf to this.
3650 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
3651 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
3652 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
3653 (__obstack_printf): Use __obstack_printf_internal.
3654 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
3655 public aliases __vsnprintf and vsnprintf.
3656 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
3657 called internally.
3658 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
3659 public aliases _IO_vsprintf and vsprintf.
3660 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
3661 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
3662 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
3663 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
3664 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
3665
3666 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
3667 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
3668 * stdio-common/fprintf.c, stdio-common/fxprintf.c
3669 * stdio-common/printf.c: Use __vfprintf_internal.
3670
3671 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
3672 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
3673 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
3674
3675 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
3676 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
3677 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
3678 __vfwprintf_internal.
3679
3680 * libio/libio.h: Remove libc_hidden_proto and declaration for
3681 _IO_vfprintf.
3682 Remove declaration of _IO_vfwprintf.
3683 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
3684 _IO_vsprintf.
3685 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
3686 _IO_obstack_printf.
3687 * include/stdio.h: Add prototype for __vasprintf.
3688 (__vsnprintf): Remove declaration, because there are no more
3689 internal calls.
3690 * include/wchar.h (__vfwprintf, __vswprintf): Remove
3691 declaration, because there are no more internal calls.
3692
3693 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
3694 __vsnprintf_internal, instead of _IO_vsnprintf.
3695 * argp/argp-help.c (__argp_error, __argp_failure): Use
3696 __vasprintf_internal, instead of _IO_vasprintf.
3697 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
3698 redefine, because there are no more internal calls.
3699
3700 2018-12-05 Zack Weinberg <zackw@panix.com>
3701 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3702
3703 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
3704 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
3705 Include libio/strfile.h instead of libioP.h.
3706 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
3707 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
3708 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
3709 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
3710 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
3711 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
3712 necessary. Do not set __no_long_double. Normalize variable names.
3713 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
3714 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
3715 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
3716 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
3717 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
3718 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
3719 Call __vfscanf_internal / __vfwscanf_internal directly, passing
3720 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
3721 Do not set __no_long_double. Normalize variable names.
3722
3723 2018-12-05 Zack Weinberg <zackw@panix.com>
3724 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3725
3726 * stdio-common/isoc99_scanf.c
3727 * stdio-common/isoc99_fscanf.c
3728 * stdio-common/isoc99_sscanf.c
3729 * stdio-common/isoc99_vscanf.c
3730 * stdio-common/isoc99_vfscanf.c
3731 * stdio-common/isoc99_vsscanf.c
3732 * wcsmbs/isoc99_wscanf.c
3733 * wcsmbs/isoc99_fwscanf.c
3734 * wcsmbs/isoc99_swscanf.c
3735 * wcsmbs/isoc99_vwscanf.c
3736 * wcsmbs/isoc99_vfwscanf.c
3737 * wcsmbs/isoc99_vswscanf.c:
3738 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
3739 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
3740 No need to lock and unlock the FILE passed to that function.
3741
3742 * stdio-common/vfscanf-internal.c
3743 (__vfscanf_internal, __vfwscanf_internal):
3744 Don't look at _IO_FLAGS2_SCANF_STD.
3745 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
3746 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
3747 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
3748
3749 2018-12-05 Zack Weinberg <zackw@panix.com>
3750 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3751
3752 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
3753 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
3754 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
3755 * libio/strfile.h: Add multiple inclusion guard.
3756 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
3757
3758 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
3759 consistency with the other version of this file.
3760 (ldbl_compat_symbol): New macro.
3761 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
3762 New macro.
3763
3764 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
3765 Define __vfscanf_internal or __vfwscanf_internal, depending on
3766 COMPILE_WSCANF; don't define any other public symbols.
3767 Remove errval and code to set errp.
3768 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
3769 as the mode_flags argument.
3770 (encode_error, conv_error, input_error): Don't set errval.
3771 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
3772 Include vfscanf-internal.c.
3773 * stdio-common/vfscanf.c: New file defining the public entry
3774 point vfscanf, which calls __vfscanf_internal.
3775 * stdio-common/vfwscanf.c: New file defining the public entry
3776 point vfwscanf, which calls __vfwscanf_internal.
3777
3778 * stdio-common/iovfscanf.c: New file.
3779 * stdio-common/iovfwscanf.c: Likewise.
3780
3781 * stdio-common/Makefile (routines): Add vfscanf-internal,
3782 vfwscanf-internal, iovfscanf, iovfwscanf.
3783 * stdio-common/Versions: Mention GLIBC_2.29, so that
3784 it can be used in SHLIB_COMPAT expressions.
3785 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
3786 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
3787 Call __vfscanf_internal, instead of _IO_vfscanf.
3788 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
3789 _IO_vfscanf.
3790 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
3791 _IO_vfwscanf.
3792
3793 * libio/iovsscanf.c: Clean up includes, when possible. Use
3794 _IO_strfile_read or _IO_strfile_readw, when needed. Call
3795 __vfscanf_internal or __vfwscanf_internal directly.
3796 * libio/iovswscanf.c: Likewise.
3797 * libio/swscanf.c: Likewise.
3798 * libio/vscanf.c: Likewise.
3799 * libio/vwscanf.c: Likewise.
3800 * libio/wscanf.c: Likewise.
3801 * stdio-common/isoc99_fscanf.c: Likewise.
3802 * stdio-common/isoc99_scanf.c: Likewise.
3803 * stdio-common/isoc99_sscanf.c: Likewise.
3804 * stdio-common/isoc99_vfscanf.c: Likewise.
3805 * stdio-common/isoc99_vscanf.c: Likewise.
3806 * stdio-common/isoc99_vsscanf.c: Likewise.
3807 * stdio-common/scanf.c: Likewise.
3808 * stdio-common/sscanf.c: Likewise.
3809 * wcsmbs/isoc99_fwscanf.c: Likewise.
3810 * wcsmbs/isoc99_swscanf.c: Likewise.
3811 * wcsmbs/isoc99_vfwscanf.c: Likewise.
3812 * wcsmbs/isoc99_vswscanf.c: Likewise.
3813 * wcsmbs/isoc99_vwscanf.c: Likewise.
3814 * wcsmbs/isoc99_wscanf.c: Likewise.
3815
3816 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
3817
3818 * include/time.h
3819 (__tz_compute): Replace time_t with __time64_t.
3820 (__tz_convert): Replace time_t* with __time64_t.
3821 (__offtime): Replace time_t* with __time64_t.
3822 * time/gmtime.c
3823 (__gmtime_r): Adjust call to __tz_convert.
3824 (gmtime): Likewise.
3825 * time/localtime.c
3826 (__localtime_r): Likewise.
3827 (localtime): Likewise.
3828 * time/offtime.c: Replace time_t with __time64_t.
3829 * time/tzset.c: Likewise.
3830
3831 2018-12-04 Joseph Myers <joseph@codesourcery.com>
3832
3833 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
3834 dynamic linker unless [$(run-built-tests) = yes].
3835
3836 2018-12-03 DJ Delorie <dj@delorie.com>
3837
3838 * support/test-container.c (check_for_unshare_hints): New.
3839 (main): Call it if unshare fails. Add support for "su" scriptlet
3840 command.
3841
3842 2018-12-03 Joseph Myers <joseph@codesourcery.com>
3843
3844 * scripts/gen-as-const.py (compute_c_consts): Take an argument
3845 'START' to indicate that start text should be output.
3846 (gen_test): Likewise.
3847 (main): Generate 'START' for first symbol or '--' line, or at end
3848 of input if not previously generated.
3849
3850 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
3851
3852 [BZ #19767]
3853 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
3854 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
3855 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
3856 ALWAYS_USE_VSYSCALL.
3857
3858 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3859
3860 [BZ #23913]
3861 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
3862 new_argv by one.
3863
3864 2018-12-03 Carlos O'Donell <carlos@redhat.com>
3865
3866 [BZ #23923]
3867 * locale/programs/localedef.c: Declare boolean hard_links default true.
3868 (options): Add --no-hard-links option.
3869 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
3870 * locale/programs/localedef.h: Declare prototype for hard_links.
3871 * locale/programs/locfile.c (write_locale_data): Don't use hard
3872 links if hard_links is false.
3873
3874 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
3875
3876 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
3877 cpu_features_basic.
3878 (__cache_sysconf): Likewise.
3879 (init_cacheinfo): Likewise.
3880 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
3881 populate COMMON_CPUID_INDEX_80000007 and
3882 COMMON_CPUID_INDEX_80000008.
3883 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
3884 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
3885 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
3886 (init_cpu_features): Use _Static_assert on
3887 index_arch_Fast_Unaligned_Load.
3888 __get_cpuid_registers and __get_arch_feature. Updated for
3889 cpu_features_basic. Set stepping in cpu_features.
3890 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
3891 (FEATURE_INDEX_2): New.
3892 (FEATURE_INDEX_MAX): Changed to enum.
3893 (COMMON_CPUID_INDEX_D_ECX_1): New.
3894 (COMMON_CPUID_INDEX_80000007): Likewise.
3895 (COMMON_CPUID_INDEX_80000008): Likewise.
3896 (cpuid_registers): Likewise.
3897 (cpu_features_basic): Likewise.
3898 (CPU_FEATURE_USABLE): Likewise.
3899 (bit_arch_XXX_Usable): Likewise.
3900 (cpu_features): Use cpuid_registers and cpu_features_basic.
3901 (bit_arch_XXX): Reweritten.
3902 (bit_cpu_XXX): Likewise.
3903 (index_cpu_XXX): Likewise.
3904 (reg_XXX): Likewise.
3905 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
3906 <support/check.h>.
3907 (CHECK_CPU_FEATURE): New.
3908 (CHECK_CPU_FEATURE_USABLE): Likewise.
3909 (cpu_kinds): Likewise.
3910 (do_test): Print vendor, family, model and stepping. Check
3911 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
3912 (TEST_FUNCTION): Removed.
3913 Include <support/test-driver.c> instead of
3914 "../../test-skeleton.c".
3915 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
3916 Check POPCNT instead of POPCOUNT.
3917 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
3918
3919 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3920
3921 * scripts/gen-as-const.py (main): Avoid emitting empty line when
3922 there is no element in `consts'.
3923
3924 2018-12-01 Florian Weimer <fweimer@redhat.com>
3925
3926 * support/support_capture_subprocess.c
3927 (support_capture_subprocess): Check that pipe descriptors have
3928 expected values. Close original pipe descriptors in subprocess.
3929
3930 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3931
3932 [BZ #23032]
3933 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
3934 attr with __pthread_default_barrierattr.
3935 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
3936 attr with __pthread_default_condattr.
3937 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
3938 attr with __pthread_default_mutexattr.
3939 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
3940 attr with __pthread_default_rwlockattr.
3941
3942 2018-12-01 Kemi Wang <kemi.wang@intel.com>
3943
3944 * manual/tunables.texi (POSIX Thread Tunables): New node.
3945 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
3946 * nptl/nptl-init.c: Include pthread_mutex_conf.h
3947 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
3948 __pthread_tunables_init.
3949 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
3950 (max_adaptive_count): Define.
3951 * nptl/pthread_mutex_conf.c: New file.
3952 * nptl/pthread_mutex_conf.h: New file.
3953 * sysdeps/generic/adaptive_spin_count.h: New file.
3954 * sysdeps/nptl/dl-tunables.list: New file.
3955 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
3956 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
3957 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
3958 Likewise.
3959
3960 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3961
3962 [BZ #20544]
3963 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
3964 * stdlib/on_exit.c (__on_exit): Likewise.
3965 * stdlib/Makefile (tests): Add tst-bz20544.
3966 * stdlib/tst-bz20544.c: New test.
3967
3968 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
3969
3970 [BZ #19767]
3971 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
3972 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
3973 New.
3974
3975 2018-11-30 Florian Weimer <fweimer@redhat.com>
3976
3977 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
3978 Extend error logging.
3979 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
3980 symbol.
3981
3982 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3983
3984 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
3985 __sigismember instead of sigismember.
3986 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
3987 cancel_handler): New definitions.
3988 (do_system): Use posix_spawn instead of fork and execl and remove
3989 reentracy code.
3990 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
3991 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
3992 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
3993 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
3994 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
3995 * sysdeps/unix/sysv/linux/system.c: Likewise.
3996
3997 [BZ #22834]
3998 [BZ #17490]
3999 * NEWS: Add new semantic for atfork with popen and system.
4000 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4001 fork and execl.
4002
4003 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4004
4005 [BZ #23690]
4006 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4007 modification order when accessing reloc_result->addr.
4008 * include/link.h (reloc_result): Add field init.
4009 * nptl/Makefile (tests): Add tst-audit-threads.
4010 (modules-names): Add tst-audit-threads-mod1 and
4011 tst-audit-threads-mod2.
4012 Add rules to build tst-audit-threads.
4013 * nptl/tst-audit-threads-mod1.c: New file.
4014 * nptl/tst-audit-threads-mod2.c: Likewise.
4015 * nptl/tst-audit-threads.c: Likewise.
4016 * nptl/tst-audit-threads.h: Likewise.
4017
4018 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4019
4020 * scripts/gen-as-const.py: New file.
4021 * scripts/gen-as-const.awk: Remove.
4022 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4023 gen-as-const.py.
4024 ($(objpfx)test-as-const-%.c): Likewise.
4025
4026 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4027
4028 * elf/dl-exception.c: Include <_itoa.h>.
4029
4030 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4031
4032 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4033 returned by __f_setlk.
4034
4035 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4036 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4037
4038 * elf/Makefile (tests-internal): Add tst-create_format1.
4039 * elf/dl-exception.c (_dl_exception_create_format): Support
4040 %x, %lx and %zx.
4041 * elf/tst-create_format1.c: New file.
4042
4043 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4044
4045 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4046 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4047 gnulib.)
4048 * argp/argp-help.c (__argp_failure): Likewise.
4049
4050 2018-11-29 Mao Han <han_mao@c-sky.com>
4051
4052 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4053 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4054 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4055 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4056 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4057 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4058 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4059 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4060 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4061 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4062 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4063 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4064 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4065 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4066 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4067 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4068 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4069 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4070 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4071 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4072 (R_CKCORE_TLS_TPOFF32): New defines.
4073
4074 2018-11-29 Florian Weimer <fweimer@redhat.com>
4075
4076 * posix/Makefile (before-compile): Remove testcases.h and
4077 ptestcases.h.
4078 (generated): Add testcases.h and ptestcases.h.
4079 (testcases.h, ptestcases.h): Move to $(objpfx).
4080 (runtests.o): Add dependency on testcases.h.
4081 (runptests.o): Add dependency on ptestcases.h.
4082 * posix/testcases.h, posix/ptestcases.h: Remove files.
4083 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4084 not touch posix/testcases.h and posix/ptestcases.h.
4085
4086 2018-11-28 Florian Weimer <fweimer@redhat.com>
4087
4088 support: Add signal support to support_capture_subprocess_check.
4089 * support/capture_subprocess.h (support_capture_subprocess_check):
4090 Adjust comment and rename parameter.
4091 * support/support_capture_subprocess_check.c
4092 (print_actual_status): New function.
4093 (support_capture_subprocess_check): Support negative
4094 status_or_signal. Call print_actual_status.
4095 * support/tst-support_capture_subprocess.c (do_test): Call
4096 support_capture_subprocess_check.
4097 * libio/tst-vtables-common.c (termination_status)
4098 (init_termination_status): Remove.
4099 (check_for_termination): Adjust support_capture_subprocess_check
4100 call.
4101 (do_test): Remove call to init_termination_status.
4102
4103 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4104
4105 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4106 source directory instead of a copy.
4107 (CommandList.create_copy_dir): Remove.
4108
4109 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4110
4111 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4112
4113 2018-11-28 Florian Weimer <fweimer@redhat.com>
4114
4115 * support/support.h (support_quote_string): Do not use str
4116 parameter name.
4117
4118 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4119
4120 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4121 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4122
4123 2018-11-27 Florian Weimer <fweimer@redhat.com>
4124
4125 * support/support.h (support_quote_string): Declare.
4126 * support/support_quote_string.c: New file.
4127 * support/tst-support_quote_string.c: Likewise.
4128 * support/Makefile (libsupport-routines): Add
4129 support_quote_string.
4130 (tests): Add tst-support_quote_string.
4131
4132 2018-11-27 Florian Weimer <fweimer@redhat.com>
4133
4134 [BZ #23927]
4135 CVE-2018-19591
4136 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4137 descriptor leak in case of ENODEV error.
4138
4139 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4140
4141 [BZ #19767]
4142 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4143 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4144 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4145
4146 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4147
4148 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4149 Error for unknown lines.
4150
4151 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4152
4153 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4154 Touch additional files.
4155
4156 2018-11-26 Florian Weimer <fweimer@redhat.com>
4157
4158 [BZ #23907]
4159 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4160 double-frees.
4161
4162 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4163
4164 [BZ #19767]
4165 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4166 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4167 SHARED. Include sysdep.h.
4168 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4169 ALWAYS_USE_VSYSCALL.
4170 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4171 ALWAYS_USE_VSYSCALL.
4172
4173 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4174
4175 [BZ #19767]
4176 * nptl/Makefile (tests-static): Add tst-cond11-static.
4177 (tests): Likewise.
4178 * nptl/tst-cond11-static.c: New File.
4179 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4180 tst-affinity-static.
4181 (tests): Likewise.
4182 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4183 instead of SHARED.
4184 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4185 (USE_VSYSCALL): Likewise.
4186 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4187 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4188 instead of SHARED.
4189 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4190 SHARED.
4191 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4192 New.
4193
4194 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4195
4196 [BZ #23915]
4197 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4198 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4199 Undefine.
4200
4201 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4202
4203 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4204 (tst-cet-legacy-1a-ARGS): New.
4205 ($(objpfx)tst-cet-legacy-1a): New target.
4206 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4207
4208 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4209
4210 * conform/conformtest.py (CompileSubTest.__init__): Set
4211 self.run_early to False.
4212 (ExecuteSubTest.__init__): Likewise.
4213 (HeaderTests.run): Try running all non-optional, non-XFAILed
4214 compilation tests in a single execution of the compiler.
4215
4216 * conform/conformtest.py (CompileSubTest): New class.
4217 (ExecuteSubTest): Likewise.
4218 (ElementTest.run): Rename to gen_subtests. Append tests to
4219 self.subtests instead of running them.
4220 (ConstantTest.run): Likewise.
4221 (SymbolTest.run): Likewise.
4222 (TypeTest.run): Likewise.
4223 (TagTest.run): Likewise.
4224 (FunctionTest.run): Likewise.
4225 (VariableTest.run): Likewise.
4226 (MacroFunctionTest.run): Likewise.
4227 (MacroStrTest.run): Likewise.
4228 (HeaderTests.handle_test_line): Generate subtests for tests.
4229 (HeaderTests.run): Run subtests for tests.
4230
4231 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4232
4233 * math/Versions (GLIBC_2.29): Add pow.
4234 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4235 symbol.
4236 * math/w_pow.c: New file.
4237 * sysdeps/i386/fpu/w_pow.c: New file.
4238 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4239 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4240 and add necessary aliases.
4241 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4242 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4243 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4244 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4245 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4246 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4247 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4248 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4249 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4250 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4251 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4252 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4253 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4254 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4255 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4256 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4257 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4258 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4259 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4260 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4261 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4262 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4263 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4264 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4265 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4266 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4267 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4268 __pow.
4269 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4270 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4271 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4272
4273 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4274
4275 * math/Versions (GLIBC_2.29): Add log2.
4276 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4277 symbol.
4278 * math/w_log2.c: New file.
4279 * sysdeps/i386/fpu/w_log2.c: New file.
4280 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4281 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4282 and add necessary aliases.
4283 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4284 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4285 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4286 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4287 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4288 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4289 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4290 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4291 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4292 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4293 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4294 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4295 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4296 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4297 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4298 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4299 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4300 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4301 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4302 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4303 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4304 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4305 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4306 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4307 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4308 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4309
4310 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4311
4312 * math/Versions (GLIBC_2.29): Add log.
4313 * math/w_log_compat.c (__log_compat): Change to versioned compat
4314 symbol.
4315 * math/w_log.c: New file.
4316 * sysdeps/i386/fpu/w_log.c: New file.
4317 * sysdeps/ia64/fpu/e_log.S: Update.
4318 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
4319 and add necessary aliases.
4320 * sysdeps/ieee754/dbl-64/w_log.c: New file.
4321 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
4322 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4323 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4324 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4325 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4326 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4327 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4328 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4329 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4330 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4331 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4332 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4333 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4334 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4335 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4336 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4337 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4338 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4339 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4340 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4341 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4342 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4343 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4344 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4345 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4346 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
4347 __log.
4348 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
4349 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
4350 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
4351 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
4352
4353 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4354
4355 * math/Versions (GLIBC_2.29): Add exp and exp2.
4356 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
4357 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
4358 * math/w_exp_compat.c (__exp_compat): Likewise.
4359 * math/w_exp.c: New file.
4360 * math/w_exp2.c: New file.
4361 * sysdeps/i386/fpu/w_exp.c: New file.
4362 * sysdeps/i386/fpu/w_exp2.c: New file.
4363 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
4364 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4365 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
4366 and add necessary aliases.
4367 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
4368 and add necessary aliases.
4369 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
4370 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
4371 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
4372 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
4373 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4374 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4375 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4376 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4377 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4378 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4379 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4380 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4381 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4382 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4383 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4384 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4385 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4386 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4387 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4388 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4389 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4390 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4391 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4392 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4393 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4394 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4395 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4396 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4397 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
4398 (__ieee754_exp): Rename to __exp.
4399 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
4400 (__ieee754_exp): Rename to __exp.
4401 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
4402 (__ieee754_exp): Rename to __exp.
4403 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
4404 __exp.
4405 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
4406
4407 2018-11-20 DJ Delorie <dj@redhat.com>
4408
4409 * malloc/malloc.c (tcache_entry): Add key field.
4410 (tcache_put): Set it.
4411 (tcache_get): Likewise.
4412 (_int_free): Check for double free in tcache.
4413 * malloc/tst-tcfree1.c: New.
4414 * malloc/tst-tcfree2.c: New.
4415 * malloc/Makefile: Run the new tests.
4416 * manual/probes.texi: Document memory_tcache_double_free probe.
4417
4418 * dlfcn/dlerror.c (check_free): Prevent double frees.
4419
4420 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
4421
4422 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
4423
4424 2018-11-20 Joseph Myers <joseph@codesourcery.com>
4425
4426 * conform/conformtest.py (ElementTest.run): Use unique identifiers
4427 in tests. Use names for format arguments.
4428 (ConstantTest.run): Likewise.
4429 (SymbolTest.run): Likewise.
4430 (TypeTest.run): Likewise.
4431 (TagTest.run): Likewise.
4432 (FunctionTest.run): Likewise.
4433 (VariableTest.run): Likewise.
4434 (MacroFunctionTest.run): Likewise.
4435 (MacroStrTest.run): Likewise.
4436 (HeaderTests.__init__): Set self.num_tests.
4437 (HeaderTests.handle_test_line): Set test.num. Increment
4438 self.num_tests.
4439
4440 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4441
4442 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
4443 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
4444 SEEK_SET.
4445
4446 2018-11-19 Mao Han <han_mao@c-sky.com>
4447
4448 * scripts/config.guess: Update to version 2018-08-29.
4449 * scripts/config.sub: Update to version 2018-08-29.
4450
4451 2018-11-19 Florian Weimer <fweimer@redhat.com>
4452
4453 support: Print timestamps in timeout handler.
4454 * support/support_test_main.c (print_timestamp): New function.
4455 (signal_handler): Use it to print the termination time and the
4456 time of the last write to standard output.
4457
4458 2018-11-16 Zack Weinberg <zackw@panix.com>
4459 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4460
4461 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
4462 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
4463 argument.
4464 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
4465 and add flags argument. Check flags instead of __ldbl_is_dbl when
4466 deciding whether to set is_long_double.
4467 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
4468 passing zero for flags argument.
4469 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
4470
4471 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4472 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
4473 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
4474 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
4475 variable names. Remove libc_hidden_def/libc_hidden_proto from
4476 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
4477 longer called from within the library.
4478 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
4479 for __nldbl___vstrfmon_l, declare it explicitly.
4480
4481 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
4482
4483 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
4484
4485 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
4486 macros
4487 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
4488 F_SETLK64, F_SETLKW64, respectively.
4489 * sysdeps/mach/hurd/f_setlk.c: New file.
4490 * sysdeps/mach/hurd/f_setlk.h: New file.
4491 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
4492 f_setlk.
4493 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
4494 (__libc_fcntl): Move non-flock operations to...
4495 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
4496 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
4497
4498 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
4499
4500 mktime: DEBUG_MKTIME cleanup
4501 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
4502 And it’s no longer needed now that glibc and Gnulib both have
4503 their own testing mechanisms for mktime.
4504 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
4505
4506 mktime: fix non-EOVERFLOW errno handling
4507 [BZ#23789]
4508 mktime was not properly reporting failures when the underlying
4509 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
4510 them like EOVERFLOW failures, and set errno to EOVERFLOW.
4511 The problem could happen on non-glibc platforms, with Gnulib.
4512 * time/mktime.c (guess_time_tm): Remove, replacing with ...
4513 (tm_diff): ... this simpler function, which does not change errno.
4514 All callers changed to deal with errno themselves.
4515 (ranged_convert, __mktime_internal): Return failure immediately if
4516 the underlying function reports any failure other than EOVERFLOW.
4517 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
4518 gap code fails.
4519
4520 mktime: fix bug with Y2038 DST transition
4521 [BZ#23789]
4522 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
4523 mishandle a DST transition that jumps over the Y2038 boundary.
4524 No such DST transitions are known so this is only a theoretical
4525 bug, but we might as well do things right.
4526
4527 mktime: make more room for overflow
4528 [BZ#23789]
4529 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
4530 This is so that we can add tm_diff results to a previous guess,
4531 which will be useful in a later patch.
4532
4533 mktime: simplify offset guess
4534 [BZ#23789]
4535 * time/mktime.c (__mktime_internal): Omit excess precision.
4536
4537 mktime: new test for mktime failure
4538 [BZ#23789]
4539 Based on a test suggested by Albert Aribaud in:
4540 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
4541 * time/Makefile (tests): Add bug-mktime4.
4542 * time/bug-mktime4.c: New file.
4543
4544 mktime: fix EOVERFLOW bug
4545 [BZ#23789]
4546 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
4547 Include libc-config.h, not config.h, for __set_errno.
4548 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
4549
4550 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4551
4552 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
4553 __attribute_copy__ to copy attributes from name. Drop static qualifier
4554 to avoid warnings about leaf attribute not having effect on static
4555 functions.
4556
4557 2018-11-13 Florian Weimer <fweimer@redhat.com>
4558
4559 * malloc/malloc.c (fastbin_push_entry): New function.
4560 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
4561 (REMOVE_FB): Remove macro.
4562 (_int_malloc): Use fastbin_pop_entry and reindent.
4563 (_int_free): Use fastbin_push_entry.
4564 (malloc_consolidate): Use atomic_exchange_acquire.
4565
4566 2018-11-13 Joseph Myers <joseph@codesourcery.com>
4567
4568 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
4569 alias attribute, not with strong_alias.
4570
4571 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
4572 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
4573 with additional parameter thread.
4574 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
4575 in terms of __hidden_ver2.
4576 (hidden_tls_def): New macro.
4577 (libc_hidden_tls_def): Likewise.
4578 (rtld_hidden_tls_def): Likewise.
4579 (libm_hidden_tls_def): Likewise.
4580 (libmvec_hidden_tls_def): Likewise.
4581 (libresolv_hidden_tls_def): Likewise.
4582 (librt_hidden_tls_def): Likewise.
4583 (libdl_hidden_tls_def): Likewise.
4584 (libnss_files_hidden_tls_def): Likewise.
4585 (libnsl_hidden_tls_def): Likewise.
4586 (libnss_nisplus_hidden_tls_def): Likewise.
4587 (libutil_hidden_tls_def): Likewise.
4588 (libutil_hidden_tls_def): Likweise.
4589 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
4590 libc_hidden_tls_def.
4591 (__sim_disabled_exceptions_thread): Likewise.
4592 (__sim_round_mode_thread): Likewise.
4593
4594 * sysdeps/sparc/sparc-ifunc.h [SHARED]
4595 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
4596 copy attributes from name.
4597
4598 2018-11-12 Joseph Myers <joseph@codesourcery.com>
4599
4600 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
4601 Use __attribute_copy__ to copy attributes from name.
4602
4603 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
4604 with __hidden_ver1 call.
4605 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
4606 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
4607 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
4608 (__cosf): Do not declare here.
4609 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
4610 (__sincosf): Do not declare here.
4611 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
4612 (__sinf): Do not declare here.
4613
4614 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
4615 (__BIG_ENDIAN): Likewise.
4616 (__BYTE_ORDER): Likewise.
4617 (strong_alias): Likewise.
4618 (_strong_alias): Likewise.
4619
4620 2018-11-12 Florian Weimer <fweimer@redhat.com>
4621
4622 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
4623 function. Move after the definition of in_smallbin_range. Do not
4624 use __builtin_expect for paths that lead to a noreturn function.
4625 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
4626 because it is unclear whether this is in fact an unlikely
4627 condition.
4628 (_int_malloc, _int_free): Adjust.
4629 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
4630 variables.
4631 * malloc/arena.c (heap_trim): Likewise.
4632
4633 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4634
4635 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
4636 it, free it if needed.
4637 (reauthenticate): Test and use ccwdir.
4638 (child_init_port): In non-resetids case, test and use ccwdir.
4639 (child_chdir): New nested function to set ccwdir.
4640 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
4641 * hurd/hurd/port.h (_hurd_port_move): New function.
4642 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
4643 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
4644 * hurd/Versions (_hurd_port_move): Export function.
4645 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
4646 symbol.
4647 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
4648 of dtablesize for allocating dtable_cloexec.
4649
4650 2018-11-09 Martin Sebor <msebor@redhat.com>
4651
4652 * include/libc-symbols.h (__attribute_copy__): Define macro unless
4653 it's already defined.
4654 (_strong_alias): Use __attribute_copy__.
4655 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
4656 * misc/sys/cdefs.h (__attribute_copy__): New macro.
4657 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
4658 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
4659 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
4660 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
4661 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
4662 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
4663 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
4664 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
4665 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
4666 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
4667 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
4668 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
4669 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
4670 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
4671 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
4672 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
4673 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
4674
4675 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4676
4677 * misc/tst-efgcvt.c: Include support/check.h and
4678 support/test-driver.c. Do not include test-skeleton.c.
4679 (error_count): Remove.
4680 (output_error): Replace increments to error_count with calls to
4681 support_record_failure.
4682 (output_r_error): Likewise.
4683 (special): Likewise.
4684 (do_test): Unconditionally return zero.
4685 (TEST_FUNCTION): Remove.
4686
4687 2018-11-09 Joseph Myers <joseph@codesourcery.com>
4688
4689 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
4690 not $(@D)/scratch.
4691 ($(linknamespace-header-tests)): Likewise.
4692
4693 * conform/conformtest.py: New file.
4694 * conform/conformtest.pl: Remove.
4695 * conform/GlibcConform.pm: Likewise.
4696 * conform/glibcconform.py (KEYWORDS_C90): New constant.
4697 (KEYWORDS_C99): Likewise.
4698 (KEYWORDS): Likewise.
4699 * conform/Makefile ($(conformtest-header-tests)): Use
4700 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
4701 option. Use --header instead of --headers.
4702 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
4703 function entries.
4704 * conform/data/spawn.h-data: Likewise.
4705 * conform/data/fcntl.h-data (openat): Add space after function
4706 name.
4707 * conform/data/wchar.h-data (wcscasecmp): Likewise.
4708 (wcscasecmp_l): Likewise.
4709 * conform/data/termios.h-data (c_cc): Add space after element
4710 name.
4711
4712 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4713
4714 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
4715 instead of manually comparing and reporting mismatching strings.
4716 * misc/tst-ldbl-error.c (do_one_test): Likewise.
4717 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
4718
4719 2018-11-08 Joseph Myers <joseph@codesourcery.com>
4720
4721 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
4722 __ASSUME_SOCKETCALL.
4723 * sysdeps/unix/sysv/linux/i386/kernel-features.h
4724 (__ASSUME_SOCKETCALL): Remove.
4725 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4726 (__ASSUME_SOCKETCALL): Likewise.
4727 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4728 (__ASSUME_SOCKETCALL): Likewise.
4729 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4730 (__ASSUME_SOCKETCALL): Likewise.
4731 * sysdeps/unix/sysv/linux/s390/kernel-features.h
4732 (__ASSUME_SOCKETCALL): Likewise.
4733 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4734 (__ASSUME_SOCKETCALL): Likewise.
4735 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4736 (__ASSUME_SOCKETCALL): Likewise.
4737
4738 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
4739
4740 [BZ #23509]
4741 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
4742 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
4743 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
4744 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
4745 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
4746 lc_unknown.
4747
4748 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
4749
4750 [BZ #17630]
4751 * resolv/tst-resolv-network.c: Add test for getnetbyname.
4752
4753 2018-11-07 Joseph Myers <joseph@codesourcery.com>
4754
4755 [BZ #23867]
4756 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4757 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4758 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4759 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4760
4761 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4762
4763 * support/support_test_compare_string.c
4764 (support_test_compare_string): Fix printf format.
4765
4766 2018-11-07 Florian Weimer <fweimer@redhat.com>
4767
4768 Implement TEST_COMPARE_STRING.
4769 * support/check.h (TEST_COMPARE_STRING): Define.
4770 (support_test_compare_string): Declare.
4771 * support/Makefile (libsupport-routines): Add
4772 support_test_compare_string.
4773 (tests): Add tst-test_compare_string.
4774 * support/support_test_compare_string.c: New file.
4775 * support/tst-test_compare_string.c: Likewise.
4776
4777 2018-11-07 Andreas Schwab <schwab@suse.de>
4778
4779 [BZ #23864]
4780 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
4781 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
4782 Undef.
4783
4784 2018-11-06 Joseph Myers <joseph@codesourcery.com>
4785
4786 [BZ #23862]
4787 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4788 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
4789 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
4790 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
4791 Likewise.
4792
4793 2018-11-06 Florian Weimer <fweimer@redhat.com>
4794
4795 [BZ #17405]
4796 * posix/Makefile (routines): Add spawn_faction_addchdir.
4797 (tests): Add tst-spawn-chdir.
4798 * posix/Versions (GLIBC_2.29): Add
4799 posix_spawn_file_actions_addchdir_np.
4800 * posix/spawn_faction_addchdir.c: New file.
4801 * posix/spawn_faction_destroy.c
4802 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
4803 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
4804 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
4805 chdir_action.
4806 * posix/tst-spawn-chdir.c: New file.
4807 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
4808 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4809 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4810 posix_spawn_file_actions_addchdir_np.
4811 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4812 Likewise.
4813 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4814 Likewise.
4815 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4816 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4817 Likewise.
4818 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4819 Likewise.
4820 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4821 Likewise.
4822 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4823 Likewise.
4824 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4825 Likewise.
4826 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4827 Likewise.
4828 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4829 (GLIBC_2.29): Likewise.
4830 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4831 (GLIBC_2.29): Likewise.
4832 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4833 (GLIBC_2.29): Likewise.
4834 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4835 (GLIBC_2.29): Likewise.
4836 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4837 Likewise.
4838 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4839 (GLIBC_2.29): Likewise.
4840 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4841 (GLIBC_2.29): Likewise.
4842 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4843 (GLIBC_2.29): Likewise.
4844 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4845 (GLIBC_2.29): Likewise.
4846 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4847 Likewise.
4848 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4849 Likewise.
4850 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4851 Likewise.
4852 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4853 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4854 Likewise.
4855 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4856 Likewise.
4857 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4858 Likewise.
4859 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4860 Likewise.
4861
4862 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4863
4864 * misc/Makefile (tests): Add tst-ldbl-error.
4865 * misc/tst-ldbl-error.c: New file.
4866
4867 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4868
4869 * misc/Makefile (tests): Add tst-ldbl-warn.
4870 * misc/tst-ldbl-warn.c: New file.
4871
4872 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4873
4874 * argp/Makefile (tests): Add tst-ldbl-argp.
4875 * argp/tst-ldbl-argp.c: New file.
4876
4877 2018-11-05 Arjun Shankar <arjun@redhat.com>
4878
4879 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
4880 __gconv_path_elem and call __gconv_get_path unconditionally.
4881
4882 2018-11-05 Andreas Schwab <schwab@suse.de>
4883
4884 [BZ #22927]
4885 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
4886 creating the first helper thread failed.
4887
4888 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4889
4890 * sysdeps/mach/hurd/msync.c: New file.
4891
4892 2018-11-02 Florian Weimer <fweimer@redhat.com>
4893
4894 * support/shell-container.c (copy_func): Call
4895 support_copy_file_range instead of copy_file_range to support
4896 cross-device copies.
4897
4898 2018-11-02 Florian Weimer <fweimer@redhat.com>
4899
4900 * support/test-container.c: Include <libc-pointer-arith.h> for
4901 ALIGN_UP.
4902
4903 2018-11-01 Zong Li <zong@andestech.com>
4904
4905 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
4906 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
4907 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
4908 (__FP_FRAC_SET_8): Add implementation for RV32 use.
4909
4910 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
4911 variable to avoid overlap arguments.
4912
4913 2018-11-01 Joseph Myers <joseph@codesourcery.com>
4914
4915 * posix/bug-regex22.c (main): Use puts with distinct error
4916 messages for unexpected success of re_compile_pattern, not printf
4917 with NULL argument to %s.
4918
4919 * stdio-common/bug22.c: Include <libc-diag.h>.
4920 (do_test): Disable -Wformat-overflow= warnings around fprintf
4921 calls outputting more than INT_MAX characters.
4922 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
4923 around printf call with NULL %s argument.
4924
4925 [BZ #23848]
4926 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
4927 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
4928 Undefine.
4929 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4930 (__ASSUME_RECVMSG_SYSCALL): Likewise.
4931 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4932 (__ASSUME_SENDTO_SYSCALL): Likewise.
4933 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4934 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
4935 [!__arch64__].
4936 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4937 (__ASSUME_CONNECT_SYSCALL): Likewise.
4938 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4939 (__ASSUME_RECVFROM_SYSCALL): Likewise.
4940 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
4941 Define.
4942 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
4943 Likewise.
4944 [__LINUX_KERNEL_VERSION >= 0x040400]
4945 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
4946 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
4947 Remove.
4948 (listen): Likewise.
4949 (setsockopt): Likewise.
4950
4951 2018-11-01 Fredrik Noring <noring@nocrew.org>
4952
4953 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
4954 with the ISA override.
4955
4956 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
4957
4958 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
4959 #endif.
4960
4961 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
4962
4963 * manual/errno.texi (EIEIO): Document how translators should
4964 translate the error message.
4965 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
4966 printing trailing whitespaces refused by git.
4967 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
4968 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
4969 * hurd/Makefile (user-interfaces): Add pci.
4970
4971 2018-10-30 Joseph Myers <joseph@codesourcery.com>
4972
4973 * conform/linknamespace.py: New file.
4974 * conform/linknamespace.pl: Remove file.
4975 * conform/Makefile ($(linknamespace-header-tests)): Use
4976 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
4977 option.
4978
4979 2018-10-30 Florian Weimer <fweimer@redhat.com>
4980
4981 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
4982 memory leaks.
4983
4984 2018-10-30 Florian Weimer <fweimer@redhat.com>
4985
4986 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
4987
4988 2018-10-30 Florian Weimer <fweimer@redhat.com>
4989
4990 * stdlib/tst-strtod-overflow.c (do_test): Switch to
4991 support_blob_repeat.
4992
4993 2018-10-30 Florian Weimer <fweimer@redhat.com>
4994
4995 Avoid spurious test failures in stdlib/test-bz22786.
4996 * support/Makefile (libsupport-routines): Add blob_repeat.
4997 (tests): Add tst-support_blob_repeat.
4998 * support/blob_repeat.h: New file.
4999 * support/blob_repeat.c: Likewise.
5000 * support/tst-support_blob_repeat.c: Likewise.
5001 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5002 support_blob_repeat_allocate.
5003
5004 2018-10-30 Andreas Schwab <schwab@suse.de>
5005
5006 [BZ #23125]
5007 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5008 Don't use tail call.
5009 * elf/tst-unwind-main.c: New file.
5010 * elf/Makefile (tests): Add tst-unwind-main.
5011 (CFLAGS-tst-unwind-main.c): Define.
5012
5013 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5014
5015 [BZ #23791]
5016 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5017 n_cs_precedes to 0.
5018 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5019
5020 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5021
5022 * conform/glibcconform.py: Do not import shutil.
5023 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5024 of mkdtemp.
5025
5026 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5027 critic_missing for versions before 3.4.
5028 * configure: Regenerated.
5029 * manual/install.texi (Tools for Compilation): Document
5030 requirement for Python to build glibc.
5031 * INSTALL: Regenerated.
5032 * Rules [PYTHON]: Make code unconditional.
5033 * benchtests/Makefile [PYTHON]: Likewise.
5034 * conform/Makefile [PYTHON]: Likewise.
5035 * manual/Makefile [PYTHON]: Likewise.
5036 * math/Makefile [PYTHON]: Likewise.
5037
5038 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5039
5040 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5041 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5042 answer to interrupt_operation, return EIEIO instead of EINTR.
5043 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5044 _hurd_intr_rpc_msg_about_to global point to start of controlled
5045 assembly snippet. Make it check canceled flag.
5046 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5047 the _hurd_intr_rpc_msg_about_to point.
5048 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5049 issue, remove cancel flag check.
5050
5051 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5052
5053 * scripts/build-many-glibcs.py: Remove compatibility for missing
5054 os.cpu_count and re.fullmatch.
5055
5056 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5057
5058 [BZ #23822]
5059 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5060 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5061 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5062
5063 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5064
5065 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5066 macro.
5067
5068 2018-10-25 Florian Weimer <fweimer@redhat.com>
5069
5070 [BZ #23562]
5071 [BZ #23821]
5072 XFAIL siginfo_t si_band conform test on sparc64.
5073 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5074 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5075 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5076 (conformtest-xfail-conds): Add sparc64-linux.
5077 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5078 sparc64.
5079 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5080
5081 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5082
5083 * elf/elf.h (NT_MIPS_DSP): New macro.
5084 (NT_MIPS_FP_MODE): Likewise.
5085
5086 2018-10-25 Zong Li <zong@andestech.com>
5087
5088 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5089 name by adding the file extension (.so).
5090
5091 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5092
5093 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5094 (test-xfail-ISO11/threads.h/linknamespace,
5095 test-xfail-ISO11/threads.h/conform): Add.
5096
5097 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5098
5099 * math/gen-libm-test.py: Import os.
5100 (ALL_FLOATS_MANUAL): New constant.
5101 (ALL_FLOATS_SUFFIX): Likewise.
5102 (Ulps.all_functions): New function.
5103 (real_all_ulps): Likewise.
5104 (generate_err_table_sub): Likewise.
5105 (generate_err_table): Likewise.
5106 (main): Handle -s and -m options.
5107 * manual/libm-err-tab.pl: Remove.
5108 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5109 instead of libm-err-tab.pl.
5110 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5111 != no].
5112 * manual/install.texi (Tools for Compilation): Document
5113 requirement for Python to build manual.
5114 * INSTALL: Regenerated.
5115
5116 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5117
5118 * bits/time64.h: New file.
5119 * include/time.h: Replace internal_time_t with __time64_t.
5120 * posix/bits/types (__time64_t): Add.
5121 * stdlib/Makefile: Add bits/time64.h to includes.
5122 * time/tzfile.c: Replace internal_time_t with __time64_t.
5123
5124 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5125
5126 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5127 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5128 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5129 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5130 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5131 prototype.
5132 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5133 * posix/spawn_faction_addclose.c
5134 (__posix_spawn_file_actions_addclose): Add hidden definition.
5135 * posix/spawn_faction_adddup2.c
5136 (__posix_spawn_file_actions_adddup2): Likewise.
5137 * posix/spawn_faction_destroy.c
5138 (__posix_spawn_file_actions_destroy): Likewise.
5139 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5140 Likewise.
5141 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5142 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5143 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5144 Likewise.
5145 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5146 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5147 Likewise.
5148
5149 2018-10-24 Andreas Schwab <schwab@suse.de>
5150
5151 [BZ #18093]
5152 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5153 format cache.
5154 * elf/cache.c (print_cache): Likewise.
5155
5156 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5157
5158 * bits/timesize.h: New file.
5159 * stdlib/Makefile (headers): Add bits/timesize.h.
5160 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5161 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5162 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5163 (__SEM_PAD_AFTER_TIME): Likewise.
5164 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5165 (__SHM_PAD_AFTER_TIME): Likewise.
5166 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5167 (__MSQ_PAD_BEFORE_TIME): Likewise.
5168 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5169 (__SEM_PAD_BEFORE_TIME): Likewise.
5170 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5171 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5172 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5173 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5174 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5175 (__MSQ_PAD_BEFORE_TIME): Likewise.
5176 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5177 (__SEM_PAD_BEFORE_TIME): Likewise.
5178 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5179 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5180 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5181 (__MSQ_PAD_BEFORE_TIME): Likewise.
5182 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5183 (__SEM_PAD_BEFORE_TIME): Likewise.
5184 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5185 (__SHM_PAD_BEFORE_TIME): Likewise.
5186 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5187 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5188 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5189
5190 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5191
5192 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5193 USE_RDTSCP is defined.
5194 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5195 USE_RDTSCP is defined.
5196
5197 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5198
5199 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5200 defined.
5201
5202 [BZ #23709]
5203 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5204 independently of other flags.
5205
5206 2018-10-23 Florian Weimer <fweimer@redhat.com>
5207
5208 * time/tst-mktime2.c (N_STRINGS): Remove.
5209 (set_timezone): New function.
5210 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5211 (mktime_test1): Report localtime failure and check errno value.
5212 Use TEST_COMPARE.
5213 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5214 (do_test): Remove alarm call. Use set_timezone and array_length.
5215
5216 2018-10-23 Andreas Schwab <schwab@suse.de>
5217
5218 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5219 (__start_context): Use END instead of PSEUDO_END.
5220
5221 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5222
5223 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5224 version to 4.19.
5225
5226 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5227 version to 4.19.
5228
5229 [BZ #23793]
5230 * wcsmbs/c32rtomb.c: New file.
5231 * wcsmbs/mbrtoc32.c: Likewise.
5232 * wcsmbs/tst-c32-state.c: Likewise.
5233 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5234 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5235 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5236 (tests): Add tst-c32-state.
5237 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5238 $(gen-locales).
5239
5240 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5241
5242 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5243 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5244
5245 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5246
5247 [BZ #23794]
5248 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5249 pair and return 0 in that case, and use saved character to
5250 interpret following character.
5251 * wcsmbs/tst-c16-surrogate.c: New file.
5252 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5253 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5254 Depend on $(gen-locales)
5255
5256 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5257
5258 [BZ #23562]
5259 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5260 (struct siginfo_t): Use correct type for si_band.
5261
5262 2018-10-19 Florian Weimer <fweimer@redhat.com>
5263
5264 [BZ #23689]
5265 * resource/bits/types/struct_rusage.h (struct rusage): Update
5266 comment on struct. Remove extraneous field comment.
5267
5268 2018-10-18 David S. Miller <davem@davemloft.net>
5269
5270 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5271 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5272 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5273 sysdep_routines in subdir elf.
5274 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5275 version for __vdso_clock_gettime.
5276 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5277 Define.
5278 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5279 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5280
5281 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5282
5283 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5284
5285 * sysdeps/i386/init-arch.h: Removed.
5286 * sysdeps/i386/i586/init-arch.h: Likewise.
5287 * sysdeps/i386/i686/init-arch.h: Likewise.
5288 * sysdeps/i386/i686/hp-timing.h: Likewise.
5289 * sysdeps/x86_64/hp-timing.h: Likewise.
5290 * sysdeps/i386/isa.h: New file.
5291 * sysdeps/i386/i586/isa.h: Likewise.
5292 * sysdeps/i386/i686/isa.h: Likewise.
5293 * sysdeps/x86_64/isa.h: Likewise.
5294 * sysdeps/x86/hp-timing.h: New file.
5295 * sysdeps/x86/init-arch.h: Include <isa.h>.
5296
5297 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5298
5299 * math/libm-test-pow.inc (pow_test_data): Do not allow
5300 divide-by-zero exception for pow(+/- 0, -Inf).
5301
5302 2018-10-17 Zack Weinberg <zackw@panix.com>
5303
5304 * manual/job.texi (Job Control is Optional): Remove node, as
5305 job control has not been optional in quite some time.
5306 (Job Control): Mention briefly that systems older than
5307 POSIX.1-2001 might not support job control.
5308 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5309 defined on systems conforming to POSIX.1-2001.
5310
5311 2018-10-17 Arjun Shankar <arjun@redhat.com>
5312
5313 [BZ #22062]
5314 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
5315 indentation.
5316 * (__gconv_read_conf): Mark function static.
5317 * (once): New static variable.
5318 * (__gconv_load_conf): New function.
5319 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
5320 * iconv/gconv_db.c (once): Remove static variable.
5321 * (__gconv_compare_alias): Use __gconv_load_conf instead of
5322 __gconv_read_conf.
5323 * (__gconv_find_transform): Likewise.
5324 * iconv/tst-iconv-mt.c: New test.
5325 * iconv/Makefile: Add tst-iconv_mt.
5326
5327 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5328
5329 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5330 bits/shm-pad.h.
5331 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5332 (shmatt_t): Define as __syscall_ulong_t.
5333 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5334 and [__SHM_PAD_AFTER_TIME].
5335 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5336 Define shm_segsz and associated padding based on
5337 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5338 Use __syscall_ulong_t instead of unsigned long int.
5339 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
5340 unsigned long int.
5341 [__USE_MISC] (struct shm_info): Likewise.
5342 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
5343 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
5344 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
5345 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
5346 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
5347 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5348 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
5349 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5350 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5351 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5352 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
5353
5354 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5355 bits/shmlba.h.
5356 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
5357 (SHMLBA): Remove macro.
5358 (__getpagesize): Remove function declaration.
5359 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
5360 <bits/shmlba.h>.
5361 (SHMLBA): Remove macro.
5362 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
5363 <bits/shmlba.h>.
5364 (SHMLBA): Remove macro.
5365 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
5366 <bits/shmlba.h>.
5367 (SHMLBA): Remove macro.
5368 (__getpagesize): Remove function declaration.
5369 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
5370 <bits/shmlba.h>.
5371 (SHMLBA): Remove macro.
5372 (__getshmlba): Remove function declaration.
5373 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
5374 (SHMLBA): Remove macro.
5375 (__getpagesize): Remove function declaration.
5376 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
5377 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5378 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5379 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
5380 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
5381 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
5382 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
5383 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
5384 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
5385 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
5386
5387 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
5388
5389 [BZ #23275]
5390 * nptl/tst-mutex10.c: New File.
5391 * nptl/Makefile (tests): Add tst-mutex10.
5392 (tst-mutex10-ENV): New variable.
5393 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
5394 Ensure that elision path is used if elision is available.
5395 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
5396 Likewise.
5397 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
5398 Likewise.
5399 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
5400 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
5401 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
5402 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
5403 Likewise.
5404 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
5405 (__pthread_mutex_cond_lock_adjust): Likewise.
5406 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
5407 Likewise.
5408 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
5409 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
5410 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5411 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
5412 Add comments.
5413 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
5414 Use atomic_load_relaxed and atomic_store_relaxed.
5415 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
5416 Use atomic_store_relaxed.
5417
5418 2018-10-17 Andreas Schwab <schwab@suse.de>
5419
5420 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
5421 * crypt/badsalttest.c (TIMEOUT): Likewise.
5422 * crypt/sha256c-test.c (TIMEOUT): Likewise.
5423 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
5424 * io/test-lfs.c (TIMEOUT): Likewise.
5425 * libio/tst-atime.c (TIMEOUT): Likewise.
5426 * localedata/tst-leaks.c (TIMEOUT): Likewise.
5427 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
5428 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
5429 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
5430 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
5431 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
5432 * nptl/tst-cond11.c (TIMEOUT): Likewise.
5433 * nptl/tst-cond14.c (TIMEOUT): Likewise.
5434 * nptl/tst-cond15.c (TIMEOUT): Likewise.
5435 * nptl/tst-cond24.c (TIMEOUT): Likewise.
5436 * nptl/tst-cond25.c (TIMEOUT): Likewise.
5437 * nptl/tst-kill2.c (TIMEOUT): Likewise.
5438 * nptl/tst-kill3.c (TIMEOUT): Likewise.
5439 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
5440 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
5441 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
5442 * nptl/tst-once2.c (TIMEOUT): Likewise.
5443 * nptl/tst-once3.c (TIMEOUT): Likewise.
5444 * nptl/tst-once4.c (TIMEOUT): Likewise.
5445 * nptl/tst-robust8.c (TIMEOUT): Likewise.
5446 * nptl/tst-robust9.c (TIMEOUT): Likewise.
5447 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
5448 * nptl/tst-sem14.c (TIMEOUT): Likewise.
5449 * nptl/tst-sem6.c (TIMEOUT): Likewise.
5450 * nptl/tst-signal3.c (TIMEOUT): Likewise.
5451 * nptl/tst-spin4.c (TIMEOUT): Likewise.
5452 * nptl/tst-tls3.c (TIMEOUT): Likewise.
5453 * nptl/tst-tls4.c (TIMEOUT): Likewise.
5454 * posix/tst-chmod.c (TIMEOUT): Likewise.
5455 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
5456 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
5457 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
5458 * posix/tst-regex2.c (TIMEOUT): Likewise.
5459 * posix/tst-waitid.c (TIMEOUT): Likewise.
5460 * rt/tst-aio.c (TIMEOUT): Likewise.
5461 * rt/tst-aio10.c (TIMEOUT): Likewise.
5462 * rt/tst-aio4.c (TIMEOUT): Likewise.
5463 * rt/tst-aio5.c (TIMEOUT): Likewise.
5464 * rt/tst-aio6.c (TIMEOUT): Likewise.
5465 * rt/tst-aio64.c (TIMEOUT): Likewise.
5466 * rt/tst-aio7.c (TIMEOUT): Likewise.
5467 * rt/tst-aio9.c (TIMEOUT): Likewise.
5468 * rt/tst-clock.c (TIMEOUT): Likewise.
5469 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
5470 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
5471 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
5472 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
5473 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
5474 * rt/tst-timer4.c (TIMEOUT): Likewise.
5475 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
5476 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
5477 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
5478 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
5479 * time/tst-ftime.c (TIMEOUT): Likewise.
5480 * timezone/tst-tzset.c (TIMEOUT): Likewise.
5481
5482 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5483
5484 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
5485 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
5486 for thunderX2.
5487
5488 2018-10-15 Joseph Myers <joseph@codesourcery.com>
5489
5490 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5491 bits/sem-pad.h.
5492 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
5493 instead of <bits/wordsize.h>.
5494 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
5495 and [__SEM_PAD_AFTER_TIME].
5496 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
5497 __syscall_ulong_t instead of unsigned long int.
5498 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
5499 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
5500 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
5501 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
5502 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
5503 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
5504 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
5505 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
5506 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
5507 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
5508 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
5509
5510 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
5511
5512 regex: simplify by using intprops.h
5513 [BZ#23744]
5514 * posix/regex_internal.h [_LIBC]: Include intprops.h.
5515 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
5516 intprops.h defines them.
5517
5518 regex: __builtin_expect → __glibc_unlikely
5519 [BZ#23744]
5520 This refactoring was prompted by a problem when the regex code is
5521 used as part of Gnulib and when the builder’s compiler does not grok
5522 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
5523 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
5524 Although this refactoring does not fix the problem directly,
5525 we might as well have Gawk use the now-preferred glibc style for when
5526 __builtin_expect is unavailable.
5527 * posix/regex_internal.h (BE): Remove.
5528 All uses replaced by __glibc_unlikely or __glibc_likely.
5529
5530 2018-10-11 Joseph Myers <joseph@codesourcery.com>
5531
5532 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5533 bits/msq-pad.h.
5534 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
5535 instead of <bits/wordsize.h>.
5536 (msgqnum_t): Define as __syscall_ulong_t.
5537 (msglen_t): Likewise.
5538 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
5539 and [__MSQ_PAD_AFTER_TIME].
5540 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
5541 __syscall_ulong_t instead of unsigned long int.
5542 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
5543 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
5544 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
5545 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
5546 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
5547 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
5548 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
5549 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
5550 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
5551 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
5552 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
5553
5554 2018-10-10 Joseph Myers <joseph@codesourcery.com>
5555
5556 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
5557 (struct shmid_ds): Condition padding after time fields on
5558 [__WORDSIZE == 32].
5559 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
5560 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
5561 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5562
5563 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
5564 (struct semid_ds): Condition padding after time fields on
5565 [__WORDSIZE == 32].
5566 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
5567 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
5568 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
5569 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
5570
5571 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
5572 (struct msqid_ds): Condition padding after time fields on
5573 [__WORDSIZE == 32].
5574 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
5575 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
5576 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
5577 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
5578
5579 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5580
5581 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
5582
5583 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5584
5585 * libio/tst-readline.c (TIMEOUT): Define.
5586
5587 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
5588
5589 mktime fix for Gnulib + coreutils
5590 [BZ#23745]
5591 This fix affects only Gnulib. Problem discovered when
5592 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
5593 * time/mktime.c:
5594 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
5595 Do not define since it is not used. Defining an unused static
5596 function prompts a warning from GCC when Coreutils is configured
5597 with --enable-gcc-warnings.
5598
5599 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5600
5601 * benchtests/scripts/compare_bench.py (main): set float type on
5602 threshold argument.
5603
5604 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
5605
5606 [BZ #23740]
5607 * localedata/locales/kl_GL (mon): Update, the relative case.
5608 (alt_mon): Add, fill with month names in the nominative case.
5609 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
5610 (d_fmt): Set to "%b %d %Y".
5611
5612 2018-10-04 Joseph Myers <joseph@codesourcery.com>
5613
5614 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
5615 <bits/mman-linux.h>.
5616 (PROT_READ): Don't define here.
5617 (PROT_WRITE): Likewise.
5618 (PROT_EXEC): Likewise.
5619 (PROT_NONE): Likewise.
5620 (PROT_GROWSDOWN): Likewise.
5621 (PROT_GROWSUP): Likewise.
5622 (MAP_SHARED): Likewise.
5623 (MAP_PRIVATE): Likewise.
5624 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
5625 [__USE_MISC] (MAP_FILE): Likewise.
5626 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
5627 [__USE_MISC] (MAP_ANON): Likewise.
5628 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
5629 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
5630 (MCL_CURRENT): Likewise.
5631 (MCL_FUTURE): Likewise.
5632 (MCL_ONFAULT): Likewise.
5633 [__USE_MISC] (MADV_NORMAL): Likewise.
5634 [__USE_MISC] (MADV_RANDOM): Likewise.
5635 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
5636 [__USE_MISC] (MADV_WILLNEED): Likewise.
5637 [__USE_MISC] (MADV_DONTNEED): Likewise.
5638 [__USE_MISC] (MADV_FREE): Likewise.
5639 [__USE_MISC] (MADV_REMOVE): Likewise.
5640 [__USE_MISC] (MADV_DONTFORK): Likewise.
5641 [__USE_MISC] (MADV_DOFORK): Likewise.
5642 [__USE_MISC] (MADV_HWPOISON): Likewise.
5643 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
5644 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
5645 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
5646 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
5647 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
5648 (__MAP_ANONYMOUS): New macro.
5649 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
5650 <bits/mman-linux.h> inclusion.
5651 (MAP_FIXED): Likewise.
5652 (MS_SYNC): Likewise.
5653 (MS_ASYNC): Likewise.
5654 (MS_INVALIDATE): Likewise.
5655 [__USE_MISC] (MADV_MERGEABLE): Likewise.
5656 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
5657 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
5658 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
5659 [__USE_MISC] (MADV_DONTDUMP): Likewise.
5660 [__USE_MISC] (MADV_DODUMP): Likewise.
5661 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
5662 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
5663
5664 [BZ #23735]
5665 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
5666 Define.
5667 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
5668 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
5669 Add test-nldbl-redirect.
5670 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
5671 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
5672 $(objpfx)libnldbl_nonshared.a.
5673
5674 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
5675
5676 * support/support.h (support_objdir_elf_ldso): New variable.
5677 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
5678 * support/Makefile (CFLAGS-support_paths.c): Add definition
5679 for OBJDIR_ELF_LDSO_PATH.
5680 * support/test-container.c (main): Search for the ld.so
5681 which is also used by the testsuite.
5682
5683 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
5684
5685 [BZ #20209]
5686 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
5687 should be "sap" rather than "sab".
5688 (day): Fix spelling of Sunday, should be "sapaat" rather than
5689 "sabaat".
5690
5691 2018-10-02 Joseph Myers <joseph@codesourcery.com>
5692
5693 * math/libm-test-fma.inc (fma_test_data): Add more tests.
5694
5695 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
5696
5697 [BZ #19444]
5698 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
5699 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
5700 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
5701
5702 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5703
5704 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
5705
5706 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
5707
5708 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
5709 Add -mrtm.
5710 (CFLAGS-elision-unlock.c): Likewise.
5711 (CFLAGS-elision-timed.c): Likewise.
5712 (CFLAGS-elision-trylock.c): Likewise.
5713 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
5714
5715 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5716
5717 [BZ #21037]
5718 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
5719 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
5720 new fd_to_filename interface.
5721 * libio/freopen64.c (freopen64): Likewise.
5722 * libio/tst-memstream.h: New file.
5723 * libio/tst-memstream4.c: Likewise.
5724 * libio/tst-wmemstream4.c: Likewise.
5725 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
5726 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
5727 and remove internal dynamic allocation.
5728
5729 2018-10-01 Joseph Myers <joseph@codesourcery.com>
5730
5731 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
5732 (MREMAP_MAYMOVE): Do not define here.
5733 [__USE_GNU] (MREMAP_FIXED): Likewise.
5734 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
5735 (MREMAP_MAYMOVE): Define here instead.
5736 [__USE_GNU] (MREMAP_FIXED): Likewise.
5737 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
5738 (MREMAP_MAYMOVE): Remove.
5739 [__USE_GNU] (MREMAP_FIXED): Likewise.
5740
5741 2018-09-28 Joseph Myers <joseph@codesourcery.com>
5742
5743 * math/fromfp.h: Do not include <math_private.h>.
5744 * math/s_cacosh_template.c: Likewise.
5745 * math/s_casin_template.c: Likewise.
5746 * math/s_casinh_template.c: Likewise.
5747 * math/s_ccos_template.c: Likewise.
5748 * math/s_cproj_template.c: Likewise.
5749 * math/s_fdim_template.c: Likewise.
5750 * math/s_fmaxmag_template.c: Likewise.
5751 * math/s_fminmag_template.c: Likewise.
5752 * math/s_iseqsig_template.c: Likewise.
5753 * math/s_ldexp_template.c: Likewise.
5754 * math/s_nextdown_template.c: Likewise.
5755 * math/w_log1p_template.c: Likewise.
5756 * math/w_scalbln_template.c: Likewise.
5757 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
5758 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
5759 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
5760 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
5761 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
5762 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
5763 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
5764 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
5765 * sysdeps/i386/fpu/s_atanl.c: Likewise.
5766 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
5767 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
5768 * sysdeps/i386/fpu/s_fdim.c: Likewise.
5769 * sysdeps/i386/fpu/s_logbl.c: Likewise.
5770 * sysdeps/i386/fpu/s_rintl.c: Likewise.
5771 * sysdeps/i386/fpu/s_significandl.c: Likewise.
5772 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
5773 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
5774 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5775 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5776 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
5777 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
5778 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5779 * sysdeps/ieee754/k_standardf.c: Likewise.
5780 * sysdeps/ieee754/k_standardl.c: Likewise.
5781 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5782 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
5783 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
5784 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
5785 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
5786 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
5787 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5788 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
5789 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
5790 * sysdeps/ieee754/s_signgam.c: Likewise.
5791 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
5792 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
5793 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
5794 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
5795 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
5796 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
5797 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5798 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
5799 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
5800 * sysdeps/riscv/rvd/s_finite.c: Likewise.
5801 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
5802 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
5803 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
5804 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
5805 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
5806 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
5807 * sysdeps/riscv/rvf/fegetround.c: Likewise.
5808 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
5809 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
5810 * sysdeps/riscv/rvf/fesetround.c: Likewise.
5811 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
5812 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
5813 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
5814 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
5815 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
5816 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
5817 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
5818 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
5819 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
5820 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
5821 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
5822 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
5823 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
5824 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
5825 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5826 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
5827 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
5828 <math_private.h>.
5829 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
5830
5831 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
5832
5833 [BZ #23716]
5834 * sysdeps/i386/dl-cet.c: Removed.
5835 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
5836 prototype.
5837 (_dl_runtime_profile_shstk): Likewise.
5838 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
5839 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
5840
5841 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5842
5843 [BZ #23579]
5844 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
5845 do_test_with_invalid_iov): New tests.
5846 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
5847 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
5848 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
5849 errno is ENOSYS.
5850 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
5851 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
5852 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
5853
5854 2018-09-27 Joseph Myers <joseph@codesourcery.com>
5855
5856 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5857 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
5858 (MATH_REDIRECT_BINARY_ARGS): New macro.
5859 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
5860 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
5861 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
5862 header inclusion.
5863 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
5864 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5865 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
5866 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5867 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5868 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5869 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5870 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
5871 Likewise.
5872 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
5873 Likewise.
5874 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
5875 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
5876 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
5877 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
5878 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
5879 Likewise.
5880 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
5881 Likewise.
5882 * sysdeps/generic/math_private_calls.h
5883 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
5884 Do not declare and define as an inline function.
5885 * math/divtc3.c (__divtc3): Use copysign functions instead of
5886 __copysign variants.
5887 * math/multc3.c (__multc3): Likewise.
5888 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
5889 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
5890 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
5891 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
5892 Likewise.
5893 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
5894 (__ieee754_yn): Likewise.
5895 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
5896 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
5897 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
5898 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
5899 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
5900 (__sin): Likewise.
5901 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
5902 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5903 Likewise.
5904 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
5905 Likewise.
5906 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
5907 Likewise.
5908 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
5909 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
5910 Likewise.
5911 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
5912 (__ieee754_ynf): Likewise.
5913 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
5914 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
5915 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
5916 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
5917 Likewise.
5918 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
5919 (__ieee754_ynl): Likewise.
5920 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
5921 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
5922 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
5923 Likewise.
5924 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
5925 (__ieee754_ynl): Likewise.
5926 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
5927 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
5928 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
5929 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
5930 Likewise.
5931 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
5932 (__ieee754_ynl)
5933 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
5934 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
5935 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
5936 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
5937 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
5938
5939 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5940 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
5941 using MATH_REDIRECT.
5942 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
5943 header inclusion.
5944 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
5945 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5946 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5947 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
5948 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5949 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
5950 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
5951 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
5952 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
5953 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
5954 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
5955 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5956 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5957 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
5958 (round): Redirect to __round.
5959 (__roundl): Call round instead of __round.
5960 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
5961 Remove macro.
5962 [_ARCH_PWR5X] (__roundf): Likewise.
5963 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
5964 functions instead of __round variants.
5965 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
5966 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
5967 Likewise.
5968 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
5969 Likewise.
5970 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
5971 Likewise.
5972 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
5973 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
5974 __lroundl.
5975 (__ieee754_expl): Call roundl instead of __roundl.
5976
5977 2018-09-27 Andreas Schwab <schwab@suse.de>
5978
5979 [BZ #23717]
5980 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
5981 (do_test): Make st1 static.
5982
5983 2018-09-26 Andreas Schwab <schwab@suse.de>
5984
5985 [BZ #23707]
5986 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
5987 * elf/Makefile (tests): Add tst-unwind-ctor.
5988 (modules-names): Add tst-unwind-ctor-lib.
5989 ($(objpfx)tst-unwind-ctor): Depend on
5990 $(objpfx)tst-unwind-ctor-lib.so.
5991
5992 2018-09-26 Joseph Myers <joseph@codesourcery.com>
5993
5994 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
5995 file. Most contents moved from ....
5996 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
5997 and include <bits/mman-map-flags-generic.h>.
5998 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5999 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6000 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6001 <bits/mman-map-flags-generic.h>.
6002 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6003 macros defined in <bits/mman-map-flags-generic.h>.
6004 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6005 <bits/mman-map-flags-generic.h>.
6006 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6007 defined in <bits/mman-map-flags-generic.h>.
6008
6009 2018-09-26 Andreas Schwab <schwab@suse.de>
6010
6011 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6012 output.
6013
6014 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6015 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6016 Fangrui Song <maskray@google.com>
6017
6018 [BZ #20480]
6019 * config.make.in (have-textrel_ifunc): New define.
6020 * configure.ac: Add check if linker supports textrel relocation with
6021 ifunc.
6022 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6023 tst-ifunc-textrel.
6024 (CFLAGS-tst-ifunc-textrel.c): New rule.
6025 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6026 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6027 * elf/tst-ifunc-textrel.c: New file.
6028
6029 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6030
6031 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6032 <bits/procfs-prregset.h>.
6033 (prgregset_t): Define using __prgregset_t.
6034 (prfpregset_t): Define using __prfpregset_t.
6035 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6036 (sysdep_headers): Add bits/procfs-prregset.h.
6037 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6038 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6039 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6040 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6041
6042 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6043 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6044 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6045 pr_uid and pr_gid.
6046 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6047 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6048 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6049 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6050 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6051 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6052 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6053 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6054 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6055 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6056 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6057 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6058 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6059 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6060 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6061 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6062 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6063 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6064 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6065 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6066 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6067 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6068 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6069 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6070
6071 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6072 AArch64 version. Include <bits/procfs.h>.
6073 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6074 (sysdep_headers): Add bits/procfs.h.
6075 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6076 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6077 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6078 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6079 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6080 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6081 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6082 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6083 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6084 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6085 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6086 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6087 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6088 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6089 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6090 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6091 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6092
6093 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6094
6095 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6096 Use libsupport.
6097
6098 2018-09-25 Arjun Shankar <arjun@redhat.com>
6099
6100 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6101 (__gconv_max_path_elem_len): Likewise.
6102 (__gconv_nmodules): Likewise.
6103 (__gconv_get_path): Likewise.
6104 (path_elem): Move to ...
6105 * iconv/gconv_conf.c: ... here.
6106 (__gconv_get_path): Mark function static.
6107 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6108 * iconv/gconv_open.c: ... here.
6109
6110 2018-09-24 Andreas Schwab <schwab@suse.de>
6111
6112 * scripts/haveversions.awk: New file.
6113 * Makerules ($(common-objpfx)Versions.def)
6114 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6115 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6116 Move rules ...
6117 * Makeconfig ($(common-objpfx)Versions.def)
6118 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6119 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6120 ... here.
6121 ($(common-objpfx)Versions.mk): New rule. Include it.
6122 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6123 Emit error if build-obsolete-nsl = yes.
6124 * manual/install.texi (Configuring and compiling): Describe
6125 --enable-obsolete-nsl as unavaiable after version 2.28.
6126 * INSTALL: Regenerate.
6127
6128 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6129
6130 * NEWS: Add note about new TLE support on powerpc64le.
6131 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6132 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6133 __ununsed1.
6134 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6135 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6136 * sysdeps/powerpc/powerpc32/sysdep.h,
6137 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6138 ABORT_TRANSACTION): Remove macros.
6139 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6140 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6141 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6142 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6143 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6144 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6145 usage.
6146 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6147
6148 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6149
6150 [BZ #10425]
6151 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6152 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6153 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6154 which is the same as in it_IT.
6155 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6156 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6157
6158 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6159
6160 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6161 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6162 using MATH_REDIRECT.
6163 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6164 header inclusion.
6165 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6166 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6167 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6168 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6169 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6170 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6171 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6172 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6173 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6174 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6175 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6176 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6177 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6178 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6179 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6180 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6181 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6182 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6183 (ceil): Redirect to __ceil.
6184 (floor): Redirect to __floor.
6185 (trunc): Redirect to __trunc.
6186 (__truncl): Call trunc instead of __trunc.
6187 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6188 Remove macro.
6189 [_ARCH_PWR5X] (__truncf): Likewise.
6190 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6191 trunc functions instead of __trunc variants.
6192 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6193 Likewise.
6194 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6195 Likewise.
6196 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6197 Likewise.
6198 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6199 Likewise.
6200
6201 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6202 [__i586__ || __pentium__].
6203 [__i486__]: Handle explicitly.
6204 (HAS_CPUID): Define to 1 if above macros are undefined.
6205 (HAS_I586): Likewise.
6206 (HAS_I686): Likewise.
6207
6208 2018-09-20 Florian Weimer <fweimer@redhat.com>
6209
6210 * misc/tst-gethostid.c: New file.
6211 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6212 (tst-gethostid): Link with -ldl.
6213
6214 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6215
6216 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6217 value from gethostbyname_r.
6218
6219 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6220
6221 * stdlib/tst-setcontext9.c (f1): Rename to...
6222 (f1a): ... this.
6223 (f1b): New function implementing lower half of f1 in alternate stack.
6224
6225 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6226
6227 Fix mktime localtime offset confusion
6228 [BZ #23603]
6229 * include/time.h (__mktime_internal): The localtime offset is now
6230 of type long int instead of time_t. This is the longstanding type
6231 in glibc, and it is more than enough to represent difference
6232 between localtime and gmtime even if it is 32 bits and time_t is
6233 64. Changing it now will let us avoid an unnecessary change when
6234 time_t is widened to 64 bits on 32-bit platforms.
6235 * time/mktime-internal.h (mktime_offset_t): Now long int.
6236
6237 Merge mktime, timegm from upstream Gnulib
6238 [BZ #23603][BZ #16346]
6239 This fixes some obscure problems with integer overflow.
6240 Although it looks scary, it is almost all a byte-for-byte copy
6241 from Gnulib, and the Gnulib code has been tested reasonably well.
6242 * include/intprops.h: New file, copied from Gnulib.
6243 * include/verify.h, time/mktime-internal.h:
6244 New tiny files, simplified from Gnulib.
6245 * time/mktime.c: Copy from Gnulib. This has the following changes:
6246 Do not include config.h if DEBUG_MKTIME is nonzero.
6247 Include stdbool.h, intprops.h, verify.h.
6248 Include string.h only if needed.
6249 Include stdlib.h on MS-Windows.
6250 Include mktime-internal.h.
6251 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6252 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6253 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6254 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6255 simplify later conditionals; default the others to zero. Use
6256 these conditionals to express only the code needed on the current
6257 platform. In uses of these conditionals, explicitly spell out how
6258 _LIBC affects things, so it’s easier to review from a glibc
6259 viewpoint.
6260 (WRAPV): Remove; no longer needed now that we have
6261 systematic overflow checking.
6262 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6263 compartmentalize tzset issues. Move system-dependent tzsettish
6264 code here from mktime.
6265 (verify): Remove; now done by verify.h. All uses changed.
6266 (long_int): Use a more-conservative definition, to avoid
6267 integer overflow.
6268 (SHR): Remove, replacing with ...
6269 (shr): New function, which means we needn’t worry about side
6270 effects in args, and conversion analysis is simpler.
6271 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6272 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6273 (time_t_avg, time_t_add_ok): Remove.
6274 (mktime_min, mktime_max): New constants.
6275 (leapyear, isdst_differ): Use bool for booleans.
6276 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6277 Use long_int, not time_t, for mktime differences.
6278 (long_int_avg): New function, replacing time_t_avg.
6279 INT_ADD_WRAPV replaces time_t_add_ok.
6280 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6281 All uses changed.
6282 (convert_time): New function.
6283 (ranged_convert): Use it.
6284 (__mktime_internal): Last arg now points to mktime_offset_t, not
6285 time_t. All uses changed. This is a no-op on glibc, where
6286 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6287 offset guess. Directly check for integer overflow instead of
6288 using a heuristic that works only 99.9...% of the time.
6289 Access *OFFSET only once, to avoid an unlikely race if the
6290 compiler delays a load and if this cascades into a signed integer
6291 overflow.
6292 (mktime): Move tzsettish code to my_tzset, and move
6293 localtime_offset to within mktime so that it doesn’t
6294 need a separate ifdef.
6295 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6296 instead of localtime.
6297 * time/timegm.c: Copy from Gnulib. This has the following changes:
6298 Include mktime-internal.h.
6299 [!_LIBC]: Include config.h and time.h. Do not include
6300 timegm.h or time_r.h. Make __mktime_internal a macro,
6301 and include mktime-internal.h to get its declaration.
6302 (timegm): Temporary is now mktime_offset_t, not time_t.
6303 This affects only Gnulib.
6304
6305 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6306
6307 [BZ #23637]
6308 * string/test-strstr.c (pr23637): New function.
6309 (test_main): Add tests with longer needles.
6310 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6311 * string/strstr.c (AVAILABLE): Likewise.
6312
6313 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6314
6315 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
6316
6317 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6318
6319 * NEWS: Mention pow improvements.
6320 * math/Makefile (type-double-routines): Add e_pow_log_data.
6321 * sysdeps/generic/math_private.h (__exp1): Remove.
6322 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6323 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6324 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6325 contraction.
6326 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6327 (exp_inline): Remove.
6328 (__ieee754_exp): Only single double input is handled.
6329 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6330 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6331 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6332 (__pow_log_data): Define.
6333 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6334 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6335 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6336 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6337 contraction.
6338 (CFLAGS-e_pow-fma4.c): Likewise.
6339
6340 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
6341
6342 Simplify tzfile fstat failure code
6343 [BZ #21716]
6344 * time/tzfile.c (__tzfile_read): Simplify slightly.
6345
6346 Fix tzfile low-memory assertion failure
6347 [BZ #21716]
6348 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
6349 when registering time zone abbreviations.
6350
6351 2018-09-18 Joseph Myers <joseph@codesourcery.com>
6352
6353 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
6354 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
6355 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6356 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6357 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
6358 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
6359 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
6360 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6361 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6362
6363 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
6364 __ceil.
6365 (__ceill): Call ceil instead of __ceil.
6366 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
6367 __floor.
6368 (__floorl): Call floor instead of __floor.
6369
6370 2018-09-17 Joseph Myers <joseph@codesourcery.com>
6371
6372 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6373 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
6374 using MATH_REDIRECT.
6375 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
6376 header inclusion.
6377 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
6378 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6379 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6380 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
6381 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6382 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6383 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6384 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6385 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
6386 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
6387 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
6388 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
6389 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6390 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6391 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6392 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6393 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6394 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6395 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
6396 Remove macro.
6397 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
6398 functions instead of __ceil variants.
6399 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6400 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6401 Likewise.
6402 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6403 Likewise.
6404 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6405 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6406 Likewise.
6407 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6408 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6409
6410 [BZ #21286]
6411 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
6412 constant.
6413 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
6414 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
6415 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
6416 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
6417 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
6418 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
6419 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
6420 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
6421 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
6422 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
6423 (ILL_BADIADDR): Remove constant.
6424 (TRAP_BRANCH): Likewise.
6425 (TRAP_HWBKPT): Likewise.
6426
6427 2018-09-14 Joseph Myers <joseph@codesourcery.com>
6428
6429 [BZ #23656]
6430 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
6431 Remove [_MIPS_SIM = _ABIN32] conditional case.
6432 (struct elf_prpsinfo): Likewise.
6433
6434 [BZ #23649]
6435 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
6436 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
6437 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
6438 Likewise.
6439 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
6440 elf_prpsinfo): Likewise.
6441 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
6442 elf_prpsinfo): Likewise.
6443 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
6444 Likewise.
6445
6446 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6447 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
6448 using MATH_REDIRECT.
6449 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
6450 header inclusion.
6451 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
6452 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6453 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6454 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6455 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6456 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6457 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
6458 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6459 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6460 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6461 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
6462 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
6463 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
6464 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
6465 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
6466 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
6467 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6468 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
6469 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6470 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
6471 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
6472 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
6473 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
6474 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
6475 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
6476 * sysdeps/x86_64/fpu/math_private.h: Remove file.
6477 * math/e_scalb.c (invalid_fn): Use rint functions instead of
6478 __rint variants.
6479 * math/e_scalbf.c (invalid_fn): Likewise.
6480 * math/e_scalbl.c (invalid_fn): Likewise.
6481 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6482 Likewise.
6483 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6484 Likewise.
6485 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6486 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
6487 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6488 Likewise.
6489 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6490 Likewise.
6491 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6492 Likewise.
6493 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
6494 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
6495
6496 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6497 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
6498 New macro.
6499 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6500 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
6501 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6502 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
6503 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6504 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
6505 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6506 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
6507 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6508 && !NO_MATH_REDIRECT] (floor): Likewise.
6509 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
6510 header inclusion.
6511 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
6512 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6513 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6514 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
6515 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6516 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6517 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6518 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
6519 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
6520 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
6521 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
6522 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
6523 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6524 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6525 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
6526 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
6527 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
6528 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
6529 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
6530 Remove macro.
6531 [_ARCH_PWR5X] (__floorf): Likewise.
6532 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
6533 inline function.
6534 [__SSE4_1__] (__floorf): Likewise.
6535 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
6536 instead of __floor variants.
6537 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
6538 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
6539 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
6540 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
6541 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
6542 * math/w_tgamma_compat.c (__tgamma): Likewise.
6543 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
6544 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
6545 * math/w_tgammal_compat.c (__tgammal): Likewise.
6546 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
6547 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
6548 Likewise.
6549 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
6550 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
6551 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
6552 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6553 Likewise.
6554 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
6555 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
6556 Likewise.
6557 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
6558 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
6559 Likewise.
6560 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
6561 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
6562 Likewise.
6563 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
6564 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6565 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
6566 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
6567 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6568 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6569
6570 2018-09-12 Joseph Myers <joseph@codesourcery.com>
6571
6572 * elf/Makefile (modules-names-tests): New variable.
6573
6574 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6575
6576 * NEWS: Mention log2 improvements.
6577 * math/Makefile (type-double-routines): Add e_log2_data.
6578 * sysdeps/i386/fpu/e_log2_data.c: New file.
6579 * sysdeps/ia64/fpu/e_log2_data.c: New file.
6580 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
6581 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
6582 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
6583 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
6584 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
6585
6586 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6587
6588 * NEWS: Mention log improvement.
6589 * math/Makefile (type-double-routines): Add e_log_data.
6590 * sysdeps/i386/fpu/e_log_data.c: New file.
6591 * sysdeps/ia64/fpu/e_log_data.c: New file.
6592 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
6593 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
6594 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
6595 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
6596 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
6597 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
6598
6599 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
6600 Xuepeng Guo <xuepeng.guo@intel.com>
6601
6602 [BZ #23606]
6603 * sysdeps/i386/start.S: Include <sysdep.h>
6604 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
6605 enabled. Add cfi_undefined (eip).
6606
6607 2018-09-11 Joseph Myers <joseph@codesourcery.com>
6608
6609 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
6610 (MOVQ): Likewise.
6611 (EXTRACT_WORDS64): Likewise.
6612 (INSERT_WORDS64): Likewise.
6613 (GET_FLOAT_WORD): Likewise.
6614 (SET_FLOAT_WORD): Likewise.
6615
6616 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
6617 argument.
6618 (Config.build_gcc): Use --disable-libsanitizer for first GCC
6619 build, but not for second build if --full-gcc. Use
6620 --enable-languages=all for second build if --full-gcc.
6621 (get_parser): Add --full-gcc option.
6622 (main): Update call to Context.
6623
6624 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
6625
6626 [BZ #10797]
6627 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
6628 Single Quotation Mark).
6629 (thousands_sep): Likewise.
6630 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
6631 * localedata/locales/it_IT (thousands_sep): Use ".".
6632 (grouping): Use "3;3".
6633
6634 2018-09-10 Joseph Myers <joseph@codesourcery.com>
6635
6636 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
6637 x86_64 and i686 configs using --enable-obsolete-rpc
6638 --enable-obsolete-nsl.
6639
6640 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6641
6642 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6643
6644 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6645
6646 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
6647 Increment size of new_argv by one.
6648
6649 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
6650
6651 [BZ #17426]
6652 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
6653 * localedata/locales/ar_IN (d_fmt): Likewise.
6654 * localedata/locales/bhb_IN (d_fmt): Likewise.
6655 * localedata/locales/bho_IN (d_fmt): Likewise.
6656 * localedata/locales/bn_BD (d_fmt): Likewise.
6657 * localedata/locales/bn_IN (d_fmt): Likewise.
6658 * localedata/locales/doi_IN (d_fmt): Likewise.
6659 * localedata/locales/gu_IN (d_fmt): Likewise.
6660 * localedata/locales/hi_IN (d_fmt): Likewise.
6661 * localedata/locales/hne_IN (d_fmt): Likewise.
6662 * localedata/locales/kn_IN (d_fmt): Likewise.
6663 * localedata/locales/mag_IN (d_fmt): Likewise.
6664 * localedata/locales/mai_IN (d_fmt): Likewise.
6665 * localedata/locales/mjw_IN (d_fmt): Likewise.
6666 * localedata/locales/ml_IN (d_fmt): Likewise.
6667 * localedata/locales/mni_IN (d_fmt): Likewise.
6668 * localedata/locales/mr_IN (d_fmt): Likewise.
6669 * localedata/locales/pa_IN (d_fmt): Likewise.
6670 * localedata/locales/raj_IN (d_fmt): Likewise.
6671 * localedata/locales/sat_IN (d_fmt): Likewise.
6672 * localedata/locales/sd_IN (d_fmt): Likewise.
6673 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
6674 * localedata/locales/ta_IN (d_fmt): Likewise.
6675 * localedata/locales/ta_LK (d_fmt): Likewise.
6676 * localedata/locales/tcy_IN (d_fmt): Likewise.
6677 * localedata/locales/ur_IN (d_fmt): Likewise.
6678
6679 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
6680 * localedata/locales/ks_IN (d_fmt): Likewise.
6681 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
6682
6683 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
6684 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
6685 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
6686 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
6687
6688 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
6689
6690 * NEWS: Mention exp and exp2 improvements.
6691 * math/Makefile (libm-support): Remove t_exp.
6692 (type-double-routines): Add math_err and e_exp_data.
6693 * sysdeps/aarch64/libm-test-ulps: Update.
6694 * sysdeps/arm/libm-test-ulps: Update.
6695 * sysdeps/i386/fpu/e_exp_data.c: New file.
6696 * sysdeps/i386/fpu/math_err.c: New file.
6697 * sysdeps/i386/fpu/t_exp.c: Remove.
6698 * sysdeps/ia64/fpu/e_exp_data.c: New file.
6699 * sysdeps/ia64/fpu/math_err.c: New file.
6700 * sysdeps/ia64/fpu/t_exp.c: Remove.
6701 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
6702 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
6703 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
6704 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
6705 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
6706 * sysdeps/ieee754/dbl-64/math_config.h: New file.
6707 * sysdeps/ieee754/dbl-64/math_err.c: New file.
6708 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
6709 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
6710 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
6711 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
6712 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
6713 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
6714 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
6715 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6716 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6717
6718 2018-09-05 Joseph Myers <joseph@codesourcery.com>
6719
6720 * sysdeps/alpha/fpu/math_private.h: Remove.
6721
6722 * sysdeps/generic/math_private.h
6723 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
6724 Move this inline function ....
6725 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
6726 * include/math.h [!_ISOMAC]: To here....
6727
6728 2018-09-04 Joseph Myers <joseph@codesourcery.com>
6729
6730 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
6731 code ....
6732 [!FE_HAVE_ROUNDING_MODES]: And this code ....
6733 * include/fenv.h [!_ISOMAC]: ... to here.
6734 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
6735 (feraiseexcept): Likewise.
6736 * math/fromfp.h: Do not include <fenv_private.h>.
6737 * math/s_cexp_template.c: Likewise.
6738 * math/s_csin_template.c: Likewise.
6739 * math/s_csinh_template.c: Likewise.
6740 * math/s_ctan_template.c: Likewise.
6741 * math/s_ctanh_template.c: Likewise.
6742 * math/s_iseqsig_template.c: Likewise.
6743 * math/w_acos_compat.c: Likewise.
6744 * math/w_acosf_compat.c: Likewise.
6745 * math/w_acosl_compat.c: Likewise.
6746 * math/w_asin_compat.c: Likewise.
6747 * math/w_asinf_compat.c: Likewise.
6748 * math/w_asinl_compat.c: Likewise.
6749 * math/w_j0_compat.c: Likewise.
6750 * math/w_j0f_compat.c: Likewise.
6751 * math/w_j0l_compat.c: Likewise.
6752 * math/w_j1_compat.c: Likewise.
6753 * math/w_j1f_compat.c: Likewise.
6754 * math/w_j1l_compat.c: Likewise.
6755 * math/w_jn_compat.c: Likewise.
6756 * math/w_jnf_compat.c: Likewise.
6757 * math/w_log10_compat.c: Likewise.
6758 * math/w_log10f_compat.c: Likewise.
6759 * math/w_log10l_compat.c: Likewise.
6760 * math/w_log2_compat.c: Likewise.
6761 * math/w_log2f_compat.c: Likewise.
6762 * math/w_log2l_compat.c: Likewise.
6763 * math/w_log_compat.c: Likewise.
6764 * math/w_logf_compat.c: Likewise.
6765 * math/w_logl_compat.c: Likewise.
6766 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6767 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6768 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6769 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6770 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6771 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6772 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6773 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6774 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6775 * sysdeps/ieee754/k_standardl.c: Likewise.
6776 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6777 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6778 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6779 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6780 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6781 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6782 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6783 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6784 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6785 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6786 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6787 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6788 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6789 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6790 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6791 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6792 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6793 * math/w_ilogb_template.c: Include <fenv.h> instead of
6794 <fenv_private.h>.
6795 * math/w_llogb_template.c: Likewise.
6796 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6797 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6798
6799 2018-09-03 Joseph Myers <joseph@codesourcery.com>
6800
6801 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
6802 * math/fromfp.h: Include <fenv_private.h>.
6803 * math/math-narrow.h: Likewise.
6804 * math/s_cexp_template.c: Likewise.
6805 * math/s_csin_template.c: Likewise.
6806 * math/s_csinh_template.c: Likewise.
6807 * math/s_ctan_template.c: Likewise.
6808 * math/s_ctanh_template.c: Likewise.
6809 * math/s_iseqsig_template.c: Likewise.
6810 * math/w_acos_compat.c: Likewise.
6811 * math/w_acosf_compat.c: Likewise.
6812 * math/w_acosl_compat.c: Likewise.
6813 * math/w_asin_compat.c: Likewise.
6814 * math/w_asinf_compat.c: Likewise.
6815 * math/w_asinl_compat.c: Likewise.
6816 * math/w_ilogb_template.c: Likewise.
6817 * math/w_j0_compat.c: Likewise.
6818 * math/w_j0f_compat.c: Likewise.
6819 * math/w_j0l_compat.c: Likewise.
6820 * math/w_j1_compat.c: Likewise.
6821 * math/w_j1f_compat.c: Likewise.
6822 * math/w_j1l_compat.c: Likewise.
6823 * math/w_jn_compat.c: Likewise.
6824 * math/w_jnf_compat.c: Likewise.
6825 * math/w_llogb_template.c: Likewise.
6826 * math/w_log10_compat.c: Likewise.
6827 * math/w_log10f_compat.c: Likewise.
6828 * math/w_log10l_compat.c: Likewise.
6829 * math/w_log2_compat.c: Likewise.
6830 * math/w_log2f_compat.c: Likewise.
6831 * math/w_log2l_compat.c: Likewise.
6832 * math/w_log_compat.c: Likewise.
6833 * math/w_logf_compat.c: Likewise.
6834 * math/w_logl_compat.c: Likewise.
6835 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6836 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6837 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6838 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6839 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6840 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6841 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6842 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6843 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6844 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6845 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6846 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6847 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
6848 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
6849 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6850 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6851 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6852 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6853 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6854 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6855 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6856 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
6857 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6858 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
6859 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6860 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6861 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
6862 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
6863 * sysdeps/ieee754/float128/float128_private.h: Likewise.
6864 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6865 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6866 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6867 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
6868 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6869 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6870 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6871 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6872 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6873 * sysdeps/ieee754/k_standardl.c: Likewise.
6874 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6875 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6876 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6877 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6878 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
6879 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
6880 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6881 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6882 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6883 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6884 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6885 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6886 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
6887 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6888 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6889 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
6890 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
6891 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
6892 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
6893 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6894 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6895 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6896 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6897 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6898 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
6899 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
6900 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6901 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
6902 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
6903 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6904 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6905 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6906 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6907 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6908 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6909 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
6910 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6911 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6912 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6913 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6914 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6915 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6916 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6917 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6918 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6919 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6920 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6921 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6922 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6923 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6924 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6925 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6926 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6927 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6928 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6929 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6930 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6931 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6932 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6933 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6934 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6935 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6936 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6937 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6938 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6939 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6940 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6941 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6942 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6943 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6944 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6945
6946 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6947
6948 [BZ #20271]
6949 * include/stdio.h (__libc_fatal): Mention newline in comment.
6950 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
6951 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
6952 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6953 * nss/nsswitch.c (__nss_next2): Likewise.
6954 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
6955 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
6956 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
6957 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
6958 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
6959 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
6960 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
6961 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
6962 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
6963 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
6964 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
6965 * sysdeps/unix/sysv/linux/netlink_assert_response.c
6966 (__netlink_assert_response): Likewise.
6967
6968 2018-08-31 Joseph Myers <joseph@codesourcery.com>
6969
6970 * conform/glibcconform.py: New file.
6971 * conform/list-header-symbols.py: Likewise.
6972 * conform/list-header-symbols.pl: Remove.
6973 * conform/Makefile (tests-special): Only add linknamespace tests
6974 if [PYTHON].
6975 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
6976
6977 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
6978
6979 [BZ #23597]
6980 * support/Makefile (libsupport-routines): Add
6981 support_copy_file_range and xcopy_file_range.
6982 * support/support.h: Include <sys/types.h>.
6983 (support_copy_file_range): New prototype.
6984 * support/support_copy_file_range.c: New file. Copied and
6985 modified from io/copy_file_range-compat.c.
6986 * support/test-container.c (copy_one_file): Call xcopy_file_rang
6987 instead of copy_file_range.
6988 * support/xcopy_file_range.c: New file.
6989 * support/xunistd.h (xcopy_file_range): New prototype.
6990
6991 2018-08-30 Carlos O'Donell <carlos@redhat.com>
6992
6993 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
6994 xpthread_create and xpthread_join.
6995
6996 2018-08-30 Florian Weimer <fweimer@redhat.com>
6997
6998 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
6999
7000 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7001
7002 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7003 if malloc fails.
7004
7005 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7006
7007 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7008 and minus_oflow as non-finite.
7009
7010 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7011
7012 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7013 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7014 moved to fenv_private.h except for ...
7015 (TOINT_INTRINSICS): Kept in math_private.h.
7016 (roundtoint): Likewise.
7017 (converttoint): Likewise.
7018 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7019 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7020 * sysdeps/arm/math_private.h: Remove.
7021 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7022 ....
7023 * sysdeps/generic/math_private.h: ... this file. Include
7024 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7025 Include <fenv_private.h>. Remove functions and macros moved to
7026 fenv_private.h.
7027 * sysdeps/i386/fpu/math_private.h: Remove.
7028 * sysdeps/mips/math_private.h: Move to ....
7029 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7030 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7031 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7032 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7033 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7034 * sysdeps/powerpc/fpu/math_private.h: Do not include
7035 <fenv_private.h>.
7036 * sysdeps/riscv/rvf/math_private.h: Move to ....
7037 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7038 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7039 <fenv_private.h>.
7040 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7041 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7042 * sysdeps/sparc/fpu/math_private.h: Remove.
7043 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7044 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7045 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7046 <fenv_private.h>.
7047 * sysdeps/x86_64/fpu/math_private.h: Do not include
7048 <sysdeps/i386/fpu/fenv_private.h>.
7049
7050 2018-08-28 Florian Weimer <fweimer@redhat.com>
7051
7052 [BZ #23578]
7053 * posix/tst-regcomp-truncated.c: New file.
7054 * posix/Makefile (tests): Add it.
7055 (tst-regcomp-truncated.out): Depend on generated locales.
7056
7057 2018-08-28 Florian Weimer <fweimer@redhat.com>
7058
7059 * support/test-container.c (main): Treat unshare failure with
7060 EPERM as an unsupported test.
7061
7062 2018-08-28 Florian Weimer <fweimer@redhat.com>
7063
7064 [BZ #23520]
7065 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7066 * nscd/netgroupcache.c
7067 (addgetnetgrentX): Add tofreep parameter. Do not free
7068 heap-allocated buffer.
7069 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7070 (addgetnetgrentX_ignore): New function.
7071 (addgetnetgrent): Call it.
7072 (readdgetnetgrent): Likewise.
7073
7074 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7075
7076 * string/memmem.c: Use memcmp for first match.
7077
7078 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7079
7080 [BZ #17426]
7081 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7082
7083 2018-08-27 DJ Delorie <dj@redhat.com>
7084
7085 * support/Makefile (others): Don't list programs explicitly as a
7086 dependency of "others".
7087
7088 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7089
7090 * sysdeps/generic/math-tests-trap-force.h: New file.
7091 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7092 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7093 * sysdeps/powerpc/math-tests.h: Remove file.
7094 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7095
7096 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7097 Torvald Riegel <triegel@redhat.com>
7098
7099 [BZ #23538]
7100 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7101 Update r to include the set wake-request flag if waiters are
7102 remaining after spinning.
7103
7104 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7105
7106 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7107
7108 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7109
7110 [BZ #23578]
7111 regex: fix uninitialized memory access
7112 I introduced this bug into gnulib in commit
7113 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7114 eventually it was merged into glibc. The bug was found by
7115 project-repo <bugs@feusi.co> and reported here:
7116 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7117 Diagnosis and draft fix reported by Assaf Gordon here:
7118 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7119 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7120 * posix/regex_internal.c (build_wcs_upper_buffer):
7121 Fix bug when mbrtowc returns 0.
7122
7123 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7124
7125 * po/be.po: Update translation.
7126
7127 2018-08-24 DJ Delorie <dj@delorie.com>
7128
7129 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7130 $(libunwind).
7131
7132 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7133
7134 [BZ #23400]
7135 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7136 create temporary files in source tree.
7137
7138 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7139
7140 * sysdeps/generic/math-tests-trap.h: New file.
7141 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7142 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7143 * sysdeps/aarch64/math-tests.h: Remove file.
7144 * sysdeps/arm/math-tests.h: Likewise.
7145 * sysdeps/riscv/math-tests.h: Likewise.
7146 * sysdeps/aarch64/math-tests-trap.h: New file.
7147 * sysdeps/arm/math-tests-trap.h: Likewise.
7148 * sysdeps/riscv/math-tests-trap.h: Likewise.
7149
7150 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7151
7152 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7153 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7154 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7155 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7156 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7157 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7158 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7159 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7160 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7161 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7162 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7163 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7164 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7165 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7166 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7167 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7168 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7169 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7170
7171 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7172
7173 * sysdeps/generic/math-tests-exceptions.h: New file.
7174 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7175 (EXCEPTION_TESTS_float): Do not define here.
7176 (EXCEPTION_TESTS_double): Likewise.
7177 (EXCEPTION_TESTS_long_double): Likewise.
7178 (EXCEPTION_TESTS_float128): Likewise.
7179 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7180 Likewise.
7181 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7182 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7183 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7184 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7185 * sysdeps/mips/math-tests.h: Likewise.
7186 * sysdeps/nios2/math-tests.h: Likewise.
7187 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7188 (EXCEPTION_TESTS_float): Do not define here.
7189 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7190 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7191 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7192
7193 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7194
7195 * NEWS: Move optimized sinf entry to 2.29.
7196
7197 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7198
7199 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7200
7201 2018-08-22 DJ Delorie <dj@redhat.com>
7202
7203 * Makefile (testroot.pristine): New rules to initialize the
7204 test-in-container "testroot".
7205 * Makerules (all-testsuite): Add tests-container.
7206 * Rules (tests-expected): Add tests-container.
7207 (binaries-all-tests): Likewise.
7208 (tests-container): New, run these tests in the testroot container.
7209 * support/Makefile (others): Add *-container, support_paths.c,
7210 xmkdirp, and links-dso-program.
7211 * support/links-dso-program-c.c: New.
7212 * support/links-dso-program.cc: New.
7213 * support/test-container.c: New.
7214 * support/shell-container.c: New.
7215 * support/echo-container.c: New.
7216 * support/true-container.c: New.
7217 * support/xmkdirp.c: New.
7218 * support/xsymlink.c: New.
7219 * support/support_paths.c: New.
7220 * support/support.h: Add support paths prototypes.
7221 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7222
7223 * nss/tst-nss-test3.c: Convert to test-in-container.
7224 * nss/tst-nss-test3.root/: New.
7225
7226 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7227
7228 regex: port Gnulib code to z/OS POSIX environment
7229 Problem reported by Arnold Robbins in:
7230 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7231 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7232 Undef.
7233
7234 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7235
7236 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7237 (ROUNDING_TESTS_double): Remove.
7238 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7239 (ROUNDING_TESTS_double): Remove.
7240 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7241 (ROUNDING_TESTS_double): Remove.
7242 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7243 (ROUNDING_TESTS_float): Remove.
7244 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7245 (ROUNDING_TESTS_float): Remove.
7246 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7247 (ROUNDING_TESTS_float): Remove.
7248 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7249 !TEST_MATHVEC here.
7250 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7251 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7252
7253 * sysdeps/generic/math-tests-rounding.h: New file.
7254 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7255 (ROUNDING_TESTS_float): Do not define here.
7256 (ROUNDING_TESTS_double): Likewise.
7257 (ROUNDING_TESTS_long_double): Likewise.
7258 (ROUNDING_TESTS_float128): Likewise.
7259 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7260 (ROUNDING_TESTS_double): Undefine before defining.
7261 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7262 (ROUNDING_TESTS_double): Undefine before defining.
7263 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7264 (ROUNDING_TESTS_double): Undefine before defining.
7265 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7266 (ROUNDING_TESTS_float): Undefine before defining.
7267 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7268 (ROUNDING_TESTS_float): Undefine before defining.
7269 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7270 (ROUNDING_TESTS_float): Undefine before defining.
7271 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7272 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7273 not define here.
7274 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7275 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7276 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7277 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7278 (ROUNDING_TESTS_float): Do not define here.
7279 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7280 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7281 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7282 (ROUNDING_TESTS_float): Likewise.
7283 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7284 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7285 * sysdeps/mips/math-tests.h [__mips_soft_float]
7286 (ROUNDING_TESTS_float): Likewise.
7287 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7288 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7289 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7290 (ROUNDING_TESTS_double): Likewise.
7291 (ROUNDING_TESTS_long_double): Likewise.
7292
7293 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7294
7295 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7296 (PF_XDP): New macro.
7297 (AF_XDP): New macro.
7298 (SOL_XDP): New macro.
7299
7300 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7301
7302 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7303 (TCP_INQ): Likewise.
7304 (TCP_CM_INQ): Likewise.
7305 (TCP_REPAIR_ON): Likewise.
7306 (TCP_REPAIR_OFF): Likewise.
7307 (TCP_REPAIR_OFF_NO_WP): Likewise.
7308 (struct tcp_zerocopy_receive): New type.
7309
7310 2018-08-21 Florian Weimer <fweimer@redhat.com>
7311
7312 * support/support.h (support_descriptor_supports_holes): Declare.
7313 * support/Makefile (libsupport-routines): Add
7314 support_descriptor_supports_holes.
7315 * support/support_descriptor_supports_holes.c: New file.
7316 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
7317 and stop testing if holes are not supported.
7318 * io/test-lfs.c (do_prepare): Likewise.
7319 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
7320 Likewise.
7321 * timezone/tst-tzset.c (create_tz_file): Likewise.
7322 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7323 variable.
7324 (do_prepare): Set it.
7325 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7326
7327 2018-08-21 Florian Weimer <fweimer@redhat.com>
7328
7329 [BZ #17248]
7330 * Makeconfig (+cflags): Do not sort (and deduplicate).
7331
7332 2018-08-21 Florian Weimer <fweimer@redhat.com>
7333
7334 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7335 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7336
7337 2018-08-20 Florian Weimer <fweimer@redhat.com>
7338
7339 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
7340 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
7341
7342 2018-08-20 Joseph Myers <joseph@codesourcery.com>
7343
7344 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7345 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
7346 and ssi_arch members.
7347
7348 * elf/elf.c (NT_VMCOREDD): New macro.
7349 (AT_MINSIGSTKSZ): Likewise.
7350
7351 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7352
7353 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7354 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
7355 s_cosf-ppc64 and s_cosf-power8.
7356 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
7357 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7358 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7359 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7360 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7361 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7362 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
7363 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7364 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7365 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7366 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
7367 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7368
7369 2018-08-17 Florian Weimer <fweimer@redhat.com>
7370
7371 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7372
7373 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
7374
7375 * malloc/malloc.c (_int_malloc): Additional binning code checks.
7376
7377 2018-08-16 Florian Weimer <fweimer@redhat.com>
7378
7379 * configure.ac: Add --with-nonshared-cflags option.
7380 * config.make.in (extra-nonshared-cflags): Set variable.
7381 * Makeconfig (CFLAGS-.oS): Use it.
7382 * manual/install.texi (Configuring and compiling): Document
7383 --with-nonshared-cflags.
7384 * configure: Regenerate.
7385 * INSTALL: Likewise.
7386
7387 2018-08-16 Florian Weimer <fweimer@redhat.com>
7388
7389 * Makeconfig (ASFLAGS): Always append required assembler flags.
7390
7391 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
7392
7393 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
7394 (malloc_consolidate): Likewise.
7395
7396 2018-08-16 Pochang Chen <johnchen902@gmail.com>
7397
7398 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
7399
7400 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7401
7402 * benchtests/bench-strlen.c (do_test): Allocate buffers before
7403 every strlen call.
7404
7405 * benchtests/bench-strlen.c: Print performance numbers in json.
7406
7407 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7408
7409 * sysdeps/powerpc/powerpc64/multiarch/Makefile
7410 (sysdep_routines): Build strcmp-power9 and strncmp-power9
7411 only for little endian.
7412 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7413 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
7414 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
7415 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
7416 Add check for little endian.
7417 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7418 (__strcmp_power9): Add check for little endian.
7419 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
7420 Add check for little endian.
7421 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7422 (__strncmp_power9): Add check for little endian.
7423 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
7424 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
7425 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
7426 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
7427 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
7428
7429 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
7430
7431 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
7432 [!STRLEN](STRLEN): Set to __strlen.
7433 * sysdeps/aarch64/multiarch/strlen.c: New file.
7434 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
7435 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
7436 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7437 (__libc_ifunc_impl_list): Add strlen.
7438 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7439 strlen_generic and strlen_asimd.
7440
7441 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7442
7443 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
7444 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
7445 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
7446
7447 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7448
7449 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
7450
7451 2018-08-14 Florian Weimer <fweimer@redhat.com>
7452
7453 [BZ #23519]
7454 * include/stdio.h (__vfxprintf): Declare.
7455 * stdio-common/fxprintf.c (__vfxprintf): New function.
7456 (__fxprintf): Call it.
7457 * misc/err.c (convert_and_print): Remove function.
7458 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
7459 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
7460 * misc/Makefile (tests): Add tst-warn-wide.
7461 * misc/tst-warn-wide.c: New file.
7462
7463 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
7464 Szabolcs Nagy <szabolcs.nagy@arm.com>
7465
7466 * NEWS: Mention sinf, cosf, sincosf.
7467 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
7468 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
7469 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
7470 constants rather than including generic sincosf.h.
7471 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
7472 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
7473 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
7474 (reduced_cos): Remove.
7475 (sinf_poly): New function.
7476 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
7477
7478 2018-08-14 Florian Weimer <fweimer@redhat.com>
7479
7480 [BZ #23521]
7481 [BZ #23522]
7482 * nss/nss_files/files-alias.c (get_next_alias): During :include:
7483 processing, bail out if no room, and close the stream before
7484 returning ERANGE.
7485 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
7486 (tst-nss-files-alias-leak): Link with libdl.
7487 (tst-nss-files-alias-leak.out): Depend on nss_files.
7488
7489 * nss/tst-nss-files-alias-leak.c: New file.
7490
7491 2018-08-14 Florian Weimer <fweimer@redhat.com>
7492
7493 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
7494 server_user, stat_user.
7495
7496 2018-08-13 Joseph Myers <joseph@codesourcery.com>
7497
7498 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7499 version to 4.18.
7500 (io_pgetevents): New syscall.
7501 (rseq): Likewise.
7502
7503 * manual/install.texi (Configuring and compiling): Do not list
7504 tools used for testing pretty printers here.
7505 (Tools for Compilation): List Python, PExpect and GDB here.
7506 Update descriptions of uses of Perl and Python.
7507 * INSTALL: Regenerate.
7508
7509 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7510 version to 4.18.
7511
7512 2018-08-13 Florian Weimer <fweimer@redhat.com>
7513
7514 * misc/error.c (error): Add missing va_end call.
7515 (error_at_line): Likewise.
7516
7517 2018-08-13 Florian Weimer <fweimer@redhat.com>
7518
7519 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
7520
7521 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
7522
7523 * benchtests/scripts/benchout.schema.json (properties): Add
7524 new properties.
7525
7526 * benchtests/bench-skeleton.c (main): Add duration and
7527 iterations attributes.
7528
7529 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
7530
7531 regex: Gnulib unibyte RRI uses bytes not chars
7532 Adjust the non-glibc code to agree with what Gawk needs for
7533 rational range interpretation (RRI) for regular expression ranges.
7534 In unibyte locales, Gawk wants ranges to use the underlying byte
7535 rather than the character code point. This change does not affect
7536 glibc proper.
7537 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
7538 In unibyte locales, use the byte value rather than
7539 running it through btowc.
7540
7541 2018-08-10 Joseph Myers <joseph@codesourcery.com>
7542
7543 * sysdeps/generic/math-tests-snan.h: New file.
7544 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
7545 (SNAN_TESTS_float): Do not define here.
7546 (SNAN_TESTS_double): Likewise.
7547 (SNAN_TESTS_long_double): Likewise.
7548 (SNAN_TESTS_float128): Likewise.
7549 * sysdeps/i386/fpu/math-tests-snan.h: New file.
7550 * sysdeps/i386/fpu/math-tests.h: Remove file.
7551 * sysdeps/ia64/math-tests-snan.h: New file.
7552 * sysdeps/ia64/math-tests.h: Remove file.
7553 * sysdeps/x86/math-tests.h: Likewise.
7554 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
7555
7556 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7557 Szabolcs Nagy <szabolcs.nagy@arm.com>
7558
7559 * math/Makefile: Add s_sincosf_data.c.
7560 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
7561 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
7562 (sincosf_poly): Likewise.
7563 (reduce_small): Likewise.
7564 (reduce_large): Likewise.
7565 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
7566 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
7567 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
7568 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
7569
7570 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7571 Szabolcs Nagy <szabolcs.nagy@arm.com>
7572
7573 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
7574 (converttoint): Use lround.
7575 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
7576 document the semantics when TOINT_INTRINSICS is set.
7577 (converttoint): Likewise.
7578 (TOINT_RINT): Remove.
7579 (TOINT_SHIFT): Remove.
7580 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
7581 path.
7582
7583 2018-08-10 Florian Weimer <fweimer@redhat.com>
7584
7585 [BZ #23497]
7586 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
7587 function.
7588 (__old_getdents64): Use getdents64. Convert entries without
7589 moving them.
7590 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
7591 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
7592 tst-readdir64-compat.
7593
7594 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7595
7596 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
7597 Fix unwind.
7598
7599 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7600
7601 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
7602 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
7603 code to s390x-mcount.h and #include it.
7604 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
7605 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
7606 (__fentry__): Add.
7607
7608 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7609
7610 * stdlib/Versions: Remove __fentry__.
7611 * sysdeps/i386/Versions: Add __fentry__.
7612 * sysdeps/x86_64/Versions: Add __fentry__.
7613
7614 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7615
7616 * sysdeps/s390/Makefile: Register the new tests.
7617 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
7618 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
7619 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
7620 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
7621 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
7622 * sysdeps/s390/tst-dl-runtime.c: New file.
7623
7624 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7625
7626 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7627 Do not clobber R0.
7628
7629 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7630
7631 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7632 Do not clobber R0.
7633
7634 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7635
7636 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7637 Do not clobber R0.
7638
7639 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7640
7641 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7642 Do not clobber R0.
7643
7644 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7645
7646 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7647 Use symbolic offsets for stack variables.
7648
7649 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7650
7651 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7652 Use symbolic offsets for stack variables.
7653
7654 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7655
7656 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7657 Use symbolic offsets for stack variables.
7658
7659 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7660
7661 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7662 Use symbolic offsets for stack variables.
7663
7664 2018-08-09 Joseph Myers <joseph@codesourcery.com>
7665
7666 * math/gen-libm-test.py: New file.
7667 * math/gen-libm-test.pl: Remove.
7668 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
7669 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
7670 gen-libm-test.pl.
7671 ($(libm-test-c-noauto-obj)): Likewise.
7672 ($(libm-test-c-auto-obj)): Likewise.
7673 ($(libm-test-c-narrow-obj)): Likewise.
7674 (regen-ulps): Likewise.
7675 * math/README.libm-test: Update references to gen-libm-test.pl.
7676 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
7677 referencing gen-libm-test.pl.
7678 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
7679 * math/libm-test-support.c: Likewise.
7680 * math/libm-test-support.h: Likewise.
7681 * sysdeps/generic/libm-test-ulps: Likewise.
7682
7683 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
7684
7685 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
7686 Fix value.
7687
7688 2018-08-08 Joseph Myers <joseph@codesourcery.com>
7689
7690 * math/libm-test-nextdown.inc (do_test): Move comment to ....
7691 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
7692
7693 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
7694
7695 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
7696 symbols.
7697 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
7698 __pthread_setspecific): Add hidden proto.
7699 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
7700 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
7701
7702 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
7703
7704 * benchtests/bench-string.h (buf1_size, buf2_size): New
7705 variables.
7706 (init_sizes): New function.
7707 (test_init): Use it.
7708 (alloc_buf, exit_error): New functions.
7709 (alloc_bufs): Use ALLOC_BUF.
7710 (realloc_bufs): Remove.
7711 * benchtests/bench-memcmp.c (do_test): Adjust.
7712 * benchtests/bench-memset-large.c (do_test): Likewise.
7713 * benchtests/bench-memset-walk.c (do_test): Likewise.
7714 * benchtests/bench-memset.c (do_test): Likewise.
7715 * benchtests/bench-strncmp.c (do_test): Likewise.
7716
7717 2018-08-06 Andreas Schwab <schwab@suse.de>
7718
7719 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
7720 of CONST_THREAD_AREA.
7721
7722 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
7723
7724 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
7725 (STATE_SAVE_MASK): Likewise.
7726 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
7727 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
7728 (STATE_SAVE_MASK): Likewise.
7729 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
7730 instead of <cpu-features.h>.
7731
7732 2018-08-03 DJ Delorie <dj@redhat.com>
7733
7734 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
7735 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
7736
7737 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7738
7739 2018-08-03 Joseph Myers <joseph@codesourcery.com>
7740
7741 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
7742 after TEST_* calls.
7743 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
7744 * math/libm-test-logb.inc (logb_test_data): Likewise.
7745
7746 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
7747
7748 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
7749 * string/strstr.c (AVAILABLE): Likewise.
7750
7751 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7752
7753 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
7754 <init-arch.h>.
7755 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
7756 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
7757 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
7758
7759 2018-08-03 Carlos O'Donell <carlos@redhat.com>
7760
7761 * po/be.po: Update translation.
7762
7763 * po/be.po: Update translation.
7764
7765 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7766
7767 * sysdeps/x86/cpu-features-offsets.sym
7768 (rtld_global_ro_offsetof): Removed.
7769 (CPU_FEATURES_SIZE): Likewise.
7770 (CPUID_OFFSET): Likewise.
7771 (CPUID_SIZE): Likewise.
7772 (CPUID_EAX_OFFSET): Likewise.
7773 (CPUID_EBX_OFFSET): Likewise.
7774 (CPUID_ECX_OFFSET): Likewise.
7775 (CPUID_EDX_OFFSET): Likewise.
7776 (FAMILY_OFFSET): Likewise.
7777 (MODEL_OFFSET): Likewise.
7778 (FEATURE_OFFSET): Likewise.
7779 (FEATURE_SIZ): Likewise.
7780 (COMMON_CPUID_INDEX_1): Likewise.
7781 (COMMON_CPUID_INDEX_7): Likewise.
7782 (FEATURE_INDEX_1): Likewise.
7783 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
7784
7785 2018-08-02 Carlos O'Donell <carlos@redhat.com>
7786
7787 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
7788 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
7789 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
7790 (install-locales): Depend on install-locale-archive.
7791 (install-locale-archive): Define.
7792 (install-locale-files): Define.
7793 (build-one-locale): Define macro.
7794 * manual/install.texi (Running make install): Document.
7795 * manual/INSTALL: Regenerate.
7796
7797 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
7798
7799 * benchtests/scripts/compare_strings.py: Import traceback.
7800 (parse_file): Pretty-print error.
7801
7802 * NEWS: Mention the change.
7803 * elf/dl-tunables.list: Rename tune namespace to cpu.
7804 * sysdeps/powerpc/dl-tunables.list: Likewise.
7805 * sysdeps/x86/dl-tunables.list: Likewise.
7806 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
7807 cpu.name.
7808 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
7809 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
7810 * manual/README.tunables: Likewise.
7811 * manual/tunables.texi: Likewise.
7812 * sysdeps/powerpc/cpu-features.c: Likewise.
7813 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
7814 (init_cpu_features): Likewise.
7815 * sysdeps/x86/cpu-features.c: Likewise.
7816 * sysdeps/x86/cpu-features.h: Likewise.
7817 * sysdeps/x86/cpu-tunables.c: Likewise.
7818 * sysdeps/x86_64/Makefile: Likewise.
7819 * sysdeps/x86/dl-cet.c: Likewise.
7820
7821 2018-08-02 Joseph Myers <joseph@codesourcery.com>
7822
7823 [BZ #23479]
7824 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
7825 [__mips_hard_float].
7826 (FE_UNDERFLOW): Likewise.
7827 (FE_OVERFLOW): Likewise.
7828 (FE_DIVBYZERO): Likewise.
7829 (FE_INVALID): Likewise.
7830 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
7831 (FE_TOWARDZERO): Define only if [__mips_hard_float].
7832 (FE_UPWARD): Likewise.
7833 (FE_DOWNWARD): Likewise.
7834 (__FE_UNDEFINED): Define if [!__mips_hard_float]
7835 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
7836 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
7837 [__mips_hard_float].
7838 (FP_ROUNDMODE): Likewise.
7839 (FP_RND_NEAREST): Likewise.
7840 (FP_RND_ZERO): Likewise.
7841 (FP_RND_PINF): Likewise.
7842 (FP_RND_MINF): Likewise.
7843 (FP_EX_INVALID): Likewise.
7844 (FP_EX_OVERFLOW): Likewise.
7845 (FP_EX_UNDERFLOW): Likewise.
7846 (FP_EX_DIVZERO): Likewise.
7847 (FP_EX_INEXACT): Likewise.
7848 (FP_INIT_ROUNDMODE): Likewise.
7849 * sysdeps/mips/nofpu/fesetenv.c: New file.
7850 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
7851
7852 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7853
7854 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
7855 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
7856 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
7857 conditional on [FE_UPWARD].
7858
7859 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
7860
7861 regex: fix memory leak in Gnulib
7862 Problem and fix reported by Assaf Gordon in:
7863 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
7864 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
7865 range_ends members too, as they are defined in 'struct
7866 re_charset_t' even if not _LIBC. This affects only Gnulib.
7867
7868 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
7869
7870 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
7871 ...
7872 (get_common_indices): This.
7873 (init_cpu_features): Updated.
7874
7875 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7876
7877 * sysdeps/generic/math-tests-snan-payload.h: New file.
7878 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
7879 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
7880 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
7881 * sysdeps/generic/math-tests.h: Include
7882 <math-tests-snan-payload.h>.
7883 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7884 * sysdeps/hppa/math-tests.h: Remove file.
7885 * sysdeps/mips/math-tests.h [!__mips_nan2008]
7886 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7887 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
7888 Likewise.
7889
7890 * sysdeps/generic/math-tests-snan-cast.h: New file.
7891 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
7892 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
7893 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
7894 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
7895
7896 2018-08-01 Carlos O'Donel <carlos@redhat.com>
7897
7898 * version.h (RELEASE): Set to "development".
7899 (VERSION): Set to "2.28.9000".
7900 * NEWS (2.29): New section.
7901
7902 * version.h (RELEASE): Set to "stable".
7903 (VERSION): Set to "2.28".
7904 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
7905 * NEWS: Add the list of bugs fixed in 2.28.
7906
7907 * po/ca.po: Update to latest version.
7908 * po/cs.po: Likewise
7909 * po/da.po: Likewise
7910 * po/el.po: Likewise
7911 * po/eo.po: Likewise
7912 * po/es.po: Likewise
7913 * po/fi.po: Likewise
7914 * po/fr.po: Likewise
7915 * po/gl.po: Likewise
7916 * po/hu.po: Likewise
7917 * po/ia.po: Likewise
7918 * po/id.po: Likewise
7919 * po/it.po: Likewise
7920 * po/ja.po: Likewise
7921 * po/ko.po: Likewise
7922 * po/lt.po: Likewise
7923 * po/nb.po: Likewise
7924 * po/nl.po: Likewise
7925 * po/pt_BR.po: Likewise
7926 * po/ru.po: Likewise
7927 * po/rw.po: Likewise
7928 * po/sk.po: Likewise
7929 * po/sl.po: Likewise
7930 * po/tr.po: Likewise
7931 * po/zh_CN.po: Likewise
7932 * po/zh_TW.po: Likewise
7933
7934 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
7935
7936 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
7937 initialization...
7938 (init): ... before initializing libpthread.
7939
7940 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
7941 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
7942 (__mach_setup_tls): ... new function.
7943 (mach_setup_tls): New alias.
7944 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
7945 __mach_setup_thread.
7946 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
7947 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
7948 * mach/Versions [libc] (mach_setup_tls): Add symbol.
7949 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
7950
7951 2018-07-31 Carlos O'Donell <carlos@redhat.com>
7952
7953 * manual/install.texi: Update versions.
7954 * INSTALL: Regenerate.
7955
7956 * manual/contrib.texi (Contributors): Update contributions.
7957
7958 2018-07-31 Carlos O'Donell <carlos@redhat.com>
7959
7960 * po/be.po: Update translations.
7961
7962 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7963
7964 * sysdeps/sh/libm-test-ulps: Update.
7965
7966 2018-07-30 Carlos O'Donell <carlos@redhat.com>
7967
7968 * po/bg.po: Update translations.
7969 * po/de.po: Likewise.
7970 * po/hr.po: Likewise.
7971 * po/pt_BR.po: Likewise.
7972 * po/sv.po: Likewise.
7973 * po/vi.po: Likewise.
7974
7975 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
7976
7977 [BZ #23467]
7978 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
7979 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
7980 (CFLAGS-tst-cet-property-1.o): New.
7981 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
7982 ($(objpfx)tst-cet-property-2): Likewise.
7983 ($(objpfx)tst-cet-property-2.out): Likewise.
7984 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
7985 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
7986 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
7987 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
7988 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
7989
7990 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
7991
7992 [BZ #23458]
7993 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
7994
7995 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
7996
7997 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
7998 __sbrk): Do not set attribute_hidden.
7999 * sysdeps/mach/hurd/not-errno.h: New file.
8000 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8001 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8002
8003 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8004
8005 * po/uk.po: Update translations.
8006 * po/cs.po: Likewise.
8007 * po/pl.po: Likewise.
8008
8009 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8010
8011 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8012 parse beyond the note end.
8013
8014 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8015
8016 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8017 kernel does not support OFD locks.
8018 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8019
8020 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8021
8022 * sysdeps/mach/hurd/Versions (libc): Make __access and
8023 __access_noerrno external so they can override the ld symbols.
8024 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8025 __writev, __open64, __access_noerrno extern so they can be overrided.
8026 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8027 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8028
8029 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8030
8031 * po/libc.pot: Regenerate.
8032
8033 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8034
8035 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8036
8037 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8038
8039 [BZ #23459]
8040 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8041 function.
8042 (init_cpu_features): Call get_extended_indices for both Intel
8043 and AMD CPUs.
8044 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8045 Remove "for AMD" comment.
8046
8047 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8048
8049 [BZ # 23456]
8050 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8051 COMMON_CPUID_INDEX_80000001.
8052
8053 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8054
8055 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8056 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8057
8058 2018-07-26 Florian Weimer <fweimer@redhat.com>
8059
8060 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8061 aliases for symbols not in the implementation namespace.
8062
8063 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8064
8065 [BZ #23393]
8066 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8067 lowercase in LATIN script.
8068 * localedata/Makefile (test-input): Add en_US.UTF-8.
8069 * localedata/en_US.UTF-8.in: New file.
8070 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8071 and restore old tests.
8072 * posix/tst-regexloc.c (do_test): Add back range expression test.
8073
8074 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8075
8076 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8077
8078 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8079
8080 * nptl/threads.h: Move to ...
8081 * sysdeps/nptl/threads.h: ... here.
8082 * sysdeps/hurd/stdc-predef.h: New file.
8083
8084 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8085
8086 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8087 tst-cet-setcontext-1 if CET is enabled.
8088 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8089 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8090
8091 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8092
8093 * include/threads.h: Move to ...
8094 * sysdeps/nptl/threads.h: ... here.
8095 * sysdeps/htl/threads.h: New file.
8096 * conform/Makefile (linknamespace-libs-ISO11): Use
8097 static-thread-library instead of linking libpthread.
8098 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8099
8100 2018-07-25 Florian Weimer <fweimer@redhat.com>
8101
8102 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8103 nanoseconds into seconds.
8104 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8105 (do_test): Likewise.
8106 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8107 (do_test): Likewise. Avoid nanosecond overflow and spurious
8108 timeouts due to system load.
8109 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8110 (child_wait): Increment it.
8111 (do_test): Wait as long as necessary until all expected threads
8112 have arrived.
8113
8114 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8115 H.J. Lu <hongjiu.lu@intel.com>
8116
8117 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8118 __ssp.
8119 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8120 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8121 (__push___start_context): New.
8122 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8123 <asm/prctl.h>.
8124 (__getcontext): Record the current shadow stack base. Save the
8125 caller's shadow stack pointer and base.
8126 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8127 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8128 (__push___start_context): New prototype.
8129 (__makecontext): Call __push___start_context to allocate a new
8130 shadow stack, push __start_context onto the new stack as well
8131 as the new shadow stack.
8132 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8133 <asm/prctl.h>.
8134 (__setcontext): Restore the target shadow stack.
8135 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8136 <asm/prctl.h>.
8137 (__swapcontext): Record the current shadow stack base. Save
8138 the caller's shadow stack pointer and base. Restore the target
8139 shadow stack.
8140 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8141 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8142 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8143
8144 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8145
8146 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8147 tst-setcontext8 and tst-setcontext9.
8148 * stdlib/tst-setcontext6.c: New file.
8149 * stdlib/tst-setcontext7.c: Likewise.
8150 * stdlib/tst-setcontext8.c: Likewise.
8151 * stdlib/tst-setcontext9.c: Likewise.
8152
8153 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8154
8155 * stdlib/Makefile ((tests): Add tst-setcontext5.
8156 * stdlib/tst-setcontext5.c: New file.
8157
8158 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8159
8160 * stdlib/Makefile (tests): Add tst-setcontext4.
8161 * stdlib/tst-setcontext4.c: New file.
8162
8163 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8164
8165 * stdlib/Makefile (tests): Add tst-swapcontext1.
8166 * stdlib/tst-swapcontext1.c: New test.
8167
8168 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8169
8170 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8171 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8172 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8173 and tst-cet-legacy-4c.
8174 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8175 and tst-cet-legacy-mod-4.
8176 (CFLAGS-tst-cet-legacy-2.c): New.
8177 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8178 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8179 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8180 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8181 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8182 ($(objpfx)tst-cet-legacy-1): Likewise.
8183 ($(objpfx)tst-cet-legacy-2): Likewise.
8184 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8185 ($(objpfx)tst-cet-legacy-2a): Likewise.
8186 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8187 ($(objpfx)tst-cet-legacy-4): Likewise.
8188 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8189 ($(objpfx)tst-cet-legacy-4a): Likewise.
8190 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8191 (tst-cet-legacy-4a-ENV): Likewise.
8192 ($(objpfx)tst-cet-legacy-4b): Likewise.
8193 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8194 (tst-cet-legacy-4b-ENV): Likewise.
8195 ($(objpfx)tst-cet-legacy-4c): Likewise.
8196 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8197 (tst-cet-legacy-4c-ENV): Likewise.
8198 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8199 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8200 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8201 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8202 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8203 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8204 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8205 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8206 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8207 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8208 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8209
8210 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8211
8212 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8213 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8214 with ssp_base.
8215 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8216 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8217 with ssp_base.
8218
8219 2018-07-25 Andreas Schwab <schwab@suse.de>
8220
8221 [BZ #23442]
8222 * locale/weightwc.h (findidx): Handle the case where usrc is a
8223 prefix of cp but one character too short.
8224
8225 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8226
8227 * NEWS: Add ISO C threads addition.
8228
8229 2018-07-24 Florian Weimer <fweimer@redhat.com>
8230
8231 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8232 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8233 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8234 4.13.
8235
8236 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8237
8238 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8239 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8240 <sys/prctl.h> and <asm/prctl.h>.
8241 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8242 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8243 and <asm/prctl.h>.
8244 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8245 ARCH_CET_LEGACY_BITMAP.
8246 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8247 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8248 * sysdeps/x86/libc-start.c: Include <startup.h>.
8249
8250 2018-07-24 Florian Weimer <fweimer@redhat.com>
8251
8252 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8253 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8254
8255 2018-07-24 Rical Jasan <rj@2c3t.io>
8256 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8257 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8258
8259 [BZ #14092]
8260 * manual/debug.texi: Update adjacent chapter name.
8261 * manual/probes.texi: Likewise.
8262 * manual/threads.texi (ISO C Threads): New section.
8263 (POSIX Threads): Convert to a section.
8264
8265 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8266 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8267
8268 [BZ# 14092]
8269 * nptl/Makefile (tests): Add new test files.
8270 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8271 * nptl/tst-cnd-basic.c: Likewise.
8272 * nptl/tst-cnd-broadcast.c: Likewise.
8273 * nptl/tst-cnd-timedwait.c: Likewise.
8274 * nptl/tst-mtx-basic.c: Likewise.
8275 * nptl/tst-mtx-recursive.c: Likewise.
8276 * nptl/tst-mtx-timedlock.c: Likewise.
8277 * nptl/tst-mtx-trylock.c: Likewise.
8278 * nptl/tst-thrd-basic.c: Likewise.
8279 * nptl/tst-thrd-detach.c: Likewise.
8280 * nptl/tst-thrd-sleep.c: Likewise.
8281 * nptl/tst-tss-basic.c: Likewise.
8282
8283 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8284
8285 [BZ #14092]
8286 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8287 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8288 symbols.
8289 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8290 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8291 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8292 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8293 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8294 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8295 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8296 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8297 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8298 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8299 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8300 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8301 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8302 Likewise.
8303 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8304 Likewise.
8305 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8306 Likewise.
8307 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8308 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8309 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8310 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8311 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8312 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8313 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8314 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8315 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8316 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
8317 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
8318 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
8319 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
8320 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
8321 Likewise.
8322 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8323 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8324 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8325 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8326 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8327 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8328 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8329 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8330 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8331 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8332 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8333 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8334 ikewise.
8335 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8336 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8337 Likewise.
8338 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8339 Likewise.
8340 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8341 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8342 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8343 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8344 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8345 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8346 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8347 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8348
8349 [BZ #14092]
8350 * conform/data/threads.h-data (thread_local): New macro.
8351 (TSS_DTOR_ITERATIONS): Likewise.
8352 (tss_t): New type.
8353 (tss_dtor_t): Likewise.
8354 (tss_create): New function.
8355 (tss_get): Likewise.
8356 (tss_set): Likewise.
8357 (tss_delete): Likewise.
8358 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
8359 tss_get, and tss_set objects.
8360 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8361 * nptl/tss_create.c: New file.
8362 * nptl/tss_delete.c: Likewise.
8363 * nptl/tss_get.c: Likewise.
8364 * nptl/tss_set.c: Likewise.
8365 * sysdeps/nptl/threads.h (thread_local): New define.
8366 (TSS_DTOR_ITERATIONS): Likewise.
8367 (tss_t): New typedef.
8368 (tss_dtor_t): Likewise.
8369 (tss_create): New prototype.
8370 (tss_get): Likewise.
8371 (tss_set): Likewise.
8372 (tss_delete): Likewise.
8373
8374 [BZ #14092]
8375 * conform/data/threads.h-data (cnd_t): New type.
8376 (cnd_init): New function.
8377 (cnd_signal): Likewise.
8378 (cnd_broadcast): Likewise.
8379 (cnd_wait): Likewise.
8380 (cnd_timedwait): Likewise.
8381 (cnd_destroy): Likewise.
8382 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
8383 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
8384 object.
8385 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8386 * nptl/cnd_broadcast.c: New file.
8387 * nptl/cnd_destroy.c: Likewise.
8388 * nptl/cnd_init.c: Likewise.
8389 * nptl/cnd_signal.c: Likewise.
8390 * nptl/cnd_timedwait.c: Likewise.
8391 * nptl/cnd_wait.c: Likewise.
8392 * sysdeps/nptl/threads.h (cnd_t): New type.
8393 (cnd_init): New prototype.
8394 (cnd_signa): Likewise.
8395 (cnd_broadcast): Likewise.
8396 (cnd_wait): Likewise.
8397 (cnd_timedwait): Likewise.
8398 (cnd_destroy): Likewise.
8399
8400 [BZ #14092]
8401 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
8402 (once_flag): New type.
8403 (call_once): New function.
8404 * nptl/Makefile (libpthread-routines): Add call_once object.
8405 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
8406 * nptl/call_once.c: New file.
8407 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
8408 (once_flag): New type.
8409 (call_once): New prototype.
8410
8411 [BZ #14092]
8412 * conform/data/threads.h-data (mtx_plain): New constant.
8413 (mtx_recursive): Likewise.
8414 (mtx_timed): Likewise.
8415 (mtx_t): New type.
8416 (mtx_init): New function.
8417 (mtx_lock): Likewise.
8418 (mtx_timedlock): Likewise.
8419 (mtx_trylock): Likewise.
8420 (mtx_unlock): Likewise.
8421 (mtx_destroy): Likewise.
8422 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
8423 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
8424 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
8425 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
8426 * nptl/mtx_destroy.c: New file.
8427 * nptl/mtx_init.c: Likewise.
8428 * nptl/mtx_lock.c: Likewise.
8429 * nptl/mtx_timedlock.c: Likewise.
8430 * nptl/mtx_trylock.c: Likewise.
8431 * nptl/mtx_unlock.c: Likewise.
8432 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
8433 (mtx_recursive): Likewise.
8434 (mtx_timed): Likewise.
8435 (mtx_t): New type.
8436 (mtx_init): New prototype.
8437 (mtx_lock): Likewise.
8438 (mtx_timedlock): Likewise.
8439 (mtx_trylock): Likewise.
8440 (mtx_unlock): Likewise.
8441 (mtx_destroy): Likewise.
8442
8443 [BZ #14092]
8444 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
8445 (linknamespace-libs-ISO11): Add libpthread.a.
8446 * conform/data/threads.h-data: New file: add C11 thrd_* types and
8447 functions.
8448 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
8449 * nptl/Makefile (headers): Add threads.h.
8450 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
8451 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
8452 thrd_yield.
8453 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
8454 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
8455 thrd_join, thrd_sleep, and thrd_yield symbols.
8456 * nptl/descr.h (struct pthread): Add c11 field.
8457 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
8458 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
8459 routine with expected function prototype.
8460 (__pthread_create_2_1): Add C11 threads check based on attribute
8461 value.
8462 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
8463 * nptl/thrd_create.c: New file.
8464 * nptl/thrd_current.c: Likewise.
8465 * nptl/thrd_detach.c: Likewise.
8466 * nptl/thrd_equal.c: Likewise.
8467 * nptl/thrd_exit.c: Likewise.
8468 * nptl/thrd_join.c: Likewise.
8469 * nptl/thrd_priv.h: Likewise.
8470 * nptl/thrd_sleep.c: Likewise.
8471 * nptl/thrd_yield.c: Likewise.
8472 * include/threads.h: Likewise.
8473
8474 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8475
8476 * bits/indirect-return.h: New file.
8477 * misc/sys/cdefs.h (__glibc_has_attribute): New.
8478 * sysdeps/x86/bits/indirect-return.h: Likewise.
8479 * stdlib/Makefile (headers): Add bits/indirect-return.h.
8480 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
8481 (swapcontext): Add __INDIRECT_RETURN.
8482 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
8483 (prepare_test_buffer): Use it.
8484
8485 2018-07-24 Andreas Schwab <schwab@suse.de>
8486
8487 [BZ #23448]
8488 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
8489 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
8490
8491 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8492
8493 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
8494 Redefine if shadow stack is enabled.
8495 (SYSCALL_ERROR_LABEL): Likewise.
8496 (__vfork): Pop shadow stack and jump back to to caller directly
8497 when shadow stack is in use.
8498 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
8499 Redefine if shadow stack is enabled.
8500 (SYSCALL_ERROR_LABEL): Likewise.
8501 (__vfork): Pop shadow stack and jump back to to caller directly
8502 when shadow stack is in use.
8503
8504 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8505
8506 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
8507 enabled.
8508 (foo): Likewise.
8509 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
8510 (foo): Likewise.
8511
8512 2018-07-20 Joseph Myers <joseph@codesourcery.com>
8513
8514 * scripts/build-many-glibcs.py (Context.checkout): Default
8515 binutils version to 2.31 branch.
8516
8517 2018-07-20 Zong Li <zong@andestech.com>
8518
8519 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
8520 URL of gcc's tarball.
8521
8522 2018-07-20 Florian Weimer <fweimer@redhat.com>
8523
8524 [BZ #23396]
8525 * posix/regcomp.c (build_equiv_class): When comparing weights, do
8526 not compare an extra byte after the end of the weights.
8527
8528 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
8529
8530 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
8531 to 1.
8532 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
8533 hidden prototypes.
8534 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
8535 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
8536 * scripts/check-execstack.awk: Consider `xfail' variable containing a
8537 list of libraries whose stack executability is expected.
8538 * elf/Makefile ($(objpfx)check-execstack.out): Pass
8539 $(check-execstack-xfail) to check-execstack.awk through `xfail'
8540 variable.
8541 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
8542 libc.so libpthread.so.
8543
8544 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
8545
8546 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
8547 SOCK_NONBLOCK.
8548 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
8549 and SOCK_NONBLOCK.
8550 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
8551 implement __pipe2.
8552 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
8553
8554 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8555
8556 * benchtests/scripts/compare_bench.py (__main__): use the argparse
8557 library to improve command line parsing.
8558 (__main__): make schema file as optional parameter (--schema),
8559 defaulting to benchtests/scripts/benchout.schema.json.
8560 (main): move out of the parsing stuff to __main_  and leave it
8561 only as caller of main comparison functions.
8562
8563 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
8564
8565 * NEWS: Add a note for Intel CET status.
8566 * manual/install.texi: Likewise.
8567 * INSTALL: Regenerated.
8568
8569 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
8570
8571 [BZ #23140]
8572 * localedata/locales/oc_FR (mon): Rename to...
8573 (alt_mon): This, then update October (typo fix).
8574 (mon): New content (genitive case, month names preceded by
8575 "de" or "d’").
8576
8577 [BZ #23422]
8578 * localedata/locales/oc_FR (abday): Update all items.
8579 (day): Update Wednesday and Saturday (typo fixes).
8580 (abmon): Update all items, except May.
8581 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
8582 (LC_IDENTIFICATION): Bump the revision number and date.
8583 Keep the "category" entries in alphabetic order.
8584 (LC_ADDRESS): Remove no longer needed comment.
8585 (LC_COLLATE): Use “copy "ca_ES"”.
8586 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
8587 "name_mrs".
8588
8589 2018-07-18 Joseph Myers <joseph@codesourcery.com>
8590
8591 * grp/tst_fgetgrent.c: Include <unistd.h>.
8592 (main): Use mkstemp instead of tmpnam.
8593 * io/test-utime.c (main): Likewise.
8594 * posix/annexc.c (macrofile): Change to modifiable array.
8595 (main): Remove macrofile here.
8596 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8597 macrofile here.
8598 (check_header): Do not remove macrofile here.
8599 * posix/bug-getopt1.c: Include <stdlib.h>.
8600 (do_test): Use mkstemp instead of tmpnam.
8601 * posix/bug-getopt2.c: Include <stdlib.h>.
8602 (do_test): Use mkstemp instead of tmpnam.
8603 * posix/bug-getopt3.c: Include <stdlib.h>.
8604 (do_test): Use mkstemp instead of tmpnam.
8605 * posix/bug-getopt4.c: Include <stdlib.h>.
8606 (do_test): Use mkstemp instead of tmpnam.
8607 * posix/bug-getopt5.c: Include <stdlib.h>.
8608 (do_test): Use mkstemp instead of tmpnam.
8609 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
8610 (main): Use mkstemp instead of tmpnam.
8611 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
8612 (main): Use mkstemp instead of tmpnam.
8613 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
8614 (main): use mkstemp instead of tmpnam.
8615 * stdlib/isomac.c (macrofile): Change to modifiable array.
8616 (main): Remove macrofile here.
8617 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8618 macrofile here.
8619 (check_header): Do not remove macrofile here.
8620
8621 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8622
8623 * manual/tunables.texi: Document glibc.tune.x86_ibt and
8624 glibc.tune.x86_shstk.
8625
8626 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8627
8628 * NEWS: Mention --enable-cet.
8629 * manual/install.texi: Document --enable-cet.
8630 * INSTALL: Regenerated.
8631
8632 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8633
8634 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
8635 Add _CET_NOTRACK before indirect jump to jump table.
8636
8637 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8638
8639 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
8640 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8641 to jump table.
8642
8643 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8644
8645 * sysdeps/i386/i686/multiarch/strcat-sse2.S
8646 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8647 to jump table.
8648
8649 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8650
8651 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
8652 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8653 to jump table.
8654
8655 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8656
8657 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
8658 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8659 to jump table.
8660
8661 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8662
8663 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
8664 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8665 to jump table.
8666 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
8667
8668 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8669
8670 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
8671 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8672 to jump table.
8673
8674 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8675
8676 * sysdeps/i386/i686/multiarch/memset-sse2.S
8677 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8678 to jump table.
8679
8680 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8681
8682 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
8683 indirect jump to jump table.
8684
8685 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8686
8687 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
8688 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8689 to jump table.
8690 (MEMCPY): Likewise.
8691
8692 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8693
8694 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
8695 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8696 to jump table.
8697 (MEMCPY): Likewise.
8698
8699 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8700
8701 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8702 _CET_NOTRACK before indirect jump to jump table.
8703
8704 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8705
8706 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
8707 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8708 to jump table.
8709
8710 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8711
8712 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
8713 indirect jump to jump table.
8714
8715 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
8716
8717 [BZ #22241]
8718 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
8719 (LOCALES): Likewise.
8720 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
8721 * localedata/locales/sah_RU: New file.
8722 * localedata/sah_RU.UTF-8.in: New file.
8723
8724 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8725
8726 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
8727 "sysdep.h".
8728 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8729 _CET_ENDBR to indirect jump targets and adjust jump destination
8730 for _CET_ENDBR.
8731 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
8732 "sysdep.h".
8733 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8734 _CET_ENDBR to indirect jump targets and adjust jump destination
8735 for _CET_ENDBR.
8736 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
8737 "sysdep.h".
8738 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
8739 _CET_ENDBR to indirect jump targets and adjust jump destination
8740 for _CET_ENDBR.
8741
8742 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8743
8744 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8745 _CET_ENDBR.
8746
8747 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8748
8749 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
8750 _CET_ENDBR.
8751 (_dl_tlsdesc_undefweak): Likewise.
8752 (_dl_tlsdesc_dynamic): Likewise.
8753 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
8754 (_dl_tlsdesc_resolve_rel): Likewise.
8755 (_dl_tlsdesc_resolve_rela): Likewise.
8756 (_dl_tlsdesc_resolve_hold): Likewise.
8757 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
8758 (_dl_tlsdesc_undefweak): Likewise.
8759 (_dl_tlsdesc_dynamic): Likewise.
8760 (_dl_tlsdesc_resolve_rela): Likewise.
8761 (_dl_tlsdesc_resolve_hold): Likewise.
8762
8763 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8764
8765 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
8766 (_fini): Likewise.
8767 * sysdeps/x86_64/crti.S (_init): Likewise.
8768 (_fini): Likewise.
8769
8770 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
8771
8772 [BZ #23140]
8773 * localedata/locales/os_RU (mon): Rename to...
8774 (alt_mon): This.
8775 (mon): Import from CLDR (genitive case).
8776
8777 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8778
8779 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
8780 cet-tunables.h> when CET is enabled.
8781
8782 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
8783
8784 [BZ #21598]
8785 * configure.ac: Add --enable-cet.
8786 * configure: Regenerated.
8787 * elf/Makefille (all-built-dso): Add a comment.
8788 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
8789 Include <dl-prop.h>.
8790 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
8791 segment.
8792 * elf/dl-open.c: Include <dl-prop.h>.
8793 (dl_open_worker): Call _dl_open_check.
8794 * elf/rtld.c: Include <dl-prop.h>.
8795 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
8796 _rtld_main_check.
8797 * sysdeps/generic/dl-prop.h: New file.
8798 * sysdeps/i386/dl-cet.c: Likewise.
8799 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
8800 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
8801 * sysdeps/x86/cet-tunables.h: Likewise.
8802 * sysdeps/x86/check-cet.awk: Likewise.
8803 * sysdeps/x86/configure: Likewise.
8804 * sysdeps/x86/configure.ac: Likewise.
8805 * sysdeps/x86/dl-cet.c: Likewise.
8806 * sysdeps/x86/dl-procruntime.c: Likewise.
8807 * sysdeps/x86/dl-prop.h: Likewise.
8808 * sysdeps/x86/libc-start.h: Likewise.
8809 * sysdeps/x86/link_map.h: Likewise.
8810 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
8811 _CET_ENDBR.
8812 (_dl_runtime_profile): Likewise.
8813 (_dl_runtime_resolve_shstk): New.
8814 (_dl_runtime_profile_shstk): Likewise.
8815 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
8816 if CET is enabled.
8817 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
8818 (CFLAGS-.os): Likewise.
8819 (CFLAGS-.op): Likewise.
8820 (CFLAGS-.oS): Likewise.
8821 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
8822 is enabled.
8823 (tests-special): Add $(objpfx)check-cet.out.
8824 (cet-built-dso): New.
8825 (+$(cet-built-dso:=.note)): Likewise.
8826 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
8827 ($(objpfx)check-cet.out): New.
8828 (generated): Add check-cet.out.
8829 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
8830 <cet-tunables.h>.
8831 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
8832 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8833 (init_cpu_features): Call get_cet_status to check CET status
8834 and update dl_x86_feature_1 with CET status. Call
8835 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
8836 (set_x86_shstk). Disable and lock CET in libc.a.
8837 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
8838 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
8839 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8840 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
8841 (_CET_ENDBR): Define if not defined.
8842 (ENTRY): Add _CET_ENDBR.
8843 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
8844 x86_shstk.
8845 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
8846 _CET_ENDBR.
8847 (_dl_runtime_profile): Likewise.
8848
8849 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
8850
8851 [BZ #21895]
8852 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
8853 restore r2 on longjmp.
8854 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
8855 test list.
8856 Added rules to build test tst-setjmp-bug21895-static.
8857 Added module setjmp-bug21895 and rules to build a shared object from it.
8858 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
8859 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
8860
8861 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
8862
8863 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
8864 * benchtests/bench-strstr.c: Likewise.
8865 * string/memmem.c (FASTSEARCH): Define.
8866 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
8867 Add support for FASTSEARCH.
8868 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
8869 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
8870 (FASTSEARCH): Define.
8871 * string/test-strcasestr.c: Rename __strnlen to strnlen.
8872 * string/test-strstr.c: Likewise.
8873
8874 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
8875
8876 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
8877 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
8878
8879 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
8880 H.J. Lu <hongjiu.lu@intel.com>
8881
8882 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
8883 (__longjmp): Restore shadow stack pointer if shadow stack is
8884 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8885 isn't defined for __longjmp_cancel.
8886 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
8887 (_setjmp): Save shadow stack pointer if shadow stack is enabled
8888 and SHADOW_STACK_POINTER_OFFSET is defined.
8889 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
8890 (setjmp): Save shadow stack pointer if shadow stack is enabled
8891 and SHADOW_STACK_POINTER_OFFSET is defined.
8892 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
8893 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8894 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8895 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
8896 <jmp_buf-ssp.h>.
8897 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8898 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8899 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
8900 Remove jmp_buf-ssp.sym.
8901 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8902 <jmp_buf-ssp.h>.
8903 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8904 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8905 * sysdeps/x86/Makefile (gen-as-const-headers): Add
8906 jmp_buf-ssp.sym.
8907 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
8908 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
8909 (__longjmp): Restore shadow stack pointer if shadow stack is
8910 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8911 isn't defined for __longjmp_cancel.
8912 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
8913 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8914 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8915
8916 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
8917
8918 [BZ #22563]
8919 * nptl/pthread_create.c: Include <tls-setup.h>.
8920 (__pthread_create_2_1): Call tls_setup_tcbhead.
8921 * sysdeps/generic/tls-setup.h: New file.
8922 * sysdeps/x86/nptl/tls-setup.h: Likewise.
8923 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
8924 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
8925 Likewise.
8926 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
8927 to feature_1.
8928 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
8929 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
8930 (X86_FEATURE_1_SHSTK): Likewise.
8931 (CET_ENABLED): Likewise.
8932 (IBT_ENABLED): Likewise.
8933 (SHSTK_ENABLED): Likewise.
8934
8935 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
8936
8937 [BZ #23208]
8938 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
8939 (LOCALES): Likewise.
8940 * localedata/dsb_DE.UTF-8.in: New file.
8941 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
8942
8943 2018-07-12 Florian Weimer <fweimer@redhat.com>
8944
8945 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
8946 __mprotect, not mprotect.
8947
8948 2018-07-11 Florian Weimer <fweimer@redhat.com>
8949
8950 * io/Makefile (headers): Add bits/statx.h.
8951
8952 2018-07-10 Mike FABIAN <mfabian@redhat.com>
8953
8954 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
8955 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
8956 and headers.
8957 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
8958 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
8959 for utf8_gen.py
8960
8961 2018-07-10 Florian Weimer <fweimer@redhat.com>
8962
8963 * io/Makefile (routines): Add statx.
8964 (tests-internal): Add tst-statx.
8965 * io/Versions (GLIBC_2.28): Export statx.
8966 * io/bits/statx.h: New file.
8967 * io/sys/stat.h [__USE_GNU]: Include it.
8968 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
8969 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
8970 Define.
8971 * io/statx.c: New file.
8972 * io/statx_generic.: Likewise.
8973 * io/tst-statx.: Likewise.
8974 * include/bits/statx.h: Likewise.
8975 * sysdeps/unix/sysv/linux/kernel-features.h
8976 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
8977 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8978 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
8979 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
8980 Undefine.
8981 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8982 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
8983 * sysdeps/unix/sysv/linux/statx.c: New file.
8984 * manual/filesys.texi: Note that statx is undocumented.
8985 * sysdeps/**/libc*.abilist: Update.
8986
8987 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8988
8989 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
8990 a kernel issue which lead to test failure in some cases.
8991
8992 2018-07-10 Florian Weimer <fweimer@redhat.com>
8993
8994 [BZ #23036]
8995 * posix/regexec.c (check_node_accept_bytes): When comparing
8996 weights, do not compare an extra byte after the end of the
8997 weights.
8998
8999 2018-07-10 Florian Weimer <fweimer@redhat.com>
9000
9001 * libio/readline.c: Fix copyright year.
9002 * libio/tst-readline.c Likewise.
9003 * nss/tst-nss-files-hosts-getent.c: Likewise.
9004
9005 2018-07-06 Florian Weimer <fweimer@redhat.com>
9006
9007 [BZ #18991]
9008 * nss/nss_files/files-XXX.c (internal_getent): Use
9009 __libc_readline_unlocked. Seek back to the start of the line if
9010 parsing failes with ERANGE.
9011 (get_contents_ret, get_contents): Remove.
9012 * nss/tst-nss-files-hosts-getent.c: New file.
9013 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9014 (tst-nss-files-hosts-getent): Link with -ldl.
9015
9016 2018-07-06 Florian Weimer <fweimer@redhat.com>
9017
9018 * include/stdio.h (__libc_readline_unlocked): Declare.
9019 (__ftello64, __fseeko64): Declare aliases.
9020 * libio/readline.c: New file.
9021 * libio/tst-readline.c: Likewise.
9022 (routines): Add readline.
9023 (tests-internal): Add tst-readlime.
9024 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9025 __libc_readline_unlocked.
9026 * libio/fseeko.c (__fseeko): Rename from fseeko.
9027 (fseeko): Add alias.
9028 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9029 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9030 (fseeko64): Add alias.
9031 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9032 * libio/ftello64.c (__ftello64): Rename from ftello64.
9033 (ftello64): Add alias.
9034
9035 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9036
9037 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9038 HWCAP_ATOMICS.
9039
9040 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9041
9042 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9043 Use dl_hwcap without masking.
9044 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9045 Remove HWCAP_CPUID.
9046
9047 2018-07-06 Florian Weimer <fweimer@redhat.com>
9048
9049 * conform/conformtest.pl (checknamespace): Escape literal braces
9050 in regular expressions.
9051
9052 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9053
9054 * sysdeps/x86/cpu-features.c (get_common_indeces):
9055 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9056 * sysdeps/x86/cpu-features.c (init_cpu_features):
9057 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9058
9059 2018-07-05 Florian Weimer <fweimer@redhat.com>
9060
9061 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9062 protector.
9063 (CFLAGS-elf-init.oS): Likewise.
9064
9065 2018-07-05 Florian Weimer <fweimer@redhat.com>
9066 Carlos O'Donell <carlos@redhat.com>
9067
9068 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9069 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9070 with stack protector enabled because there is no risk of infinite
9071 recursion.
9072
9073 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9074
9075 [BZ #19818]
9076 [BZ #23307]
9077 * libc-abis (ABSOLUTE): New ABI.
9078 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9079 * NEWS: Mention the new ABI.
9080
9081 2018-07-05 Florian Weimer <fweimer@redhat.com>
9082
9083 [BZ # 17662]
9084 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9085 (RENAME_WHITEOUT): Define.
9086 [__USE_GNU] (renameat2): Declare.
9087 * stdio-common/Makefile (routines): Add renameat2.
9088 (tests): Add tst-renameat2.
9089 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9090 * stdio-common/renameat2.c: New file.
9091 * stdio-common/tst-renameat2.c: Likewise.
9092 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9093 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9094 undocumented.
9095 * sysdeps/unix/sysv/linux/kernel-features.h
9096 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9097 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9098 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9099 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9100 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9101 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9102 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9103 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9104 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9105 * include/stdio.h (__renameat): Add alias for renameat.
9106 * stdio-common/renameat.c (__renameat): Rename from renameat.
9107 Add hidden definition and alias.
9108 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9109 * sysdeps/mach/hurd/renameat.c: Likewise.
9110 * sysdeps/**/libc*.abilist: Add renameat2.
9111
9112 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9113
9114 * posix/bug-regex33.c: Fix build after regex sync.
9115
9116 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9117
9118 [BZ #23164]
9119 * localedata/tst-langinfo-setlocale.c: New file.
9120 * localedata/tst-langinfo-setlocale-static.c: New file.
9121 * localedata/tst-langinfo-newlocale.c: New file.
9122 * localedata/tst-langinfo-newlocale-static.c: New file.
9123 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9124 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9125 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9126 (tests-static): Remove tst-langinfo-static. Add
9127 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9128 (tests-special): Remove $(objpfx)tst-langinfo.out,
9129 $(objpfx)tst-langinfo-static.out. Add
9130 $(objpfx)tst-langinfo-setlocale.out,
9131 $(objpfx)tst-langinfo-newlocale.out,
9132 $(objpfx)tst-langinfo-setlocale-static.out,
9133 $(objpfx)tst-langinfo-newlocale-static.out.
9134 ($(objpfx)tst-langinfo.out): Remove.
9135 ($(objpfx)tst-langinfo-static.out): Remove.
9136 ($(objpfx)tst-langinfo-newlocale.out): New target.
9137 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9138 (test-xfail-tst-langinfo-newlocale-static): Add.
9139 ($(objpfx)tst-langinfo-setlocale.out): New target.
9140 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9141 * localedata/tst-langinfo.c: Call test_locale.
9142 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9143 data.
9144
9145 2018-07-04 Florian Weimer <fweimer@redhat.com>
9146
9147 testrun.sh: Implement --tool=strace, --tool=valgrind
9148 * Makefile (testrun-script): Define variable.
9149 (testrun.sh): Use variable.
9150 * manual/install.texi (Tools for Compilation): make 4.0 or later
9151 is required.
9152 * configure.ac: Check for make 4.0 or later.
9153 * INSTALL: Regenerate.
9154 * configure: Likewise.
9155
9156 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9157
9158 [BZ #23233]
9159 [BZ #21163]
9160 [BZ #18986]
9161 [BZ #13762]
9162 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9163 * posix/PCRE.tests: Remove invalid test.
9164 * posix/bug-regex28.c: Fix expected values for used syntax.
9165 * posix/bug-regex37.c: New file.
9166 * posix/bug-regex38.c: Likewise.
9167 * posix/regcomp.c: Sync with gnulib.
9168 * posix/regex.c: Likewise.
9169 * posix/regex.h: Likewise.
9170 * posix/regex_internal.c: Likewise.
9171 * posix/regex_internal.h: Likewise.
9172 * posix/regexec.c: Likewise.
9173
9174 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9175
9176 [BZ #23308]
9177 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9178 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9179 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9180 * localedata/unicode-gen/PropList.txt: likewise.
9181 * localedata/unicode-gen/UnicodeData.txt: likewise.
9182 * localedata/charmaps/UTF-8: Regenerate.
9183 * localedata/locales/i18n_ctype: likewise.
9184 * localedata/locales/tr_TR: likewise.
9185 * localedata/locales/translit_circle: likewise.
9186 * localedata/locales/translit_cjk_compat: likewise.
9187 * localedata/locales/translit_combining: likewise.
9188 * localedata/locales/translit_compat: likewise.
9189 * localedata/locales/translit_font: likewise.
9190 * localedata/locales/translit_fraction: likewise.
9191
9192 2018-07-03 Florian Weimer <fweimer@redhat.com>
9193
9194 [BZ #23363]
9195 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9196 * stdio-common/tst-printf.sh: Adjust expected output.
9197 * LICENSES: Update.
9198
9199 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9200
9201 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9202 symbol.
9203
9204 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9205
9206 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9207 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9208 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9209 * stdio-common/tst-printfsz-islongdouble.c: New file.
9210 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9211 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9212 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9213 [subdir == stdio-common] (tests-internal): Add
9214 test-printf-size-ieee128, and test-printf-size-ibm128.
9215 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9216 (CFLAGS-test-printf-size-ibm128.c): New variables.
9217 [subdir == stdio-common] (tests-special): Add
9218 $(objpfx)test-printf-size-ieee128.out and
9219 $(objpfx)test-printf-size-ibm128.out.
9220 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9221 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9222 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9223 __printf_sizeieee128.
9224 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9225 New file.
9226 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9227 Likewise.
9228 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9229 Likewise.
9230
9231 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9232
9233 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9234 (exp2f_inline): Likewise.
9235 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9236 (__math_uflowf): Likewise.
9237 (__math_may_uflowf): Likewise.
9238 (__math_divzerof): Likewise.
9239 (__math_invalidf): Likewise.
9240 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9241 (__math_oflowf): Likewise.
9242 (__math_uflowf): Likewise.
9243 (__math_may_uflowf): Likewise.
9244 (__math_divzerof): Likewise.
9245 (__math_invalidf): Likewise.
9246
9247 2018-06-29 DJ Delorie <dj@redhat.com>
9248 Carlos O'Donell <carlos@redhat.com>
9249
9250 [BZ #23329]
9251 * include/libc-symbols.h: Comment the freeres framework.
9252 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9253 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9254 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9255 * dlfcn/dlerror.c: Include libc-symbols.h
9256 (__dlerror_main_freeres): New function.
9257 * dlfcn/dlfreeres.c: New file.
9258 * dlfcn/sdlfreeres.c: New file.
9259 * include/dlfcn.h: Declare __dlerror_main_freeres.
9260 * malloc/set-freeres.c: Declare __libdl_freeres, and
9261 __libpthread_freeres.
9262 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9263 the releavant libraries are loaded.
9264 * malloc/thread-freeres.c: Add comments.
9265 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9266 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9267 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9268 (__free_stacks): Rename to...
9269 (free_stacks): ...this. Mark static.
9270 (queue_stack): Call free_stacks.
9271 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9272 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9273 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9274 ptr_freeres element from struct.
9275 (pthread_functions): Remove .ptr_freeres from struct initializer.
9276 [SHARED] (nptl_freeres): Remove.
9277 * nptl/nptlfreeres.c: New file.
9278 * nptl/pthreadP.h
9279 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9280 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9281 attribute_hidden.
9282 (__free_stacks): Rename to...
9283 (__nptl_stacks_freeres): ...this.
9284 (__shm_directory_freeres): Declare.
9285 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9286 (__nptl_unwind_freeres): ...this.
9287 * resolv/res-close.c: Add comment.
9288 * resolv/resolv_conf.c: Include libc-symbols.h.
9289 * string/strerror_l.c: Include libc-symbols.h.
9290 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9291 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9292 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9293 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9294
9295 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9296
9297 * stdlib/tst-strfmon_l.c: Add tests for long double.
9298
9299 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9300
9301 [BZ #23208]
9302 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9303 * localedata/locales/dsb_DE: New file.
9304
9305 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9306
9307 [BZ #23140]
9308 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9309 genitive case).
9310 (alt_mon): New entry, import from CLDR (nominative case).
9311
9312 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9313
9314 [BZ #22996]
9315 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
9316
9317 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
9318
9319 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
9320 Use vector registers.
9321
9322 * sysdeps/aarch64/multiarch/memmove_falkor.S
9323 (__memcpy_falkor): Use vector registers.
9324
9325 2018-06-29 Martin Sebor <msebor@redhat.com>
9326
9327 * manual/stdio.texi (Customizing Printf): Mention interaction
9328 with GCC built-ins.
9329
9330 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9331
9332 [BZ #23307]
9333 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9334 `st_value' is 0 if `st_shndx' is SHN_ABS.
9335 * elf/tst-absolute-zero.c: New file.
9336 * elf/tst-absolute-zero-lib.c: New file.
9337 * elf/tst-absolute-zero-lib.lds: New file.
9338 * elf/Makefile (tests): Add `tst-absolute-zero'.
9339 (modules-names): Add `tst-absolute-zero-lib'.
9340 (LDLIBS-tst-absolute-zero-lib.so): New variable.
9341 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
9342 ($(objpfx)tst-absolute-zero: New dependency.
9343
9344 2018-06-29 Zack Weinberg <zackw@panix.com>
9345
9346 * configure.ac: New command-line option --disable-crypt.
9347 Force --disable-nss-crypt when --disable-crypt is given, with a
9348 warning if it was explicitly enabled.
9349 * configure: Regenerate.
9350 * config.make.in: New boolean substitution variable $(build-crypt).
9351 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
9352 when $(build-crypt).
9353 * manual/install.texi: Document --disable-crypt.
9354 * INSTALL: Regenerate.
9355
9356 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
9357 which is never set.
9358 * conform/Makefile: Only include libcrypt.a in
9359 linknamespace-libs-xsi and linknamespace-libs-XPG4
9360 when $(build-crypt).
9361 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
9362 USE_CRYPT to 1 when $(build-crypt).
9363 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
9364 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
9365 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
9366
9367 2018-06-29 Zack Weinberg <zackw@panix.com>
9368
9369 * crypt/crypt.h, posix/unistd.h: Update comments and
9370 prototypes for crypt and crypt_r.
9371
9372 * manual/crypt.texi (Cryptographic Functions): New initial
9373 exposition.
9374 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
9375 (Unpredictable Bytes): Improve initial exposition. Clarify error
9376 behavior of getentropy and getrandom.
9377 * manual/examples/genpass.c: Generate a salt using getentropy
9378 instead of the current time. Use hash $5$ (SHA-2-256).
9379 * manual/examples/testpass.c: Demonstrate validation against
9380 hashes generated with three different one-way functions.
9381
9382 * manual/intro.texi: crypt.texi does not need an overview
9383 anymore.
9384
9385 * manual/nss.texi, manual/memory.texi, manual/socket.texi
9386 * manual/terminal.texi: Consistently refer to "passphrases"
9387 * instead of "passwords", and to the "user database" instead
9388 * of the "password database".
9389 * manual/users.texi: Similarly. Add notes about how actual
9390 passphrase hashes are now stored in the shadow database.
9391 Remove 20-year-old junk todo note.
9392
9393 2018-06-29 Zack Weinberg <zackw@panix.com>
9394
9395 * manual/crypt.texi: Use a normal top-level @node declaration.
9396 Move most of the introductory text to the 'crypt' section.
9397 Move the example programs below the @deftypefun for 'crypt_r'.
9398 Move the 'getpass' section...
9399 * manual/terminal.texi: ...here.
9400
9401 2018-06-29 Zack Weinberg <zackw@panix.com>
9402 Florian Weimer <fweimer@redhat.com>
9403
9404 * posix/unistd.h: Do not declare encrypt.
9405 (_XOPEN_CRYPT): Remove macro definition.
9406 (crypt): Declare only for _USE_MISC.
9407 * stdlib/stdlib.h: Do not declare setkey.
9408 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
9409 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
9410
9411 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
9412 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
9413 into compat symbols. Don't define initial_perm if it's not
9414 going to be used.
9415 * crypt/cert.c: Link explicitly with the expected versions for
9416 setkey and encrypt. If they are not available at all, mark
9417 the test as unsupported.
9418
9419 * sunrpc/des_crypt.c: Unconditionally block linkage with
9420 cbc_crypt and ecb_crypt for new binaries.
9421 * sunrpc/des_soft.c: Unconditionally block linkage with
9422 des_setparity for new binaries.
9423
9424 * manual/crypt.texi: Remove the entire "DES Encryption"
9425 section. Also remove the paragraph talking about FIPS 140-2
9426 from the introduction.
9427 * manual/string.texi (strfry, memfrob): Revise. Recommend use
9428 of libgcrypt for "real" encryption, not DES.
9429 * manual/conf.texi (Constants for Sysconf): Mention that
9430 _XOPEN_CRYPT is no longer impelemented.
9431
9432 * conform/data/unistd.h-data: Remove crypt function declaration.
9433
9434 2018-06-29 Florian Weimer <fweimer@redhat.com>
9435
9436 [BZ #23351]
9437 * malloc/hooks.c: Update comments on restoring of dumped heaps.
9438 (disallow_malloc_check): Remove variable.
9439 (__malloc_check_init): Adjust.
9440 (malloc_set_state): Update comment.
9441 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
9442 declarations.
9443
9444 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9445
9446 [BZ #23140]
9447 * localedata/locales/ast_ES (mon): Rename to...
9448 (alt_mon): This.
9449 (mon): Import from CLDR (genitive case).
9450
9451 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
9452 Jakub Sitnicki <jkbs@redhat.com>
9453
9454 [BZ #21812]
9455 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
9456 on NLM_F_DUMP_INTR.
9457
9458 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
9459
9460 * manual/llio.texi: Remove spurious space.
9461
9462 2018-06-28 Florian Weimer <fweimer@redhat.com>
9463
9464 [BZ #23349]
9465 * time/bits/types/struct_timespec.h: Change header inclusion guard to
9466 _STRUCT_TIMESPEC.
9467
9468 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9469
9470 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
9471 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
9472 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
9473 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
9474 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
9475 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
9476 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
9477
9478 2018-06-27 Maciej W. Rozycki <macro@mips.com>
9479
9480 [BZ #23266]
9481 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
9482 Copy and null-terminate entries that are not terminated, in
9483 addition to empty ones.
9484
9485 2018-06-27 Florian Weimer <fweimer@redhat.com>
9486
9487 [BZ #18023]
9488 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
9489 (extend_alloca_account): Remove.
9490 * manual/stdio.texi (Variable Arguments Output): Update comment.
9491
9492 2018-06-27 Joseph Myers <joseph@codesourcery.com>
9493
9494 * nptl/sockperf.c: Remove file.
9495
9496 2018-06-27 Florian Weimer <fweimer@redhat.com>
9497
9498 [BZ #18023]
9499 * elf/dl-deps.c (_dl_map_object_deps): Use struct
9500 scratch_buffer instead of extend_alloca.
9501
9502 2018-06-27 Florian Weimer <fweimer@redhat.com>
9503
9504 [BZ #18023]
9505 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
9506 scratch_buffer instead of extend_alloca. Update comments.
9507
9508 2018-06-27 Florian Weimer <fweimer@redhat.com>
9509
9510 [BZ #18023]
9511 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
9512 instead of extend_alloca.
9513
9514 2018-06-26 Joseph Myers <joseph@codesourcery.com>
9515
9516 [BZ #13888]
9517 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
9518 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
9519 /tmp.
9520 * scripts/test-installation.pl: Put temporary files in build
9521 directory, not /tmp.
9522 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
9523 (CFLAGS-bug4.c): Likewise.
9524 (CFLAGS-bug5.c): Likewise.
9525 (CFLAGS-test-fseek.c): Likewise.
9526 (CFLAGS-test-popen.c): Likewise.
9527 (CFLAGS-test_rdwr.c): Likewise.
9528 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
9529 /tmp.
9530 * stdio-common/bug4.c (main): Likewise.
9531 * stdio-common/bug5.c (main): Likewise.
9532 * stdio-common/test-fseek.c (TESTFILE): Likewise.
9533 * stdio-common/test-popen.c (do_test): Likewise.
9534 * stdio-common/test_rdwr.c (main): Likewise.
9535
9536 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
9537
9538 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
9539 (sem_open): Set sem.newsem.pad to zero for valgrind.
9540
9541 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9542
9543 [BZ #20251]
9544 * NEWS: Mention fcntl64 addition.
9545 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
9546 * login/utmp_file.c: Likewise.
9547 * sysdeps/posix/fdopendir.c: Likewise.
9548 * sysdeps/posix/opendir.c: Likewise.
9549 * sysdeps/unix/pt-fcntl.c: Likewise.
9550 * include/fcntl.h (__libc_fcntl64, __fcntl64,
9551 __fcntl64_nocancel_adjusted): New prototype.
9552 (__fcntl_nocancel_adjusted): Remove prototype.
9553 * io/Makefile (routines): Add fcntl64.
9554 (CFLAGS-fcntl64.c): New rule.
9555 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
9556 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
9557 * io/fcntl.h (fcntl64): Add prototype and redirect if
9558 __USE_FILE_OFFSET64 is defined.
9559 * io/fcntl64.c: New file.
9560 * manual/llio.text: Add a note for which commands fcntl acts a
9561 cancellation point.
9562 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
9563 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
9564 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
9565 New symbols.
9566 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
9567 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
9568 non-LFS case.
9569 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
9570 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
9571 to __fcntl64_nocancel.
9572 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
9573 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
9574 to __fcntl64_nocancel.
9575 * sysdeps/generic/not-cancel.h: Likewise.
9576 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
9577 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
9578 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9579 (fcntl64): New symbol.
9580 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9581 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9582 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9583 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9584 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9585 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9586 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9587 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9588 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9589 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9590 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
9591 fcntl64): Likewise.
9592 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9593 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
9594 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9595 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9596 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9597 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9598 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9599 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9600 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9601 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9602 Likewise.
9603 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9604 Likewise.
9605 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9606 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9607 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9608
9609 2018-06-26 Florian Weimer <fweimer@redhat.com>
9610
9611 Run thread shutdown functions in an explicit order.
9612 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
9613 definition.
9614 (__libc_thread_freeres): Call thread shutdown functions
9615 explicitly.
9616 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
9617 * include/string.h (__strerror_thread_freeres): Declare.
9618 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
9619 arena_thread_freeres. No longer static. Remove thread shutdown
9620 hook registration.
9621 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
9622 Declare.
9623 * resolv/res-close.c (__res_thread_freeres): Renamed from
9624 res_thread_freeres. No longer static. Remove thread shutdown
9625 hook registration.
9626 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
9627 * resolv/resolv_conf.c (freeres): Remove incorrect section
9628 attribute and use libc_freeres_fn.
9629 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
9630 strerror_thread_freeres. No longer static. Remove thread
9631 shutdown hook registration.
9632 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
9633 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
9634 shutdown hook registration.
9635 * Makerules (shlib.lds): Do not provide section boundary symbols
9636 for __libc_thread_subfreeres.
9637 * manual/memory.texi (Basic Allocation): Update comment.
9638
9639 2018-06-26 Florian Weimer <fweimer@redhat.com>
9640
9641 Remove always-defined _RPC_THREAD_SAFE_ macro.
9642 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
9643 Do not define _RPC_THREAD_SAFE_.
9644 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
9645 conditional.
9646 * sunrpc/clnt_perr.c: Likewise.
9647 * sunrpc/clnt_raw.c: Likewise.
9648 * sunrpc/clnt_simp.c: Likewise.
9649 * sunrpc/key_call.c: Likewise.
9650 * sunrpc/rpc_common.c: Likewise.
9651 * sunrpc/rpc_main.c: Likewise.
9652 * sunrpc/rpc_thread.c: Likewise.
9653 * sunrpc/svc.c: Likewise.
9654 * sunrpc/svc_raw.c: Likewise.
9655 * sunrpc/svc_simple.c: Likewise.
9656 * sumrpc/svcauth_des.c: Likewise.
9657
9658 2018-06-26 Florian Weimer <fweimer@redhat.com>
9659
9660 * libio/Makefile (tests-internal): Add tst-vtables,
9661 tst-vtables-interposed.
9662 * libio/tst-vtables.c: New file.
9663 * libio/tst-vtables-common.c: Likewise.
9664 * libio/tst-vtables-interposed.c: Likewise.
9665
9666 2018-06-26 Florian Weimer <fweimer@redhat.com>
9667
9668 * support/support_test_main.c (support_test_main): Only call
9669 setvbuf if not disables.
9670 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
9671 * support/test-driver.h (struct test_config): Add no_setvbuf member.
9672
9673 2018-06-26 Florian Weimer <fweimer@redhat.com>
9674
9675 [BZ #23313]
9676 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
9677
9678 2018-06-25 Florian Weimer <fweimer@redhat.com>
9679
9680 [BZ #18023]
9681 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
9682 Use struct scratch_buffer instead of extend_alloca.
9683
9684 2018-06-25 Florian Weimer <fweimer@redhat.com>
9685
9686 [BZ #18023]
9687 * nss/getent.c (initgroups_keys): Use dynarray instead of
9688 extend_alloca.
9689
9690 2018-06-25 Florian Weimer <fweimer@redhat.com>
9691
9692 [BZ #18023]
9693 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
9694 Use struct scratch_buffer instead of extend_alloca.
9695
9696 2018-06-25 Florian Weimer <fweimer@redhat.com>
9697
9698 [BZ #18023]
9699 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
9700 back to malloc directly, without stack allocations.
9701
9702 2018-06-25 Florian Weimer <fweimer@redhat.com>
9703
9704 [BZ #18023]
9705 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
9706 of extend_alloca.
9707
9708 2018-06-25 Florian Weimer <fweimer@redhat.com>
9709
9710 [BZ #18023]
9711 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
9712 of extend_alloca.
9713 * nscd/hstcache.c (addhstbyX): Likewise.
9714 * nscd/pwdcache.c (addpwbyX): Likewise.
9715 * nscd/servicescache.c (addservbyX): Likewise.
9716
9717 2018-06-25 Florian Weimer <fweimer@redhat.com>
9718
9719 [BZ #18023]
9720 * nscd/connections.c (read_cmdline): New function.
9721 (restart): Use it. Update comment.
9722
9723 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9724
9725 [BZ #23140]
9726 * localedata/locales/csb_PL (mon): Rename to...
9727 (alt_mon): This.
9728 (abmon): Rename to...
9729 (ab_alt_mon): This.
9730 (mon): Add with proper genitive forms, copy from Wikipedia.
9731 (abmon): Likewise.
9732
9733 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9734
9735 [BZ #19485]
9736 * localedata/locales/csb_PL (mon): Fix typos:
9737 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
9738 (yesstr): Add, value is "jo".
9739 (nostr): Add, value is "nié".
9740
9741 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9742
9743 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
9744 all log1p and significand functions on m680x0.
9745 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
9746 of s_significand.c..
9747 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
9748 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
9749 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
9750 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
9751 s_log1p.c and include it..
9752
9753 2018-06-21 Vincent Chen <vincentc@andestech.com>
9754
9755 * elf/elf.h (R_NDS32_NONE): New define.
9756 (R_NDS32_32_RELA): Likewise.
9757 (R_NDS32_COPY): Likewise.
9758 (R_NDS32_GLOB_DAT): Likewise.
9759 (R_NDS32_JUMP_SLOT): Likewise.
9760 (R_NDS32_RELATIVE): Likewise.
9761 (R_NDS32_TLS_TPOFF): Likewise.
9762 (R_NDS32_TLS_DESC): Likewise.
9763
9764 2018-06-21 Mark Wielaard <mark@klomp.org>
9765
9766 * elf/elf.h (R_BPF_MAP_FD): Removed.
9767 (R_BPF_64_64, R_BPF_64_32): New.
9768
9769 2018-06-21 Florian Weimer <fweimer@redhat.com>
9770
9771 [BZ #23253]
9772 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
9773 Renamed from libc_feholdsetround_ctx.
9774 (default_libc_feresetround_ctx): Renamed from
9775 libc_feresetround_ctx.
9776 (default_libc_feholdsetround_noex_ctx): Renamed from
9777 libc_feholdsetround_noex_ctx.
9778 (default_libc_feresetround_noex_ctx): Renamed from
9779 libc_feresetround_noex_ctx.
9780 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
9781 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
9782 forwardning to the old implementations under the new names.
9783 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
9784 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
9785 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
9786 (libc_feresetround_ctx): Forward to default implements for i386
9787 and MATH_SET_BOTH_ROUNDING_MODES.
9788 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
9789 Add -DMATH_SET_BOTH_ROUNDING_MODES.
9790
9791 2018-06-20 Joseph Myers <joseph@codesourcery.com>
9792
9793 * string/tst-cmp.c: Include <libc-diag.h>.
9794 (strncmp_max): Disable -Wstringop-overflow= around call to
9795 strncmp.
9796 (strncasecmp_max): Disable -Wstringop-overflow= around call to
9797 strncasecmp.
9798
9799 * string/bug-strpbrk1.c: Include <libc-diag.h>.
9800 (main): Disable -Wunused-value around call to strpbrk.
9801 * string/bug-strspn1.c: Include <libc-diag.h>.
9802 (main): Disable -Wunused-value around call to strspn.
9803
9804 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9805 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9806
9807 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
9808 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
9809
9810 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9811
9812 * math/Makefile (libm-calls): Move s_significandF to...
9813 (gen-libm-calls): ... here.
9814 * math/s_significand_template.c: New file.
9815 * math/s_significand.c: Removed.
9816 * math/s_significandf.c: Removed.
9817 * math/s_significandl.c: Removed.
9818 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
9819 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
9820
9821 * math/e_exp2_template.c (declare_mgen_finite_alias,
9822 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
9823 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
9824 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
9825
9826 2018-06-20 Florian Weimer <fweimer@redhat.com>
9827
9828 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
9829
9830 2018-06-19 Joseph Myers <joseph@codesourcery.com>
9831
9832 [BZ #23280]
9833 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
9834 floating-point number to strtod functions rather than possibly
9835 negating result of those functions.
9836 * stdio-common/tst-scanf-round.c: New file.
9837 * stdio-common/Makefile (tests): Add tst-scanf-round.
9838 ($(objpfx)tst-scanf-round): Depend on $(libm).
9839
9840 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
9841
9842 * sysdeps/mach/hurd/localplt.data: Move to...
9843 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
9844 R_386_GLOB_DAT like on Linux i386.
9845
9846 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9847
9848 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
9849 (SHM_STAT_ANY): New macro.
9850 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
9851 (SHM_STAT_ANY): Likewise.
9852 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
9853 (SHM_STAT_ANY): Likewise.
9854 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
9855 (SHM_STAT_ANY): Likewise.
9856 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
9857 (SHM_STAT_ANY): Likewise.
9858 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
9859 (SHM_STAT_ANY): Likewise.
9860 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
9861 (SHM_STAT_ANY): Likewise.
9862 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
9863 (SHM_STAT_ANY): Likewise.
9864 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
9865 (SHM_STAT_ANY): Likewise.
9866 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
9867 (SHM_STAT_ANY): Likewise.
9868 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
9869 (SHM_STAT_ANY): Likewise.
9870 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
9871 (SHM_STAT_ANY): Likewise.
9872
9873 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
9874 (SEM_STAT_ANY): New macro.
9875 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
9876 (SEM_STAT_ANY): Likewise.
9877 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
9878 (SEM_STAT_ANY): Likewise.
9879 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
9880 (SEM_STAT_ANY): Likewise.
9881 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
9882 (SEM_STAT_ANY): Likewise.
9883 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
9884 (SEM_STAT_ANY): Likewise.
9885 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
9886 (SEM_STAT_ANY): Likewise.
9887 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
9888 (SEM_STAT_ANY): Likewise.
9889 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
9890 (SEM_STAT_ANY): Likewise.
9891 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
9892 (SEM_STAT_ANY): Likewise.
9893
9894 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
9895 (MSG_STAT_ANY): New macro.
9896 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
9897 (MSG_STAT_ANY): Likewise.
9898 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
9899 (MSG_STAT_ANY): Likewise.
9900 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
9901 (MSG_STAT_ANY): Likewise.
9902 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
9903 (MSG_STAT_ANY): Likewise.
9904 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
9905 (MSG_STAT_ANY): Likewise.
9906 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
9907 (MSG_STAT_ANY): Likewise.
9908 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
9909 (MSG_STAT_ANY): Likewise.
9910 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
9911 (MSG_STAT_ANY): Likewise.
9912 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
9913 (MSG_STAT_ANY): Likewise.
9914
9915 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
9916 (MAP_TYPE): Change value to 0x2b.
9917
9918 2018-06-18 Florian Weimer <fweimer@redhat.com>
9919
9920 [BZ #15722]
9921 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
9922 socket with SOCK_CLOEXEC.
9923
9924 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9925
9926 [BZ #23303]
9927 * sysdeps/powerpc/powerpc64/le/Makefile
9928 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
9929 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
9930 (gnulib-tests): Also add $(f128-loader-link) for
9931 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
9932
9933 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
9934
9935 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
9936 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
9937 of sendfile.
9938 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
9939 (sendfile64): New strong alias.
9940 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
9941 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
9942 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
9943 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
9944 attribute.
9945 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
9946 ___pthread_get_cleanup_stack.
9947 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
9948 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
9949 * mach/shortcut.awk: Make syscall stubs include
9950 <mach-shortcuts-hidden.h> and add hidden definition.
9951 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
9952 (__mach_msg): Add hidden prototype.
9953 * mach/msg.c: Include <mach.h>.
9954 (__mach_msg): Add hidden definition.
9955 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
9956 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
9957 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
9958 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
9959 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
9960 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
9961 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
9962 prototype and definition.
9963 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
9964 hidden target for _hurd_self_sigstate.
9965
9966 2018-06-15 Joseph Myers <joseph@codesourcery.com>
9967
9968 [BZ #23007]
9969 * stdlib/tst-strtod-nan-sign-main.c: New file.
9970 * stdlib/tst-strtod-nan-sign.c: Likewise.
9971 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
9972 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
9973 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
9974 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
9975 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
9976
9977 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
9978
9979 [BZ #23007]
9980 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
9981 appropriate sign.
9982
9983 2018-06-14 Florian Weimer <fweimer@redhat.com>
9984
9985 [BZ #23290]
9986 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
9987 that the result stays within the ISO-8859-1 range.
9988 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
9989 characters are defined in IBM273.
9990
9991 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
9992
9993 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
9994 __mach_task_self): Remove attribute_hidden.
9995
9996 2018-06-14 Joseph Myers <joseph@codesourcery.com>
9997
9998 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
9999 ignore -Wrestrict for one test.
10000
10001 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10002 Szabolcs Nagy <szabolcs.nagy@arm.com>
10003
10004 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10005
10006 2018-06-14 Florian Weimer <fweimer@redhat.com>
10007
10008 * scripts/update-abilist.sh: Accept empty list of files to patch.
10009
10010 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10011
10012 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10013 test-xfail-check-abi-libmachuser): Add.
10014 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10015 __libc_read and __libc_write to __read and __write.
10016 * sysdeps/hurd/include/hurd/port.h: New file.
10017 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10018 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10019 __thread_switch, __evc_wait): Move declarations to...
10020 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10021 attribute_hidden.
10022 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10023 use PLT to call _hurd_self_sigstate.
10024
10025 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10026
10027 [BZ #23279]
10028 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10029 MAX_EXP as overflowing.
10030 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10031 overflow flag.
10032 (round_str): Output also whether result overflows in each rounding
10033 mode.
10034 * stdlib/tst-strtod-round-data: Add more tests.
10035 * stdlib/tst-strtod-round-data.h: Regenerated.
10036 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10037 (TEST): Handle extra arguments for overflow flags.
10038 (struct test_overflow): New type.
10039 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10040 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10041 (test_in_one_mode): Take argument with overflow information.
10042 (do_test): Update calls to test_in_one_mode.
10043
10044 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10045
10046 * elf/dl-load (_dl_dst_substitute): Correct comment.
10047 (_dl_dst_count): Likewise.
10048
10049 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10050 lll_futex_timed_wait.
10051
10052 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10053
10054 [BZ #23277]
10055 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10056 attribute.
10057 * math/test-nan-const.c: New file.
10058 * math/Makefile (tests): Add test-nan-const.
10059 (CFLAGS-test-nan-const.c): New variable.
10060
10061 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10062
10063 * benchtests/scripts/compare_strings.py (process_results): Add
10064 funcs argument. Compare only functions which are selected.
10065 (main): Check if base function is among selected functions.
10066 Pass selected functions to process_results.
10067 (__main__): Add -f/--functions argument.
10068
10069 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10070 Hongbo Zhang <hongbo.zhang@linaro.org>
10071
10072 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10073 __memcpy_falkor for phecda core.
10074 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10075 __memmove_falkor for phecda core.
10076 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10077 __memset_falkor for phecda core.
10078 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10079 for phecda core.
10080 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10081 macro to identify phecda core.
10082
10083 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10084 Andreas Schwab <schwab@suse.de>
10085 Dmitry V. Levin <ldv@altlinux.org>
10086 Florian Weimer <fweimer@redhat.com>
10087
10088 [BZ #23102]
10089 [BZ #21942]
10090 [BZ #18018]
10091 [BZ #23259]
10092 CVE-2011-0536
10093 * elf/dl-dst.h: Remove DL_DST_COUNT.
10094 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10095 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10096 (is_dst): Comment. Support ELF gABI.
10097 (_dl_dst_count): Comment. Simplify and count DSTs.
10098 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10099 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10100 locals.
10101
10102 2018-06-12 Zack Weinberg <zackw@panix.com>
10103
10104 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10105 * sysdeps/unix/sysv/linux/dl-sysdep.c
10106 Include not-cancel.h. Use __close_nocancel instead of __close,
10107 __open64_nocancel instead of __open, __read_nocancel instead of
10108 __libc_read, and __write_nocancel instead of __libc_write.
10109
10110 * csu/check_fds.c (check_one_fd)
10111 * sysdeps/posix/fdopendir.c (__fdopendir)
10112 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10113 instead of __fcntl and/or __libc_fcntl.
10114
10115 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10116 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10117 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10118 Use __open64_nocancel instead of __open_nocancel.
10119
10120 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10121 hidden_proto declarations to the end and issue them if either
10122 IS_IN(libc) or IS_IN(rtld).
10123 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10124 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10125 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10126 read_nocancel, waitpid_nocancel, write_nocancel.
10127
10128 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10129 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10130 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10131
10132 * nptl/pt-fcntl.c: New file.
10133 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10134 (libpthread-routines): Add pt-fcntl.
10135 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10136 (__libc_fcntl): Remove attribute_hidden.
10137 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10138 __fcntl_nocancel_adjusted, not fcntl_common.
10139 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10140 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10141 to fcntl_nocancel.c.
10142 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10143 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10144 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10145 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10146
10147 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10148 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10149 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10150 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10151 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10152 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10153 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10154 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10155 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10156 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10157 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10158 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10159 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10160 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10161 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10162 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10163 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10164 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10165 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10166 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10167
10168 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10169 libpthread-routines.
10170 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10171 defines nothing.
10172
10173 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10174 __libc_read, and __write instead of __libc_write. Define
10175 __open64 in addition to __open.
10176
10177 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10178
10179 [BZ #23250]
10180 [BZ #10686]
10181 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10182 to _private_tm[3] and add __glibc_reserved2.
10183 Add _Static_assert of offset of __private_ss == 0x30.
10184 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10185 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10186
10187 2018-06-12 Florian Weimer <fweimer@redhat.com>
10188
10189 x86: Make strncmp usable from rtld.
10190 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10191 __strncmp_ia32 if in libc (and not in rtld).
10192 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10193 strncmp if not in libc (and not to __strncmp_sse2).
10194
10195 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10196
10197 [BZ #23140]
10198 * localedata/locales/gd_GB (mon): Rename to...
10199 (alt_mon): This.
10200 (mon): Import from CLDR (genitive case).
10201 * localedata/locales/hsb_DE (mon): Rename to...
10202 (alt_mon): This.
10203 (mon): Import from CLDR (genitive case).
10204 * localedata/locales/wa_BE (mon): Rename to...
10205 (alt_mon): This.
10206 (mon): Add, fill with the proper genitive forms, but CLDR data
10207 is incomplete; completed according to the comments in this file.
10208 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10209
10210 * localedata/locales/wa_BE (country_name): Reword
10211 "Beljike" -> "Beldjike".
10212
10213 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10214
10215 [BZ #23272]
10216 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10217 cases of non-finite arguments.
10218 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10219
10220 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10221
10222 [BZ #23174]
10223 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10224
10225 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10226
10227 [BZ #23264]
10228 * include/unistd.h (__execvpex): New prototype.
10229 * posix/Makefile (tests): Add tst-spawn4.
10230 (tests-internal): Add tst-spawn4-compat.
10231 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10232 * posix/tst-spawn4-compat.c: New file.
10233 * posix/tst-spawn4.c: Likewise.
10234 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10235 binaries as shell scripts.
10236 * sysdeps/posix/spawni.c (__spawni): Likewise.
10237
10238 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10239
10240 [BZ #23145]
10241 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10242 ($(all-built-dso:=.dynsym): New target.
10243 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10244 ($(objpfx)check-initfini.out): New target.
10245 (generated): Add check-initfini.out.
10246 * scripts/check-initfini.awk: New file.
10247 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10248 (_fini): Likewise.
10249 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10250 (_fini): Likewise.
10251 * sysdeps/arm/crti.S (_init): Mark as hidden.
10252 (_fini): Likewise.
10253 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10254 (_fini): Likewise.
10255 * sysdeps/i386/crti.S (_init): Mark as hidden.
10256 (_fini): Likewise.
10257 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10258 (_fini): Likewise.
10259 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10260 (_fini): Likewise.
10261 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10262 (_fini): Likewise.
10263 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10264 (_fini): Likewise.
10265 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10266 (_fini): Likewise.
10267 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10268 (_fini): Likewise.
10269 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10270 (_fini): Likewise.
10271 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10272 (_fini): Likewise.
10273 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10274 (_fini): Likewise.
10275 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10276 (_fini): Likewise.
10277 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10278 (_fini): Likewise.
10279 * sysdeps/sh/crti.S (_init): Mark as hidden.
10280 (_fini): Likewise.
10281 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10282 (_fini): Likewise.
10283 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10284 (_fini): Likewise.
10285
10286 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10287
10288 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10289 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10290 and TF redirection to KFtype and KF only when the default
10291 long double type is not the IEEE 128-bit floating point type.
10292
10293 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10294
10295 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10296 macro.
10297 (HWCAP_USCAT): Likewise.
10298 (HWCAP_ILRCPC): Likewise.
10299 (HWCAP_FLAGM): Likewise.
10300 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10301 Increase to 28.
10302 (_dl_aarch64_cap_flags): Add new flag names.
10303
10304 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10305 (MAP_FIXED_NOREPLACE): New macro.
10306 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10307 (MAP_FIXED_NOREPLACE): Likewise.
10308 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10309 (MAP_FIXED_NOREPLACE): Likewise.
10310 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10311 (MAP_FIXED_NOREPLACE): Likewise.
10312 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10313 (MAP_FIXED_NOREPLACE): Likewise.
10314 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
10315 (MAP_FIXED_NOREPLACE): Likewise.
10316 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
10317 (MAP_FIXED_NOREPLACE): Likewise.
10318 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
10319 (MAP_FIXED_NOREPLACE): Likewise.
10320 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
10321 (MAP_FIXED_NOREPLACE): Likewise.
10322 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10323 (MAP_FIXED_NOREPLACE): Likewise.
10324 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10325 (MAP_FIXED_NOREPLACE): Likewise.
10326 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10327 (MAP_FIXED_NOREPLACE): Likewise.
10328 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10329 (MAP_FIXED_NOREPLACE): Likewise.
10330 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10331 (MAP_FIXED_NOREPLACE): Likewise.
10332 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10333 (MAP_FIXED_NOREPLACE): Likewise.
10334
10335 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10336 version to 4.17.
10337
10338 2018-06-04 Joseph Myers <joseph@codesourcery.com>
10339
10340 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10341 version to 4.17
10342
10343 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10344
10345 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
10346 int.
10347 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
10348
10349 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10350
10351 * benchtests/scripts/compare_string.py: (process_results) Catch
10352 exception in non-existent base_func and catch exception in
10353 non-existent attribute.
10354 (parse_file) Catch exception if input file does not exist.
10355
10356 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10357
10358 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
10359 options to avoid diff calculation and omit header, respectively.
10360 (main): process --no-diff and --no-header
10361
10362 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10363 H.J. Lu <hongjiu.lu@intel.com>
10364
10365 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10366 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
10367 wcsncmp-sse2.
10368 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10369 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
10370 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
10371 and __wcsncmp_sse2.
10372 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
10373 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
10374 AVX unaligned load is fast and vzeroupper is preferred.
10375 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
10376 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
10377 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
10378 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
10379 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
10380 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
10381 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
10382 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
10383 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
10384 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
10385 is undefined.
10386
10387 2018-06-01 Florian Weimer <fweimer@redhat.com>
10388
10389 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
10390 configuring with --disable-multi-arch, building with
10391 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
10392 Haswell-era CPU.
10393
10394 2018-06-01 Florian Weimer <fweimer@redhat.com>
10395
10396 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
10397 results from building with “-march=x86-64 -mtune=generic
10398 -mfpmath=sse” and running on a Haswell-era CPU.
10399
10400 2018-06-01 Joseph Myers <joseph@codesourcery.com>
10401
10402 [BZ #18473]
10403 * soft-fp/sqrttf2.c: Remove file.
10404 * soft-fp/sqrtdf2.c: Move to ....
10405 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
10406 <shlib-compat.h>.
10407 (__sqrtdf2): Make conditional on
10408 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10409 symbol.
10410 * soft-fp/sqrtsf2.c: Move to ....
10411 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
10412 <shlib-compat.h>.
10413 (__sqrtsf2): Make conditional on
10414 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10415 symbol.
10416 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
10417 (gcc-double-routines): Remove sqrtdf2.
10418 (gcc-quad-routines): Remove sqrttf2.
10419 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10420 Do not filter out sqrtsf2 and sqrtdf2.
10421 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10422 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
10423
10424 2018-06-01 Florian Weimer <fweimer@redhat.com>
10425
10426 * sysdeps/generic/libcidn.abilist: Remove file.
10427
10428 2018-06-01 Florian Weimer <fweimer@redhat.com>
10429
10430 [BZ #23236]
10431 * libio/strfile.h (struct _IO_str_fields): Rename members to
10432 discourage their use and add comment.
10433 (_IO_STR_DYNAMIC): Remove unused macro.
10434 * libio/strops.c (_IO_str_init_static_internal): Do not use
10435 callback pointers. Call malloc and free.
10436 (_IO_str_overflow): Do not use callback pointers. Call malloc
10437 and free.
10438 (enlarge_userbuf): Likewise.
10439 (_IO_str_finish): Call free.
10440 * libio/wstrops.c (_IO_wstr_init_static): Initialize
10441 _allocate_buffer_unused.
10442 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
10443 and free.
10444 (enlarge_userbuf): Likewise.
10445 (_IO_wstr_finish): Call free.
10446 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
10447 _allocate_buffer_unused, _free_buffer_unused.
10448 * libio/memstream.c (__open_memstream): Likewise.
10449 * libio/vasprintf.c (_IO_vasprintf): Likewise.
10450 * libio/wmemstream.c (open_wmemstream): Likewise.
10451
10452 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
10453
10454 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
10455 AMD Ryzen 7 1800X.
10456
10457 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10458
10459 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
10460 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
10461 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
10462 New file.
10463 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
10464 Likewise.
10465 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
10466
10467 2018-05-29 Florian Weimer <fweimer@redhat.com>
10468
10469 * support/Makefile (libsupport-routines): Add
10470 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
10471 xpthread_barrierattr_setpshared.
10472 * support/xpthread_barrierattr_destroy.c: New file.
10473 * support/xpthread_barrierattr_init.c: Likewise.
10474 * support/xpthread_barrierattr_setpshared.c: Likewise.
10475
10476 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
10477
10478 [BZ #23206]
10479 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
10480 _r_debug and update DT_DEBUG for debugger.
10481
10482 2018-05-29 Florian Weimer <fweimer@redhat.com>
10483
10484 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
10485 (tst-strtod5i.out): Likewise.
10486
10487 2018-05-25 Joseph Myers <joseph@codesourcery.com>
10488
10489 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
10490 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
10491 (sparc64-quad-routines): New variable. Moved from ....
10492 [$(subdir) = soft-fp] (sysdep_routines): Add
10493 $(sparc64-quad-routines). Moved from ....
10494 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
10495 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
10496 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
10497 moved from ....
10498 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
10499 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
10500 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
10501 * sysdeps/sparc/sparc64/qp_add.c: ... here.
10502 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
10503 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
10504 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
10505 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
10506 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
10507 * sysdeps/sparc/sparc64/qp_div.c: ... here.
10508 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
10509 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
10510 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
10511 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
10512 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
10513 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
10514 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
10515 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
10516 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
10517 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
10518 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
10519 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
10520 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
10521 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
10522 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
10523 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
10524 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
10525 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
10526 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
10527 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
10528 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
10529 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
10530 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
10531 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
10532 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
10533 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
10534 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
10535 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
10536 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
10537 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
10538 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
10539 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
10540 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
10541 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
10542 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
10543 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
10544 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
10545 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
10546 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
10547 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
10548 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
10549 * sysdeps/sparc/sparc64/qp_util.c: ... here.
10550 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
10551 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
10552 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
10553 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
10554 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
10555 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
10556
10557 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
10558 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
10559 (sparc32-quad-routines): New variable. Moved from ....
10560 [$(subdir) = soft-fp] (sysdep_routines): Add
10561 $(sparc32-quad-routines). Moved from ....
10562 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
10563 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
10564 moved from ....
10565 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
10566 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
10567 * sysdeps/sparc/sparc32/q_add.c: ... here.
10568 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
10569 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
10570 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
10571 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
10572 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
10573 * sysdeps/sparc/sparc32/q_div.c: ... here.
10574 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
10575 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
10576 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
10577 * sysdeps/sparc/sparc32/q_feq.c: ... here.
10578 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
10579 * sysdeps/sparc/sparc32/q_fge.c: ... here.
10580 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
10581 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
10582 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
10583 * sysdeps/sparc/sparc32/q_fle.c: ... here.
10584 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
10585 * sysdeps/sparc/sparc32/q_flt.c: ... here.
10586 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
10587 * sysdeps/sparc/sparc32/q_fne.c: ... here.
10588 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
10589 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
10590 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
10591 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
10592 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
10593 * sysdeps/sparc/sparc32/q_mul.c: ... here.
10594 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
10595 * sysdeps/sparc/sparc32/q_neg.c: ... here.
10596 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
10597 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
10598 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
10599 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
10600 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
10601 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
10602 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
10603 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
10604 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
10605 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
10606 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
10607 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
10608 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
10609 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
10610 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
10611 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
10612 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
10613 * sysdeps/sparc/sparc32/q_sub.c: ... here.
10614 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
10615 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
10616 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
10617 * sysdeps/sparc/sparc32/q_util.c: ... here.
10618 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
10619 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
10620 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
10621 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
10622
10623 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10624 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10625
10626 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
10627 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
10628 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
10629 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
10630
10631 2018-05-24 Joseph Myers <joseph@codesourcery.com>
10632
10633 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
10634 powerpc/soft-fp.
10635 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
10636 Likewise.
10637 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
10638 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
10639
10640 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10641
10642 [BZ #23171]
10643 * math/math.h [C++] (iseqsig): Fix parameter type for the long
10644 double version.
10645
10646 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10647
10648 * sysdeps/sh/Implies: Remove sh/soft-fp.
10649 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
10650 * sysdeps/sh/sfp-machine.h: ... here.
10651
10652 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10653
10654 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10655 (__mempcpy_erms): Skip zero length.
10656 (__memmove_erms): Likewise.
10657 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
10658 (__memset_erms): Likewise.
10659
10660 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10661
10662 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
10663 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10664 Add functions moved from ....
10665 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
10666 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
10667 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
10668 from ....
10669 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
10670 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
10671 * sysdeps/alpha/e_sqrtl.c: ... here.
10672 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
10673 * sysdeps/alpha/local-soft-fp.h: ... here.
10674 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
10675 * sysdeps/alpha/ots_add.c: ... here.
10676 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
10677 * sysdeps/alpha/ots_cmp.c: ... here.
10678 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
10679 * sysdeps/alpha/ots_cmpe.c: ... here.
10680 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
10681 * sysdeps/alpha/ots_cvtqux.c: ... here.
10682 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
10683 * sysdeps/alpha/ots_cvtqx.c: ... here.
10684 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
10685 * sysdeps/alpha/ots_cvttx.c: ... here.
10686 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
10687 * sysdeps/alpha/ots_cvtxq.c: ... here.
10688 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
10689 * sysdeps/alpha/ots_cvtxt.c: ... here.
10690 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
10691 * sysdeps/alpha/ots_div.c: ... here.
10692 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
10693 * sysdeps/alpha/ots_mul.c: ... here.
10694 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
10695 * sysdeps/alpha/ots_nintxq.c: ... here.
10696 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
10697 * sysdeps/alpha/ots_sub.c: ... here.
10698 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
10699 * sysdeps/alpha/sfp-machine.h: ... here.
10700
10701 2018-05-23 Florian Weimer <fweimer@redhat.com>
10702
10703 [BZ #19728]
10704 [BZ #19729]
10705 [BZ #22247]
10706 CVE-2016-6261
10707 CVE-2016-6263
10708 CVE-2017-14062
10709 Switch to extern IDNA implementation (libidn2).
10710 * libidn: Remove subdirectory.
10711 * LICENSES: Do not mention licensing conditions for the removed
10712 libidn code.
10713 * config.h.in (HAVE_LIBIDN): Remove.
10714 * include/dlfcn.h (__libc_dlopen): Update comment.
10715 * include/idna.h: Remove file.
10716 * inet/Makefile (routines): Add idna.
10717 (tests-static, tests-internal): Add tst-idna_name_classify.
10718 (LOCALES): Generate locales for tests.
10719 (tst-idna_name_classify.out): Depend on generated locales.
10720 * inet/idna_name_classify.c: New file.
10721 * inet/tst-idna_name_classify.c: Likewise.
10722 * inet/net-internal.h (__idna_to_dns_encoding)
10723 (__idna_from_dns_encoding): Declare.
10724 * inet/net-internal.h (enum idna_name_classification): Define.
10725 (__idna_name_classify): Declare.
10726 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
10727 __idna_from_dns_encoding.
10728 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
10729 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
10730 name as a fallback in case of encoding errors.
10731 (getnameinfo): Use DEPRECATED_NI_IDN.
10732 * inet/idna.c: New file.
10733 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
10734 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
10735 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
10736 (modules-names): Add tst-no-libidn2.
10737 (extra-test-objs): Add tst-no-libidn2.os.
10738 (LDFLAGS-tst-no-libidn2.so): Set soname.
10739 (LOCALES): Set, and generate locales.
10740 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
10741 (tst-resolv-ai_idn-latin1): Likewise.
10742 (tst-resolv-ai_idn-nolibidn2): Likewise.
10743 (tst-resolv-ai_idn.out): Depend on locales.
10744 (tst-resolv-ai_idn-latin1.out): Depend on locales.
10745 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
10746 tst-no-libidn2.so.
10747 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
10748 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
10749 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
10750 * resolv/tst-resolv-ai_idn.c: New file.
10751 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
10752 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
10753 * resolv/tst-no-libidn2.c: Likewise.
10754 * support/support_format_addrinfo.c (format_ai_flags): Do not
10755 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
10756 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
10757 (gaih_inet): Call __idna_to_dns_encoding and
10758 __idna_from_dns_encoding, and use the original (punycode) name if
10759 __idna_from_dns_encoding fails due to an encoding error.
10760 (getaddrinfo): Use DEPRECATED_AI_IDN.
10761 * sysdeps/unix/inet/Subdirs (libidn): Remove.
10762 * sysdeps/unix/inet/configure: Remove file.
10763 * sysdeps/unix/inet/configure.ac: Likewise.
10764
10765 2018-05-23 Florian Weimer <fweimer@redhat.com>
10766
10767 Implement allocate_once.
10768 * include/allocate_once.h: New file.
10769 * misc/allocate_once.c: Likewise.
10770 * misc/tst-allocate_once.c: Likewise.
10771 * misc/Makefile (routines): Add allocate_once.
10772 (tests-internal): Add tst-allocate_once.
10773 (generated): Add tst-allocate_once.mtrace,
10774 tst-allocate_once-mem.out.
10775 (tests-special): Add tst-allocate_once-mem.out.
10776 (tst-allocate_once-ENV): Set MALLOC_TRACE.
10777 (tst-allocate_once-mem.out): Call mtrace.
10778 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
10779
10780 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10781
10782 [BZ #23196]
10783 * string/test-memcpy.c (do_test1): New function.
10784 (test_main): Call it.
10785
10786 2018-05-23 Andreas Schwab <schwab@suse.de>
10787
10788 [BZ #23196]
10789 CVE-2018-11237
10790 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
10791 (L(preloop_large)): Save initial destination pointer in %r11 and
10792 use it instead of %rax after the loop.
10793 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
10794
10795 2018-05-22 Joseph Myers <joseph@codesourcery.com>
10796
10797 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
10798 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
10799 -I../soft-fp. Moved from ....
10800 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
10801 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
10802 * sysdeps/aarch64/e_sqrtl.c: ... here.
10803 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
10804 * sysdeps/aarch64/sfp-machine.h: ... here.
10805
10806 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
10807 -Wmaybe-uninitialized around access to fq[0].
10808 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
10809 Likewise.
10810
10811 [BZ #18471]
10812 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
10813 aliases for non-libc case of versioned symbols.
10814 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
10815 (llseek): Define as compat symbol if
10816 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
10817 with link warning.
10818 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
10819 Make into a compat symbol, disabled for minimum symbol version
10820 GLIBC_2.28 and later.
10821 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
10822
10823 2018-05-22 Florian Weimer <fweimer@redhat.com>
10824
10825 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
10826 not add -mpreferred-stack-boundary=4.
10827 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
10828 (stack-align-test-flags): Likewise.
10829 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
10830 Likewise.
10831 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
10832 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
10833 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
10834 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
10835 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
10836 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
10837 (CFLAGS-tst-align2.c): Likewise.
10838
10839 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10840
10841 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
10842 (index_arch_Prefer_FSRM): Likewise.
10843 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
10844 Also check Prefer_FSRM.
10845 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
10846 Also return OPTIMIZE (erms) for Prefer_FSRM.
10847
10848 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10849
10850 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
10851 (index_cpu_FSRM): Likewise.
10852 (reg_FSRM): Likewise.
10853
10854 2018-05-18 Joseph Myers <joseph@codesourcery.com>
10855
10856 * math/gen-tgmath-tests.py: Import sys.
10857 (Tests.__init__): Initialize macros_seen.
10858 (Tests.add_tests): Add macro to macros_seen. Only generate tests
10859 if requested to do so for this macro.
10860 (Tests.add_all_tests): Take argument for macro for which to
10861 generate tests.
10862 (Tests.check_macro_list): New function.
10863 (main): Handle check-list argument and argument specifying macro
10864 for which to generate tests.
10865 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
10866 [PYTHON] (tgmath3-macro-tests): Likewise.
10867 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
10868 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
10869 not test-tgmath3.c.
10870 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
10871 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
10872 to CFLAGS.
10873 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
10874 [PYTHON] ($(foreach
10875 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
10876 rule.
10877 [PYTHON] (tests-special): Add
10878 $(objpfx)test-tgmath3-macro-list.out.
10879 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
10880
10881 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
10882 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
10883 later.
10884
10885 [BZ #22639]
10886 * time/tzset.c (SECSPERDAY): Cast to time_t.
10887 * time/tst-y2039.c: New file.
10888 * time/Makefile (tests): Add tst-y2039.
10889
10890 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10891
10892 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10893 (PREFETCH_ONE_SET): Remove duplicate line.
10894
10895 2018-05-17 Florian Weimer <fweimer@redhat.com>
10896
10897 * sysdeps/generic/math-type-macros-double.h: Include
10898 <math-nan-payload-double.h> after <libm-alias-double.h>.
10899 * sysdeps/generic/math-type-macros-float.h: Include
10900 <math-nan-payload-float.h> after <libm-alias-float.h>.
10901 * sysdeps/generic/math-type-macros-float128.h: Include
10902 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
10903 * sysdeps/generic/math-type-macros-ldouble.h: Include
10904 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
10905
10906 2018-05-17 Andreas Schwab <schwab@suse.de>
10907
10908 * resolv/res_send.c (__res_context_send): Don't set errno when
10909 returing error after malloc failure.
10910
10911 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
10912
10913 * nptl/allocatestack.c (allocate_stack): Remove the
10914 !__ASSUME_PRIVATE_FUTEX paths.
10915 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
10916 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
10917 Likewise.
10918 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
10919 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10920 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10921 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10922 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
10923 !__ASSUME_PRIVATE_FUTEX path.
10924 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
10925 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
10926 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
10927 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
10928 !__ASSUME_PRIVATE_FUTEX macros.
10929 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
10930 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
10931 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
10932 * sysdeps/unix/sysv/linux/kernel-features.h
10933 (__ASSUME_PRIVATE_FUTEX): Removed.
10934
10935 2018-05-17 Joseph Myers <joseph@codesourcery.com>
10936
10937 * math/Makefile (libm-narrow-fns): Add div.
10938 (libm-test-funcs-narrow): Likewise.
10939 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
10940 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
10941 * math/gen-auto-libm-tests.c (test_functions): Add div.
10942 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
10943 (NARROW_DIV_ROUND_TO_ODD): Likewise.
10944 (NARROW_DIV_TRIVIAL): Likewise.
10945 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
10946 macro.
10947 (__ddivl): Likewise.
10948 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
10949 ddiv.
10950 (CFLAGS-nldbl-ddiv.c): New variable.
10951 (CFLAGS-nldbl-fdiv.c): Likewise.
10952 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
10953 __nldbl_ddivl.
10954 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
10955 prototype.
10956 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
10957 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
10958 * math/auto-libm-test-in: Add tests of div.
10959 * math/auto-libm-test-out-narrow-div: New generated file.
10960 * math/libm-test-narrow-div.inc: New file.
10961 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
10962 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
10963 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
10964 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
10965 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
10966 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
10967 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
10968 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
10969 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
10970 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
10971 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
10972 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
10973 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
10974 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
10975 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
10976 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
10977 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
10978 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
10979 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10980 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
10981 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10982 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10983 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10984 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10985 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10986 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10987 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10988 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10989 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10990 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10991 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10992 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10993 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
10994 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
10995 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
10996 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
10997 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
10998 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10999 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11000 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11001 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11002 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11003 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11004 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11005
11006 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11007
11008 [BZ #23178]
11009 * nscd/nscd-client.h (sendfileall): Remove prototype.
11010 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11011 (handle_request): Use writeall instead of sendfileall.
11012 * nscd/aicache.c (addhstaiX): Likewise.
11013 * nscd/grpcache.c (cache_addgr): Likewise.
11014 * nscd/hstcache.c (cache_addhst): Likewise.
11015 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11016 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11017 * nscd/pwdcache.c (cache_addpw): Likewise.
11018 * nscd/servicescache.c (cache_addserv): Likewise.
11019 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11020 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11021 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11022 Remove define.
11023
11024 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11025
11026 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11027 Include <string/strncat.c>.
11028 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11029 alias.
11030 (__GI___strncat): New hidden alias.
11031
11032 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11033
11034 * sysdeps/mips/mips32/libm-test-ulps: Update.
11035 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11036
11037 2018-05-16 Florian Weimer <fweimer@redhat.com>
11038
11039 * support/Makefile (libsupport-routines): Add support_quote_blob,
11040 support_test_compare_blob.
11041 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11042 * support/check.h (TEST_COMPARE_BLOB): Define.
11043 (support_test_compare_blob): Declare.
11044 * support/support.h (support_quote_blob): Declare.
11045 * support/support_quote_blob.c: New file.
11046 * support/support_test_compare_blob.c: Likewise.
11047 * support/tst-support_quote_blob.c: Likewise.
11048 * support/tst-test_compare_blob.c: Likewise.
11049
11050 2018-05-16 Florian Weimer <fweimer@redhat.com>
11051
11052 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11053 of <strtod_nan_double.h>.
11054 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11055 instead of SET_MANTISSA.
11056 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11057 of include <strtod_nan_float.h>.
11058 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11059 instead of <strtod_nan_ldouble.h>.
11060 * stdlib/strtod_nan_double.h: Move to ...
11061 * sysdeps/generic/math-nan-payload-double.h: ... here.
11062 (FLOAT): Remove definition.
11063 (SET_MANTISSA): Rename to ...
11064 (SET_NAN_PAYLOAD): ... this.
11065 * stdlib/strtod_nan_float.h: Move to ...
11066 * sysdeps/generic/math-nan-payload-float.h: ... here.
11067 (FLOAT): Remove definition.
11068 (SET_MANTISSA): Rename to ...
11069 (SET_NAN_PAYLOAD): ... this.
11070 * sysdeps/generic/math-type-macros-double.h: Include
11071 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11072 instead of <math-svid-compat.h>.
11073 * sysdeps/generic/math-type-macros-float.h: Include
11074 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11075 instead of <math-svid-compat.h>.
11076 * sysdeps/generic/math-type-macros-float128.h: Include
11077 <math-nan-payload-float128.h>.
11078 * sysdeps/generic/math-type-macros-ldouble.h: Include
11079 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11080 instead of <math-svid-compat.h>.
11081 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11082 check for definition.
11083 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11084 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11085 Include <ieee754_float128.h>.
11086 (FLOAT): Remove definition.
11087 (SET_MANTISSA): Rename to ...
11088 (SET_NAN_PAYLOAD): ... this.
11089 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11090 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11091 Do not include <float128_private.h>.
11092 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11093 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11094 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11095 (FLOAT): Remove definition.
11096 (SET_MANTISSA): Rename to ...
11097 (SET_NAN_PAYLOAD): ... this.
11098 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11099 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11100 (FLOAT): Remove definition.
11101 (SET_MANTISSA): Rename to ...
11102 (SET_NAN_PAYLOAD): ... this.
11103 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11104 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11105 (FLOAT): Remove definition.
11106 (SET_MANTISSA): Rename to ...
11107 (SET_NAN_PAYLOAD): ... this.
11108 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11109 of "../stdlib/strtod_nan_double.h".
11110 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11111 of "../stdlib/strtod_nan_float.h".
11112 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11113 instead of "../stdlib/strtod_nan_ldouble.h".
11114 * manual/arith.texi (Parsing of Floats): Adjust comment.
11115
11116 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11117
11118 * math/Makefile (libm-narrow-fns): Add mul.
11119 (libm-test-funcs-narrow): Likewise.
11120 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11121 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11122 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11123 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11124 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11125 (NARROW_MUL_TRIVIAL): Likewise.
11126 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11127 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11128 macro.
11129 (__dmull): Likewise.
11130 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11131 dmul.
11132 (CFLAGS-nldbl-dmul.c): New variable.
11133 (CFLAGS-nldbl-fmul.c): Likewise.
11134 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11135 __nldbl_dmull.
11136 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11137 prototype.
11138 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11139 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11140 * math/auto-libm-test-in: Add tests of mul.
11141 * math/auto-libm-test-out-narrow-mul: New generated file.
11142 * math/libm-test-narrow-mul.inc: New file.
11143 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11144 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11145 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11146 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11147 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11148 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11149 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11150 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11151 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11152 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11153 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11154 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11155 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11156 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11157 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11158 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11159 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11160 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11161 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11162 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11163 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11164 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11165 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11166 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11167 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11168 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11169 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11170 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11171 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11172 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11173 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11174 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11175 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11176 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11177 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11178 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11179 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11180 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11181 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11182 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11183 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11184 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11185 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11186 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11187
11188 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11189
11190 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11191 with *%eax in call.
11192
11193 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11194
11195 * sysdeps/i386/ldsodefs.h: Removed.
11196 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11197 * sysdeps/x86/ldsodefs.h: This.
11198 (La_i86_regs): New.
11199 (La_i86_retval): Likewise.
11200 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11201 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11202
11203 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11204
11205 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11206 unnecessary testl.
11207
11208 2018-05-13 Alan Modra <amodra@gmail.com>
11209
11210 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11211 R_PARISC_TLS_DTPOFF32 reloc addend.
11212
11213 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11214
11215 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11216 * math/math.h: Restrict the prototype definition for the functions
11217 issignaling(_Float128) and iszero(_Float128); and template
11218 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11219 __HAVE_FLOAT128_UNLIKE_LDBL.
11220 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11221 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11222 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11223 __f128() constants; define the type _Float128 as long double;
11224 and reuse long double in __CFLOAT128.
11225
11226 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11227
11228 * sysdeps/generic/math_private.h: Do not include
11229 <math-barriers.h>.
11230 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11231 <math_private.h>.
11232 * math/fromfp.h: Include <math-barriers.h>.
11233 * math/math-narrow.h: Likewise.
11234 * math/s_nextafter.c: Likewise.
11235 * math/s_nexttowardf.c: Likewise.
11236 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11237 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11238 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11239 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11240 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11241 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11242 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11243 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11244 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11245 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11246 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11247 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11248 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11249 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11250 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11251 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11252 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11253 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11254 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11255 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11256 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11257 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11258 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11259 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11260 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11261 * sysdeps/ieee754/k_standardl.c: Likewise.
11262 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11263 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11264 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11265 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11266 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11267 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11268 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11269 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11270 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11271 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11272 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11273 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11274 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11275 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11276 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11277 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11278 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11279 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11280 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11281 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11282 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11283 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11284
11285 2018-05-11 Florian Weimer <fweimer@redhat.com>
11286
11287 Use 64-bit epoch values in the time zone file parser.
11288 * include/time.h (internal_time_t): Define.
11289 (__tzfile_compute): Use it.
11290 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11291 member.
11292 (transitions): Switch to internal_time_t.
11293 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11294 types.
11295 (__tzfile_compute): Use internal_time_t for timer argument. Check
11296 for truncation before calling __offtime.
11297
11298 2018-05-11 Florian Weimer <fweimer@redhat.com>
11299
11300 [BZ #23166]
11301 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11302 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11303 Likewise.
11304 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11305 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11306 export without --enable-obsolete-rpc.
11307 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11308 symbol. This should not have been exported, ever.
11309
11310 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11311
11312 [BZ #23152]
11313 * localedata/locales/gd_GB (abmon): Fix typo in May:
11314 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
11315
11316 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11317
11318 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11319 Use multiple registers to copy data in loop tail.
11320
11321 * sysdeps/aarch64/multiarch/memmove_falkor.S
11322 (__memmove_falkor): Use multiple registers to move data in
11323 loop tail.
11324
11325 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11326
11327 * math/math-underflow.h: New file.
11328 * sysdeps/generic/math_private.h: Do not include <float.h>.
11329 (fabs_tg): Remove macro. Moved to math-underflow.h.
11330 (min_of_type_f): Likewise.
11331 (min_of_type_): Likewise.
11332 (min_of_type_l): Likewise.
11333 (min_of_type_f128): Likewise.
11334 (min_of_type): Likewise.
11335 (math_check_force_underflow): Likewise.
11336 (math_check_force_underflow_nonneg): Likewise.
11337 (math_check_force_underflow_complex): Likewise.
11338 * math/e_exp2_template.c: Include <math-underflow.h>.
11339 * math/k_casinh_template.c: Likewise.
11340 * math/s_catan_template.c: Likewise.
11341 * math/s_catanh_template.c: Likewise.
11342 * math/s_ccosh_template.c: Likewise.
11343 * math/s_cexp_template.c: Likewise.
11344 * math/s_clog10_template.c: Likewise.
11345 * math/s_clog_template.c: Likewise.
11346 * math/s_csin_template.c: Likewise.
11347 * math/s_csinh_template.c: Likewise.
11348 * math/s_csqrt_template.c: Likewise.
11349 * math/s_ctan_template.c: Likewise.
11350 * math/s_ctanh_template.c: Likewise.
11351 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11352 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11353 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11354 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11355 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11356 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11357 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11358 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11359 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11360 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11361 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11362 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11363 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11364 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11365 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11366 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11367 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11368 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11369 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11370 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11371 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11372 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11373 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11374 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11375 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11376 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11377 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11378 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11379 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11380 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11381 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11382 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11383 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11384 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11385 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11386 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11387 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11388 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11389 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11390 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11391 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11392 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11393 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11394 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11395 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11396 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11397 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11398 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11399 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11400 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11401 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11402 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11403 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11404 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11405 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11406 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11407 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11408 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11409 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11410 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11411 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11412 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11413 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11414 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11415 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11416 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11417 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11418 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11419 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11420 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11421 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11422 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11423 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11424 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
11425 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11426 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11427 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11428 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11429 * sysdeps/x86/fpu/powl_helper.c: Likewise.
11430 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
11431 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
11432 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11433 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
11434 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
11435
11436 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11437
11438 * sysdeps/generic/math-barriers.h: New file.
11439 * sysdeps/generic/math_private.h [!math_opt_barrier]
11440 (math_opt_barrier): Move to math-barriers.h.
11441 [!math_opt_barrier] (math_force_eval): Likewise.
11442 * sysdeps/aarch64/fpu/math-barriers.h: New file.
11443 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
11444 math-barriers.h.
11445 (math_force_eval): Likewise.
11446 * sysdeps/alpha/fpu/math-barriers.h: New file.
11447 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
11448 math-barriers.h.
11449 (math_force_eval): Likewise.
11450 * sysdeps/x86/fpu/math-barriers.h: New file.
11451 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
11452 math-barriers.h.
11453 (math_force_eval): Likewise.
11454 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
11455 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
11456 multiple-include guard for rename.
11457 * sysdeps/powerpc/fpu/math-barriers.h: New file.
11458 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
11459 math-barriers.h.
11460 (math_force_eval): Likewise.
11461
11462 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
11463
11464 [BZ #22786]
11465 CVE-2018-11236
11466 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
11467 computation.
11468 * stdlib/Makefile (test-bz22786): New test.
11469 * stdlib/test-bz22786.c: New test.
11470
11471 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11472
11473 * include/math-narrow-eval.h: New file. Contents moved from ....
11474 * sysdeps/generic/math_private.h: ... here.
11475 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
11476 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11477 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
11478 * stdlib/strtod_l.c: Likewise.
11479 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11480 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11481 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11482 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11483 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11484 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11485 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11486 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11487 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11488 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
11489 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11490 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
11491 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11492 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11493 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11494 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11495 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11496 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11497 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11498 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11499 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11500 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11501 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11502 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11503 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11504 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11505 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11506 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11507 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
11508
11509 2018-05-08 Andreas Schwab <schwab@suse.de>
11510
11511 * sysdeps/nptl/internaltypes.h: Fix comment.
11512
11513 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
11514
11515 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11516 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
11517 hidden.
11518
11519 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
11520
11521 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
11522 of I into loop header.
11523 * benchtests/bench-memmove-walk.c
11524 (test_main): Likewise.
11525
11526 2018-05-07 Alexandre Oliva <oliva@gnu.org>
11527
11528 Revert:
11529 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11530 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11531
11532 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
11533
11534 [BZ #20419]
11535 * elf/dl-load.c (open_verify): Fix stack overflow.
11536 * elf/Makefile (tst-big-note): New test.
11537 * elf/tst-big-note-lib.S: New.
11538 * elf/tst-big-note.c: New.
11539
11540 2018-05-04 Joseph Myers <joseph@codesourcery.com>
11541
11542 * scripts/abilist.awk: Ignore absolute symbols.
11543 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
11544 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
11545 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
11546 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
11547 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
11548 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
11549 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11550 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
11551 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
11552 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
11553 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
11554 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
11555 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
11556 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
11557 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
11558 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
11559 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
11560 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
11561 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11562 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
11563 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11564 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
11565 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
11566 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
11567 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
11568 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
11569 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
11570 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
11571 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11572 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
11573 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
11574 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11575 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
11576 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11577 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
11578 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
11579 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
11580 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
11581 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
11582 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
11583 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
11584 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11585 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
11586 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
11587 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11588 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
11589 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11590 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
11591 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
11592 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
11593 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
11594 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
11595 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
11596 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
11597 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11598 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
11599 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
11600 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11601 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
11602 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11603 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
11604 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
11605 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
11606 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
11607 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
11608 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
11609 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
11610 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11611 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
11612 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
11613 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11614 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
11615 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11616 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
11617 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
11618 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
11619 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
11620 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
11621 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
11622 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
11623 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11624 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
11625 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
11626 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11627 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
11628 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11629 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
11630 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
11631 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
11632 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
11633 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
11634 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
11635 Likewise.
11636 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
11637 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11638 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
11639 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
11640 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11641 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
11642 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11643 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
11644 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
11645 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
11646 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
11647 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
11648 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
11649 Likewise.
11650 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
11651 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11652 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
11653 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
11654 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11655 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
11656 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11657 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
11658 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
11659 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
11660 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
11661 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
11662 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
11663 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
11664 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11665 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
11666 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
11667 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11668 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
11669 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11670 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
11671 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
11672 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
11673 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
11674 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11675 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
11676 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
11677 Likewise.
11678 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
11679 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
11680 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
11681 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
11682 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11683 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
11684 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
11685 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
11686 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
11687 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
11688 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
11689 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
11690 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
11691 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11692 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
11693 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
11694 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
11695 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
11696 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
11697 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
11698 Likewise.
11699 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
11700 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
11701 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
11702 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11703 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
11704 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11705 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
11706 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
11707 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
11708 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
11709 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11710 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
11711 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
11712 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11713 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
11714 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
11715 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
11716 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
11717 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11718 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
11719 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
11720 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11721 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
11722 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11723 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
11724 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
11725 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
11726 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
11727 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
11728 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11729 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
11730 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
11731 Likewise.
11732 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
11733 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
11734 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
11735 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
11736 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11737 Likewise.
11738 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
11739 Likewise.
11740 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
11741 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
11742 Likewise.
11743 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
11744 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11745 Likewise.
11746 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11747 Likewise.
11748 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
11749 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
11750 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
11751 Likewise.
11752 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
11753 Likewise.
11754 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
11755 Likewise.
11756 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
11757 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
11758 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11759 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
11760 Likewise.
11761 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
11762 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
11763 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
11764 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11765 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11766 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
11767 Likewise.
11768 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
11769 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11770 Likewise.
11771 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11772 Likewise.
11773 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
11774 Likewise.
11775 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
11776 Likewise.
11777 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
11778 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
11779 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
11780 Likewise.
11781 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
11782 Likewise.
11783 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
11784 Likewise.
11785 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
11786 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
11787 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
11788 Likewise.
11789 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
11790 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11791 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
11792 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
11793 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11794 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
11795 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11796 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
11797 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
11798 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
11799 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
11800 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
11801 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
11802 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
11803 Likewise.
11804 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11805 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
11806 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
11807 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11808 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
11809 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11810 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
11811 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
11812 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
11813 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
11814 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
11815 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
11816 Likewise.
11817 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11818 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
11819 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
11820 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11821 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
11822 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11823 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
11824 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
11825 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
11826 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
11827 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
11828 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
11829 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
11830 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11831 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
11832 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
11833 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11834 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
11835 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11836 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
11837 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
11838 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
11839 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
11840 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
11841 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
11842 Likewise.
11843 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
11844 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11845 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
11846 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
11847 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11848 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
11849 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11850 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
11851 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
11852 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
11853 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
11854 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
11855 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
11856 Likewise.
11857 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
11858 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11859 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
11860 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
11861 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11862 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
11863 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11864 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
11865 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
11866 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
11867 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
11868 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
11869 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
11870 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
11871 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11872 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
11873 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
11874 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11875 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
11876 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11877 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
11878 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
11879 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
11880 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
11881 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
11882 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
11883 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
11884 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
11885 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11886 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
11887 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
11888 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11889 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
11890 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11891 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
11892 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
11893 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
11894 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
11895
11896 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
11897
11898 [BZ #23137]
11899 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
11900 Use atomic_load_acquire to load __tid.
11901
11902 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11903
11904 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
11905 Restore the pointer into %rdx, after syscall and use %rdx,
11906 instead of %rsi, to restore context.
11907
11908 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11909
11910 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
11911 Pop the pointer into %rdx after syscall and use %rdx, instead
11912 of %rsi, to restore context.
11913
11914 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11915
11916 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
11917 handlers after setjmp.
11918 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
11919 defined.
11920 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
11921 <libc-pointer-arith.h>.
11922 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
11923 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
11924 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
11925 _JUMP_BUF_SIGSET_BITS_PER_WORD.
11926 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
11927 * sysdeps/x86/__longjmp_cancel.S: New file.
11928 * sysdeps/x86/longjmp.c: Likewise.
11929 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
11930
11931 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11932
11933 * NEWS: Add ustat.h deprecation entry.
11934 * bits/ustat.h: Remove file.
11935 * misc/sys/ustat.h: Likewise.
11936 * misc/ustat.h: Likewise.
11937 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
11938 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
11939 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
11940 compatibility mode.
11941 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
11942 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
11943 generic Linux implementation.
11944
11945 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11946
11947 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
11948 * math/w_expl_compat.c: Likewise.
11949 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
11950
11951 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11952
11953 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11954
11955 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11956
11957 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
11958 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
11959 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
11960 Remove.
11961 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
11962 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11963 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11964 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
11965 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
11966 and SYSCALL_LL64.
11967
11968 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11969
11970 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
11971
11972 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
11973 * math/w_asin_template.c: Likewise.
11974 * math/w_atanh_template.c: Likewise.
11975
11976 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11977
11978 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
11979 to powerpc/powerpc64/be for big-endian.
11980 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
11981 little-endian.
11982
11983 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
11984 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
11985 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
11986 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
11987 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
11988 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
11989 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
11990 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
11991 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
11992 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
11993 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
11994 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
11995 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
11996 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
11997 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
11998 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
11999 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12000 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12001 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12002 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12003 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12004 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12005 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12006 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12007 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12008 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12009 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12010 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12011 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12012 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12013 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12014 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12015
12016 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12017 adjusted to imply powerpc64 and older processors on powerpc64/be.
12018 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12019 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12020 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12021 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12022 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12023 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12024 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12025 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12026 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12027 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12028 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12029 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12030 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12031 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12032 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12033 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12034 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12035 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12036 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12037 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12038 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12039 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12040 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12041 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12042 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12043 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12044 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12045 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12046 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12047 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12048 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12049
12050 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12051 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12052 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12053 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12054
12055 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12056 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12057 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12058 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12059
12060 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12061 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12062 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12063 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12064 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12065 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12066 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12067 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12068 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12069 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12070 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12071
12072 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12073 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12074 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12075 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12076 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12077 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12078 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12079 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12080 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12081 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12082 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12083
12084 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12085 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12086 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12087 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12088 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12089 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12090 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12091 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12092 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12093 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12094 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12095 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12096
12097 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12098 and adjusted to imply olders processors.
12099 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12100 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12101 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12102 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12103 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12104 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12105 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12106 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12107 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12108 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12109 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12110
12111 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12112 powerpc64/le.
12113 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12114 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12115
12116 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12117 powerpc64le.
12118 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12119 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12120
12121 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12122 powerpc64/be.
12123 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12124 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12125 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12126
12127 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12128 powerpc64 and adjusted.
12129 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12130 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12131 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12132 Likewise.
12133
12134 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12135
12136 * sysdeps/tile: Remove.
12137 * sysdeps/unix/sysv/linux/tile: Likewise.
12138 * README (tilegx-*-linux-gnu): Remove from list of supported
12139 configurations.
12140 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12141 contribution of support for generic Linux kernel syscall
12142 interface.
12143 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12144 tilegx configurations.
12145 (Config.install_linux_headers): Do not handle tile.
12146 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12147 in comment.
12148 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12149 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12150 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12151 conditional undefine and redefine.
12152 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12153 in comment.
12154 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12155 conditional undefine and redefine.
12156
12157 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12158
12159 * signal/tst-sigaction.c: New file to test BZ #23069.
12160 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12161
12162 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12163
12164 [BZ #22766]
12165 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12166 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12167 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12168 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12169
12170 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12171
12172 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12173 _DIRENT_MATCHES_DIRENT64 is not defined.
12174 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12175 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12176 is defined.
12177 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12178 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12179
12180 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12181
12182 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12183 version to GCC 8 branch.
12184
12185 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12186
12187 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12188 (check_no_hidden): Use type of original function when declaring
12189 alias.
12190
12191 * sysdeps/unix/sysv/linux/sys/ptrace.h
12192 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12193 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12194 (struct __ptrace_seccomp_metadata): New type.
12195 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12196 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12197 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12198 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12199 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12200 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12201 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12202 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12203 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12204 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12205 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12206 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12207 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12208 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12209 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12210 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12211
12212 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12213
12214 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12215 defined.
12216 * dirent/versionsort.c (versionsort): Likewise.
12217 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12218 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12219 * dirent/versionsort64.c (versionsort64): Likewise.
12220 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12221 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12222 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12223 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12224 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12225 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12226 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12227 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12228 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12229 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12230 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12231 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12232 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12233 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12234
12235 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12236
12237 * elf/elf.h (NT_PPC_PKEY): New macro.
12238
12239 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12240
12241 [BZ #23094]
12242 * localedata/locales/hr_HR: fix thousands_sep and
12243 mon_thousands_sep
12244
12245 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12246
12247 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12248 (XTABS): Define to TAB3.
12249
12250 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12251
12252 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12253
12254 * dirent/scandir-tail-common.c: New file.
12255 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12256 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12257 * dirent/scandir.c: Use scandir-tail-common.c.
12258 * dirent/scandirat.c: Likewise.
12259 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12260 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12261 if _DIRENT_MATCHES_DIRENT64 is defined.
12262 * dirent/scandirat64.c (scandirat64): Likewise.
12263 * include/dirent.h (__scandir_tail): Only define iff
12264 _DIRENT_MATCHES_DIRENT64 is not defined.
12265 (__scandir64_tail): Define regardless.
12266 (__scandirat, scandirat64): Remove libc_hidden_proto.
12267 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12268 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12269 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12270 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12271 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12272 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12273 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12274
12275 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12276
12277 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12278 New macro.
12279 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12280 Increase to 24.
12281 (_dl_aarch64_cap_flags): Add asimdfhm.
12282
12283 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12284
12285 * sysdeps/nios2/libm-test-ulps: Update.
12286
12287 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12288
12289 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12290 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12291
12292 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12293 requirements.
12294 (_DIRENT_MATCHES_DIRENT64): Undef
12295 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12296 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12297 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12298 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12299 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12300 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12301 use getdents64 syscalls as base.
12302 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12303 symbol if required.
12304 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12305 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12306 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12307 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12308 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12309 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12310 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12311 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12312 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12313 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12314 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
12315
12316 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12317
12318 * scripts/test_printers_common.py (init_test): Disable lock elision.
12319
12320 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12321
12322 * math/test-tgmath.c (count_double, count_float,
12323 count_ldouble, count_cdouble, count_cfloat,
12324 count_cldouble): Use volatile int.
12325
12326 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12327
12328 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12329 (conformtest-xfail-conds): Add i386-gnu.
12330 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12331 i386-gnu.
12332 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12333 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12334 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12335 msqid_ds.msg_lrpid): Likewise.
12336 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12337 Likewise.
12338 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
12339 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
12340 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
12341 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
12342 unsigned int.
12343 (struct statvfs64): Likewise.
12344 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
12345 Likewise.
12346 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
12347 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
12348 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
12349 instead of wait_queue.
12350 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
12351 instead of vm_area_struct.
12352 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
12353 struct sched_param definition to it.
12354 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12355 * bits/types/struct_sched_param.h: New file.
12356 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
12357 <bits/types/struct_sched_param.h> instead of <sched.h>.
12358 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
12359 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
12360 generic version but include <bits/pthreadtypes.h> to make struct
12361 sigevent's sigev_notify_attributes field a pthread_attr_t*.
12362 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
12363 non-compliant.
12364 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
12365 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
12366 [__USE_XOPEN] (OFDEL): New macro.
12367 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
12368 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
12369 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
12370 prototypes.
12371 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
12372 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
12373 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
12374 non-compliant.
12375 * sysdeps/i386/sys/ucontext.h: Likewise.
12376 * sysdeps/m68k/sys/ucontext.h: Likewise.
12377 * sysdeps/mips/sys/ucontext.h: Likewise.
12378 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
12379 * sysdeps/mach/hurd/i386/Makefile
12380 (test-xfail-POSIX/fcntl.h/conform): Add.
12381 (test-xfail-POSIX/signal.h/conform): Add.
12382 (test-xfail-POSIX/semaphore.h/conform): Add.
12383 (test-xfail-POSIX/regex.h/conform): Add.
12384 (test-xfail-POSIX/aio.h/conform): Add.
12385 (test-xfail-POSIX/mqueue.h/conform): Add.
12386 (test-xfail-POSIX/sys/types.h/conform): Add.
12387 (test-xfail-UNIX98/fcntl.h/conform): Add.
12388 (test-xfail-UNIX98/netdb.h/conform): Add.
12389 (test-xfail-UNIX98/signal.h/conform): Add.
12390 (test-xfail-UNIX98/semaphore.h/conform): Add.
12391 (test-xfail-UNIX98/regex.h/conform): Add.
12392 (test-xfail-UNIX98/aio.h/conform): Add.
12393 (test-xfail-UNIX98/ftw.h/conform): Add.
12394 (test-xfail-UNIX98/mqueue.h/conform): Add.
12395 (test-xfail-UNIX98/netinet/in.h/conform): Add.
12396 (test-xfail-UNIX98/sys/wait.h/conform): Add.
12397 (test-xfail-UNIX98/sys/sem.h/conform): Add.
12398 (test-xfail-UNIX98/sys/uio.h/conform): Add.
12399 (test-xfail-UNIX98/sys/socket.h/conform): Add.
12400 (test-xfail-UNIX98/sys/types.h/conform): Add.
12401 (test-xfail-UNIX98/stdlib.h/conform): Add.
12402 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
12403 (test-xfail-POSIX2008/fcntl.h/conform): Add.
12404 (test-xfail-POSIX2008/netdb.h/conform): Add.
12405 (test-xfail-POSIX2008/signal.h/conform): Add.
12406 (test-xfail-POSIX2008/semaphore.h/conform): Add.
12407 (test-xfail-POSIX2008/regex.h/conform): Add.
12408 (test-xfail-POSIX2008/aio.h/conform): Add.
12409 (test-xfail-POSIX2008/mqueue.h/conform): Add.
12410 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
12411 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
12412 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
12413 (test-xfail-POSIX2008/sys/types.h/conform): Add.
12414 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
12415 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
12416 (test-xfail-XOPEN2K/netdb.h/conform): Add.
12417 (test-xfail-XOPEN2K/signal.h/conform): Add.
12418 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
12419 (test-xfail-XOPEN2K/regex.h/conform): Add.
12420 (test-xfail-XOPEN2K/aio.h/conform): Add.
12421 (test-xfail-XOPEN2K/ftw.h/conform): Add.
12422 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
12423 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
12424 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
12425 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
12426 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
12427 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
12428 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
12429 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
12430 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
12431 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
12432 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
12433 (test-xfail-XOPEN2K8/signal.h/conform): Add.
12434 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
12435 (test-xfail-XOPEN2K8/regex.h/conform): Add.
12436 (test-xfail-XOPEN2K8/aio.h/conform): Add.
12437 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
12438 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
12439 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
12440 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
12441 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
12442 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
12443 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
12444 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
12445 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
12446 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
12447 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
12448 i386-gnu.
12449 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
12450 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
12451
12452 2018-04-18 Joseph Myers <joseph@codesourcery.com>
12453
12454 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
12455 --enable-obsolete for powerpc-linux-gnuspe.
12456
12457 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12458
12459 * conform/data/sys/un.h-data: Allow sun_ prefix.
12460 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
12461 prototypes.
12462 * sysdeps/mach/include/mach.h: Likewise.
12463 * sysdeps/mach/include/mach/mig_support.h: Likewise.
12464 * sysdeps/mach/include/mach_error.h: Likewise.
12465
12466 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12467
12468 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
12469 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
12470 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
12471 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
12472
12473 2018-04-16 Andreas Schwab <schwab@suse.de>
12474
12475 [BZ #19527]
12476 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
12477
12478 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
12479
12480 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
12481 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
12482
12483 2018-04-12 DJ Delorie <dj@redhat.com>
12484
12485 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12486 version to 4.16.
12487
12488 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
12489
12490 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
12491 (struct kernel_sigaction): Use the same definition on 31bit as is used
12492 on 64bit.
12493
12494 2018-04-09 Florian Weimer <fweimer@redhat.com>
12495
12496 [BZ #23037]
12497 * resolv/res_send.c (send_dg): Use designated initializers instead
12498 of assignment to zero-initialize other fields of struct mmsghdr.
12499
12500 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12501
12502 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
12503 __READDIR_ALIAS): Undefine after usage.
12504 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
12505 __READDIR_R_ALIAS): Likewise.
12506 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
12507 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
12508 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
12509 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
12510 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
12511 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
12512 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
12513 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12514 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
12515 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
12516 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
12517 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
12518 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
12519 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
12520 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
12521 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
12522 * sysdeps/unix/sysv/linux/readdir.c: New file.
12523 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
12524 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
12525 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
12526
12527 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
12528
12529 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
12530
12531 * manual/charset.texi (Converting a Character): Fix typo.
12532
12533 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12534
12535 * sysdeps/sparc/fpu/libm-test-ulps: Update.
12536
12537 * sysdeps/arm/libm-test-ulps: Update.
12538
12539 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
12540 as base implementation.
12541 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
12542 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12543 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12544 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12545 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12546 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
12547 remove unrequired definitions and update comments.
12548 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
12549 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
12550 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
12551 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
12552 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
12553 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
12554 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
12555 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
12556 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
12557 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
12558 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
12559 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
12560 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
12561 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
12562 and RESET_SA_RESTORER hooks.
12563
12564 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
12565
12566 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12567
12568 2018-04-05 Florian Weimer <fweimer@redhat.com>
12569
12570 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
12571 integer overflow, memory leak on error, and indeterminate errno
12572 value. Add a null wide character to terminate the result string.
12573 * manual/charset.texi (Converting a Character): Mention embedded
12574 null bytes in the mbrtowc input string. Explain what happens in
12575 the -2 result case. Do not claim that mbrtowc is simple or
12576 obvious to use. Adjust the description of the code example. Use
12577 @code, not @var, for concrete variables.
12578
12579 2018-04-05 Florian Weimer <fweimer@redhat.com>
12580
12581 * manual/examples/mbstouwcs.c: New file.
12582 * manual/charset.texi (Converting a Character): Include it.
12583
12584 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
12585
12586 * include/dirent.h (dirfd): Add hidden proto.
12587 * dirent/dirfd.c (dirfd): Add hidden def.
12588 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
12589 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
12590
12591 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12592
12593 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
12594 sin, cos and sincos to 1 ULP.
12595
12596 2018-04-04 Maciej W. Rozycki <macro@mips.com>
12597
12598 [BZ #19818]
12599 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
12600 symbols.
12601 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
12602 * elf/tst-absolute-sym.c: New file.
12603 * elf/tst-absolute-sym-lib.c: New file.
12604 * elf/tst-absolute-sym-lib.lds: New file.
12605 * elf/Makefile (tests): Add `tst-absolute-sym'.
12606 (modules-names): Add `tst-absolute-sym-lib'.
12607 (LDLIBS-tst-absolute-sym-lib.so): New variable.
12608 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
12609 ($(objpfx)tst-absolute-sym): New dependency.
12610
12611 [BZ #19818]
12612 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
12613 parameter.
12614 (SYMBOL_ADDRESS): New macro.
12615 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
12616 SYMBOL_ADDRESS for symbol address calculation.
12617 * elf/dl-runtime.c (_dl_fixup): Likewise.
12618 (_dl_profile_fixup): Likewise.
12619 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
12620 * elf/rtld.c (dl_main): Likewise.
12621 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
12622 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
12623 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
12624 (elf_machine_rela): Likewise.
12625 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
12626 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
12627 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
12628 (elf_machine_rela): Likewise.
12629 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
12630 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
12631 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
12632 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
12633 Likewise.
12634 (elf_machine_reloc): Likewise.
12635 (elf_machine_got_rel): Likewise.
12636 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
12637 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
12638 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
12639 Likewise.
12640 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12641 Likewise.
12642 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
12643 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
12644 Likewise.
12645 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
12646 Likewise.
12647 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12648 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
12649 Likewise.
12650 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12651 Likewise.
12652 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
12653 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
12654
12655 2018-04-04 Zack Weinberg <zackw@panix.com>
12656
12657 * sysdeps/generic/internal-signals.h: Include signal.h,
12658 sigsetops.h, and stdbool.h.
12659 (__libc_signal_block_all): Actually block all signals.
12660 (__libc_signal_block_app): Likewise.
12661 (__libc_signal_restore_set): Actually restore the signal mask.
12662
12663 2018-04-04 Florian Weimer <fweimer@redhat.com>
12664
12665 inet: Actually build and run tst-deadline.
12666 * inet/Makefile (tests-internal): Add tst-deadline and do not
12667 overwrite the variable.
12668 (tests-static-internal): Remove variable.
12669
12670 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
12671
12672 [BZ #22947]
12673 * bits/uio-ext.h (RWF_APPEND): New.
12674 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
12675 * manual/llio.texi: Document RWF_APPEND.
12676 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
12677 (RWF_SUPPORTED): Add RWF_APPEND.
12678
12679 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12680
12681 [BZ #22391]
12682 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
12683 check for internal nptl signals.
12684 * nptl/sigaction.c (__sigaction): Likewise.
12685 * signal/sigaddset.c (sigaddset): Likewise.
12686 * signal/sigdelset.c (sigdelset): Likewise.
12687 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
12688 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
12689 value.
12690 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
12691 to filter out internal nptl signals.
12692 * signal/tst-sigset.c (do_test): Check ech signal indidually and
12693 also check realtime signals using standard macros.
12694 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
12695 __is_internal_signal, __libc_signal_block_all,
12696 __libc_signal_block_app, __libc_signal_restore_set): New functions.
12697 * sysdeps/nptl/sigfillset.c: Remove file.
12698 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
12699 Change return to bool.
12700 (__clear_internal_signals): Remove SIGTIMER clean since it is
12701 equal to SIGCANEL on Linux.
12702 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
12703 signal set was constructed using standard functions.
12704
12705 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
12706
12707 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
12708 ifname is too long.
12709 * hurd/hurdsig.c (interrupted_reply_port_location): Use
12710 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
12711 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
12712 hidden def.
12713 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
12714 * signal/sigaddset.c: Include <sigsetopts.h>.
12715 * signal/sigdelset.c: Likewise.
12716
12717 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12718
12719 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
12720 (__cos): Likewise.
12721 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
12722 logic as sin and cos.
12723
12724 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12725
12726 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
12727 inputs. Return correct sign.
12728 (do_sincos): Remove small input check before do_sin, let do_sin set
12729 the sign.
12730 (__sin): Likewise.
12731 (__cos): Likewise.
12732
12733 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12734
12735 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
12736 (do_cos_slow): Likewise.
12737 (do_sin_slow): Likewise.
12738 (reduce_and_compute): Likewise.
12739 (slow): Likewise.
12740 (slow1): Likewise.
12741 (slow2): Likewise.
12742 (sloww): Likewise.
12743 (sloww1): Likewise.
12744 (sloww2): Likewise.
12745 (bslow): Likewise.
12746 (bslow1): Likewise.
12747 (bslow2): Likewise.
12748 (cslow2): Likewise.
12749
12750 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12751
12752 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
12753 (do_cos): Remove corp parameter and calculations.
12754 (do_sin): Likewise.
12755 (do_sincos): Remove cor variable.
12756 (__sin): Use do_sincos for huge inputs.
12757 (__cos): Likewise.
12758 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12759 (reduce_and_compute_sincos): Remove unused function.
12760
12761 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12762
12763 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
12764 reduce_sincos, improve accuracy to 136 bits.
12765 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
12766 (__sin): Use improved reduction and simplified do_sincos calculation.
12767 (__cos): Likewise.
12768 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12769
12770 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12771
12772 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
12773 (do_sincos_2): Likewise.
12774 (__sin): Remove middle range reduction case.
12775 (__cos): Likewise.
12776 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
12777 reduction case.
12778
12779 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12780
12781 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
12782 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
12783 inputs.
12784 (__cos): Likewise.
12785 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
12786
12787 2018-04-03 Joseph Myers <joseph@codesourcery.com>
12788
12789 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12790 version to 4.16
12791
12792 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12793
12794 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
12795 Remove definitions.
12796 (opendir_oflags): Use O_DIRECTORY regardless.
12797 (__opendir, __opendirat): Remove need_isdir_precheck usage.
12798 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
12799
12800 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12801
12802 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
12803 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
12804 macros.
12805 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
12806 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
12807 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
12808 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
12809 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
12810 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
12811
12812 * htl/Makefile: Bump licence to LGPL 2.1+.
12813 * htl/alloca_cutoff.c: Likewise.
12814 * htl/cthreads-compat.c: Likewise.
12815 * htl/lockfile.c: Likewise.
12816 * htl/pt-alloc.c: Likewise.
12817 * htl/pt-cancel.c: Likewise.
12818 * htl/pt-cleanup.c: Likewise.
12819 * htl/pt-create.c: Likewise.
12820 * htl/pt-dealloc.c: Likewise.
12821 * htl/pt-detach.c: Likewise.
12822 * htl/pt-exit.c: Likewise.
12823 * htl/pt-getattr.c: Likewise.
12824 * htl/pt-initialize.c: Likewise.
12825 * htl/pt-internal.h: Likewise.
12826 * htl/pt-join.c: Likewise.
12827 * htl/pt-self.c: Likewise.
12828 * htl/pt-setcancelstate.c: Likewise.
12829 * htl/pt-setcanceltype.c: Likewise.
12830 * htl/pt-sigmask.c: Likewise.
12831 * htl/pt-spin-inlines.c: Likewise.
12832 * htl/pt-testcancel.c: Likewise.
12833 * htl/pt-yield.c: Likewise.
12834 * htl/tests/test-1.c: Likewise.
12835 * htl/tests/test-10.c: Likewise.
12836 * htl/tests/test-11.c: Likewise.
12837 * htl/tests/test-12.c: Likewise.
12838 * htl/tests/test-13.c: Likewise.
12839 * htl/tests/test-14.c: Likewise.
12840 * htl/tests/test-15.c: Likewise.
12841 * htl/tests/test-16.c: Likewise.
12842 * htl/tests/test-17.c: Likewise.
12843 * htl/tests/test-2.c: Likewise.
12844 * htl/tests/test-3.c: Likewise.
12845 * htl/tests/test-4.c: Likewise.
12846 * htl/tests/test-5.c: Likewise.
12847 * htl/tests/test-6.c: Likewise.
12848 * htl/tests/test-7.c: Likewise.
12849 * htl/tests/test-8.c: Likewise.
12850 * htl/tests/test-9.c: Likewise.
12851 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
12852 * sysdeps/htl/bits/cancelation.h: Likewise.
12853 * sysdeps/htl/bits/pthread-np.h: Likewise.
12854 * sysdeps/htl/bits/pthread.h: Likewise.
12855 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
12856 * sysdeps/htl/bits/semaphore.h: Likewise.
12857 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
12858 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
12859 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
12860 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
12861 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
12862 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
12863 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
12864 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
12865 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
12866 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
12867 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
12868 * sysdeps/htl/old_pt-atfork.c: Likewise.
12869 * sysdeps/htl/pt-atfork.c: Likewise.
12870 * sysdeps/htl/pt-attr-destroy.c: Likewise.
12871 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
12872 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
12873 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
12874 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
12875 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
12876 * sysdeps/htl/pt-attr-getscope.c: Likewise.
12877 * sysdeps/htl/pt-attr-getstack.c: Likewise.
12878 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
12879 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
12880 * sysdeps/htl/pt-attr-init.c: Likewise.
12881 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
12882 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
12883 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
12884 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
12885 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
12886 * sysdeps/htl/pt-attr-setscope.c: Likewise.
12887 * sysdeps/htl/pt-attr-setstack.c: Likewise.
12888 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
12889 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
12890 * sysdeps/htl/pt-attr.c: Likewise.
12891 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
12892 * sysdeps/htl/pt-barrier-init.c: Likewise.
12893 * sysdeps/htl/pt-barrier-wait.c: Likewise.
12894 * sysdeps/htl/pt-barrier.c: Likewise.
12895 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
12896 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
12897 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
12898 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
12899 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
12900 * sysdeps/htl/pt-cond-destroy.c: Likewise.
12901 * sysdeps/htl/pt-cond-init.c: Likewise.
12902 * sysdeps/htl/pt-cond-signal.c: Likewise.
12903 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
12904 * sysdeps/htl/pt-cond-wait.c: Likewise.
12905 * sysdeps/htl/pt-cond.c: Likewise.
12906 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
12907 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
12908 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
12909 * sysdeps/htl/pt-condattr-init.c: Likewise.
12910 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
12911 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
12912 * sysdeps/htl/pt-destroy-specific.c: Likewise.
12913 * sysdeps/htl/pt-equal.c: Likewise.
12914 * sysdeps/htl/pt-getconcurrency.c: Likewise.
12915 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
12916 * sysdeps/htl/pt-getschedparam.c: Likewise.
12917 * sysdeps/htl/pt-getspecific.c: Likewise.
12918 * sysdeps/htl/pt-init-specific.c: Likewise.
12919 * sysdeps/htl/pt-key-create.c: Likewise.
12920 * sysdeps/htl/pt-key-delete.c: Likewise.
12921 * sysdeps/htl/pt-key.h: Likewise.
12922 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
12923 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
12924 * sysdeps/htl/pt-mutex-init.c: Likewise.
12925 * sysdeps/htl/pt-mutex-lock.c: Likewise.
12926 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
12927 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
12928 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
12929 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
12930 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
12931 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
12932 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
12933 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
12934 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
12935 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
12936 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
12937 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
12938 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
12939 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
12940 * sysdeps/htl/pt-mutexattr.c: Likewise.
12941 * sysdeps/htl/pt-once.c: Likewise.
12942 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
12943 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
12944 * sysdeps/htl/pt-rwlock-init.c: Likewise.
12945 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
12946 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
12947 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
12948 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
12949 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
12950 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
12951 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
12952 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
12953 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
12954 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
12955 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
12956 * sysdeps/htl/pt-setconcurrency.c: Likewise.
12957 * sysdeps/htl/pt-setschedparam.c: Likewise.
12958 * sysdeps/htl/pt-setschedprio.c: Likewise.
12959 * sysdeps/htl/pt-setspecific.c: Likewise.
12960 * sysdeps/htl/pt-spin.c: Likewise.
12961 * sysdeps/htl/pt-startup.c: Likewise.
12962 * sysdeps/htl/pthread.h: Likewise.
12963 * sysdeps/htl/sem-close.c: Likewise.
12964 * sysdeps/htl/sem-destroy.c: Likewise.
12965 * sysdeps/htl/sem-getvalue.c: Likewise.
12966 * sysdeps/htl/sem-init.c: Likewise.
12967 * sysdeps/htl/sem-open.c: Likewise.
12968 * sysdeps/htl/sem-post.c: Likewise.
12969 * sysdeps/htl/sem-timedwait.c: Likewise.
12970 * sysdeps/htl/sem-trywait.c: Likewise.
12971 * sysdeps/htl/sem-unlink.c: Likewise.
12972 * sysdeps/htl/sem-wait.c: Likewise.
12973 * sysdeps/hurd/htl/pt-kill.c: Likewise.
12974 * sysdeps/i386/htl/pt-machdep.h: Likewise.
12975 * sysdeps/mach/htl/pt-block.c: Likewise.
12976 * sysdeps/mach/htl/pt-spin.c: Likewise.
12977 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
12978 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
12979 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
12980 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
12981 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
12982 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
12983 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
12984 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
12985 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
12986 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
12987 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
12988 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
12989 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
12990 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
12991 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
12992 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
12993 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
12994 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
12995 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
12996 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
12997 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
12998 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
12999 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13000 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13001 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13002 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13003 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13004 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13005 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13006 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13007 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13008 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13009 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13010 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13011 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13012 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13013 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13014 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13015 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13016 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13017 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13018 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13019 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13020
13021 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13022 * README: Remove the mention of out-of-tree patches needed for
13023 GNU/Hurd.
13024
13025 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13026 (UTIME_NOW, UTIME_OMIT): Define macros.
13027
13028 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13029 instead of pthread_detach.
13030 (__cthread_fork): Call __pthread_create instead of pthread_create.
13031 (__cthread_keycreate): Call __pthread_key_create instead of
13032 pthread_key_create.
13033 (__cthread_getspecific): Call __pthread_getspecific instead of
13034 pthread_getspecific.
13035 (__cthread_setspecific): Call __pthread_setspecific instead of
13036 pthread_setspecific.
13037 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13038 __pthread_mutex_unlock instead of pthread_mutex_lock and
13039 pthread_mutex_unlock.
13040 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13041 ___pthread_get_cleanup_stack.
13042 (__pthread_get_cleanup_stack): New strong alias.
13043 * htl/pt-create.c: Include <pthreadP.h>.
13044 (entry_point): Call __pthread_exit instead of pthread_exit.
13045 (pthread_create): Rename to __pthread_create.
13046 (pthread_create): New strong alias.
13047 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13048 (pthread_detach): New strong alias.
13049 (__pthread_detach): Call __pthread_cond_broadcast instead of
13050 pthread_cond_broadcast.
13051 * htl/pt-exit.c: Include <pthreadP.h>.
13052 (__pthread_exit): Call __pthread_setcancelstate and
13053 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13054 __pthread_get_cleanup_stack.
13055 * htl/pt-testcancel.c: Include <pthreadP.h>.
13056 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13057 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13058 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13059 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13060 pthread_attr_getstacksize.
13061 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13062 Rename to __pthread_attr_getstackaddr.
13063 (pthread_attr_getstackaddr): New strong alias.
13064 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13065 Rename to __pthread_attr_getstacksize.
13066 (pthread_attr_getstacksize): New strong alias.
13067 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13068 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13069 (pthread_attr_setstack): New strong alias.
13070 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13071 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13072 pthread_attr_getstacksize, pthread_attr_setstacksize and
13073 pthread_attr_setstackaddr.
13074 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13075 Rename to __pthread_attr_setstackaddr.
13076 (pthread_attr_setstackaddr): New strong alias.
13077 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13078 Rename to __pthread_attr_setstacksize.
13079 (pthread_attr_setstacksize): New strong alias.
13080 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13081 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13082 pthread_exit.
13083 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13084 (__pthread_key_create): New hidden def.
13085 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13086 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13087 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13088 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13089 __pthread_setspecific, __pthread_setcancelstate,
13090 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13091 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13092 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13093 declarations.
13094 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13095 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13096 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13097 (pthread_attr_setstackaddr): New strong alias.
13098 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13099 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13100 (pthread_attr_setstacksize): New strong alias.
13101 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13102 (call_exit): Call __pthread_exit instead of pthread_exit.
13103 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13104 (_pthread_mutex_init): New hidden definition.
13105 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13106 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13107 instead of pthread_attr_init and pthread_attr_setstack.
13108
13109 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13110 __vm_deallocate instead of vm_allocate and vm_deallocate.
13111 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13112 setenv.
13113 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13114 of geteuid.
13115 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13116 strdup.
13117 * hurd/siginfo.c: Include <libioP.h>.
13118 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13119 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13120 munmap.
13121 * mach/devstream.c: Include <libioP.h>.
13122 (dealloc_ref): Call __mach_port_deallocate instead of
13123 mach_port_deallocate.
13124 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13125 Call __mach_port_deallocate instead of mach_port_deallocate.
13126 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13127 pathconf.
13128 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13129 munmap.
13130 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13131 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13132 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13133 of munmap.
13134 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13135 of close.
13136 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13137 instead of sysconf.
13138 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13139 __clock_gettime instead of clock_gettime.
13140 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13141 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13142 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13143 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13144 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13145 tcgetattr.
13146 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13147 __clock_gettime and __nanosleep instead of clock_gettime and
13148 nanosleep.
13149 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13150 __hurd_catch_signal.
13151 (hurd_catch_signal): New strong alias.
13152 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13153 __hurd_catch_signal instead of hurd_catch_signal.
13154 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13155 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13156 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13157 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13158 (_hurd_thread_sigstate): Add hidden def.
13159 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13160 mutex_unlock.
13161 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13162 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13163 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13164 __hurd_file_name_path_lookup.
13165 (hurd_file_name_path_lookup): New strong alias.
13166 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13167 hurd_file_name_path_lookup.
13168 * mach/errstring.c (mach_error_type): Add hidden def.
13169 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13170 * mach/mutex-init.c (__mutex_init): Add hidden def.
13171 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13172 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13173 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13174 * sysdeps/mach/hurd/getcwd.c
13175 (_hurd_canonicalize_directory_name_internal): Rename to
13176 __hurd_canonicalize_directory_name_internal.
13177 (_hurd_canonicalize_directory_name_internal): New strong alias.
13178 (__canonicalize_directory_name_internal, __getcwd): Call
13179 __hurd_canonicalize_directory_name_internal instead of
13180 _hurd_canonicalize_directory_name_internal.
13181 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13182 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13183 hidden defs.
13184 * sysdeps/hurd/include/hurd.h: New file.
13185 * sysdeps/hurd/include/hurd/fd.h: New file.
13186 * sysdeps/hurd/include/hurd/signal.h: New file.
13187 * sysdeps/mach/include/lock-intern.h: New file.
13188 * sysdeps/mach/include/mach.h: New file.
13189 * sysdeps/mach/include/mach/mig_support.h: New file.
13190 * sysdeps/mach/include/mach_error.h: New file.
13191 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13192 prototype.
13193 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13194 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13195 _HEADER_H_HIDDEN_DEF macro.
13196 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13197 _hurd_fd_error_signal): Add hidden prototype.
13198 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13199 hidden def.
13200 * libio/iolibio.h (_IO_puts): New hidden prototype.
13201 * libio/ioputs.c (_IO_puts): New hidden def.
13202 * sysdeps/mach/hurd/localplt.data: New file.
13203
13204 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13205 Amos Jeffries <squid3@treenet.co.nz>
13206 David Michael <fedora.dm0@gmail.com>
13207 Marco Gerards <marco@gnu.org>
13208 Marcus Brinkmann <marcus@gnu.org>
13209 Neal H. Walfield <neal@gnu.org>
13210 Pino Toscano <toscano.pino@tiscali.it>
13211 Richard Braun <rbraun@sceen.net>
13212 Roland McGrath <roland@gnu.org>
13213 Samuel Thibault <samuel.thibault@ens-lyon.org>
13214 Thomas DiModica <ricinwich@yahoo.com>
13215 Thomas Schwinge <tschwinge@gnu.org>
13216
13217 * htl: New directory.
13218 * sysdeps/htl: New directory.
13219 * sysdeps/hurd/htl: New directory.
13220 * sysdeps/i386/htl: New directory.
13221 * sysdeps/mach/htl: New directory.
13222 * sysdeps/mach/hurd/htl: New directory.
13223 * sysdeps/mach/hurd/i386/htl: New directory.
13224 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13225 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13226 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13227
13228 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13229
13230 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13231 signals in thread created for runing timers.
13232
13233 2018-04-01 Florian Weimer <fweimer@redhat.com>
13234
13235 * support/support_format_addrinfo.c (support_format_addrinfo):
13236 Include unknown error number in formatted result.
13237
13238 2018-03-29 Florian Weimer <fweimer@redhat.com>
13239
13240 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13241 capture SIGBUS.
13242
13243 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13244
13245 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13246 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13247 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13248 (__ASSUME_CLONE_BACKWARDS): Define.
13249
13250 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13251
13252 [BZ #23024]
13253 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13254 early when linux sentinel value is set.
13255
13256 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13257
13258 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13259
13260 2018-03-27 Andreas Schwab <schwab@suse.de>
13261
13262 [BZ #23005]
13263 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13264 allocation of private copy of nsaddr_list fails.
13265
13266 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13267
13268 [BZ #16552]
13269 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13270 * sysdeps/unix/sysv/linux/umount.c: ... here.
13271 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13272 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13273 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13274 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13275 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13276 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13277 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13278
13279 2018-03-26 Andreas Schwab <schwab@suse.de>
13280
13281 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13282 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13283 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13284 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13285 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13286 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13287 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13288 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13289 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13290 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13291 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13292 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13293 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13294 (R_RISCV_NUM): Define.
13295
13296 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13297
13298 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13299 TLS declaration of errno.
13300 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13301 __libc_setup_tls.
13302 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13303 (ARCH_SETUP_TLS): Likewise.
13304 * sysdeps/mach/hurd/libc-start.h: New file copied from
13305 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13306 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13307 instead of __libc_setup_tls.
13308 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13309 __libc_setup_tls before initializing libpthread and running _hurd_init
13310 which starts the signal thread.
13311 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13312 Declare function.
13313 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13314
13315 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
13316
13317 [BZ #22998]
13318 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
13319 after it is defined.
13320
13321 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
13322 Max Horn <max@quendi.de>
13323
13324 [BZ #22644]
13325 CVE-2017-18269
13326 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13327 branch conditions.
13328 * string/test-memmove.c (do_test2): New testcase.
13329
13330 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13331
13332 * sysdeps/generic/frame.h: Remove file.
13333 * sysdeps/arm/frame.h: Likewise.
13334 * sysdeps/hppa/frame.h: Likewise.
13335 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13336 macro.
13337 (GET_FRAME): Likewise.
13338 (GET_STACK): Likewise.
13339 (CALL_SIGHANDLER): Likewise.
13340 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
13341 Likewise.
13342 (GET_FRAME): Likewise.
13343 (GET_STACK): Likewise.
13344 (CALL_SIGHANDLER): Likewise.
13345 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
13346 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13347 (GET_FRAME): Likewise.
13348 (GET_STACK): Likewise.
13349 (CALL_SIGHANDLER): Likewise.
13350 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
13351 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13352 (GET_FRAME): Likewise.
13353 (GET_STACK): Likewise.
13354 (ADVANCE_STACK_FRAME): Likewise.
13355 (CALL_SIGHANDLER): Likewise.
13356 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
13357 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13358 (GET_FRAME): Likewise.
13359 (GET_STACK): Likewise.
13360 (CALL_SIGHANDLER): Likewise.
13361 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
13362 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13363 (GET_FRAME): Likewise.
13364 (GET_STACK): Likewise.
13365 (CALL_SIGHANDLER): Likewise.
13366 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
13367 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13368 (GET_FRAME): Likewise.
13369 (GET_STACK): Likewise.
13370 (CALL_SIGHANDLER): Likewise.
13371 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
13372 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13373 (GET_FRAME): Likewise.
13374 (GET_STACK): Likewise.
13375 (CALL_SIGHANDLER): Likewise.
13376 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
13377 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13378 (GET_FRAME): Likewise.
13379 (GET_STACK): Likewise.
13380 (CALL_SIGHANDLER): Likewise.
13381 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
13382 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13383 (GET_FRAME): Likewise.
13384 (GET_STACK): Likewise.
13385 (CALL_SIGHANDLER): Likewise.
13386 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
13387 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13388 (GET_FRAME): Likewise.
13389 (GET_STACK): Likewise.
13390 (CALL_SIGHANDLER): Likewise.
13391 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
13392 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13393 (GET_FRAME): Likewise.
13394 (GET_STACK): Likewise.
13395 (CALL_SIGHANDLER): Likewise.
13396 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
13397 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13398 (GET_FRAME): Likewise.
13399 (GET_STACK): Likewise.
13400 (CALL_SIGHANDLER): Likewise.
13401 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
13402 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13403 (FIRST_FRAME_POINTER): Likewise.
13404 (ADVANCE_STACK_FRAME): Likewise.
13405 (GET_STACK): Likewise.
13406 (GET_FRAME): Likewise.
13407 (CALL_SIGHANDLER): Likewise.
13408 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
13409 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13410 (ADVANCE_STACK_FRAME): Likewise.
13411 (GET_STACK): Likewise.
13412 (GET_FRAME): Likewise.
13413 (CALL_SIGHANDLER): Likewise.
13414 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
13415 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13416 (GET_FRAME): Likewise.
13417 (GET_STACK): Likewise.
13418 (CALL_SIGHANDLER): Likewise.
13419 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
13420 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13421 (GET_FRAME): Likewise.
13422 (GET_STACK): Likewise.
13423 (CALL_SIGHANDLER): Likewise.
13424
13425 2018-03-21 Joseph Myers <joseph@codesourcery.com>
13426
13427 * sysdeps/x86_64/backtrace.c: Move to ....
13428 * debug/backtrace.c: ... here.
13429 * sysdeps/aarch64/backtrace.c: Remove file.
13430 * sysdeps/alpha/backtrace.c: Likewise.
13431 * sysdeps/hppa/backtrace.c: Likewise.
13432 * sysdeps/ia64/backtrace.c: Likewise.
13433 * sysdeps/mips/backtrace.c: Likewise.
13434 * sysdeps/nios2/backtrace.c: Likewise.
13435 * sysdeps/riscv/backtrace.c: Likewise.
13436 * sysdeps/sh/backtrace.c: Likewise.
13437 * sysdeps/tile/backtrace.c: Likewise.
13438
13439 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13440
13441 [BZ #22987]
13442 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
13443 function.
13444 (fdimf): Likewise.
13445 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
13446
13447 [BZ #17343]
13448 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
13449 possibly overflowing computations.
13450
13451 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
13452
13453 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
13454 values from Linux-specific section now that it is in the GNU section.
13455 * sysdeps/gnu/errlist.c: Regenerate.
13456
13457 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13458
13459 * math/Makefile (libm-narrow-fns): Add sub.
13460 (libm-test-funcs-narrow): Likewise.
13461 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
13462 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
13463 * math/gen-auto-libm-tests.c (test_functions): Add sub.
13464 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
13465 (NARROW_SUB_ROUND_TO_ODD): Likewise.
13466 (NARROW_SUB_TRIVIAL): Likewise.
13467 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
13468 macro.
13469 (__dsubl): Likewise.
13470 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
13471 dsub.
13472 (CFLAGS-nldbl-dsub.c): New variable.
13473 (CFLAGS-nldbl-fsub.c): Likewise.
13474 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13475 __nldbl_dsubl.
13476 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
13477 prototype.
13478 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
13479 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
13480 * math/auto-libm-test-in: Add tests of sub.
13481 * math/auto-libm-test-out-narrow-sub: New generated file.
13482 * math/libm-test-narrow-sub.inc: New file.
13483 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13484 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
13485 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
13486 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
13487 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
13488 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
13489 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
13490 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
13491 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
13492 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
13493 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
13494 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
13495 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
13496 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
13497 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
13498 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
13499 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
13500 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
13501 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13502 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13503 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13504 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13505 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13506 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13507 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13508 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13509 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13510 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13511 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13512 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13513 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13514 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13515 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13516 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13517 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13518 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13519 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13520 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13521 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13522 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13523 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13524 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13525 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
13526 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
13527 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13528 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13529
13530 2018-03-19 Joseph Myers <joseph@codesourcery.com>
13531
13532 [BZ #20079]
13533 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
13534
13535 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
13536
13537 * benchtests/bench-timing.h (attribute_hidden): Undefine.
13538
13539 2018-03-18 Richard Braun <rbraun@sceen.net>
13540
13541 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
13542 thread reference.
13543
13544 2018-03-18 Agustina Arzille <avarzille@riseup.net>
13545
13546 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
13547 (__libc_cleanup_fct): Define function.
13548 (__libc_cleanup_region_start, __libc_cleanup_region_end,
13549 __libc_cleanup_end): Rewrite implementation using
13550 __attribute__ ((__cleanup__)).
13551 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
13552 * hurd/Makefile (routines): Add hurdlock.
13553 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
13554 interface.
13555 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
13556 * hurd/hurdpid.c: Include <lowlevellock.h>
13557 (_S_msg_proc_newids): Use lll_wait to synchronize.
13558 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
13559 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
13560 * mach/Makefile (lock-headers): Remove machine-lock.h.
13561 * mach/lock-intern.h: Include <lowlevellock.h> instead of
13562 <machine-lock.h>.
13563 (__spin_lock_t): New type.
13564 (__SPIN_LOCK_INITIALIZER): New macro.
13565 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
13566 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
13567 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
13568 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
13569 (__mutex_init): Initialize with lll.
13570 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
13571 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
13572 needing lll.
13573 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13574 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
13575 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
13576 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
13577 (__setpgid): Use lll for synchronization.
13578 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
13579 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
13580 instead of <cthreads.h>.
13581 (_IO_lock_inexpensive): New macro
13582 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
13583 (__libc_lock_self0): New declaration.
13584 (__libc_lock_owner_self): New macro.
13585 (__libc_key_t): Remove type.
13586 (_LIBC_LOCK_INITIALIZER): New macro.
13587 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
13588 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
13589 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
13590 __libc_lock_define_initialized_recursive,
13591 __rtld_lock_define_initialized_recursive,
13592 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
13593 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
13594 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
13595 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
13596 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
13597 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
13598 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
13599 New macros.
13600 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
13601 * hurd/hurdlock.c: New file.
13602 * hurd/hurdlock.h: New file.
13603 * mach/lowlevellock.h: New file
13604
13605 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13606
13607 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
13608 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
13609 when opening a symlink with O_NOFOLLOW.
13610 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
13611 path when flags contains O_NOFOLLOW.
13612 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
13613 if flags contains O_DIRECTORY and the result is a directory.
13614 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
13615 oneself when the pointer given in D is nul (as set by ext2fs).
13616 * sysdeps/mach/hurd/mlockall.c: New file.
13617 * sysdeps/mach/hurd/munlockall.c: New file.
13618
13619 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
13620
13621 * hurd/hurdsig.c: Include <pthread.h>.
13622 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
13623 get the signal thread stack layout.
13624 * hurd/Makefile (headers): Remove threadvar.h.
13625 (inline-headers): Remove threadvar.h.
13626 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
13627 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
13628 __hurd_threadvar_max, __hurd_errno_location.
13629 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
13630 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
13631 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
13632 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
13633 unless TLS is not initialized yet, in which case we do not need a
13634 critical section yet anyway.
13635 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
13636 <machine-sp.h>.
13637 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
13638 declarations.
13639 (__hurd_threadvar_index): Remove enum.
13640 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
13641 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
13642 inlines.
13643 (__hurd_reply_port0): New variable declaration.
13644 (__hurd_local_reply_port): New macro.
13645 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
13646 (interrupted_reply_port_location): Add thread_t parameter. Use it
13647 with THREAD_TCB to access thread-local variables.
13648 (_hurdsig_abort_rpcs): Pass ss->thread to
13649 interrupted_reply_port_location.
13650 (_hurd_internal_post_signal): Likewise.
13651 (_hurdsig_init): Use presence of cthread_fork instead of
13652 __hurd_threadvar_stack_mask to start signal thread by hand.
13653 Remove signal thread threadvar initialization.
13654 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
13655 * hurd/sigunwind.c: Include <hurd/threadvar.h>
13656 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
13657 of threadvar.
13658 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
13659 __libc_lock_self0.
13660 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
13661 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
13662 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
13663 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
13664 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
13665 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
13666 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
13667 define variables.
13668 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
13669 <hurd/threadvar.h>.
13670 [IS_IN(rtld)] (rtld_errno): New variable.
13671 [IS_IN(rtld)] (__errno_location): New weak function.
13672 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
13673 * sysdeps/mach/hurd/errno.c: Remove file.
13674 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
13675 (__fork): Remove THREADVAR_SPACE macro and its use.
13676 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
13677 variable.
13678 (init): Do not initialize threadvar.
13679 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
13680 symbol.
13681 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
13682 __hurd_local_reply_port instead of threadvar.
13683 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
13684 _hurd_sigstate fields.
13685 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
13686 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
13687 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
13688 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
13689 instead of threadvar.
13690 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
13691 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
13692 (use_threadvar, global_reply_port): Remove variables.
13693 (__hurd_reply_port0): New variable.
13694 (__mig_get_reply_port): Use __hurd_local_reply_port and
13695 __hurd_reply_port0 instead of threadvar.
13696 (__mig_dealloc_reply_port): Likewise.
13697 (__mig_init): Do not initialize threadvar.
13698 * sysdeps/mach/hurd/profil.c: Fix comment.
13699 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
13700 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
13701 cthread_keycreate, cthread_getspecific, cthread_setspecific to
13702 __cthread_fork, __cthread_detach, __pthread_getattr_np,
13703 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
13704 __cthread_setspecific.
13705 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
13706 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
13707 __cthread_t instead of cthread_fork, cthread_detach,
13708 pthread_getattr_np, pthread_attr_getstack.
13709 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
13710 __cthread_keycreate.
13711 (cthread_getspecific): Rename to __cthread_getspecific.
13712 (cthread_setspecific): Rename to __cthread_setspecific.
13713 (__libc_getspecific): Use __cthread_getspecific instead of
13714 cthread_getspecific.
13715 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
13716 __cthread_keycreate instead of cthread_keycreate.
13717 (__libc_setspecific): Use __cthread_setspecific instead of
13718 cthread_setspecific.
13719 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
13720 Likewise.
13721 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
13722 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
13723 testing whether it is defined.
13724
13725 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
13726
13727 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
13728 Define macro.
13729 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
13730 * sysdeps/mach/i386/thread_state.h
13731 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
13732 i386_THREAD_STATE.
13733 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
13734 i386_THREAD_STATE.
13735 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
13736
13737 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
13738 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
13739
13740 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
13741 macros.
13742 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
13743 descriptor instead of creating a new one.
13744 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
13745
13746 * mach/setup-thread.c: Include <ldsodefs.h>.
13747 (__mach_setup_thread): Call _dl_allocate_tls, pass
13748 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
13749 MACHINE_THREAD_STATE_FLAVOR, before getting
13750 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
13751 MACHINE_THREAD_STATE_FLAVOR with the result.
13752 * hurd/hurdfault.c (_hurdsig_fault_init): Call
13753 MACHINE_THREAD_STATE_FIX_NEW.
13754 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
13755 too. Add original thread parameter.
13756
13757 2018-03-16 Joseph Myers <joseph@codesourcery.com>
13758
13759 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
13760 Remove inline function.
13761
13762 * sysdeps/i386/fpu/libm-test-ulps: Update.
13763 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
13764
13765 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
13766
13767 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
13768 commit.
13769
13770 2018-03-15 Joseph Myers <joseph@codesourcery.com>
13771
13772 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
13773 (__sincos_code): Remove define and undefine.
13774 [__FAST_MATH__] (__sincos): Remove inline function.
13775 [__FAST_MATH__] (__sincosf): Remove inline function.
13776 [__FAST_MATH__] (__sincosl): Remove inline function.
13777 (__atan2l): Remove inline functions.
13778 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
13779 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
13780 function.
13781 (floor): Remove inline function.
13782 (ceil): Likewise.
13783 [__FAST_MATH__] (__ldexp_code): Remove macro.
13784 [__FAST_MATH__] (ldexp): Remove inline function.
13785 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
13786 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
13787 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
13788 [__USE_ISOC99] (__lrint_code): Remove macro.
13789 [__USE_ISOC99] (__llrint_code): Likewise.
13790 [__USE_ISOC99] (lrintf): Remove inline function.
13791 [__USE_ISOC99] (lrint): Likewise.
13792 [__USE_ISOC99] (lrintl): Likewise.
13793 [__USE_ISOC99] (llrint): Likewise.
13794 [__USE_ISOC99] (llrintf): Likewise.
13795 [__USE_ISOC99] (llrintl): Likewise.
13796
13797 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13798
13799 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
13800 (__ieee754_sqrtf): Remove.
13801 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
13802 (__ieee754_sqrtf): Remove.
13803 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
13804 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13805 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
13806 (__ieee754_sqrtf): Remove.
13807 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
13808 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
13809 (sqrtf): Remove.
13810 (sqrtl): Remove.
13811 (__ieee754_sqrt): Remove.
13812 (__ieee754_sqrtf): Remove.
13813 (__ieee754_sqrtl): Remove.
13814 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13815 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
13816 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
13817 (__ieee754_sqrtf): Remove.
13818 (__ieee754_sqrtl): Remove.
13819
13820 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13821
13822 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
13823 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
13824 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
13825 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
13826 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
13827 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
13828 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
13829 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
13830 Likewise.
13831 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
13832 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
13833 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
13834 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
13835 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
13836 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
13837 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
13838 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
13839 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
13840 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13841 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
13842 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
13843 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
13844 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
13845 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
13846 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
13847 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
13848 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
13849 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
13850 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
13851 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13852 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13853 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
13854 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
13855 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
13856 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
13857 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13858 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13859 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
13860 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13861 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
13862 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
13863 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
13864 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
13865 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13866 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
13867 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
13868 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
13869 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
13870 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
13871
13872 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13873
13874 * include/math.h (sqrt): Declare with asm redirect.
13875 (sqrtf): Likewise.
13876 (sqrtl): Likewise.
13877 (sqrtf128): Likewise.
13878 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
13879 nonlib and libnldbl with -fmath-errno.
13880 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
13881 * math/w_sqrt_template.c: Likewise.
13882 * math/w_sqrtf_compat.c: Likewise.
13883 * math/w_sqrtl_compat.c: Likewise.
13884 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
13885 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
13886 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
13887 complex.h.
13888
13889 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13890
13891 * benchtests/Makefile: Define _ISOMAC.
13892 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
13893 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
13894 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
13895 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
13896 * benchtests/bench-timing.h: Define attribute_hidden.
13897
13898 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13899
13900 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
13901 mov + lsr.
13902
13903 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13904
13905 [BZ #22963]
13906 * localedata/locales/cs_CZ (mon): Rename to...
13907 (alt_mon): This.
13908 (mon): Import from CLDR (genitive case).
13909
13910 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13911
13912 [BZ #22937]
13913 * localedata/locales/el_CY (abmon): Rename to...
13914 (ab_alt_mon): This.
13915 (abmon): Import from CLDR (abbreviated genitive case).
13916 * localedata/locales/el_GR (abmon): Rename to...
13917 (ab_alt_mon): This.
13918 (abmon): Import from CLDR (abbreviated genitive case).
13919
13920 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13921
13922 [BZ #22932]
13923 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
13924
13925 2018-03-15 Robert Buj <robert.buj@gmail.com>
13926
13927 [BZ #22848]
13928 * localedata/locales/ca_ES (abmon): Rename to...
13929 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
13930 (mon): Rename to...
13931 (alt_mon): This.
13932 (abmon): Import from CLDR (genitive case, month names preceded by
13933 "de" or "d’").
13934 (mon): Likewise.
13935 (abday): Synchronize with CLDR.
13936 (d_t_fmt): Likewise.
13937 (d_fmt): Likewise.
13938 (am_pm): Likewise.
13939
13940 (LC_TIME): Improve indentation.
13941 (LC_TELEPHONE): Likewise.
13942 (LC_NAME): Likewise.
13943 (LC_ADDRESS): Likewise.
13944
13945 2018-03-14 Joseph Myers <joseph@codesourcery.com>
13946
13947 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
13948 (lrintf): Remove definitions used only with old GCC.
13949 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
13950 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
13951 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
13952 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
13953 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
13954 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
13955 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
13956 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
13957 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
13958 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
13959 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
13960 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
13961 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
13962 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
13963 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
13964 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
13965 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
13966 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
13967 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
13968 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
13969 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
13970 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
13971 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
13972 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
13973 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
13974 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
13975 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
13976 [__FAST_MATH__] (__M_SQRT2): Remove macro.
13977
13978 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
13979
13980 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
13981 instruction to unbreak builds with binutils 2.26 and older.
13982
13983 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
13984
13985 * sysdeps/aarch64/strncmp.S (count): New macro.
13986 (strncmp): Store misaligned length in SRC1 in COUNT.
13987 (mutual_align): Adjust.
13988 (misaligned8): Load dword at a time when it is safe.
13989
13990 2018-03-12 Zack Weinberg <zackw@panix.com>
13991
13992 [BZ #1190]
13993 [BZ #19476]
13994 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
13995 if the _IO_EOF_SEEN bit is already set; update commentary.
13996 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
13997 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
13998
13999 * support/support_openpty.c, support/tty.h: New files.
14000 * support/Makefile (libsupport-routines): Add support_openpty.
14001
14002 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14003 New test cases.
14004 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14005 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14006
14007 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14008
14009 * po/pt_BR.po: Update translations.
14010
14011 2018-03-12 David Michael <fedora.dm0@gmail.com>
14012
14013 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14014 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14015 get a port to the startup server.
14016
14017 2018-03-11 Zack Weinberg <zackw@panix.com>
14018
14019 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14020 before nldbl-compat.h.
14021
14022 2018-03-10 Zack Weinberg <zackw@panix.com>
14023
14024 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14025 math.h or math_private.h.
14026
14027 * sysdeps/alpha/fpu/s_isnan.c
14028 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14029 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14030 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14031 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14032 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14033 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14034 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14035 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14036 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14037 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14038 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14039 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14040 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14041 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14042 Include math_private.h.
14043
14044 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14045 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14046 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14047 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14048 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14049 * sysdeps/powerpc/power7/fpu/s_logb.c:
14050 Include math.h and math_private.h.
14051
14052 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14053 uses of $at in .set noat / .set at.
14054
14055 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14056
14057 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14058 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14059 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14060 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14061 Likewise.
14062
14063 2018-03-09 Florian Weimer <fweimer@redhat.com>
14064
14065 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14066 in comment.
14067
14068 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14069
14070 [BZ #22919]
14071 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14072 Add nop before __startcontext, add explaining comments.
14073
14074 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14075
14076 [BZ #22926]
14077 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14078 empty for __SPE__.
14079 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14080 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14081 Do not build hardware transactional code for __SPE__.
14082 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14083 (__lll_trylock_elision): Likewise.
14084 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14085 (__lll_unlock_elision): Likewise.
14086
14087 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14088 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14089 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14090 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14091 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14092 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14093 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14094 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14095 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14096 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14097 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14098 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14099 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14100 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14101 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14102 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14103 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14104 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14105 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14106 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14107 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14108 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14109 (__ASSUME_CLONE_BACKWARDS): Define.
14110 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14111 __clone2 if __NR_clone2 is defined.
14112 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14113 (__ASSUME_CLONE_BACKWARDS): Likewise.
14114 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14115 (__ASSUME_CLONE_BACKWARDS): Likewise.
14116 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14117 (__ASSUME_CLONE2): Likewise.
14118 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14119 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14120 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14121 variants and the define architecture can use.
14122 (__ASSUME_CLONE_DEFAULT): Define as default.
14123 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14124 (__ASSUME_CLONE_BACKWARDS): Likewise.
14125 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14126 (__ASSUME_CLONE_BACKWARDS): Likewise.
14127 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14128 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14129
14130 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14131
14132 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14133
14134 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14135 time.
14136
14137 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14138 (do_test_limit): Likewise.
14139
14140 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14141 for every implementation.
14142 (do_test): Likewise.
14143
14144 * benchtests/bench-strncmp.c: Convert output to json.
14145
14146 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14147
14148 * io/futimens.c: Add missing start-of-file descriptive comment.
14149 * io/utime.c: Likewise.
14150 * misc/futimesat.c: Likewise.
14151 * misc/utimes.c: Likewise.
14152 * sysdeps/mach/hurd/futimesat.c: Likewise.
14153 * sysdeps/mach/hurd/utimes.c: Likewise.
14154 * sysdeps/posix/utime.c: Likewise.
14155 * sysdeps/posix/utimes.c: Likewise.
14156 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14157 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14158 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14159 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14160
14161 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14162
14163 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14164 hurd_futimes.
14165 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14166 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14167 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14168 (__futimens): Move implementation to...
14169 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14170 utime_tvalue_from_tspec): ... new helper functions.
14171 (hurd_futimens): New function.
14172 * sysdeps/mach/hurd/futimesat.c: New file.
14173 * sysdeps/mach/hurd/utimensat.c: New file.
14174
14175 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14176
14177 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14178 UTIME_OMIT): New macros.
14179 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14180 before reverting to converting time spec to time value and calling
14181 __file_utimes.
14182 * sysdeps/mach/hurd/utime-helper.c: New file.
14183 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14184 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14185 reverting to utime_tvalue_from_tval and __file_utimes.
14186 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14187 (__lutimes): Just call hurd_futimens after lookup.
14188 * sysdeps/mach/hurd/utimes.c: Likewise.
14189
14190 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14191
14192 * bits/sigaction.h: Add include guard.
14193 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14194 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14195 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14196 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14197 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14198 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14199 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14200 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14201 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14202
14203 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14204
14205 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14206 -Wmaybe-uninitialized for -Os.
14207 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14208 this disabling.
14209
14210 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14211
14212 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14213 __INO_T_MATCHES_INO64_T is defined.
14214 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14215 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14216 of definition.
14217 * dirent/alphasort64.c: Likewise.
14218 * dirent/scandir.c: Likewise.
14219 * dirent/scandir64-tail.c: Likewise.
14220 * dirent/scandir64.c: Likewise.
14221 * dirent/scandirat.c: Likewise.
14222 * dirent/scandirat64.c: Likewise.
14223 * dirent/versionsort.c: Likewise.
14224 * dirent/versionsort64.c: Likewise.
14225 * include/dirent.h: Likewise.
14226
14227 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14228 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14229 for socketpair endpoint.
14230 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14231 WRITE_BUFFER_SIZE as buffer size for sending socket.
14232 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14233 issue on system where send is implemented with sendto syscall.
14234 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14235 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14236 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14237 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14238
14239 [BZ #21269]
14240 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14241 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14242 sa_restorer for vDSO case.
14243 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14244
14245 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14246
14247 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14248 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14249 * hurd/hurd/ioctl.h: Include <mach/port.h>
14250 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14251 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14252 <mach/mach_types.h> and <mach/message.h>.
14253 (headers): Move mach/param.h to bits/mach/param.h.
14254 * sysdeps/mach/i386/mach/param.h: Move file to ...
14255 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14256 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14257 of <mach/param.h>.
14258 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14259 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14260 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14261 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14262 trivial, for C++ conformity.
14263 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14264 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14265 Process mig output through $(migheadersed).
14266 * hurd/Makefile (migheadersed): Define variable.
14267 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14268 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14269 headers.
14270 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14271 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14272 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14273 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14274 <bits/types/sigset_t.h>.
14275 [!defined __USE_GNU]: Do not #error out.
14276 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14277 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14278 Include <stddef.h> and <bits/types/sigset_t.h>
14279 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14280 instead of sighandler_t.
14281 * stdlib/errno.h (error_t): Move definition to...
14282 * bits/types/error_t.h: ... new header.
14283 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14284 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14285 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14286 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14287 * hurd/hurd.h: Include <bits/types/error_t.h>
14288 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14289 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14290 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14291 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14292 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14293 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14294 * sysdeps/mach/hurd/futimens.c: New file.
14295
14296 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14297
14298 [BZ #22918]
14299 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14300 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14301 * nscd/gai.c (__nss_hosts_database): Readd definition.
14302 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14303 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14304 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14305
14306 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14307
14308 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14309 (ifunc_one): Likewise.
14310
14311 2018-03-01 DJ Delorie <dj@delorie.com>
14312
14313 [BZ #22342]
14314 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
14315 key value.
14316
14317 2018-03-01 Maciej W. Rozycki <macro@mips.com>
14318
14319 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
14320 `match_pid' parameter.
14321 (td_ta_thr_iter): Update accordingly.
14322
14323 2018-03-01 Florian Weimer <fweimer@redhat.com>
14324
14325 * nptl/Makefile (install-lib-ldscripts): Remove.
14326 (install): Remove rule.
14327 ($(inst_libdir)/libpthread.so): Likewise.
14328
14329 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14330
14331 [BZ #22896]
14332 * localedata/locales/an_ES: update month and day names,
14333 improve d_fmt, improve postal_fmt, add country_post,
14334 add country_isbn
14335
14336 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14337
14338 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
14339 Ukrainian instead of Bulgarian.
14340
14341 2018-03-01 Florian Weimer <fweimer@redhat.com>
14342
14343 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
14344 reference.
14345
14346 2018-03-01 Florian Weimer <fweimer@redhat.com>
14347
14348 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
14349 * nptl/Makefile (routines): Add pthread_atfork.
14350 (static-only-routines): Set to pthread_atfork.
14351 (libpthread-routines): Remove pthread_atfork.
14352 (libpthread-static-only-routines): Remove.
14353 (install): Update comment.
14354 (libpthread.so): Do not install libpthread_nonshared.a.
14355 (tests): Do not link with libpthread_nonshared.a.
14356 (generated): Remove libpthread_nonshared.a.
14357 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
14358 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
14359 with libpthread_nonshared.a.
14360
14361 2018-02-28 Joseph Myers <joseph@codesourcery.com>
14362
14363 [BZ #22902]
14364 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
14365 (libc_feholdexcept_setroundf128): New macro.
14366 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
14367
14368 [BZ #15105]
14369 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
14370 libc_hidden_def.
14371 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
14372 * include/inttypes.h: New file.
14373
14374 2018-02-27 Joseph Myers <joseph@codesourcery.com>
14375
14376 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
14377 -Os in two more places.
14378
14379 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14380
14381 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
14382 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
14383 be sorted correctly at the moment because of a bug.
14384
14385 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14386
14387 [BZ #22550] - es_ES locale (and other es_* locales): collation should
14388 treat ñ as a primary different character, sync the collation
14389 for Spanish with CLDR.
14390 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
14391 * localedata/Makefile: Add new test files.
14392 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
14393 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
14394 collation order.
14395 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
14396 * localedata/am_ET.UTF-8.in: New test file.
14397 * localedata/az_AZ.UTF-8.in: Likewise.
14398 * localedata/be_BY.UTF-8.in: Likewise.
14399 * localedata/ber_DZ.UTF-8.in: Likewise.
14400 * localedata/ber_MA.UTF-8.in: Likewise.
14401 * localedata/bg_BG.UTF-8.in: Likewise.
14402 * localedata/br_FR.UTF-8.in: Likewise.
14403 * localedata/cmn_TW.UTF-8.in: Likewise.
14404 * localedata/crh_UA.UTF-8.in: Likewise.
14405 * localedata/csb_PL.UTF-8.in: Likewise.
14406 * localedata/cv_RU.UTF-8.in: Likewise.
14407 * localedata/cy_GB.UTF-8.in: Likewise.
14408 * localedata/dz_BT.UTF-8.in: Likewise.
14409 * localedata/eo.UTF-8.in: Likewise.
14410 * localedata/es_ES.UTF-8.in: Likewise.
14411 * localedata/fa_IR.UTF-8.in: Likewise.
14412 * localedata/fi_FI.UTF-8.in: Likewise.
14413 * localedata/fil_PH.UTF-8.in: Likewise.
14414 * localedata/fur_IT.UTF-8.in: Likewise.
14415 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
14416 * localedata/ha_NG.UTF-8.in: Likewise.
14417 * localedata/ig_NG.UTF-8.in: Likewise.
14418 * localedata/ik_CA.UTF-8.in: Likewise.
14419 * localedata/kk_KZ.UTF-8.in: Likewise.
14420 * localedata/ku_TR.UTF-8.in: Likewise.
14421 * localedata/ky_KG.UTF-8.in: Likewise.
14422 * localedata/ln_CD.UTF-8.in: Likewise.
14423 * localedata/mi_NZ.UTF-8.in: Likewise.
14424 * localedata/ml_IN.UTF-8.in: Likewise.
14425 * localedata/mn_MN.UTF-8.in: Likewise.
14426 * localedata/mr_IN.UTF-8.in: Likewise.
14427 * localedata/mt_MT.UTF-8.in: Likewise.
14428 * localedata/nb_NO.UTF-8.in: Likewise.
14429 * localedata/om_KE.UTF-8.in: Likewise.
14430 * localedata/os_RU.UTF-8.in: Likewise.
14431 * localedata/ps_AF.UTF-8.in: Likewise.
14432 * localedata/ro_RO.UTF-8.in: Likewise.
14433 * localedata/ru_RU.UTF-8.in: Likewise.
14434 * localedata/sc_IT.UTF-8.in: Likewise.
14435 * localedata/se_NO.UTF-8.in: Likewise.
14436 * localedata/sq_AL.UTF-8.in: Likewise.
14437 * localedata/sv_SE.UTF-8.in: Likewise.
14438 * localedata/szl_PL.UTF-8.in: Likewise.
14439 * localedata/tg_TJ.UTF-8.in: Likewise.
14440 * localedata/tk_TM.UTF-8.in: Likewise.
14441 * localedata/tt_RU.UTF-8.in: Likewise.
14442 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
14443 * localedata/ug_CN.UTF-8.in: Likewise.
14444 * localedata/uz_UZ.UTF-8.in: Likewise.
14445 * localedata/vi_VN.UTF-8.in: Likewise.
14446 * localedata/yi_US.UTF-8.in: Likewise.
14447 * localedata/yo_NG.UTF-8.in: Likewise.
14448 * localedata/zh_CN.UTF-8.in: Likewise.
14449 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
14450 file and fix bugs in the collation.
14451 * localedata/locales/az_AZ: Likewise.
14452 * localedata/locales/be_BY: Likewise.
14453 * localedata/locales/ber_DZ: Likewise.
14454 * localedata/locales/ber_MA: Likewise.
14455 * localedata/locales/bg_BG: Likewise.
14456 * localedata/locales/br_FR: Likewise.
14457 * localedata/locales/br_FR@euro: Likewise.
14458 * localedata/locales/ca_ES: Likewise.
14459 * localedata/locales/cns11643_stroke: Likewise.
14460 * localedata/locales/crh_UA: Likewise.
14461 * localedata/locales/cs_CZ: Likewise.
14462 * localedata/locales/csb_PL: Likewise.
14463 * localedata/locales/cv_RU: Likewise.
14464 * localedata/locales/cy_GB: Likewise.
14465 * localedata/locales/da_DK: Likewise.
14466 * localedata/locales/dz_BT: Likewise.
14467 * localedata/locales/en_CA: Likewise.
14468 * localedata/locales/eo: Likewise.
14469 * localedata/locales/es_CU: Likewise.
14470 * localedata/locales/es_EC: Likewise.
14471 * localedata/locales/es_ES: Likewise.
14472 * localedata/locales/es_US: Likewise.
14473 * localedata/locales/et_EE: Likewise.
14474 * localedata/locales/fa_IR: Likewise.
14475 * localedata/locales/fi_FI: Likewise.
14476 * localedata/locales/fil_PH: Likewise.
14477 * localedata/locales/fur_IT: Likewise.
14478 * localedata/locales/gez_ER@abegede: Likewise.
14479 * localedata/locales/ha_NG: Likewise.
14480 * localedata/locales/hr_HR: Likewise.
14481 * localedata/locales/hsb_DE: Likewise.
14482 * localedata/locales/hu_HU: Likewise.
14483 * localedata/locales/ig_NG: Likewise.
14484 * localedata/locales/ik_CA: Likewise.
14485 * localedata/locales/is_IS: Likewise.
14486 * localedata/locales/iso14651_t1_pinyin: Likewise.
14487 * localedata/locales/kk_KZ: Likewise.
14488 * localedata/locales/ku_TR: Likewise.
14489 * localedata/locales/ky_KG: Likewise.
14490 * localedata/locales/ln_CD: Likewise.
14491 * localedata/locales/lt_LT: Likewise.
14492 * localedata/locales/lv_LV: Likewise.
14493 * localedata/locales/mi_NZ: Likewise.
14494 * localedata/locales/ml_IN: Likewise.
14495 * localedata/locales/mn_MN: Likewise.
14496 * localedata/locales/mr_IN: Likewise.
14497 * localedata/locales/mt_MT: Likewise.
14498 * localedata/locales/nb_NO: Likewise.
14499 * localedata/locales/om_KE: Likewise.
14500 * localedata/locales/os_RU: Likewise.
14501 * localedata/locales/pl_PL: Likewise.
14502 * localedata/locales/ps_AF: Likewise.
14503 * localedata/locales/ro_RO: Likewise.
14504 * localedata/locales/ru_RU: Likewise.
14505 * localedata/locales/ru_UA: Likewise.
14506 * localedata/locales/sc_IT: Likewise.
14507 * localedata/locales/se_NO: Likewise.
14508 * localedata/locales/si_LK: Likewise.
14509 * localedata/locales/sq_AL: Likewise.
14510 * localedata/locales/sv_FI: Likewise.
14511 * localedata/locales/sv_FI@euro: Likewise.
14512 * localedata/locales/sv_SE: Likewise.
14513 * localedata/locales/szl_PL: Likewise.
14514 * localedata/locales/tg_TJ: Likewise.
14515 * localedata/locales/ti_ER: Likewise.
14516 * localedata/locales/tk_TM: Likewise.
14517 * localedata/locales/tl_PH: Likewise.
14518 * localedata/locales/tr_TR: Likewise.
14519 * localedata/locales/tt_RU: Likewise.
14520 * localedata/locales/tt_RU@iqtelif: Likewise.
14521 * localedata/locales/ug_CN: Likewise.
14522 * localedata/locales/uk_UA: Likewise.
14523 * localedata/locales/uz_UZ: Likewise.
14524 * localedata/locales/uz_UZ@cyrillic: Likewise.
14525 * localedata/locales/vi_VN: Likewise.
14526 * localedata/locales/yi_US: Likewise.
14527 * localedata/locales/yo_NG: Likewise.
14528
14529 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14530
14531 * gen-locales.mk: Make test files which contain @ modifiers in their
14532 name work.
14533 * localedata/gen-locale.sh: Likewise.
14534
14535 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14536
14537 * posix/tst-fnmatch.input: Fix results for range expressions
14538 for non C locales.
14539 * posix/tst-regexloc.c: Do not use a range expression for
14540 de_DE.ISO-8859-1 locale.
14541
14542 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14543
14544 * posix/bug-regex5.c: Fix test case because with the new
14545 iso14651_t1_common file, the da_DK locale now has 6 collating elements
14546 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
14547 file.
14548
14549 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14550
14551 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
14552 downloaded from ISO, the collation order of @-. and space has changed.
14553 Therefore, this test file needed to be adapted.
14554 * localedata/fr_CA.UTF-8.in: Likewise.
14555 * localedata/fr_FR.UTF-8.in: Likewise.
14556 * localedata/uk_UA.UTF-8.in: Likewise.
14557
14558 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14559
14560 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
14561 order of ȥ in the new iso14651_t1_common file.
14562 * localedata/pl_PL.UTF-8.in: Likewise.
14563
14564 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14565
14566 * localedata/locales/iso14651_t1_common: Add sections for various
14567 scripts to the iso14651_t1_common file.
14568
14569 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14570
14571 * localedata/locales/iso14651_t1_common: Use the code point of a
14572 character in the fourth collation level instead of IGNORE for all
14573 entries which have IGNORE on all 4 levels.
14574
14575 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14576
14577 * localedata/locales/iso14651_t1_common: Add some convenient collation
14578 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
14579 rules similar to those in CLDR.
14580
14581 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14582
14583 * localedata/locales/iso14651_t1_common: The new version of this
14584 file downloaded from ISO contained several syntax errors which
14585 are fixed by this patch.
14586
14587 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14588
14589 * localedata/locales/iso14651_t1_common: replace all <U.....>
14590 with <U000.....> because glibc understands only 4 digit or 8 digit
14591
14592 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14593
14594 * localedata/locales/iso14651_t1_common: Necessary changes
14595 to make the file downloaded from ISO usable by glibc.
14596
14597 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14598
14599 [BZ #14095]
14600 * localedata/locales/iso14651_t1_common: Update file to
14601 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
14602
14603 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14604
14605 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
14606 of <nptl/pthreadP.h>
14607 (thread_attr_compare): Move function to...
14608 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
14609 * sysdeps/nptl/timer_routines.h: ... new header.
14610 * sysdeps/mach/hurd/gai_misc.h: New file.
14611
14612 2018-02-26 Joseph Myers <joseph@codesourcery.com>
14613
14614 * string/strcoll_l.c: Include <libc-diag.h>.
14615 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
14616 declarations of seq1 and seq2.
14617
14618 [BZ #15105]
14619 * stdlib/atoi.c (atoi): Use libc_hidden_def.
14620 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
14621
14622 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
14623
14624 [BZ #22433]
14625 [BZ #22807]
14626 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
14627 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
14628 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
14629 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
14630 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
14631 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
14632
14633 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14634
14635 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
14636 macros used in __ptrace_request.
14637
14638 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
14639
14640 [BZ #22792]
14641 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
14642 to $(CC).
14643 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
14644 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
14645 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
14646 <tcb-offsets.h>.
14647
14648 2018-02-23 Joseph Myers <joseph@codesourcery.com>
14649
14650 [BZ #15105]
14651 * ctype/ctype.c (tolower): Use libc_hidden_def.
14652 (toupper): Likewise.
14653 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
14654 [!_ISOMAC] (toupper): Likewise.
14655
14656 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14657
14658 * localedata/Makefile: Remove --quiet argument when
14659 installing locales
14660
14661 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14662
14663 [BZ #17438]
14664 * localedata/locales/pt_BR (LC_TIME): use / instead of -
14665 in d_fmt.
14666 * localedata/locales/pt_PT (LC_TIME): likewise
14667
14668 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14669
14670 [BZ #22646]
14671 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
14672 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
14673 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
14674
14675 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14676
14677 * sysdeps/sparc/fpu/libm-test-ulps: Update.
14678
14679 * nptl/Makefile (routines): Remove unregister-atfork.
14680 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
14681 (fork_handler_alloc): Remove function.
14682 (fork_handlers, fork_handler_init): New variables.
14683 (__fork_lock): Rename to atfork_lock.
14684 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
14685 to use a dynamic array to add/remove atfork handlers.
14686 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14687 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
14688 Remove declaration.
14689 (fork_handler): Remove next, refcntr, and need_signal member.
14690 (__run_fork_handler_type): New enum.
14691 (__run_fork_handlers): New prototype.
14692 * nptl/register-atfork.c: Remove file.
14693 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
14694
14695 * sysdeps/nptl/nptl-signals.h: Move to ...
14696 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
14697 comments.
14698 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
14699 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
14700 unnecessary check for SIGTIMER.
14701 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
14702 remove unnecessary removal of SIGTIMER.
14703 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
14704 include-signals.h rename.
14705 * nptl/pthreadP.h: Likewise.
14706 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
14707 __is_internal_signal instead of __nptl_is_internal_signal.
14708
14709 2018-02-22 Andrew Waterman <andrew@sifive.com>
14710
14711 [BZ # 22884]
14712 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
14713 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
14714 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
14715 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
14716
14717 2018-02-22 DJ Delorie <dj@delorie.com>
14718
14719 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
14720
14721 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
14722
14723 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
14724 do_misaligned, not misaligned8.
14725
14726 2018-02-22 Steve Ellcey <sellcey@cavium.com>
14727
14728 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
14729 Add memcpy_thunderx2.
14730 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
14731 Increment to 4.
14732 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
14733 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
14734 and IS_THUNDERX2PA checks.
14735 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
14736 Use macro to set name appropriately.
14737 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
14738 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
14739 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
14740 New macro.
14741 (IS_THUNDERX2): New macro.
14742
14743 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
14744
14745 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14746
14747 2018-02-21 Zack Weinberg <zackw@panix.com>
14748
14749 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
14750 Define here, unconditionally.
14751 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
14752 * libio/libioP.h: Remove #if 0 blocks.
14753 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
14754 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
14755 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
14756
14757 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
14758 Assume weak_alias is always defined.
14759
14760 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
14761 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
14762 Remove #if 0 and #ifdef TODO blocks.
14763 Assume text_set_element is always defined.
14764
14765 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
14766 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
14767 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
14768
14769 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
14770 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
14771 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
14772 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
14773 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
14774 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
14775 Reformat bit flags for _flags field to make occupancy clearer.
14776 Update commentary.
14777 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
14778 Keep definitions consistent with those in libio/libio.h.
14779
14780 * libio/libio.h (_IO_file_flags): Remove macro.
14781 All uses changed to _flags.
14782
14783 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
14784 (__HAVE_COLUMN, _IO_BE): Don't define.
14785 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
14786 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
14787 * libio/libioP.h (EOF): Don't define.
14788 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
14789 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
14790 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
14791 testing _IO_UNIFIED_JUMPTABLES.
14792
14793 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
14794 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
14795 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
14796 (_IO_size_t): Delete; all uses changed to size_t.
14797 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
14798 (_IO_off_t): Delete; all uses changed to off_t.
14799 (_IO_off64_t): Delete; all uses changed to off64_t.
14800 (_IO_pid_t): Delete; all uses changed to pid_t.
14801 (_IO_uid_t): Delete; all uses changed to uid_t.
14802 (_IO_wint_t): Delete; all uses changed to wint_t.
14803 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
14804 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
14805 (_IO_cookie_io_functions_t): Delete; all uses changed to
14806 cookie_io_functions_t.
14807 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
14808 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
14809 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
14810 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
14811
14812 * libio/iofopncook.c: Remove unnecessary forward declarations.
14813 * libio/iolibio.h: Correct outdated commentary.
14814 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
14815 * stdio-common/fxprintf.c (__fxprintf_nocancel):
14816 Remove unnecessary casts.
14817 * stdio-common/getline.c: Use _IO_getdelim directly.
14818 Don't redefine ssize_t.
14819 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
14820 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
14821 Remove outdated comments.
14822 * stdio-common/vfscanf.c: Don't redefine va_list.
14823
14824 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
14825 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
14826 Remove preprocessor conditionals on _LIBC and __USE_GNU,
14827 which are always true, and __cplusplus, which is always false.
14828
14829 2018-02-21 Joseph Myers <joseph@codesourcery.com>
14830
14831 [BZ #15105]
14832 [BZ #19463]
14833 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
14834 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
14835 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
14836 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
14837 libc_hidden_proto.
14838 [!_ISOMAC] (putc_unlocked): Likewise.
14839 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
14840 define inline if [__USE_EXTERN_INLINES].
14841 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
14842 putc_unlocked.
14843
14844 [BZ #15105]
14845 [BZ #19463]
14846 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
14847 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
14848 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
14849 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
14850 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
14851 getc_unlocked.
14852 * time/tzfile.c (__tzfile_read): Likewise.
14853
14854 2018-02-21 Mike FABIAN <mfabian@redhat.com>
14855
14856 [BZ #22517]
14857 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
14858
14859 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14860
14861 * io/fcntl.h: Fix a typo in a comment.
14862
14863 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14864
14865 [BZ #22862]
14866 * include/features.h: Add _ISOC11_SOURCE to test for whether to
14867 define _DEFAULT_SOURCE.
14868 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
14869
14870 2018-02-21 Florian Weimer <fweimer@redhat.com>
14871
14872 [BZ #20890]
14873 * elf/cache.c (save_cache): Call fsync on temporary file before
14874 renaming it.
14875 (save_aux_cache): Call fdatasync on temporary file before renaming
14876 it.
14877
14878 2018-02-21 Florian Weimer <fweimer@redhat.com>
14879
14880 [BZ #22787]
14881 * include/caller.h: Remove file.
14882 * elf/dl-caller.c: Likewise.
14883 * elf/Makefile (dl-routines): Remove dl-caller.
14884 (shared-only-routines): Do not add dl-caller.
14885 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
14886 __check_caller.
14887 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
14888 member.
14889 (dl_open_worker): Do not call __check_caller.
14890 (_dl_open): Do not set caller_dl_open member.
14891 * elf/rtld.c (_rtld_global_ro): Do not initialize
14892 _dl_check_caller member.
14893 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
14894 _dl_check_caller member.
14895 (_dl_check_caller): Remove declaration.
14896 * sysdeps/unix/sysv/linux/dl-execstack.c
14897 (_dl_make_stack_executable): Do not call __check_caller.
14898
14899 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
14900
14901 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
14902 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
14903
14904 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14905
14906 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
14907 description.
14908
14909 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14910
14911 [BZ #16335]
14912 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
14913 of 199606L, 200112L, and 200809L.
14914 (_XOPEN_SOURCE): Document special values of 600 and 700.
14915 (_ISOC11_SOURCE): Document macro.
14916 (_ATFILE_SOURCE): Likewise.
14917 (_FORTIFY_SOURCE): Likewise.
14918
14919 2018-02-19 Joseph Myers <joseph@codesourcery.com>
14920
14921 [BZ #15105]
14922 [BZ #19463]
14923 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
14924 and define as weak alias of __ferror_unlocked. Use
14925 libc_hidden_weak.
14926 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
14927 libc_hidden_proto.
14928 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
14929 function if [__USE_EXTERN_INLINES].
14930 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
14931 ferror_unlocked.
14932
14933 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
14934
14935 [BZ #6889]
14936 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
14937
14938 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
14939
14940 [BZ #22818]
14941 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
14942 the GLIBC_2.1 version.
14943
14944 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
14945
14946 [BZ #21508]
14947 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
14948 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
14949 intl/tst-gettext-de.po from po/de.po by removing the
14950 POT-Creation-Date line.
14951 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
14952 ../po/de.po.
14953 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
14954 ../po/de.po.
14955
14956 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14957
14958 * mach/Makefile (headers): Add mach/param.h.
14959 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
14960 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
14961 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
14962 (__ptsname_r): Move implementation to...
14963 (__ptsname_internal): ... new function. Add filling the STP
14964 structure.
14965
14966 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
14967
14968 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
14969 idouble to 1 ULP.
14970
14971 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
14972
14973 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
14974 syntax.
14975
14976 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
14977
14978 * nptl/Makefile (tst-mutex8-ENV): Delete.
14979 * nptl/tst-mutex8.c (check_type):
14980 Add runtime check if mutex will be elided.
14981
14982 2018-02-15 Joseph Myers <joseph@codesourcery.com>
14983
14984 [BZ #20980]
14985 [BZ #21234]
14986 * manual/install.texi (Configuring and compiling): Describe
14987 passing CC and CFLAGS on configure command line, not as
14988 environment variables. Use @code markup on those variables.
14989 Specify what options go in CC and what go in CFLAGS. Note the
14990 requirement to compile with optimization.
14991 * INSTALL: Regenerated.
14992
14993 [BZ #18124]
14994 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
14995 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
14996 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
14997 __sigprocmask instead of sigprocmask.
14998 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
14999 Likewise.
15000 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15001 __sigsetjmp and sigprocmask.
15002
15003 [BZ #15105]
15004 * include/argz.h (argz_next): Use libc_hidden_proto.
15005 (__argz_next): Likewise.
15006 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15007 (argz_next): Use libc_hidden_weak.
15008
15009 [BZ #15105]
15010 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15011 libc_hidden_proto.
15012 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15013 libc_hidden_def.
15014
15015 [BZ #15105]
15016 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15017 libc_hidden_proto.
15018 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15019
15020 [BZ #15105]
15021 [BZ #19463]
15022 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15023 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15024 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15025 (__feof_unlocked): New declaration, and inline function if
15026 [__USE_EXTERN_INLINES].
15027 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15028 instead of feof_unlocked.
15029 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15030 * nss/nsswitch.c (nss_parse_file): Likewise.
15031 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15032 Likewise.
15033 * time/getdate.c (__getdate_r): Likewise.
15034 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15035 Define as macro to call __feof_unlocked.
15036
15037 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15038
15039 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15040
15041 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15042
15043 * math/Makefile: Remove mpexp.c and mplog.c
15044 * sysdeps/i386/fpu/mpexp.c: Delete file.
15045 * sysdeps/i386/fpu/mplog.c: Likewise.
15046 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15047 * sysdeps/ia64/fpu/mplog.c: Likewise.
15048 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15049 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15050 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15051 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15052 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15053 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15054 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15055 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15056 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15057 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15058 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15059 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15060 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15061 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15062 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15063 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15064
15065 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15066
15067 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15068
15069 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15070
15071 * sysdeps/sh/libm-test-ulps: Update.
15072
15073 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15074
15075 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15076 idouble to 1 ULP.
15077
15078 2018-02-12 Zack Weinberg <zackw@panix.com>
15079
15080 [BZ #19239]
15081 * posix/sys/types.h: Don't include sys/sysmacros.h.
15082 * misc/sys/sysmacros.h: Remove the conditional deprecation
15083 warnings for the macros defined by this header.
15084
15085 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15086
15087 * manual/probes.texi: Remove slowexp probes.
15088 * math/Makefile: Remove slowexp.
15089 * sysdeps/generic/math_private.h (__slowexp): Remove.
15090 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15091 document error bounds.
15092 * sysdeps/i386/fpu/slowexp.c: Remove.
15093 * sysdeps/ia64/fpu/slowexp.c: Remove.
15094 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15095 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15096 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15097 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15098 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15099 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15100 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15101 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15102 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15103 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15104 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15105
15106 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15107
15108 [BZ #13932]
15109 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15110 * benchtests/pow-inputs: Update comment for slow path cases.
15111 * manual/probes.texi (slowpow_p10): Delete removed probe.
15112 (slowpow_p10): Likewise.
15113 * math/Makefile: Remove halfulp.c and slowpow.c.
15114 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15115 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15116 (__halfulp): Remove.
15117 (__slowpow): Remove.
15118 * sysdeps/i386/fpu/halfulp.c: Delete file.
15119 * sysdeps/i386/fpu/slowpow.c: Likewise.
15120 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15121 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15122 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15123 improve comments and add error analysis.
15124 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15125 (power1): Remove function:
15126 (log1): Remove error argument, add error analysis.
15127 (my_log2): Remove function.
15128 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15129 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15130 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15131 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15132 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15133 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15134 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15135 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15136 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15137 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15138 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15139 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15140 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15141 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15142
15143 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15144
15145 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15146 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15147
15148 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15149
15150 [BZ #22433]
15151 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15152 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15153 and PTRACE_SETHBPREGS.
15154
15155 2018-02-10 Zack Weinberg <zackw@panix.com>
15156
15157 [BZ #22830]
15158 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15159 correctly.
15160 * malloc/tst-malloc-stats-cancellation.c: New test case.
15161 * malloc/Makefile: Add new test case.
15162
15163 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15164
15165 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15166
15167 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15168
15169 * math/Makefile (libm-narrow-fns): Add add.
15170 (libm-test-funcs-narrow): Likewise.
15171 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15172 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15173 * math/gen-auto-libm-tests.c (test_functions): Add add.
15174 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15175 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15176 (NARROW_ADD_TRIVIAL): Likewise.
15177 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15178 macro.
15179 (__daddl): Likewise.
15180 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15181 dadd.
15182 (CFLAGS-nldbl-dadd.c): New variable.
15183 (CFLAGS-nldbl-fadd.c): Likewise.
15184 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15185 __nldbl_daddl.
15186 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15187 prototype.
15188 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15189 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15190 * math/auto-libm-test-in: Add tests of add.
15191 * math/auto-libm-test-out-narrow-add: New generated file.
15192 * math/libm-test-narrow-add.inc: New file.
15193 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15194 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15195 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15196 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15197 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15198 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15199 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15200 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15201 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15202 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15203 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15204 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15205 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15206 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15207 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15208 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15209 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15210 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15211 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15212 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15213 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15214 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15215 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15216 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15217 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15218 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15219 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15220 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15221 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15222 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15223 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15224 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15225 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15226 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15227 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15228 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15229 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15230 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15231 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15232 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15233 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15234 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15235 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15236 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15237 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15238 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15239
15240 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15241 (f128-pairs): New variable.
15242 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15243 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15244 to CFLAGS.
15245 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15246 Also make tests add $(f128-loader-link) to gnulib-tests.
15247
15248 2018-02-09 DJ Delorie <dj@redhat.com>
15249
15250 [BZ #22827]
15251 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15252 64-bit ELF type for 64-bit ELF objects.
15253
15254 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15255
15256 * math/libm-test-driver.c (snan_tests_arg): New variable.
15257 * math/libm-test-support.h (snan_tests_arg): New declaration.
15258 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15259
15260 * math/Makefile (test-type-pairs): New variable.
15261 (test-type-pairs-f64xf128-yes): Likewise.
15262 (tests): Add test-narrow-macros.
15263 (libm-test-funcs-narrow): New variable.
15264 (libm-test-c-narrow): Likewise.
15265 (generated): Add $(libm-test-c-narrow).
15266 (libm-tests-base-narrow): New variable.
15267 (libm-tests-narrow): Likewise.
15268 (libm-tests): Add $(libm-tests-narrow).
15269 (libm-tests-for-type): Handle $(libm-tests-narrow).
15270 (libm-test-c-narrow-obj): New variable.
15271 ($(libm-test-c-narrow-obj)): New rule.
15272 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15273 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15274 $(o-iterator) to set dependencies and CFLAGS.
15275 * math/gen-auto-libm-tests.c: Document use for narrowing
15276 functions.
15277 (output_for_one_input_case): Take argument NARROW.
15278 (generate_output): Likewise. Update call to
15279 output_for_one_input_case.
15280 (main): Take --narrow option. Update call to generate_output.
15281 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15282 (apply_lit): Update call to _apply_lit.
15283 (apply_arglit): New function.
15284 (parse_args): Handle "a" arguments.
15285 (parse_auto_input): Handle format names using ":".
15286 * math/README.libm-test: Document "a" parameter type.
15287 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15288 (ARG_TYPE_TRUE_MIN): Likewise.
15289 (ARG_TYPE_MAX): Likwise.
15290 (ARG_MIN_EXP): Likewise.
15291 (ARG_MAX_EXP): Likewise.
15292 (ARG_MANT_DIG): Likewise.
15293 (TEST_COND_arg_ibm128): Likewise.
15294 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15295 (TEST_COND_arg_fmt): New macro.
15296 (init_max_error): Update prototype.
15297 * math/libm-test-support.c (test_ibm128): New variable.
15298 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15299 instead of using [TEST_COND_ibm128] conditional.
15300 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15301 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15302 [TEST_NARROW] (TEST_MSG): New definition.
15303 (arg_plus_zero): New macro.
15304 (arg_minus_zero): Likewise.
15305 (arg_plus_infty): Likewise.
15306 (arg_minus_infty): Likewise.
15307 (arg_qnan_value_pl): Likewise.
15308 (arg_qnan_value): Likewise.
15309 (arg_snan_value_pl): Likewise.
15310 (arg_snan_value): Likewise.
15311 (arg_max_value): Likewise.
15312 (arg_min_value): Likewise.
15313 (arg_min_subnorm_value): Likewise.
15314 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
15315 (RUN_TEST_LOOP_aa_f): New macro.
15316 (TEST_SUFF): New macro.
15317 (TEST_SUFF_STR): Likewise.
15318 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
15319 (TEST_COND_any_ibm128): New macro.
15320 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
15321 this_func. Update call to init_max_error.
15322 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15323 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15324 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15325 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15326 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15327 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15328 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15329 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15330 * math/test-math-vector.h (TEST_NARROW): Likewise.
15331 * math/test-arg-double.h: New file.
15332 * math/test-arg-float128.h: Likewise.
15333 * math/test-arg-float32x.h: Likewise.
15334 * math/test-arg-float64.h: Likewise.
15335 * math/test-arg-float64x.h: Likewise.
15336 * math/test-arg-ldouble.h: Likewise.
15337 * math/test-math-narrow.h: Likewise.
15338 * math/test-narrow-macros.c: Likewise.
15339 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
15340 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
15341 test-narrow-macros-ldbl-64.
15342 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
15343
15344 * math/bits/mathcalls-narrow.h: New file.
15345 * include/bits/mathcalls-narrow.h: Likewise.
15346 * math/math-narrow.h: Likewise.
15347 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
15348 (__MATHCALL_NARROW_ARGS_2): Likewise.
15349 (__MATHCALL_NARROW_ARGS_3): Likewise.
15350 (__MATHCALL_NARROW_NORMAL): Likewise.
15351 (__MATHCALL_NARROW_REDIR): Likewise.
15352 (__MATHCALL_NARROW): Likewise.
15353 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
15354 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
15355 defined.
15356 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
15357 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
15358 (libm-narrow-fns): New variable.
15359 (libm-narrow-types-basic): Likewise.
15360 (libm-narrow-types-ldouble-yes): Likewise.
15361 (libm-narrow-types-float128-yes): Likewise.
15362 (libm-narrow-types-float128-alias-yes): Likewise.
15363 (libm-narrow-types): Likewise.
15364 (libm-routines): Add narrowing functions.
15365 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
15366 (libc_feholdexcept_setroundf128): New macro.
15367 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
15368 * sysdeps/ieee754/float128/float128_private.h: Include
15369 <math/math-narrow.h>.
15370 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
15371 Undefine and redefine.
15372 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
15373 (libm_alias_float_ldouble): Undefine and redefine.
15374 (libm_alias_double_ldouble): Likewise.
15375
15376 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
15377
15378 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
15379
15380 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
15381 FPCR/FPSR.
15382
15383 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
15384
15385 * manual/creature.texi: Convert references to gcc.info to gcc.
15386 * manual/stdio.texi: Likewise.
15387 * manual/string.texi: Likewise.
15388
15389 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15390
15391 [BZ #17979]
15392 * posix/bits/types.h (__int_least8_t): New typedef.
15393 (__uint_least8_t): Likewise.
15394 (__int_least16_t): Likewise.
15395 (__uint_least16_t): Likewise.
15396 (__int_least32_t): Likewise.
15397 (__uint_least32_t): Likewise.
15398 (__int_least64_t): Likewise.
15399 (__uint_least64_t): Likewise.
15400 * sysdeps/generic/stdint.h (int_least8_t): Define using
15401 __int_least8_t.
15402 (int_least16_t): Define using __int_least16_t.
15403 (int_least32_t): Define using __int_least32_t.
15404 (int_least64_t): Define using __int_least64_t.
15405 (uint_least8_t): Define using __uint_least8_t.
15406 (uint_least16_t): Define using __uint_least16_t.
15407 (uint_least32_t): Define using __uint_least32_t.
15408 (uint_least64_t): Define using __uint_least64_t.
15409 * wcsmbs/uchar.h: Include <bits/types.h>.
15410 (char16_t): Define using __uint_least16_t conditional only on
15411 [!__USE_ISOCXX11].
15412 (char32_t): Define using __uint_least32_t conditional only on
15413 [!__USE_ISOCXX11].
15414 * wcsmbs/test-char-types.c: New file.
15415 * wcsmbs/Makefile (tests): Add test-char-types.
15416
15417 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15418 version to 4.0.1.
15419
15420 2018-02-07 Zack Weinberg <zackw@panix.com>
15421
15422 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
15423 Delete all contents except for definitions of _G_HAVE_MMAP and
15424 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
15425 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
15426 sysdeps/unix/sysv/linux/_G_config.h. Make same content
15427 change as above.
15428
15429 * libio/libio.h: Don't include bits/_G_config.h here.
15430 Include stddef.h with __need_wchar_t defined. Include
15431 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
15432 Define _IO_iconv_t here, directly.
15433 Don't define _IO_HAVE_ST_BLKSIZE.
15434 * libio/libioP.h: Include _G_config.h here. Move include of
15435 shlib-compat.h up with rest of includes. Simplify conditionals
15436 controlling definition of _IO_JUMPS_OFFSET.
15437
15438 * csu/init.c: Remove always-true #if around entire file.
15439 Don't include stdio.h. Set _IO_stdin_used to hardwired
15440 constant 0x20001, and update commentary.
15441 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
15442 Replace all uses of _G_va_list with __gnuc_va_list.
15443 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
15444 instead of #if _IO_HAVE_ST_BLKSIZE.
15445 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
15446 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
15447 not #ifdef.
15448
15449 * libio/bits/libio.h: Move back to libio/libio.h and adjust
15450 multiple-include guard to match.
15451 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
15452 into this file.
15453 Remove preprocessor conditionals that are always true and/or
15454 redundant to other preprocessor conditionals in the same nest.
15455 Include shlib-compat.h unconditionally.
15456 Error out if _LIBC is not defined, or if _ISOMAC is defined,
15457 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
15458 defined after including stdio.h.
15459 Use __BEGIN_DECLS/__END_DECLS.
15460
15461 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
15462 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
15463 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
15464
15465 2018-02-07 Zack Weinberg <zackw@panix.com>
15466
15467 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
15468 New single-type headers split from _G_config.h.
15469 * libio/bits/types/cookie_io_functions_t.h
15470 * libio/bits/types/struct_FILE.h
15471 New single-type headers split from libio.h.
15472
15473 * libio/Makefile: Install the above new headers. Don't install
15474 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
15475 bits/libio-ldbl.h.
15476 * libio/_G_config.h, libio/libio.h: Delete file.
15477
15478 * libio/bits/libio.h: Remove improper-inclusion guard.
15479 Include stdio.h and don't repeat anything that it does.
15480 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
15481 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
15482 __io_read_fn as cookie_read_function_t,
15483 __io_write_fn as cookie_write_function_t,
15484 __io_seek_fn as cookie_seek_function_t,
15485 __io_close_fn as cookie_close_function_t,
15486 and _IO_cookie_io_functions_t as cookie_io_functions_t.
15487 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
15488 here, in the "compatibility defines" section. Remove an #if 0
15489 block. Use the "body" macros from bits/types/struct_FILE.h to
15490 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
15491 and _IO_ferror_unlocked.
15492 Move prototypes of __uflow and __overflow...
15493
15494 * libio/stdio.h: ...here. Don't include bits/libio.h.
15495 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
15496 directly from stdarg.h. Include bits/types/__fpos_t.h,
15497 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
15498 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
15499 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
15500 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
15501 cookie_io_functions_t, not _IO_cookie_io_functions_t;
15502 __ssize_t, not _IO_ssize_t. Unconditionally define
15503 BUFSIZ as 8192 and EOF as (-1).
15504
15505 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
15506 macros from bits/types/struct_FILE.h instead of _IO_* macros
15507 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
15508 instead of _IO_ssize_t.
15509 * libio/bits/stdio2.h: Similarly.
15510
15511 * libio/iolibio.h: Add multiple-include guard.
15512 Include bits/libio.h after stdio.h.
15513 * libio/libioP.h: Add multiple-include guard.
15514 Include stdio.h and bits/libio.h before iolibio.h.
15515
15516 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
15517 * include/bits/types/cookie_io_functions_t.h
15518 * include/bits/types/struct_FILE.h: New wrappers.
15519
15520 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
15521 Get definitions of _G_fpos_t and _G_fpos64_t from
15522 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
15523 respectively. Remove improper-inclusion guards.
15524
15525 * conform/data/stdio.h-data: Update expectations of va_list.
15526 * scripts/check-installed-headers.sh: Remove special case for
15527 libio.h and _G_config.h.
15528
15529 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15530
15531 [BZ #15105]
15532 [BZ #19463]
15533 * include/sys/sysmacros.h [!_ISOMAC]
15534 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
15535 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
15536 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
15537 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
15538 libc_hidden_proto.
15539 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
15540 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
15541 Likewise.
15542 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
15543 Undefine and redefine to add use __gnu_dev_ prefix.
15544 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
15545 Likewise.
15546 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
15547 and define as hidden inline function.
15548 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
15549 Likewise.
15550 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
15551 Likewise.
15552 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
15553 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
15554 (gnu_dev_minor): Likewise.
15555 (gnu_dev_makedev): Likewise.
15556 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
15557 makedev.
15558 * posix/wordexp.c (exec_comm_child): Likewise.
15559 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
15560 instead of minor and __gnu_dev_major instead of major.
15561 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
15562 __gnu_dev_major instead of major.
15563 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
15564 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
15565 instead of gnu_dev_minor.
15566 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
15567 (SLAVE_P): Likewise.
15568 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
15569 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
15570 instead of major.
15571
15572 [BZ #21313]
15573 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
15574 in another place.
15575 * locale/weightwc.h (findidx): Likewise.
15576
15577 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
15578
15579 * manual/probes.texi (slowlog): Delete documentation of removed probe.
15580 (slowlog_inexact): Likewise
15581 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
15582 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
15583
15584 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
15585
15586 [BZ #22797]
15587 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
15588 missing second underscore to parameter name.
15589
15590 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15591
15592 [BZ #14508]
15593 [BZ #15512]
15594 [BZ #17082]
15595 [BZ #20530]
15596 * bits/byteswap.h: Update file comment. Do not include
15597 <bits/byteswap-16.h>.
15598 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
15599 constant.
15600 (__bswap_16): Define as inline function.
15601 (__bswap_constant_32): Reformat definition.
15602 (__bswap_32): Always define as inline function, not macro, using
15603 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
15604 otherwise __bswap_constant_32.
15605 (__bswap_constant_64): Reformat definition. Do not use
15606 __extension__ here.
15607 (__bswap_64): Always define as inline function, not macro. Use
15608 __extension__ on function definition. Use __builtin_bswap64 if
15609 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
15610 * string/test-endian-file-scope.c: New file.
15611 * string/test-endian-sign-conversion.c: Likewise.
15612 * string/Makefile (headers): Remove bits/byteswap-16.h.
15613 (tests): Add test-endian-file-scope and
15614 test-endian-sign-conversion.
15615 (CFLAGS-test-endian-sign-conversion.c): New variable.
15616 * bits/byteswap-16.h: Remove file.
15617 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
15618 * sysdeps/ia64/bits/byteswap.h: Likewise.
15619 * sysdeps/m68k/bits/byteswap.h: Likewise.
15620 * sysdeps/s390/bits/byteswap-16.h: Likewise.
15621 * sysdeps/s390/bits/byteswap.h: Likewise.
15622 * sysdeps/tile/bits/byteswap.h: Likewise.
15623 * sysdeps/x86/bits/byteswap-16.h: Likewise.
15624 * sysdeps/x86/bits/byteswap.h: Likewise.
15625
15626 [BZ #17721]
15627 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
15628 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
15629 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
15630 199901L] (__restrict): Define to restrict.
15631
15632 [BZ #19667]
15633 * string/testcopy.c: Include <support/support.h>. Do not include
15634 <malloc.h>. Use <support/test-driver.c>.
15635 (main): Rename to do_test. Make static. Use xmalloc instead of
15636 malloc.
15637
15638 [BZ #13575]
15639 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
15640 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
15641 (SSIZE_MAX): Define to INT_MAX.
15642 * posix/test-ssize-max.c: New file.
15643 * posix/Makefile (tests): Add test-ssize-max.
15644
15645 [BZ #19668]
15646 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
15647 <support/support.h>. Do not include <malloc.h>.
15648 (query_auxv): Use xmalloc instead of malloc.
15649
15650 [BZ #14553]
15651 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
15652 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
15653 instead of loff_t.
15654
15655 2018-02-06 Florian Weimer <fweimer@redhat.com>
15656
15657 [BZ #18023]
15658 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15659 Use scratch_buffer instead of extend_alloca.
15660
15661 2018-02-06 Zack Weinberg <zackw@panix.com>
15662
15663 * libio/stdio.h: Don't define getc or putc as macros.
15664 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
15665 not _IO_getc and _IO_putc.
15666
15667 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
15668 * stdio-common/tstgetln.c: Don't redefine ssize_t.
15669
15670 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15671
15672 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
15673 (TCP_FASTOPEN_NO_COOKIE): Likewise.
15674
15675 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
15676
15677 [BZ #14890]
15678 * elf/elf.h (NT_PRFPREG): New macro.
15679 (NT_S390_VXRS_LOW): Likewise.
15680 (NT_S390_VXRS_HIGH): Likewise.
15681 (NT_S390_GS_CB): Likewise.
15682 (NT_S390_GS_BC): Likewise.
15683 (NT_S390_RI_CB): Likewise.
15684
15685 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
15686 (MAP_SYNC): New macro.
15687 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
15688 Likewise.
15689 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
15690 (MAP_SYNC): Likewise.
15691 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
15692 (MAP_SYNC): Likewise.
15693 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
15694 (MAP_SYNC): Likewise.
15695 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
15696 (MAP_SYNC): Likewise.
15697 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
15698 (MAP_SYNC): Likewise.
15699 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
15700 (MAP_SYNC): Likewise.
15701 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
15702 Likewise.
15703 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
15704 Likewise.
15705
15706 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
15707 (MAP_SHARED_VALIDATE): New macro.
15708 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15709 (MAP_SHARED_VALIDATE): Likewise.
15710
15711 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15712
15713 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
15714 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
15715 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
15716
15717 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15718
15719 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
15720 (DT_NUM): Updated to 35.
15721
15722 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15723
15724 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
15725 __builtin_expect with __glibc_likely and __glibc_unlikely.
15726 (elf_machine_rela): Likewise.
15727 (elf_machine_lazy_rel): Likewise.
15728
15729 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15730
15731 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
15732 __builtin_expect with __glibc_likely and __glibc_unlikely.
15733 (elf_machine_lazy_rel): Likewise.
15734
15735 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15736
15737 [BZ #22638]
15738 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
15739 SHARED.
15740 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
15741
15742 2018-02-05 Andreas Schwab <schwab@suse.de>
15743
15744 [BZ #22761]
15745 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
15746 string.
15747
15748 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
15749
15750 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
15751 not check against PTHREAD_STACK_MIN.
15752
15753 2018-02-02 Sean McKean <smckean83@gmail.com>
15754
15755 [BZ #22735]
15756 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
15757
15758 2018-02-02 Florian Weimer <fweimer@redhat.com>
15759
15760 [BZ #22753]
15761 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
15762 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
15763 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
15764 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
15765 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
15766 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
15767 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
15768 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
15769 * manual/llio.texi (Scatter-Gather): Mention offset -1.
15770 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
15771 * misc/tst-preadvwritev2.c (do_test): Call it.
15772 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
15773
15774 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
15775
15776 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
15777
15778 * benchtests/bench-memcmp.c: Print json instead of plain text.
15779
15780 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
15781 every test run.
15782
15783 2018-02-01 Joseph Myers <joseph@codesourcery.com>
15784
15785 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15786 version to 4.15.
15787 (s390_sthyi): New syscall.
15788
15789 * sysdeps/generic/ldbl-classify-compat.h: New file.
15790 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
15791 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
15792 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
15793 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
15794 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
15795 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
15796 * sysdeps/ieee754/dbl-64/s_finite.c: Include
15797 <ldbl-classify-compat.h>.
15798 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15799 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
15800 <ldbl-classify-compat.h>.
15801 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15802 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
15803 <ldbl-classify-compat.h>.
15804 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15805 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
15806 <ldbl-classify-compat.h>.
15807 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15808 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
15809 <ldbl-classify-compat.h>.
15810 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15811 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
15812 <ldbl-classify-compat.h>.
15813 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15814 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
15815 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
15816 * sysdeps/m68k/coldfire/math_private.h: Remove file.
15817 * sysdeps/microblaze/math_private.h: Likewise.
15818 * sysdeps/nios2/math_private.h: Likewise.
15819 * sysdeps/sh/math_private.h: Likewise.
15820
15821 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
15822 * sysdeps/m68k/coldfire/math_private.h: ... here.
15823 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
15824 * sysdeps/tile/math_private.h: Likewise.
15825 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
15826 Remove macro.
15827 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
15828 Likewise.
15829
15830 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
15831 Remove macro.
15832 (libc_fetestexcept): Likewise.
15833 (libc_feupdateenv_test): Likewise.
15834 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
15835 (libc_fetestexcept): Likewise.
15836 (libc_feupdateenv_test): Likewise.
15837 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
15838 (libc_fetestexcept): Likewise.
15839 (libc_feupdateenv_test): Likewise.
15840 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
15841 (libc_fetestexcept): Likewise.
15842 (libc_feupdateenv_test): Likewise.
15843
15844 * sysdeps/generic/math_private.h
15845 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
15846 New inline function.
15847 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
15848 Likewise.
15849
15850 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
15851 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
15852 * sysdeps/generic/math_private.h
15853 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
15854 inline function.
15855 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
15856 Likewise.
15857 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
15858 Likewise.
15859 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
15860 Likewise.
15861 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
15862 Likewise.
15863 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
15864 Likewise.
15865 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
15866 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
15867 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
15868 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
15869 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
15870 (__fegetenv): Likewise.
15871 (fesetenv): Likewise.
15872 (__fesetenv): Likewise.
15873 (feupdateenv): Likewise.
15874 (__feupdateenv): Likewise.
15875 (fegetround): Likewise.
15876 (__fegetround): Likewise.
15877 (fesetround): Likewise.
15878 (__fesetround): Likewise.
15879
15880 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
15881 (feraiseexcept): New macro.
15882 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
15883 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
15884 Remove macro.
15885 (__feraiseexcept): Likewise.
15886 (feclearexcept): Likewise.
15887 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
15888 (__feraiseexcept): Likewise.
15889 (feclearexcept): Likewise.
15890 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
15891 (__feraiseexcept): Likewise.
15892 (feclearexcept): Likewise.
15893 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
15894 (__feraiseexcept): Likewise.
15895 (feclearexcept): Likewise.
15896 (fetestexcept): Likewise.
15897
15898 * sysdeps/m68k/coldfire/math-tests.h: New file.
15899
15900 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
15901 * sysdeps/m68k/bits/fenv.h: ... here.
15902 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
15903 not define.
15904 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
15905 Likewise.
15906 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
15907 Likewise.
15908 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
15909 Likewise.
15910 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
15911 Likewise.
15912 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
15913 Define to 0.
15914 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
15915 (__FE_UNDEFINED): New enum constant.
15916 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
15917 Do not define.
15918 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
15919 Likewise.
15920 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
15921 Likewise.
15922 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
15923 to match generic bits/fenv.h.
15924 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
15925 Do not define.
15926
15927 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
15928 packed on bits.
15929 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
15930 * soft-fp/half.h (union _FP_UNION_H): Likewise.
15931 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
15932 * soft-fp/single.h (union _FP_UNION_S): Likewise.
15933
15934 2018-02-01 Carlos O'Donell <carlos@redhat.com>
15935 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
15936 Joseph Myers <joseph@codesourcery.com>
15937
15938 [BZ #21314]
15939 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
15940 (__log1p): Disable -Wmaybe-uninitialized for -Os around
15941 computation using c.
15942 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
15943 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
15944 computation using c.
15945
15946 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
15947
15948 * version.h (RELEASE): Set to "development".
15949 (VERSION): Set to "2.27.9000".
15950 * NEWS (2.28): New section.
15951
15952 * version.h (RELEASE): Set to "stable".
15953 (VERSION): Set to "2.27".
15954 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
15955
15956 * NEWS: Add the list of bugs fixed in 2.27.
15957
15958 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15959
15960 * stdlib/test-atexit-race-common.c (do_test): Check stack size
15961 against PTHREAD_STACK_MIN.
15962
15963 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
15964
15965 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
15966 New entries.
15967 (Rafal Luzynski, Andreas Schwab): Update.
15968
15969 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
15970
15971 [BZ #10871]
15972 * NEWS: List the languages which actually use the alternative
15973 months feature in this release. Also explain that "alt_mon" and
15974 "ab_alt_mon" are optional.
15975
15976 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
15977
15978 [BZ #22765]
15979 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
15980
15981 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
15982
15983 * manual/install.texi (Tools for Compilation): Update the newest
15984 versions of gcc, binutils, texinfo, gawk, bison, and sed.
15985 * INSTALL: Regenerated.
15986
15987 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
15988
15989 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
15990 instead of __builtin_expect.
15991
15992 2018-01-30 Florian Weimer <fweimer@redhat.com>
15993
15994 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
15995 data.
15996 * nss/tst-nss-getpwent.c (do_test): Likewise.
15997
15998 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
15999
16000 [BZ #10871]
16001 * localedata/locales/hr_HR (mon): Rename to...
16002 (alt_mon): This.
16003 (mon): Import from CLDR (genitive case).
16004 (d_t_fmt): Update the comment.
16005
16006 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16007
16008 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16009 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16010 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16011
16012 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16013
16014 * mach/Versions: Fix version when __mach_host_self_ was added.
16015 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16016 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16017 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16018 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16019 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16020 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16021 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16022 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16023 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16024 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16025 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16026 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16027 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16028 || to respect codestyle.
16029 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16030 (do_test_bz20181): Rename accordingly.
16031 * malloc/malloc.c: Include <assert.h>.
16032 (assert): Do not define.
16033 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16034 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16035 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16036 * sysdeps/mach/hurd/hp-timing.h: New file.
16037 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16038
16039 2018-01-29 Darius Rad <darius@bluespec.com>
16040
16041 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16042
16043 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16044
16045 * sysdeps/init_array/crti.S (.section .init_array): Add
16046 PREINIT_FUNCTION when defined.
16047 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16048 * config.h.in: Regenerate.
16049 * manual/platform.texi: Add RISC-V documenation for
16050 __riscv_flush_icache.
16051 * sysdeps/riscv/__longjmp.S: New file.
16052 * sysdeps/riscv/backtrace.c: Likewise.
16053 * sysdeps/riscv/bits/endian.h: Likewise.
16054 * sysdeps/riscv/bits/setjmp.h: Likewise.
16055 * sysdeps/riscv/bits/wordsize.h: Likewise.
16056 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16057 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16058 * sysdeps/riscv/dl-trampoline.S: Likewise.
16059 * sysdeps/riscv/gccframe.h: Likewise.
16060 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16061 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16062 * sysdeps/riscv/machine-gmon.h: Likewise.
16063 * sysdeps/riscv/memusage.h: Likewise.
16064 * sysdeps/riscv/setjmp.S: Likewise.
16065 * sysdeps/riscv/sys/asm.h: Likewise.
16066 * sysdeps/riscv/tls-macros.h: Likewise.
16067 * sysdeps/riscv/dl-tls.h: New file.
16068 * sysdeps/riscv/libc-tls.c: Likewise.
16069 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16070 * sysdeps/riscv/nptl/tls.h: Likewise.
16071 * sysdeps/riscv/stackinfo.h: Likewise.
16072 * sysdeps/riscv/bits/fenv.h: New file.
16073 * sysdeps/riscv/e_sqrtl.c: Likewise.
16074 * sysdeps/riscv/fpu_control.h: Likewise.
16075 * sysdeps/riscv/math-tests.h: Likewise.
16076 * sysdeps/riscv/nofpu/Implies: Likewise.
16077 * sysdeps/riscv/sfp-machine.h: Likewise.
16078 * sysdeps/riscv/tininess.h: Likewise.
16079 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16080 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16081 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16082 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16083 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16084 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16085 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16086 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16087 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16088 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16089 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16090 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16091 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16092 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16093 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16094 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16095 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16096 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16097 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16098 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16099 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16100 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16101 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16102 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16103 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16104 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16105 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16106 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16107 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16108 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16109 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16110 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16111 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16112 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16113 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16114 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16115 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16116 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16117 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16118 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16119 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16120 * sysdeps/riscv/rvf/math_private.h: Likewise.
16121 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16122 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16123 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16124 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16125 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16126 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16127 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16128 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16129 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16130 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16131 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16132 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16133 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16134 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16135 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16136 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16137 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16138 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16139 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16140 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16141 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16142 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16143 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16144 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16145 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16146 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16147 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16148 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16149 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16150 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16151 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16152 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16153 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16154 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16155 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16156 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16157 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16158 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16159 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16160 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16161 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16162 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16163 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16164 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16165 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16166 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16167 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16168 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16169 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16170 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16171 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16172 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16173 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16174 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16175 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16176 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16177 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16178 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16179 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16180 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16181 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16182 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16183 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16184 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16185 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16186 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16187 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16188 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16189 * sysdeps/riscv/Implies: New file.
16190 * sysdeps/riscv/Makefile: Likewise.
16191 * sysdeps/riscv/configure: Likewise.
16192 * sysdeps/riscv/configure.ac: Likewise.
16193 * sysdeps/riscv/nptl/Makefile: Likewise.
16194 * sysdeps/riscv/preconfigure: Likewise.
16195 * sysdeps/riscv/rv64/Implies-after: Likewise.
16196 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16197 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16198 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16199 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16200 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16201 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16202 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16203 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16204 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16205 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16206 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16207 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16208 (Config): Likewise.
16209
16210 2018-01-29 Florian Weimer <fweimer@redhat.com>
16211
16212 [BZ #22701]
16213 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16214 libnsl_hidden_proto.
16215 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16216 libnsl_hidden_proto.
16217 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16218 * nis/Makefile (libnsl-routines): Add nss-default only for
16219 build-obsolete-nsl.
16220 * nis/nis_defaults.c (__nis_default_ttl): Add
16221 libnsl_hidden_nolink_def.
16222 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16223 declaration.
16224 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16225 * nis/ypclnt.c (yp_maplist): Likewise.
16226
16227 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16228
16229 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16230 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16231
16232 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16233
16234 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16235 clean -dxfq for git updates when replacing sources.
16236
16237 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16238 --disable-libcilkrts unconditionally, not just for the final GCC
16239 build for Hurd.
16240
16241 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16242 version to 4.15.
16243
16244 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16245
16246 [BZ #10871]
16247 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16248 case).
16249
16250 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16251
16252 [BZ #10871]
16253 * localedata/locales/be_BY (mon): Rename to...
16254 (alt_mon): This, then synchronize with CLDR (nominative case).
16255 (abmon): Rename to...
16256 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16257 (mon): Import from CLDR (genitive case).
16258 (abmon): Likewise.
16259 * localedata/locales/be_BY@latin (mon): Rename to...
16260 (alt_mon): This.
16261 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16262
16263 * localedata/locales/be_BY@latin (lang_name): Reworded to
16264 "biełaruskaja mova".
16265
16266 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16267
16268 [BZ #10871]
16269 * localedata/locales/el_CY (mon): Renamed to...
16270 (alt_mon): This.
16271 (mon): Import from CLDR (genitive case).
16272 * localedata/locales/el_GR: Likewise.
16273
16274 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16275
16276 [BZ #10871]
16277 * localedata/locales/ru_RU (mon): Rename to...
16278 (alt_mon): This.
16279 (abmon): Rename to...
16280 (ab_alt_mon): This.
16281 (mon): Import from CLDR (genitive case).
16282 (abmon): Copy from the old content except the 5th month which is
16283 now in the genitive case, even when abbreviated.
16284 * localedata/locales/ru_UA: Likewise.
16285 * time/tst-strptime.c (day_tests): Add an actual example of
16286 a difference between %b and %Ob in Russian.
16287
16288 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16289
16290 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16291 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16292 a `c' variable.
16293 * resolv/res-close.c: Include <stdlib.h>.
16294 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16295 <sys/wait.h>, <time.h>, <sys/uio.h>.
16296 (NOT_CANCEL_H): Add inclusion guard.
16297 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16298 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16299 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16300 return 0.
16301 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16302 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16303 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16304 instead of void *.
16305 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16306 timer_ptr2id to cast struct timer_node * to void *.
16307 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16308 --disable-libcilkrts to gcc configure.
16309 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16310 and make them the default for now.
16311 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16312 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16313 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16314 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
16315 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
16316 MACH_IPC_COMPAT.
16317 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
16318 __task_terminate would ever return successfully.
16319 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
16320 to global scope.
16321 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
16322 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16323 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16324 critical section to make code simpler and avoid warning.
16325 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16326 critical section to make code simpler and avoid warning.
16327 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16328 const char * instead of char *.
16329 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16330 __hurd_file_name_split, hurd_file_name_split,
16331 __hurd_directory_name_split, hurd_directory_name_split,
16332 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16333 hurd_file_name_path_lookup): Make lookup function parameter take a
16334 const char *name instead of char *name.
16335 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16336 __hurd_directory_name_split): Likewise.
16337 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16338 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
16339 * sysdeps/mach/hurd/check_native.c: New file.
16340 * sysdeps/mach/hurd/check_pf.c: New file.
16341 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
16342 (__freeifaddrs): Define macro to freeifaddrs.
16343 * sysdeps/mach/hurd/libhurduser.abilist: New file.
16344 * sysdeps/mach/libmachuser.abilist: New file.
16345 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
16346 (do_test_bz20181): Rename accordingly.
16347 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
16348 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
16349 <sys/mount.h>.
16350 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
16351 version only if __USE_EXTERN_INLINES is defined.
16352 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
16353 __hurd_sockfail): Likewise.
16354 (_hurd_fd_get): Always declare functions, and provide inline versions
16355 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
16356 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
16357 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
16358 _hurd_port_set): Always declare functions, and provide inline versions
16359 only if __USE_EXTERN_INLINES and _LIBC are defined and
16360 IS_IN(libc).
16361 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
16362 _hurd_critical_section_unlock): Likewise.
16363 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
16364 * __hurd_threadvar_location): Likewise.
16365 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
16366 _hurd_userlink_clear): Likewise.
16367 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
16368 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
16369 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
16370 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
16371 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
16372 __spin_lock_locked): Likewise.
16373 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
16374 __spin_lock_locked): Likewise.
16375 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
16376 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
16377 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
16378 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
16379 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
16380 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
16381 _POSIX_NO_TRUNC): Define to 0.
16382 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
16383 check size against PTHREAD_STACK_MIN.
16384 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
16385 IS_IN(libpthread)]: Include <sigsetops.h>.
16386 * mach/Makefile (user-interfaces): Add mach/gnumach.
16387 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
16388 * sysdeps/mach/configure (mach_interface_list): Regenerate.
16389 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
16390 instead of invalid -1.
16391 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
16392 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
16393 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
16394 <net/ppp_defs.h>.
16395
16396 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
16397
16398 * hurd/fcntl-internal.h: New file.
16399
16400 2018-01-27 James Clarke <jrtc27@jrtc27.com>
16401
16402 * sysdeps/hppa/fpu/libm-test-ulps: Update.
16403
16404 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16405
16406 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
16407
16408 [BZ #22701]
16409 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
16410 Build only shared objects.
16411
16412 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16413
16414 * README: Update for hppa.
16415
16416 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
16417
16418 * sysdeps/sparc/fpu/libm-test-ulps: Update
16419 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
16420
16421 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16422
16423 Revert:
16424
16425 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16426
16427 [BZ #22563]
16428 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16429 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
16430 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16431 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
16432 to feature_1.
16433
16434 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16435
16436 [BZ #22563]
16437 * bits/types/__cancel_jmp_buf_tag.h: New file.
16438 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
16439 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
16440 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
16441 * nptl/Makefile (headers): Add
16442 bits/types/__cancel_jmp_buf_tag.h.
16443 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
16444 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
16445 * sysdeps/nptl/pthread.h: Include
16446 <bits/types/__cancel_jmp_buf_tag.h>.
16447 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
16448 __cancel_jmp_buf.
16449 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
16450
16451 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
16452
16453 [BZ #10871]
16454 * localedata/locales/uk_UA (mon): Renamed to...
16455 (alt_mon): This.
16456 (alt_digits): "0" removed and then renamed to...
16457 (mon): This.
16458 (date_fmt): Definition changed not to use the alternative
16459 digits hack.
16460
16461 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
16462
16463 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
16464 FLAG_RISCV_FLOAT_ABI_DOUBLE.
16465 * elf/elf.h (EF_RISCV_RVC): New define.
16466 (EF_RISCV_FLOAT_ABI): Likewise.
16467 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
16468 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
16469 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16470 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
16471 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
16472 define.
16473 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16474
16475 2018-01-25 Andreas Schwab <schwab@suse.de>
16476
16477 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
16478 single quotes.
16479 * sysdeps/gnu/configure: Regenerate.
16480 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
16481 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
16482 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
16483 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
16484 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
16485 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
16486 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
16487 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
16488
16489 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16490
16491 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
16492 URL, and run autoconf, make it the default for now.
16493
16494 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16495
16496 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16497 soft-float ColdFire configuration.
16498
16499 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
16500 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
16501 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
16502
16503 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
16504 MicroBlaze file.
16505
16506 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
16507 ....
16508 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
16509 ... here.
16510 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
16511 New file.
16512
16513 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
16514 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
16515 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
16516 file.
16517
16518 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16519
16520 [BZ #22742]
16521 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
16522 Rename to __reserved and add comment.
16523 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
16524 Rename to __reserved.
16525
16526 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16527
16528 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16529 i686-gnu configurations.
16530 (Context.run_builds): Include mig, gnumach and hurd in components
16531 considered.
16532 (Context.checkout): Add mig, gnumach and hurd to components.
16533 (Context.checkout_tar): Add URL mappings for mig, gnumach and
16534 hurd.
16535 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
16536 (Config.build): Install gnumach headers, build mig and install
16537 hurd headers for 'gnu' OS.
16538 (Config.install_gnumach_headers): New function.
16539 (Config.install_hurd_headers): Likewise.
16540 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
16541 when building for 'gnu' OS.
16542
16543 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
16544
16545 * manual/tunables.texi (Hardware Capability Tunables): Fix
16546 spelling.
16547
16548 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
16549
16550 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
16551 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
16552 (ALTMON_11, ALTMON_12): Improve documentation.
16553 * manual/time.texi (strftime): Likewise.
16554
16555 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16556
16557 [BZ #10871]
16558 * localedata/locales/pl_PL: Alternative month names added,
16559 primary month names are genitive now.
16560 * time/tst-strptime.c (day_tests): Actually use a genitive case
16561 of a month name in Polish language.
16562
16563 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16564
16565 [BZ #10871]
16566 * manual/locale.texi: Document ALTMON_1..12 constants for
16567 nl_langinfo. Specify when to use ALTMON instead of MON.
16568 * manual/time.texi (strftime, strptime): Document GNU extension
16569 permitting O modifier with %B and %b. Specify when to use
16570 %OB instead of %B.
16571
16572 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16573
16574 [BZ #10871]
16575 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
16576 names, define them as the same as abbreviated month names explicitly.
16577 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
16578 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
16579 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
16580 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
16581 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
16582 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
16583 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
16584 _NL_WABALTMON_12): New enum constants.
16585 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
16586 wab_alt_mon, and ab_alt_mon_defined members.
16587 (time_output): Output ab_alt_mon and wab_alt_mon members.
16588 (time_read): Read them, initialize them as copies of abmon and wabmon
16589 respectively if they are missing, initialize ab_alt_mon_defined.
16590 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
16591 * locale/programs/locfile-kw.h: Regenerate.
16592 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
16593 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
16594 and ru_RU.UTF-8.
16595 * time/strftime_l.c (a_altmonth, aam_len): New macros.
16596 [!COMPILE_WIDE] (ABALTMON_1): New macro.
16597 (__strftime_internal): Handle %Ob and %Oh formats.
16598 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
16599 (__strptime_internal): Handle %Ob and %Oh formats.
16600 * time/tst-strptime.c (day_tests): Add more tests to parse different
16601 forms of month names including the new %Ob format specifier.
16602
16603 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16604
16605 [BZ #10871]
16606 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
16607 define them as the same as primary full month names explicitly.
16608 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
16609 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
16610 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
16611 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
16612 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
16613 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
16614 _NL_WALTMON_12): New enum constants.
16615 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
16616 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
16617 macros.
16618 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
16619 walt_mon, and alt_mon_defined members.
16620 (time_output): Output alt_mon and walt_mon members.
16621 (time_read): Read them, initialize them as copies of mon and wmon
16622 respectively if they are missing, initialize alt_mon_defined.
16623 * locale/programs/locfile-kw.gperf (alt_mon): Define.
16624 * locale/programs/locfile-kw.h: Regenerate.
16625 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
16626 * localedata/tst-langinfo.c (map): Add tests for the new constants
16627 ALTMON_1 .. ALTMON_12.
16628 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
16629 and pl_PL.UTF-8.
16630 * time/strftime_l.c (f_altmonth): New macro.
16631 (__strftime_internal): Handle %OB format.
16632 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
16633 (__strptime_internal): Handle %OB format.
16634 * time/tst-strptime.c (day_tests): Add tests to parse different forms
16635 of month names including the new %OB format specifier.
16636
16637 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16638
16639 [BZ #22685]
16640 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
16641 from ABORT_TRANSACTION.
16642 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
16643 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
16644 ABORT_TRANSACTION_IMPL): Likewise.
16645 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
16646 Linux code, but remove the code that aborts transactions.
16647
16648 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
16649
16650 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
16651
16652 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
16653
16654 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
16655 in date: "2004-14-09" should be "2004-09-14".
16656 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
16657 "2003-15-09" should be "2003-09-15".
16658
16659 2018-01-18 Arjun Shankar <arjun@redhat.com>
16660
16661 [BZ #22343]
16662 [BZ #22774]
16663 CVE-2018-6485
16664 CVE-2018-6551
16665 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
16666 after padding.
16667 (_int_memalign): check for integer overflow before calling
16668 _int_malloc.
16669 * malloc/tst-malloc-too-large.c: New test.
16670 * malloc/Makefile: Add tst-malloc-too-large.
16671
16672 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
16673
16674 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
16675 in date: "2017-24-07" should be "2017-07-24".
16676 * localedata/locales/mai_IN: Likewise.
16677 * localedata/locales/mai_NP: Likewise.
16678
16679 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
16680
16681 * po/ru.po: Update translations.
16682
16683 2018-01-17 Joseph Myers <joseph@codesourcery.com>
16684
16685 [BZ #22719]
16686 * sysdeps/hppa/backtrace.c: New file.
16687
16688 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
16689
16690 [BZ #22715]
16691 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
16692 align La_x86_64_retval to VEC_SIZE.
16693
16694 2018-01-16 Joseph Myers <joseph@codesourcery.com>
16695
16696 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
16697 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
16698
16699 2018-01-16 Florian Weimer <fweimer@redhat.com>
16700
16701 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
16702 Move tst-thread-exit-clobber ...
16703 [$(CXX)] (tests-unsupported): ... to here.
16704
16705 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16706
16707 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
16708 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
16709 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16710 (_dl_aarch64_cap_flags): Update.
16711 (_DL_HWCAP_COUNT): Update.
16712
16713 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16714
16715 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
16716 (_DL_HWCAP_LAST): Remove.
16717 (_DL_HWCAP_COUNT): Move to ...
16718 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16719 (_DL_HWCAP_COUNT): ... here.
16720
16721 2018-01-16 Florian Weimer <fweimer@redhat.com>
16722
16723 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
16724 mode with GNU extensions.
16725
16726 2018-01-15 Alan Hayward <alan.hayward@arm.com>
16727
16728 * elf/elf.h (NT_ARM_SVE): Define.
16729
16730 2018-01-15 Florian Weimer <fweimer@redhat.com>
16731
16732 [BZ #22636]
16733 * nptl/tst-minstack-throw.cc: New file.
16734 * nptl/Makefile (tests): Add tst-minstack-throw.
16735 (LDLIBS-tst-minstack-throw): Link with libstdc++.
16736 [!CXX] (tests-unsupported): Add tst-minstack-throw.
16737
16738 2018-01-15 Joseph Myers <joseph@codesourcery.com>
16739
16740 * scripts/build-many-glibcs.py (Context.checkout): Default
16741 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
16742 version to 1.1.0.
16743
16744 2018-01-13 Carlos O'Donell <carlos@redhat.com>
16745
16746 [BZ #22707]
16747 * elf/elf.h (DF_1_STUB): Define.
16748 (DF_1_PIE): Define.
16749
16750 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16751
16752 [BZ #22697]
16753 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
16754 Do not add 0.5 to integer or out-of-range arguments.
16755
16756 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16757
16758 * po/bg.po: Update translations.
16759 * po/cs.po: Likewise.
16760 * po/de.po: Likewise.
16761 * po/ko.po: Likewise.
16762 * po/pl.po: Likewise.
16763 * po/sv.po: Likewise.
16764 * po/uk.po: Likewise.
16765 * po/vi.po: Likewise.
16766
16767 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16768
16769 * aarch64/start.S (_start): Use __wrap_main.
16770 (__wrap_main): New local symbol.
16771
16772 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16773
16774 [BZ #22679]
16775 CVE-2018-1000001
16776 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
16777 generic_getcwd if the path returned by getcwd syscall is not absolute.
16778 * io/tst-getcwd-abspath.c: New test.
16779 * io/Makefile (tests): Add tst-getcwd-abspath.
16780
16781 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
16782
16783 * malloc/malloc.c (malloc_consolidate): Add size check.
16784
16785 2018-01-12 Florian Weimer <fweimer@redhat.com>
16786
16787 * support/write_message.c (write_message): Preserve errno.
16788 * support/check.c (print_failure): Likewise.
16789 * support/support_test_verify_impl.c (support_test_verify_impl):
16790 Likewise.
16791 * support/support_test_compare_failure.c
16792 (support_test_compare_failure): Likewise.
16793
16794 2018-01-12 Florian Weimer <fweimer@redhat.com>
16795
16796 [BZ #22701]
16797 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
16798 Prevent installation of libnsl.so.
16799 (libnsl-inhibit-o): Do not build (or install) static libraries.
16800
16801 2018-01-12 Egmont Koblinger <egmont@gmail.com>
16802
16803 [BZ #22657]
16804 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
16805 before the day number which may produce a double space.
16806 (date_fmt): Likewise.
16807
16808 2018-01-12 Joseph Myers <joseph@codesourcery.com>
16809
16810 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
16811 instead of fegetenv.
16812
16813 2018-01-11 Joseph Myers <joseph@codesourcery.com>
16814
16815 [BZ #22702]
16816 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
16817 comment to say exceptions are discarded.
16818 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
16819 __fegetenv.
16820 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
16821 be enabled.
16822
16823 2018-01-11 Florian Weimer <fweimer@redhat.com>
16824
16825 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
16826 and error message.
16827
16828 2018-01-11 Florian Weimer <fweimer@redhat.com>
16829
16830 [BZ #22636]
16831 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
16832 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
16833
16834 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16835
16836 [BZ #22693]
16837 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
16838 negative arguments in test for NaN or infinity argument.
16839
16840 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
16841
16842 * po/libc.pot: Regenerate.
16843
16844 2018-01-10 Florian Weimer <fweimer@redhat.com>
16845
16846 [BZ #22636]
16847 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
16848 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
16849
16850 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
16851
16852 * hurd/hurd/fd.h: Include <fcntl.h>
16853 (__hurd_at_flags): New function.
16854 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
16855 with call to __hurd_at_flags.
16856 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
16857 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
16858 __faccessat
16859 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
16860 (__access_noerrno): Use __faccessat_common instead of access_common.
16861 (__access): Likewise.
16862 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
16863 with a call to __faccessat.
16864 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
16865 (__faccessat_common): ... this. Move implementation of __access into it when
16866 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
16867 reauthenticate_cwdir_at helper to implement AT mechanism.
16868 (__faccessat_noerrno): New function, just calls __faccessat_common.
16869 (__faccessat): New function, just calls __faccessat_common.
16870 (faccessat): Define weak alias.
16871
16872 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16873
16874 [BZ #22691]
16875 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16876 (CFLAGS-s_fmaxmagl.c): New variable.
16877 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
16878
16879 [BZ #22690]
16880 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
16881 long int for arguments of possibly overflowing addition or
16882 subtraction.
16883 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
16884
16885 2018-01-09 Joseph Myers <joseph@codesourcery.com>
16886
16887 [BZ #22688]
16888 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16889 (CFLAGS-e_remainderl.c): New variable.
16890
16891 [BZ #22687]
16892 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
16893 variable.
16894 (CFLAGS-s_cacoshl.c): Likewise.
16895 (CFLAGS-s_casinhl.c): Likewise.
16896 (CFLAGS-s_catanl.c): Likewise.
16897 (CFLAGS-s_catanhl.c): Likewise.
16898 (CFLAGS-s_cexpl.c): Likewise.
16899 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
16900 (CFLAGS-s_csinhl.c): Likewise.
16901 (CFLAGS-s_clogl.c): Likewise.
16902 (CFLAGS-s_clog10l.c): Likewise.
16903 (CFLAGS-s_csinl.c): Likewise.
16904 (CFLAGS-s_csqrtl.c): Likewise.
16905
16906 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
16907 2017-01-09 Svante Signell <svante.signell@gmail.com>
16908
16909 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
16910 (_hurd_exec_paths): New function.
16911 * hurd/hurd.h (_hurd_exec): Deprecate function.
16912 (_hurd_exec_paths): Declare function.
16913 * hurd/Versions: Export _hurd_exec_paths.
16914 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
16915 (__execve): Use __getcwd to build absolute path, and use
16916 _hurd_exec_paths instead of _hurd_exec.
16917 * sysdeps/mach/hurd/spawni.c: Likewise.
16918 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
16919 _hurd_exec.
16920
16921 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
16922
16923 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
16924 test instead of failing in case of ENOENT returned by posix_openpt.
16925
16926 2018-01-08 Florian Weimer <fweimer@redhat.com>
16927
16928 resolv: Support binary labels in test framework.
16929 * support/resolv_test.c (struct to_be_freed): Remove.
16930 (struct compressed_name): New.
16931 (allocate_compressed_name, ascii_tolower)
16932 (compare_compressed_name): New functions.
16933 (struct resolv_response_builder): Update type of
16934 compression_offsets for use with tsearch. Rempve to_be_freed.
16935 (response_push_pointer_to_free): Remove function.
16936 (resolv_response_add_name): Rewrite using struct compressed_name
16937 and tsearch instead of hsearch_r.
16938 (response_builder_allocate): Remove initialization of
16939 compression_offsets.
16940 (response_builder_free): Update for removal of to_be_freed. Use
16941 tdestroy instead of hdestroy_r.
16942 * resolv/Makefile (tests): Add tst-resolv-binary.
16943 (tst-resolv-binary): Link with -lresolv -lpthread.
16944
16945 2018-01-08 Florian Weimer <fweimer@redhat.com>
16946
16947 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
16948 time. Pass positive flag instead of negative flag to
16949 support_test_compare_failure.
16950 (support_test_compare_failure): Change negative parameter to
16951 positive.
16952 * support/support_test_compare_failure.c (report)
16953 (support_test_compare_failure): Likewise.
16954 * support/tst-test_compare.c (return_ssize_t, return_int): New.
16955 (do_test): Check int/size_t, ssize_t/size_t comparisons.
16956
16957 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
16958
16959 [BZ #22637]
16960 * nptl/descr.h (stackblock, stackblock_size): Update comments.
16961 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
16962 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
16963 stacksize.
16964 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
16965
16966 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
16967
16968 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
16969 Add s_sincosf-sse2 and s_sincosf-fma.
16970 (CFLAGS-s_sincosf-fma.c): New.
16971 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
16972 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
16973 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
16974 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
16975 __sincosf is defined.
16976
16977 2018-01-08 Florian Weimer <fweimer@redhat.com>
16978
16979 * nptl/tst-thread-exit-clobber.cc: New file.
16980 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
16981 C++11 mode.
16982 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
16983 (tests): Add tst-thread-exit-clobber.
16984 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
16985
16986 2018-01-08 Florian Weimer <fweimer@redhat.com>
16987
16988 * support/check.h (support_static_assert): Define.
16989 (TEST_COMPARE): Use it.
16990
16991 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
16992
16993 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
16994 [!__RLIM_T_MATCHES_RLIM64_T]
16995 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
16996 __getrlimit64. Add libc_hidden_weak.
16997
16998 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
16999
17000 * elf/elf.h (R_RISCV_NONE): New define.
17001 (R_RISCV_32): Likewise.
17002 (R_RISCV_64): Likewise.
17003 (R_RISCV_RELATIVE): Likewise.
17004 (R_RISCV_COPY): Likewise.
17005 (R_RISCV_JUMP_SLOT): Likewise.
17006 (R_RISCV_TLS_DTPMOD32): Likewise.
17007 (R_RISCV_TLS_DTPMOD64): Likewise.
17008 (R_RISCV_TLS_DTPREL32): Likewise.
17009 (R_RISCV_TLS_DTPREL64): Likewise.
17010 (R_RISCV_TLS_TPREL32): Likewise.
17011 (R_RISCV_TLS_TPREL64): Likewise.
17012 * Makerules (make-link-multidir): Make directories before linking into
17013 them.
17014 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17015 define.
17016 (VDSO_HASH_LINUX_4_15): Likewise.
17017 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17018 in subdirectories of lib.
17019 * nptl/Makefile (/librt.so): Always depend on
17020 "$(shared-thread-library)".
17021
17022 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17023
17024 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17025 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17026 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17027 (___tls_get_addr).
17028 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17029 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17030 "-O2 -march=i686".
17031 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17032 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17033 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17034 * sysdeps/gnu/glob-lstat-compat.c: New file.
17035 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17036 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17037
17038 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17039
17040 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17041 Reserve 16 chars to reloc_addr before calling _itoa_word.
17042
17043 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17044
17045 [BZ #22678]
17046 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17047 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17048
17049 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17050 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17051
17052 * resource/tst-getrlimit.c: Add copyright header.
17053
17054 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17055 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17056
17057 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17058 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17059 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17060 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17061 instead.
17062 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17063 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17064 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17065 RLIM64_INFINITY): Fix values to match the kernel ones.
17066 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17067 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17068 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17069 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17070 getrlimit64@@GLIBC_2_27.
17071 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17072 and setrlimit64.
17073 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17074 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17075 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17076 setrlimit, getrlimit64 and setrlimit64.
17077
17078 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17079
17080 [BZ #22648]
17081 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17082 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17083
17084 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17085
17086 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17087 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17088 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17089
17090 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17091
17092 [BZ #15479]
17093 [BZ #22666]
17094 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17095 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17096
17097 [BZ #15479]
17098 [BZ #22665]
17099 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17100 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17101 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17102 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17103
17104 2018-01-04 Florian Weimer <fweimer@redhat.com>
17105
17106 [BZ #22667]
17107 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17108 Align the stack before calling exit.
17109 * stdlib/tst-makecontext-align.c: New file.
17110 * stdlib/Makefile (tests): Add tst-makecontext-align.
17111
17112 2018-01-04 Florian Weimer <fweimer@redhat.com>
17113
17114 Add support for calling dlvsym from libc.so.
17115 * include/dlfcn.h (__libc_dlvsym): Declare.
17116 * elf/Makefile (tests-static-internal): Add
17117 tst-libc_dlvsym-static.
17118 (tests-internal): Add tst-libc_dlvsym.
17119 (modules-names): Add tst-libc_dlvsym-dso.
17120 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17121 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17122 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17123 object tst-libc_dlvsym-dso.so needs to be built before running
17124 these tests.
17125 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17126 * elf/Versions: Export __libc_dlvsym.
17127 * elf/dl-libc.c (struct do_dlvsym_args): New.
17128 (do_dlvsym, __libc_dlvsym): New functions.
17129 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17130 (_dl_open_hook2): New variable.
17131 (__libc_register_dl_open_hook): Set it.
17132 * elf/tst-libc_dlvsym-dso.c: New file.
17133 * elf/tst-libc_dlvsym-static.c: Likewise.
17134 * elf/tst-libc_dlvsym.c: Likewise.
17135 * elf/tst-libc_dlvsym.h: Likewise.
17136
17137 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17138
17139 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17140 include <sys/mount.h>.
17141
17142 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17143
17144 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17145 Add __NO_MATH_ERRNO__ check.
17146
17147 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17148
17149 * sysdeps/mips/mips32/libm-test-ulps: Update.
17150 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17151
17152 2018-01-02 Florian Weimer <fweimer@redhat.com>
17153
17154 * misc/tst-pselect.c: Add copyright header.
17155
17156 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17157
17158 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17159 comment.
17160 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17161 comment.
17162 (settrlimit): Rename into setrlimit.
17163 (__sttrlimit): Rename into __setrlimit.
17164
17165 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17166 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17167 never defined in that case.
17168
17169 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17170
17171 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17172
17173 * sysdeps/arm/libm-test-ulps: Update.
17174
17175 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17176 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17177
17178 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17179
17180 * NEWS: Add cosf and sincosf to list of optimized functions.
17181
17182 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17183
17184 [BZ #22660]
17185 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17186 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17187 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17188 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17189
17190 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17191
17192 [BZ #22433]
17193 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17194
17195 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17196 making a copy of it.
17197
17198 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17199
17200 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17201 trailing whitespace removed.
17202 * scripts/config.guess: Update to version 2018-01-01.
17203 * scripts/config.sub: Update to version 2018-01-01.
17204 * scripts/move-if-change: Update from gnulib.
17205
17206 * NEWS: Update copyright dates.
17207 * catgets/gencat.c (print_version): Likewise.
17208 * csu/version.c (banner): Likewise.
17209 * debug/catchsegv.sh: Likewise.
17210 * debug/pcprofiledump.c (print_version): Likewise.
17211 * debug/xtrace.sh (do_version): Likewise.
17212 * elf/ldconfig.c (print_version): Likewise.
17213 * elf/ldd.bash.in: Likewise.
17214 * elf/pldd.c (print_version): Likewise.
17215 * elf/sotruss.sh: Likewise.
17216 * elf/sprof.c (print_version): Likewise.
17217 * iconv/iconv_prog.c (print_version): Likewise.
17218 * iconv/iconvconfig.c (print_version): Likewise.
17219 * locale/programs/locale.c (print_version): Likewise.
17220 * locale/programs/localedef.c (print_version): Likewise.
17221 * login/programs/pt_chown.c (print_version): Likewise.
17222 * malloc/memusage.sh (do_version): Likewise.
17223 * malloc/memusagestat.c (print_version): Likewise.
17224 * malloc/mtrace.pl: Likewise.
17225 * manual/libc.texinfo: Likewise.
17226 * nptl/version.c (banner): Likewise.
17227 * nscd/nscd.c (print_version): Likewise.
17228 * nss/getent.c (print_version): Likewise.
17229 * nss/makedb.c (print_version): Likewise.
17230 * posix/getconf.c (main): Likewise.
17231 * scripts/test-installation.pl: Likewise.
17232 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17233
17234 * All files with FSF copyright notices: Update copyright dates
17235 using scripts/update-copyrights.
17236 * locale/programs/charmap-kw.h: Regenerated.
17237 * locale/programs/locfile-kw.h: Likewise.
17238
17239 2017-12-31 Zack Weinberg <zackw@panix.com>
17240
17241 * libio/bits/libio-ldbl.h: Correct check for improper
17242 inclusion. Add own multiple include guard.
17243
17244 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17245 Dmitry V. Levin <ldv@altlinux.org>
17246
17247 [BZ #22625]
17248 CVE-2017-16997
17249 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17250 string token expansion. Check for NULL pointer or empty string possibly
17251 returned by expand_dynamic_string_token.
17252 (decompose_rpath): Check for empty path after dynamic string
17253 token expansion.
17254
17255 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17256
17257 [BZ #22433]
17258 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17259
17260 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17261 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17262 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17263 and PTRACE_SYSCALL.
17264 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17265 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17266 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17267 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17268 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17269 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17270
17271 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17272 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17273 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17274 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17275 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17276 bits/ptrace-shared.h.
17277 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17278 <bits/ptrace-shared.h>.
17279 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17280 __ptrace_peeksiginfo_flags, ptrace): Remove.
17281 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17282 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17283 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17284 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17285 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17286
17287 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17288
17289 [BZ #17804]
17290 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17291 end of the loop. Improve comments.
17292
17293 2017-12-29 Zack Weinberg <zackw@panix.com>
17294
17295 [BZ #22615]
17296 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17297 might be set on success.
17298
17299 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17300
17301 [BZ #22611]
17302 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17303 is unchanged on success.
17304
17305 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17306
17307 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17308 updated.
17309 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17310 expand_dynamic_string_token): Likewise.
17311 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17312 is_path argument.
17313
17314 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
17315 contains ':'.
17316
17317 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
17318 is set and name contains ':', and all code depending on these checks.
17319
17320 2017-12-24 Zack Weinberg <zackw@panix.com>
17321
17322 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17323 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17324 respectively.
17325 * libio/libio.h: Rename the original version of this file to
17326 libio/bits/libio.h. Error out if not included by stdio.h or the
17327 stub libio.h.
17328 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17329 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17330 if not included by bits/libio.h or the stub _G_config.h.
17331 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17332 sysdeps/unix/sysv/linux/bits. Error out if not included by
17333 bits/libio.h or the stub _G_config.h.
17334 * libio/stdio.h: Include bits/libio.h, not libio.h.
17335 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17336 well as libio.h and _G_config.h.
17337
17338 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
17339 * libio/strfile.h, stdio-common/vfscanf.c
17340 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
17341 Include stdio.h, not _G_config.h nor libio.h.
17342 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
17343 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
17344
17345 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
17346
17347 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
17348
17349 [BZ #22347]
17350 * stdlib/getrandom.c (getrandom): Fix comment.
17351 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
17352
17353 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
17354
17355 [BZ #21161]
17356 * manual/arith.texi (strtoul): Fix a typo.
17357
17358 [BZ #22596]
17359 * manual/arith.texi (finite): Fix the description of the return
17360 value.
17361
17362 2017-12-22 Eric Blake <ebb9@byu.net>
17363
17364 Avoid gcc warnings on cygwin
17365 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17366 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17367 Avoid unused variable.
17368
17369 2017-12-22 Florian Weimer <fweimer@redhat.com>
17370
17371 * io/Makefile (routines): Add copy_file_range.
17372 (tests): Add tst-copy_file_range.
17373 (tests-static, tests-internal): Add tst-copy_file_range-compat.
17374 * io/Versions (GLIBC_2.27): Export copy_file_range.
17375 * io/copy_file_range-compat.c: New file.
17376 * io/copy_file_range.c: Likewise.
17377 * io/tst-copy_file_range-compat.c: Likewise.
17378 * io/tst-copy_file_range.c: Likewise.
17379 * manual/llio.texi (Copying File Data): New section.
17380 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
17381 * support/Makefile (libsupport-routines): Add support-xfstat,
17382 xftruncate, xlseek.
17383 * support/support-xfstat.c: New file.
17384 * support/xftruncate.c: Likewise.
17385 * support/xlseek.c: Likewise.
17386 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
17387 * sysdeps/unix/sysv/linux/**.abilist: Update.
17388 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
17389
17390 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
17391
17392 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17393 disable-multi-arch variant to aarch64-linux-gnu.
17394
17395 2017-12-20 Joseph Myers <joseph@codesourcery.com>
17396
17397 * manual/texinfo.tex: Update to version 2017-12-18.20 with
17398 trailing whitespace removed.
17399 * scripts/config.guess: Update to version 2017-12-17.
17400 * scripts/config.sub: Update to version 2017-11-23.
17401 * scripts/install-sh: Update to version 2017-09-23.17.
17402 * scripts/move-if-change: Update to version 2017-09-13 06:45.
17403
17404 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17405
17406 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
17407 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17408 * sysdeps/tile/_mcount.S (__mcount): Likewise.
17409 * sysdeps/tile/crti.S (_init, _fini): Likewise.
17410 * sysdeps/tile/crtn.S: Likewise.
17411 * sysdeps/tile/dl-start.S (_start): Likewise.
17412 * sysdeps/tile/dl-trampoline.S: Likewise.
17413 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
17414 * sysdeps/tile/start.S (_start): Likewise.
17415 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
17416 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
17417 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
17418 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
17419 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
17420 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
17421 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
17422
17423 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
17424 comment.
17425 * sysdeps/tile/preconfigure: Remove tilegx folder.
17426 * sysdeps/tile/tilegx/Implies: Move definitions to ...
17427 * sysdeps/tile/Implies: ... here.
17428 * sysdeps/tile/tilegx/Makefile: Move rules to ...
17429 * sysdeps/tile/Makefile: ... here.
17430 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
17431 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
17432 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
17433 * sysdeps/tile/bits/wordsize.h: ... here.
17434 * sysdeps/tile/tilegx/*: Move to ...
17435 * sysdeps/tile/*: ... here.
17436 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
17437 * sysdeps/tile/tilegx32/Implies: ... here.
17438 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
17439 * sysdeps/tile/tilegx64/Implies: ... here.
17440 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
17441 to ...
17442 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
17443 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
17444 * sysdeps/unix/sysv/linux/tile/*: ... here.
17445 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
17446 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
17447 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
17448 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
17449
17450 * README: Remove tilepro-*-linux-gnu from supported architecture.
17451 * scripts/build-many-glibcs.py: Likewise.
17452 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17453 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
17454 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
17455 elf_machine_matches_host, elf_machine_dynamic,
17456 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
17457 howto, elf_machine_rela): Likewise.
17458 * sysdeps/tile/dl-start.S (_start): Likewise.
17459 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
17460 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
17461 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
17462 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
17463 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
17464 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
17465 Likewise.
17466 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
17467 * sysdeps/tile/preconfigure: Likewise.
17468 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
17469 POINTER_CHK_GUARD): Likewise.
17470 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
17471 * sysdeps/tile/start.S (_start): Likewise.
17472 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
17473 Likewise.
17474 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
17475 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
17476 CMOVNEZ): Remove.
17477 * sysdeps/unix/sysv/linux/tile/bits/environments.h
17478 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
17479 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
17480 Likewise.
17481 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
17482 * sysdeps/tile/tilepro/Implies: Remove file.
17483 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
17484 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
17485 * sysdeps/tile/tilepro/memchr.c: Likewise.
17486 * sysdeps/tile/tilepro/memcpy.S: Likewise.
17487 * sysdeps/tile/tilepro/memset.c: Likewise.
17488 * sysdeps/tile/tilepro/memusage.h: Likewise.
17489 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
17490 * sysdeps/tile/tilepro/strchr.c: Likewise.
17491 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
17492 * sysdeps/tile/tilepro/strlen.c: Likewise.
17493 * sysdeps/tile/tilepro/strrchr.c: Likewise.
17494 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
17495 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
17496 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
17497 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
17498 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
17499 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
17500 Likewise.
17501 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
17502 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
17503 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
17504 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
17505 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
17506 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
17507 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
17508 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
17509 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
17510 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
17511 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
17512 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
17513 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
17514 tilepro mention in comment.
17515
17516 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
17517 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
17518 * nptl/pthread_join_common.c: New file: common function used on
17519 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
17520 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
17521 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
17522 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
17523 (cleanup): Move definition to pthread_join_common.c.
17524 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
17525 Remove superflous checks.
17526 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
17527 Likewise.
17528
17529 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
17530
17531 * sysdeps/aarch64/libm-test-ulps: Update.
17532
17533 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17534
17535 * sysdeps/aarch64/memset.S (MEMSET): Define.
17536
17537 2017-12-20 Florian Weimer <fweimer@redhat.com>
17538
17539 [BZ #22635]
17540 nptl: Provide full implementation of pthread_self in libc.so.
17541 * nptl/Makefile (routines): Add pthread_self.
17542 (libpthread-routines): Replace pthread_self with
17543 compat-pthread_self.
17544 * nptl/forward.c (pthread_self): Remove.
17545 * nptl/nptl-init.c (pthread_functions): Do not initialize
17546 ptr_pthread_self.
17547 * nptl/pthread_self.c (pthread_self): Remove weak alias.
17548 * nptl/compat-pthread_self.c: New file.
17549 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
17550 Remove ptr_pthread_self.
17551
17552 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
17553
17554 * posix/regcomp.c: Fix spelling in comments.
17555 * posix/regex.h: Likewise.
17556 * posix/regex_internal.c: Likewise.
17557 * posix/regexec.c: Likewise.
17558
17559 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17560
17561 [BZ #22377]
17562 * math/Makefile [C++] (tests): Add test for iseqsig.
17563 * math/math.h [C++] (iseqsig): New implementation, which does
17564 not rely on __MATH_TG/__builtin_types_compatible_p.
17565 * math/test-math-iseqsig.cc: New file.
17566 * sysdeps/powerpc/powerpc64le/Makefile
17567 (CFLAGS-test-math-iseqsig.cc): New variable.
17568
17569 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
17570
17571 * elf/dl-load.c (is_trusted_path): Remove.
17572 (fillin_rpath): Remove check_trusted argument and its use,
17573 all callers changed.
17574
17575 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17576
17577 [BZ #22630]
17578 * Makeconfig (link-pie-before-libc): Replace -pie with
17579 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
17580 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
17581 (tst-dlopen-aout-no-pie): New.
17582 (LDFLAGS-tst-prelink): Removed.
17583 (tst-prelink-no-pie): New.
17584 (LDFLAGS-tst-main1): Removed.
17585 (tst-main1-no-pie): New.
17586 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
17587 (tst-gmon-no-pie): New.
17588
17589 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17590
17591 * manual/install.texi: Document that --enable-static-pie
17592 implies PIE.
17593 * INSTALL: Regenerated.
17594
17595 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
17596
17597 [BZ #21309]
17598 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
17599 unsigned.
17600
17601 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17602
17603 Revert:
17604
17605 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17606
17607 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17608
17609 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17610
17611 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17612 <errno.h>. Include "eexp.tbl".
17613 (half): New constant.
17614 (one): Likewise.
17615 (__ieee754_exp): Rewrite.
17616 (__slowexp): Remove prototype.
17617 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17618 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17619 * sysdeps/i386/fpu/slowexp.c: Likewise.
17620 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17621 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17622 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17623 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17624 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17625 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17626 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17627 comment.
17628 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17629 (CPPFLAGS-slowexp.c): Remove variable.
17630 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17631 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17632 (CFLAGS-slowexp-fma.c): Remove variable.
17633 (CFLAGS-slowexp-fma4.c): Likewise.
17634 (CFLAGS-slowexp-avx.c): Likewise.
17635 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17636 define as macro.
17637 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17638 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17639 * math/Makefile (type-double-routines): Remove slowexp.
17640 * manual/probes.texi (slowexp_p6): Remove.
17641 (slowexp_p32): Likewise.
17642
17643 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17644
17645 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
17646 arithmetic.
17647
17648 * lib/glob.c (glob): Do not pass NULL to mempcpy.
17649
17650 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17651
17652 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17653
17654 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17655
17656 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17657 <errno.h>. Include "eexp.tbl".
17658 (half): New constant.
17659 (one): Likewise.
17660 (__ieee754_exp): Rewrite.
17661 (__slowexp): Remove prototype.
17662 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17663 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17664 * sysdeps/i386/fpu/slowexp.c: Likewise.
17665 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17666 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17667 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17668 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17669 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17670 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17671 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17672 comment.
17673 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17674 (CPPFLAGS-slowexp.c): Remove variable.
17675 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17676 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17677 (CFLAGS-slowexp-fma.c): Remove variable.
17678 (CFLAGS-slowexp-fma4.c): Likewise.
17679 (CFLAGS-slowexp-avx.c): Likewise.
17680 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17681 define as macro.
17682 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17683 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17684 * math/Makefile (type-double-routines): Remove slowexp.
17685 * manual/probes.texi (slowexp_p6): Remove.
17686 (slowexp_p32): Likewise.
17687
17688 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17689 James Clarke <jrtc27@jrtc27.com>
17690
17691 [BZ #22603]
17692 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
17693 addition.
17694
17695 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17696
17697 [BZ #22605]
17698 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
17699 code.
17700
17701 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17702
17703 [BZ #22563]
17704 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17705 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17706 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17707 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17708 to feature_1.
17709
17710 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17711
17712 [BZ #22563]
17713 * bits/types/__cancel_jmp_buf_tag.h: New file.
17714 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17715 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17716 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17717 * nptl/Makefile (headers): Add
17718 bits/types/__cancel_jmp_buf_tag.h.
17719 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17720 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17721 * sysdeps/nptl/pthread.h: Include
17722 <bits/types/__cancel_jmp_buf_tag.h>.
17723 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17724 __cancel_jmp_buf.
17725 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17726
17727 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17728
17729 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17730 --enable-static-pie variants to x86_64, x32 and i686.
17731
17732 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17733
17734 [BZ #22631]
17735 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
17736 argument for attrubutes. All callers changed.
17737 (__inline_mathop1): Likewise. All callers changed.
17738 (__inline_mathop): Likewise. All callers changed.
17739 [__USE_MISC] (scalbn): Use __inline_forward instead of
17740 __inline_forward_c.
17741 [__USE_ISOC99] (scalbln): Likewise.
17742 [__USE_ISOC99] (nearbyint): Likewise.
17743 [__USE_ISOC99] (lrint): Likewise.
17744 [__USE_MISC] (scalbnf): Likewise.
17745 [__USE_ISOC99] (scalblnf): Likewise.
17746 [__USE_ISOC99] (nearbyintf): Likewise.
17747 [__USE_ISOC99] (lrintf): Likewise.
17748 [__USE_MISC] (scalbnl): Likewise.
17749 [__USE_ISOC99] (scalblnl): Likewise.
17750 [__USE_ISOC99] (nearbyintl): Likewise.
17751 [__USE_ISOC99] (lrintl): Likewise.
17752 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
17753 __inline_mathop and __m81_defun changed.
17754
17755 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
17756 CPU or FPU for ARM hard-float configurations.
17757
17758 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17759
17760 * nptl/tst-attr3.c: Include <libc-diag.h>.
17761 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
17762
17763 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
17764
17765 * string/tester.c (test_strncat): Also disable -Warray-bounds
17766 warnings for two tests.
17767
17768 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17769
17770 [BZ #22614]
17771 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
17772 $(cc-pie-default) == yes.
17773 * config.make.in (cc-pie-default): New.
17774 * configure.ac (libc_cv_pie_default): Renamed to ...
17775 (libc_cv_cc_pie_default): This.
17776 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
17777 * configure: Regenerated.
17778
17779 2017-12-18 Florian Weimer <fweimer@redhat.com>
17780
17781 [BZ #20204]
17782 ld.so: Harden dl-libc/libdl hooks.
17783 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
17784 (rtld_active): New function.
17785 * dlfcn/dladdr.c (__dladdr): Call it.
17786 * dlfcn/dladdr1.c (__dladdr1): Likewise.
17787 * dlfcn/dlclose.c (__dlcose): Likewise.
17788 * dlfcn/dlerror.c (__dlerror): Likewise.
17789 * dlfcn/dlinfo.c (__dlinfo): Likewise.
17790 * dlfcn/dlmopen.c (__dlmopen): Likewise.
17791 * dlfcn/dlopen.c (__dlopen): Likewise.
17792 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
17793 * dlfcn/dlsym.c (__dlsym): Likewise.
17794 * dlfcn/dlvsym.c (__dlvsym): Likewise.
17795 * libio/vtables.c (_IO_vtable_check): Likewise.
17796 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
17797 (__libc_dlclose): Likewise.
17798 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
17799 assignment.
17800
17801 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17802
17803 [BZ #22446]
17804 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
17805 buffers for readlink input and output.
17806
17807 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
17808
17809 [BZ #22624]
17810 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
17811 inhibit_stack_protector.
17812
17813 [BZ #22624]
17814 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
17815 inhibit_stack_protector.
17816
17817 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
17818
17819 [BZ #22627]
17820 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
17821 code and invocation.
17822
17823 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
17824
17825 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
17826
17827 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
17828
17829 [BZ #22505]
17830 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
17831
17832 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17833
17834 * sysdeps/s390/fpu/libm-test-ulps: Update.
17835
17836 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17837
17838 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17839
17840 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17841
17842 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
17843 constants to s_sincosf.h file.
17844 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
17845 * sysdeps/ieee754/flt-32/s_sincosf.c: New
17846 implementation.
17847 * sysdeps/ieee754/flt-32/s_sincosf.h:
17848 New file.
17849
17850 2017-12-12 Carlos O'Donell <carlos@redhat.com>
17851
17852 [BZ #14681]
17853 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
17854 before mtrace.
17855
17856 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
17857
17858 [BZ #19574]
17859 * INSTALL: Regenerated.
17860 * Makeconfig (real-static-start-installed-name): New.
17861 (pic-default): Updated for --enable-static-pie.
17862 (pie-default): New for --enable-static-pie.
17863 (default-pie-ldflag): Likewise.
17864 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
17865 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
17866 Replace $(static-start-installed-name) with
17867 $(real-static-start-installed-name).
17868 (+prectorT): Updated for --enable-static-pie.
17869 (+postctorT): Likewise.
17870 (CFLAGS-.o): Add $(pie-default).
17871 (CFLAGS-.op): Likewise.
17872 * NEWS: Mention --enable-static-pie.
17873 * config.h.in (ENABLE_STATIC_PIE): New.
17874 * configure.ac (--enable-static-pie): New configure option.
17875 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
17876 (have-static-pie): Likewise.
17877 Enable static PIE if linker supports --no-dynamic-linker.
17878 (ENABLE_STATIC_PIE): New AC_DEFINE.
17879 (enable-static-pie): New LIBC_CONFIG_VAR.
17880 * configure: Regenerated.
17881 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
17882 gr$(start-installed-name) for --enable-static-pie.
17883 (extra-objs): Likewise.
17884 (install-lib): Likewise.
17885 (extra-objs): Add static-reloc.o and static-reloc.os
17886 ($(objpfx)$(start-installed-name)): Also depend on
17887 $(objpfx)static-reloc.o.
17888 ($(objpfx)r$(start-installed-name)): New.
17889 ($(objpfx)g$(start-installed-name)): Also depend on
17890 $(objpfx)static-reloc.os.
17891 ($(objpfx)gr$(start-installed-name)): New.
17892 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
17893 in libc.a.
17894 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
17895 initimage.
17896 * csu/static-reloc.c: New file.
17897 * elf/Makefile (routines): Add dl-reloc-static-pie.
17898 (elide-routines.os): Likewise.
17899 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
17900 (tst-tls1-static-non-pie-no-pie): New.
17901 * elf/dl-reloc-static-pie.c: New file.
17902 * elf/dl-support.c (_dl_get_dl_main_map): New function.
17903 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
17904 STATIC_PIE_BOOTSTRAP.
17905 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
17906 * gmon/Makefile (tests): Add tst-gmon-static-pie.
17907 (tests-static): Likewise.
17908 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
17909 (tst-gmon-static-no-pie): New.
17910 (CFLAGS-tst-gmon-static-pie.c): Likewise.
17911 (CRT-tst-gmon-static-pie): Likewise.
17912 (tst-gmon-static-pie-ENV): Likewise.
17913 (tests-special): Likewise.
17914 ($(objpfx)tst-gmon-static-pie.out): Likewise.
17915 (clean-tst-gmon-static-pie-data): Likewise.
17916 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
17917 * gmon/tst-gmon-static-pie.c: New file.
17918 * manual/install.texi: Document --enable-static-pie.
17919 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
17920 (_dl_get_dl_main_map): Likewise.
17921 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
17922 * sysdeps/x86_64/configure.ac: Likewise.
17923 * sysdeps/i386/configure: Regenerated.
17924 * sysdeps/x86_64/configure: Likewise.
17925 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
17926 (ASFLAGS-.op): Likewise.
17927
17928 2017-12-15 Joseph Myers <joseph@codesourcery.com>
17929
17930 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
17931 * posix/tst-mmap-offset.c (fname): Use /tmp.
17932 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
17933
17934 2017-12-15 Steve Ellcey <sellcey@cavium.com>
17935
17936 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
17937
17938 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
17939
17940 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
17941 errno.
17942
17943 2017-12-15 Joseph Myers <joseph@codesourcery.com>
17944
17945 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
17946 --with-float=hard for arm-linux-gnueabihf configurations.
17947
17948 [BZ #14121]
17949 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
17950 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
17951 ($(mo-installed)): Use $(objpfx)%.mo.
17952 (realclean): Remove rule.
17953
17954 * po/Makefile (linguas): Remove rule and dependencies.
17955 (linguas.mo): Likewise.
17956 (.PHONY): Do not depend on linguas and linguas.mo.
17957 (podir): Remove variable.
17958 (pofiles): Likewise.
17959 [$(pofiles)] (%.po): Remove rule.
17960
17961 * sysdeps/sparc/sparc32/Makefile
17962 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
17963 start-of-line whitespace in argument of echo.
17964 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
17965 with whitespace. Generate __wrap_.udiv alias.
17966 * sysdeps/sparc/sparc32/rem.S: Regenerated.
17967 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
17968 * sysdeps/sparc/sparc32/udiv.S: Likewise.
17969 * sysdeps/sparc/sparc32/urem.S: Likewise.
17970
17971 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17972
17973 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
17974 for aligned inputs.
17975
17976 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
17977
17978 * benchtests/bench-strcmp.c: Print output in JSON format.
17979
17980 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
17981
17982 2017-12-14 Florian Weimer <fweimer@redhat.com>
17983
17984 [BZ #22607]
17985 CVE-2017-1000409
17986 * elf/dl-load.c (_dl_init_paths): Compute number of components in
17987 the expanded path string.
17988
17989 2017-12-14 Florian Weimer <fweimer@redhat.com>
17990
17991 [BZ #22606]
17992 CVE-2017-1000408
17993 * elf/dl-load.c (system_dirs): Update comment.
17994 (nsystem_dirs_len): Use array_length.
17995 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
17996
17997 2017-12-14 Florian Weimer <fweimer@redhat.com>
17998
17999 Simplify compiling most of support/ outside of glibc.
18000 * support/check_addrinfo.c: Include <string.h>.
18001 * support/check_dns_packet.c: Likewise.
18002 * support/check_hostent.c: Likewise.
18003 * support/support_can_chroot.c: Include <support/xunistd.h>.
18004 * support/support_format_addrinfo.c: Include <stdlib.h>
18005 * support/support_format_dns_packet.c: Include <stdbool.h>.
18006 * support/support_format_hostent.c: Include <stdlib.h>.
18007 * support/support_format_netent.c: Likewise.
18008 * support/support_write_string.c: Include <support/xunistd.h>.
18009 * support/xdlfcn.c: Include <stddef.h>.
18010
18011 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18012
18013 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18014
18015 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18016 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18017
18018 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18019 (sysdeps_routines): Add memset-niagara7.
18020 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18021 Likewise.
18022 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18023 file.
18024 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18025 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18026 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18027 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18028 Add niagara7 option.
18029 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18030 memset.
18031
18032 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18033 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18034 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18035 Likewise.
18036 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18037 New file.
18038 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18039 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18040 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18041 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18042 and __memmove_niagara7.
18043 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18044 Add niagara7 option.
18045 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18046 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18047 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18048 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18049 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18050
18051 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18052
18053 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18054 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18055 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18056 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18057
18058 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18059 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18060 _dl_sparc_cap_flags array.
18061 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18062
18063 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18064
18065 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18066 time whenever possible.
18067
18068 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18069
18070 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18071 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18072
18073 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18074
18075 * soft-fp/fmadf4.c: Move to ....
18076 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18077 * soft-fp/fmasf4.c: Move to ....
18078 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18079 * soft-fp/fmatf4.c: Move to ....
18080 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18081 * sysdeps/ieee754/soft-fp/Makefile: New file.
18082 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18083 * sysdeps/arm/preconfigure: Regenerated.
18084 * sysdeps/arm/nofpu/Implies: New file.
18085 * sysdeps/arm/s_fma.c: Remove file.
18086 * sysdeps/arm/s_fmaf.c: Likewise.
18087 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18088 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18089 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18090 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18091 * sysdeps/microblaze/s_fma.c: Remove file.
18092 * sysdeps/microblaze/s_fmaf.c: Likewise.
18093 * sysdeps/mips/mips32/nofpu/Implies: New file.
18094 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18095 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18096 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18097 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18098 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18099 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18100 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18101 implementation.
18102 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18103 * sysdeps/nios2/s_fma.c: Remove file.
18104 * sysdeps/nios2/s_fmaf.c: Likewise.
18105 * sysdeps/sh/nofpu/Implies: New file.
18106 * sysdeps/sh/s_fma.c: Remove file.
18107 * sysdeps/sh/s_fmaf.c: Likewise.
18108 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18109 * sysdeps/tile/s_fma.c: Remove file.
18110 * sysdeps/tile/s_fmaf.c: Likewise.
18111
18112 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18113
18114 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18115 Add s_cosf-sse2 and s_cosf-fma.
18116 (CFLAGS-s_cosf-fma.c): New.
18117 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18118 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18119 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18120
18121 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18122
18123 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18124
18125 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18126
18127 * libio/Makefile (tests): Add tst-bz22415.
18128 (tst-bz22415-ENV): New rule.
18129 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18130 (tests-special): Add tst-bz22415-mem.out.
18131 ($(objpfx)tst-bz22415-mem.out): New rule.
18132 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18133 in case of a successful seek operation.
18134 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18135 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18136 buffer is required.
18137 * libio/tst-bz22415.c: New test.
18138
18139 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18140
18141 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18142
18143 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18144 __IPC_64 to 0 to avoid IPC_64 being set.
18145
18146 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18147
18148 [BZ #22593]
18149 * math/bits/mathcalls.h (nextafter): Remove const.
18150 (nexttoward): Likewise.
18151
18152 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18153
18154 * configure.ac (--with-fp): Remove configure option.
18155 (with_fp_cond): New variable.
18156 (libc_cv_with_fp): New configure test. Use this variable instead
18157 of with_fp.
18158 * configure: Regenerated.
18159 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18160 * manual/install.texi (Configuring and compiling): Remove
18161 --without-fp.
18162 * INSTALL: Regenerated.
18163 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18164 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18165 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18166 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18167 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18168 use --without-fp to configure glibc.
18169
18170 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18171
18172 * manual/locale.texi (nl_langinfo): Fix a typo.
18173
18174 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18175
18176 [BZ #22588]
18177 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18178
18179 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18180
18181 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18182 (CFLAGS-argp-parse.c): Likewise.
18183 (CFLAGS-argp-fmtstream.c): Likewise.
18184 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18185 (CPPFLAGS-sha512-crypt.c): Likewise.
18186 (CPPFLAGS-md5-crypt.c): Likewise.
18187 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18188 (CFLAGS-stack_chk_fail_local.c): Likewise.
18189 (CFLAGS-backtrace.c): Likewise.
18190 (CFLAGS-sprintf_chk.c): Likewise.
18191 (CFLAGS-snprintf_chk.c): Likewise.
18192 (CFLAGS-vsprintf_chk.c): Likewise.
18193 (CFLAGS-vsnprintf_chk.c): Likewise.
18194 (CFLAGS-asprintf_chk.c): Likewise.
18195 (CFLAGS-vasprintf_chk.c): Likewise.
18196 (CFLAGS-obprintf_chk.c): Likewise.
18197 (CFLAGS-dprintf_chk.c): Likewise.
18198 (CFLAGS-vdprintf_chk.c): Likewise.
18199 (CFLAGS-printf_chk.c): Likewise.
18200 (CFLAGS-fprintf_chk.c): Likewise.
18201 (CFLAGS-vprintf_chk.c): Likewise.
18202 (CFLAGS-vfprintf_chk.c): Likewise.
18203 (CFLAGS-gets_chk.c): Likewise.
18204 (CFLAGS-fgets_chk.c): Likewise.
18205 (CFLAGS-fgets_u_chk.c): Likewise.
18206 (CFLAGS-fread_chk.c): Likewise.
18207 (CFLAGS-fread_u_chk.c): Likewise.
18208 (CFLAGS-swprintf_chk.c): Likewise.
18209 (CFLAGS-vswprintf_chk.c): Likewise.
18210 (CFLAGS-wprintf_chk.c): Likewise.
18211 (CFLAGS-fwprintf_chk.c): Likewise.
18212 (CFLAGS-vwprintf_chk.c): Likewise.
18213 (CFLAGS-vfwprintf_chk.c): Likewise.
18214 (CFLAGS-fgetws_chk.c): Likewise.
18215 (CFLAGS-fgetws_u_chk.c): Likewise.
18216 (CFLAGS-read_chk.c): Likewise.
18217 (CFLAGS-pread_chk.c): Likewise.
18218 (CFLAGS-pread64_chk.c): Likewise.
18219 (CFLAGS-recv_chk.c): Likewise.
18220 (CFLAGS-recvfrom_chk.c): Likewise.
18221 (CFLAGS-tst-longjmp_chk.c): Likewise.
18222 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18223 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18224 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18225 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18226 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18227 (CFLAGS-tst-chk1.c): Likewise.
18228 (CFLAGS-tst-chk2.c): Likewise.
18229 (CFLAGS-tst-chk3.c): Likewise.
18230 (CFLAGS-tst-chk4.cc): Likewise.
18231 (CFLAGS-tst-chk5.cc): Likewise.
18232 (CFLAGS-tst-chk6.cc): Likewise.
18233 (CFLAGS-tst-lfschk1.c): Likewise.
18234 (CFLAGS-tst-lfschk2.c): Likewise.
18235 (CFLAGS-tst-lfschk3.c): Likewise.
18236 (CFLAGS-tst-lfschk4.cc): Likewise.
18237 (CFLAGS-tst-lfschk5.cc): Likewise.
18238 (CFLAGS-tst-lfschk6.cc): Likewise.
18239 (CFLAGS-tst-ssp-1.c): Likewise.
18240 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18241 (CFLAGS-scandir64.c): Likewise.
18242 (CFLAGS-scandir-tail.c): Likewise.
18243 (CFLAGS-scandir64-tail.c): Likewise.
18244 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18245 (CFLAGS-dl-tunables.c): Likewise.
18246 (CFLAGS-dl-runtime.c): Likewise.
18247 (CFLAGS-dl-lookup.c): Likewise.
18248 (CFLAGS-dl-iterate-phdr.c): Likewise.
18249 (CFLAGS-vismain.c): Likewise.
18250 (CFLAGS-tst-linkall-static.c): Likewise.
18251 (CFLAGS-tst-linkall-static.c): Likewise.
18252 (CPPFLAGS-dl-load.c): Likewise.
18253 (CFLAGS-ldconfig.c): Likewise.
18254 (CFLAGS-dl-cache.c): Likewise.
18255 (CFLAGS-cache.c): Likewise.
18256 (CFLAGS-rtld.c): Likewise.
18257 (CFLAGS-multiload.c): Likewise.
18258 (CFLAGS-filtmod1.c): Likewise.
18259 (CFLAGS-tst-align.c): Likewise.
18260 (CFLAGS-tst-align2.c): Likewise.
18261 (CFLAGS-tst-alignmod.c): Likewise.
18262 (CFLAGS-tst-alignmod2.c): Likewise.
18263 (CPPFLAGS-tst-execstack.c): Likewise.
18264 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18265 (CFLAGS-tst-latepthreadmod.c): Likewise.
18266 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18267 (CFLAGS-getgrnam_r.c): Likewise.
18268 (CFLAGS-getgrent_r.c): Likewise.
18269 (CFLAGS-getgrent.c): Likewise.
18270 (CFLAGS-fgetgrent.c): Likewise.
18271 (CFLAGS-fgetgrent_r.c): Likewise.
18272 (CFLAGS-putgrent.c): Likewise.
18273 (CFLAGS-initgroups.c): Likewise.
18274 (CFLAGS-getgrgid.c): Likewise.
18275 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18276 (CFLAGS-getsgent.c): Likewise.
18277 (CFLAGS-fgetsgent.c): Likewise.
18278 (CFLAGS-fgetsgent_r.c): Likewise.
18279 (CFLAGS-putsgent.c): Likewise.
18280 (CFLAGS-getsgnam.c): Likewise.
18281 (CFLAGS-getsgnam_r.c): Likewise.
18282 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18283 (CFLAGS-iconv_charmap.c): Likewise.
18284 (CFLAGS-dummy-repertoire.c): Likewise.
18285 (CFLAGS-charmap.c): Likewise.
18286 (CFLAGS-linereader.c): Likewise.
18287 (CFLAGS-simple-hash.c): Likewise.
18288 (CFLAGS-gconv_conf.c): Likewise.
18289 (CFLAGS-iconvconfig.c): Likewise.
18290 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18291 (CFLAGS-gethstbyad.c): Likewise.
18292 (CFLAGS-gethstbynm_r.c): Likewise.
18293 (CFLAGS-gethstbynm.c): Likewise.
18294 (CFLAGS-gethstbynm2_r.c): Likewise.
18295 (CFLAGS-gethstbynm2.c): Likewise.
18296 (CFLAGS-gethstent_r.c): Likewise.
18297 (CFLAGS-gethstent.c): Likewise.
18298 (CFLAGS-rcmd.c): Likewise.
18299 (CFLAGS-getnetbynm_r.c): Likewise.
18300 (CFLAGS-getnetbynm.c): Likewise.
18301 (CFLAGS-getnetbyad_r.c): Likewise.
18302 (CFLAGS-getnetbyad.c): Likewise.
18303 (CFLAGS-getnetent_r.c): Likewise.
18304 (CFLAGS-getnetent.c): Likewise.
18305 (CFLAGS-getaliasent_r.c): Likewise.
18306 (CFLAGS-getaliasent.c): Likewise.
18307 (CFLAGS-getrpcent_r.c): Likewise.
18308 (CFLAGS-getrpcent.c): Likewise.
18309 (CFLAGS-getservent_r.c): Likewise.
18310 (CFLAGS-getservent.c): Likewise.
18311 (CFLAGS-getprtent_r.c): Likewise.
18312 (CFLAGS-getprtent.c): Likewise.
18313 (CFLAGS-either_ntoh.c): Likewise.
18314 (CFLAGS-either_hton.c): Likewise.
18315 (CFLAGS-getnetgrent.c): Likewise.
18316 (CFLAGS-getnetgrent_r.c): Likewise.
18317 (CFLAGS-tst-checks-posix.c): Likewise.
18318 (CFLAGS-tst-sockaddr.c): Likewise.
18319 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
18320 (CFLAGS-tst-translit.c): Likewise.
18321 (CFLAGS-tst-gettext2.c): Likewise.
18322 (CFLAGS-tst-codeset.c): Likewise.
18323 (CFLAGS-tst-gettext3.c): Likewise.
18324 (CFLAGS-tst-gettext4.c): Likewise.
18325 (CFLAGS-tst-gettext5.c): Likewise.
18326 (CFLAGS-tst-gettext6.c): Likewise.
18327 * io/Makefile (CFLAGS-open.c): Likewise.
18328 (CFLAGS-open64.c): Likewise.
18329 (CFLAGS-creat.c): Likewise.
18330 (CFLAGS-creat64.c): Likewise.
18331 (CFLAGS-fcntl.c): Likewise.
18332 (CFLAGS-poll.c): Likewise.
18333 (CFLAGS-ppoll.c): Likewise.
18334 (CFLAGS-lockf.c): Likewise.
18335 (CFLAGS-statfs.c): Likewise.
18336 (CFLAGS-fstatfs.c): Likewise.
18337 (CFLAGS-statvfs.c): Likewise.
18338 (CFLAGS-fstatvfs.c): Likewise.
18339 (CFLAGS-fts.c): Likewise.
18340 (CFLAGS-fts64.c): Likewise.
18341 (CFLAGS-ftw.c): Likewise.
18342 (CFLAGS-ftw64.c): Likewise.
18343 (CFLAGS-lockf.c): Likewise.
18344 (CFLAGS-posix_fallocate.c): Likewise.
18345 (CFLAGS-posix_fallocate64.c): Likewise.
18346 (CFLAGS-fallocate.c): Likewise.
18347 (CFLAGS-fallocate64.c): Likewise.
18348 (CFLAGS-read.c): Likewise.
18349 (CFLAGS-write.c): Likewise.
18350 (CFLAGS-test-stat.c): Likewise.
18351 (CFLAGS-test-lfs.c): Likewise.
18352 * libio/Makefile (CFLAGS-fileops.c): Likewise.
18353 (CFLAGS-fputc.c): Likewise.
18354 (CFLAGS-fputwc.c): Likewise.
18355 (CFLAGS-freopen64.c): Likewise.
18356 (CFLAGS-freopen.c): Likewise.
18357 (CFLAGS-fseek.c): Likewise.
18358 (CFLAGS-fseeko64.c): Likewise.
18359 (CFLAGS-fseeko.c): Likewise.
18360 (CFLAGS-ftello64.c): Likewise.
18361 (CFLAGS-ftello.c): Likewise.
18362 (CFLAGS-fwide.c): Likewise.
18363 (CFLAGS-genops.c): Likewise.
18364 (CFLAGS-getc.c): Likewise.
18365 (CFLAGS-getchar.c): Likewise.
18366 (CFLAGS-getwc.c): Likewise.
18367 (CFLAGS-getwchar.c): Likewise.
18368 (CFLAGS-iofclose.c): Likewise.
18369 (CFLAGS-iofflush.c): Likewise.
18370 (CFLAGS-iofgetpos64.c): Likewise.
18371 (CFLAGS-iofgetpos.c): Likewise.
18372 (CFLAGS-iofgets.c): Likewise.
18373 (CFLAGS-iofgetws.c): Likewise.
18374 (CFLAGS-iofputs.c): Likewise.
18375 (CFLAGS-iofputws.c): Likewise.
18376 (CFLAGS-iofread.c): Likewise.
18377 (CFLAGS-iofsetpos64.c): Likewise.
18378 (CFLAGS-iofsetpos.c): Likewise.
18379 (CFLAGS-ioftell.c): Likewise.
18380 (CFLAGS-iofwrite.c): Likewise.
18381 (CFLAGS-iogetdelim.c): Likewise.
18382 (CFLAGS-iogetline.c): Likewise.
18383 (CFLAGS-iogets.c): Likewise.
18384 (CFLAGS-iogetwline.c): Likewise.
18385 (CFLAGS-ioputs.c): Likewise.
18386 (CFLAGS-ioseekoff.c): Likewise.
18387 (CFLAGS-ioseekpos.c): Likewise.
18388 (CFLAGS-iosetbuffer.c): Likewise.
18389 (CFLAGS-iosetvbuf.c): Likewise.
18390 (CFLAGS-ioungetc.c): Likewise.
18391 (CFLAGS-ioungetwc.c): Likewise.
18392 (CFLAGS-oldfileops.c): Likewise.
18393 (CFLAGS-oldiofclose.c): Likewise.
18394 (CFLAGS-oldiofgetpos64.c): Likewise.
18395 (CFLAGS-oldiofgetpos.c): Likewise.
18396 (CFLAGS-oldiofsetpos64.c): Likewise.
18397 (CFLAGS-oldiofsetpos.c): Likewise.
18398 (CFLAGS-peekc.c): Likewise.
18399 (CFLAGS-putc.c): Likewise.
18400 (CFLAGS-putchar.c): Likewise.
18401 (CFLAGS-putwc.c): Likewise.
18402 (CFLAGS-putwchar.c): Likewise.
18403 (CFLAGS-rewind.c): Likewise.
18404 (CFLAGS-wfileops.c): Likewise.
18405 (CFLAGS-wgenops.c): Likewise.
18406 (CFLAGS-oldiofopen.c): Likewise.
18407 (CFLAGS-iofopen.c): Likewise.
18408 (CFLAGS-iofopen64.c): Likewise.
18409 (CFLAGS-oldtmpfile.c): Likewise.
18410 (CFLAGS-tst_putwc.c): Likewise.
18411 * locale/Makefile (CFLAGS-md5.c): Likewise.
18412 (CFLAGS-charmap.c): Likewise.
18413 (CFLAGS-locfile.c): Likewise.
18414 (CFLAGS-charmap-dir.c): Likewise.
18415 * login/Makefile (CFLAGS-grantpt.c): Likewise.
18416 (CFLAGS-getpt.c): Likewise.
18417 (CFLAGS-pt_chown.c): Likewise.
18418 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
18419 (CFLAGS-obstack.c): Likewise.
18420 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
18421 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
18422 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
18423 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
18424 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
18425 (CFLAGS-test-tgmath.c): Likewise.
18426 (CFLAGS-test-tgmath2.c): Likewise.
18427 (CFLAGS-test-tgmath-ret.c): Likewise.
18428 (CFLAGS-test-powl.c): Likewise.
18429 (CFLAGS-test-snan.c): Likewise.
18430 (CFLAGS-test-signgam-finite.c): Likewise.
18431 (CFLAGS-test-signgam-finite-c99.c): Likewise.
18432 (CFLAGS-test-signgam-finite-c11.c): Likewise.
18433 (CFLAGS-test-signgam-uchar.c): Likewise.
18434 (CFLAGS-test-signgam-uchar-init.c): Likewise.
18435 (CFLAGS-test-signgam-uchar-static.c): Likewise.
18436 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
18437 (CFLAGS-test-signgam-uint.c): Likewise.
18438 (CFLAGS-test-signgam-uint-init.c): Likewise.
18439 (CFLAGS-test-signgam-uint-static.c): Likewise.
18440 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
18441 (CFLAGS-test-signgam-ullong.c): Likewise.
18442 (CFLAGS-test-signgam-ullong-init.c): Likewise.
18443 (CFLAGS-test-signgam-ullong-static.c): Likewise.
18444 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
18445 (CFLAGS-test-math-cxx11.cc): Likewise.
18446 (CFLAGS-test-math-isinff.cc): Likewise.
18447 (CFLAGS-test-math-iszero.cc): Likewise.
18448 (CFLAGS-test-math-issignaling.cc): Likewise.
18449 (CFLAGS-test-math-iscanonical.cc): Likewise.
18450 (CFLAGS-test-iszero-excess-precision.c): Likewise.
18451 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
18452 (CFLAGS-test-flt-eval-method.c): Likewise.
18453 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
18454 (CFLAGS-test-finite-macros.c): Likewise.
18455 * misc/Makefile (CFLAGS-select.c): Likewise.
18456 (CFLAGS-tsearch.c): Likewise.
18457 (CFLAGS-lsearch.c): Likewise.
18458 (CFLAGS-pselect.c): Likewise.
18459 (CFLAGS-readv.c): Likewise.
18460 (CFLAGS-writev.c): Likewise.
18461 (CFLAGS-preadv.c): Likewise.
18462 (CFLAGS-preadv64.c): Likewise.
18463 (CFLAGS-pwritev.c): Likewise.
18464 (CFLAGS-pwritev64.c): Likewise.
18465 (CFLAGS-preadv2.c): Likewise.
18466 (CFLAGS-preadv64v2.c): Likewise.
18467 (CFLAGS-pwritev2.c): Likewise.
18468 (CFLAGS-pwritev64v2.c): Likewise.
18469 (CFLAGS-usleep.c): Likewise.
18470 (CFLAGS-syslog.c): Likewise.
18471 (CFLAGS-error.c): Likewise.
18472 (CFLAGS-getpass.c): Likewise.
18473 (CFLAGS-mkstemp.c): Likewise.
18474 (CFLAGS-mkstemp64.c): Likewise.
18475 (CFLAGS-getsysstats.c): Likewise.
18476 (CFLAGS-getusershell.c): Likewise.
18477 (CFLAGS-err.c): Likewise.
18478 (CFLAGS-tst-tsearch.c): Likewise.
18479 (CFLAGS-msync.c): Likewise.
18480 (CFLAGS-fdatasync.c): Likewise.
18481 (CFLAGS-fsync.c): Likewise.
18482 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
18483 (CFLAGS-unwind.c): Likewise.
18484 (CFLAGS-unwind-forcedunwind.c): Likewise.
18485 (CFLAGS-pthread_cancel.c): Likewise.
18486 (CFLAGS-pthread_setcancelstate.c): Likewise.
18487 (CFLAGS-pthread_setcanceltype.c): Likewise.
18488 (CFLAGS-cancellation.c): Likewise.
18489 (CFLAGS-libc-cancellation.c): Likewise.
18490 (CFLAGS-pthread_exit.c): Likewise.
18491 (CFLAGS-forward.c): Likewise.
18492 (CFLAGS-pthread_testcancel.c): Likewise.
18493 (CFLAGS-pthread_join.c): Likewise.
18494 (CFLAGS-pthread_timedjoin.c): Likewise.
18495 (CFLAGS-pthread_once.c): Likewise.
18496 (CFLAGS-pthread_cond_wait.c): Likewise.
18497 (CFLAGS-sem_wait.c): Likewise.
18498 (CFLAGS-sem_timedwait.c): Likewise.
18499 (CFLAGS-fcntl.c): Likewise.
18500 (CFLAGS-lockf.c): Likewise.
18501 (CFLAGS-pread.c): Likewise.
18502 (CFLAGS-pread64.c): Likewise.
18503 (CFLAGS-pwrite.c): Likewise.
18504 (CFLAGS-pwrite64.c): Likewise.
18505 (CFLAGS-wait.c): Likewise.
18506 (CFLAGS-waitpid.c): Likewise.
18507 (CFLAGS-sigwait.c): Likewise.
18508 (CFLAGS-msgrcv.c): Likewise.
18509 (CFLAGS-msgsnd.c): Likewise.
18510 (CFLAGS-tcdrain.c): Likewise.
18511 (CFLAGS-open.c): Likewise.
18512 (CFLAGS-open64.c): Likewise.
18513 (CFLAGS-pause.c): Likewise.
18514 (CFLAGS-recv.c): Likewise.
18515 (CFLAGS-send.c): Likewise.
18516 (CFLAGS-accept.c): Likewise.
18517 (CFLAGS-sendto.c): Likewise.
18518 (CFLAGS-connect.c): Likewise.
18519 (CFLAGS-recvfrom.c): Likewise.
18520 (CFLAGS-recvmsg.c): Likewise.
18521 (CFLAGS-sendmsg.c): Likewise.
18522 (CFLAGS-close.c): Likewise.
18523 (CFLAGS-read.c): Likewise.
18524 (CFLAGS-write.c): Likewise.
18525 (CFLAGS-nanosleep.c): Likewise.
18526 (CFLAGS-sigsuspend.c): Likewise.
18527 (CFLAGS-msync.c): Likewise.
18528 (CFLAGS-fdatasync.c): Likewise.
18529 (CFLAGS-fsync.c): Likewise.
18530 (CFLAGS-pt-system.c): Likewise.
18531 (CFLAGS-tst-cleanup2.c): Likewise.
18532 (CFLAGS-tst-cleanupx2.c): Likewise.
18533 (CFLAGS-flockfile.c): Likewise.
18534 (CFLAGS-ftrylockfile.c): Likewise.
18535 (CFLAGS-funlockfile.c): Likewise.
18536 (CFLAGS-tst-initializers1.c): Likewise.
18537 (CFLAGS-tst-initializers1-c89.c): Likewise.
18538 (CFLAGS-tst-initializers1-c99.c): Likewise.
18539 (CFLAGS-tst-initializers1-c11.c): Likewise.
18540 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
18541 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
18542 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
18543 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
18544 (CFLAGS-nscd_getgr_r.c): Likewise.
18545 (CFLAGS-nscd_gethst_r.c): Likewise.
18546 (CFLAGS-nscd_getai.c): Likewise.
18547 (CFLAGS-nscd_initgroups.c): Likewise.
18548 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
18549 (CFLAGS-pause.c): Likewise.
18550 (CFLAGS-pread.c): Likewise.
18551 (CFLAGS-pread64.c): Likewise.
18552 (CFLAGS-pwrite.c): Likewise.
18553 (CFLAGS-pwrite64.c): Likewise.
18554 (CFLAGS-sleep.c): Likewise.
18555 (CFLAGS-wait.c): Likewise.
18556 (CFLAGS-waitid.c): Likewise.
18557 (CFLAGS-waitpid.c): Likewise.
18558 (CFLAGS-getopt.c): Likewise.
18559 (CFLAGS-wordexp.c): Likewise.
18560 (CFLAGS-sysconf.c): Likewise.
18561 (CFLAGS-pathconf.c): Likewise.
18562 (CFLAGS-fpathconf.c): Likewise.
18563 (CFLAGS-spawn.c): Likewise.
18564 (CFLAGS-spawnp.c): Likewise.
18565 (CFLAGS-spawni.c): Likewise.
18566 (CFLAGS-glob.c): Likewise.
18567 (CFLAGS-glob64.c): Likewise.
18568 (CFLAGS-getconf.c): Likewise.
18569 (CFLAGS-nanosleep.c): Likewise.
18570 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
18571 (CFLAGS-getpwent.c): Likewise.
18572 (CFLAGS-getpw.c): Likewise.
18573 (CFLAGS-fgetpwent_r.c): Likewise.
18574 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
18575 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
18576 (CFLAGS-mq_timedreceive.c): Likewise.
18577 (CFLAGS-mq_timedsend.c): Likewise.
18578 (CFLAGS-clock_nanosleep.c): Likewise.
18579 (CFLAGS-librt-cancellation.c): Likewise.
18580 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
18581 (CFLAGS-getspent.c): Likewise.
18582 (CFLAGS-fgetspent.c): Likewise.
18583 (CFLAGS-fgetspent_r.c): Likewise.
18584 (CFLAGS-putspent.c): Likewise.
18585 (CFLAGS-getspnam.c): Likewise.
18586 (CFLAGS-getspnam_r.c): Likewise.
18587 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
18588 (CFLAGS-sigsuspend.c): Likewise.
18589 (CFLAGS-sigtimedwait.c): Likewise.
18590 (CFLAGS-sigwait.c): Likewise.
18591 (CFLAGS-sigwaitinfo.c): Likewise.
18592 (CFLAGS-sigreturn.c): Likewise.
18593 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
18594 (CFLAGS-vfwprintf.c): Likewise.
18595 (CFLAGS-tmpfile.c): Likewise.
18596 (CFLAGS-tmpfile64.c): Likewise.
18597 (CFLAGS-tempname.c): Likewise.
18598 (CFLAGS-psignal.c): Likewise.
18599 (CFLAGS-vprintf.c): Likewise.
18600 (CFLAGS-cuserid.c): Likewise.
18601 (CFLAGS-errlist.c): Likewise.
18602 (CFLAGS-siglist.c): Likewise.
18603 (CFLAGS-scanf15.c): Likewise.
18604 (CFLAGS-scanf17.c): Likewise.
18605 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
18606 (CFLAGS-msort.c): Likewise.
18607 (CFLAGS-qsort.c): Likewise.
18608 (CFLAGS-system.c): Likewise.
18609 (CFLAGS-fmtmsg.c): Likewise.
18610 (CFLAGS-strfmon.c): Likewise.
18611 (CFLAGS-strfmon_l.c): Likewise.
18612 (CFLAGS-strfromd.c): Likewise.
18613 (CFLAGS-strfromf.c): Likewise.
18614 (CFLAGS-strfroml.c): Likewise.
18615 (CFLAGS-tst-bsearch.c): Likewise.
18616 (CFLAGS-tst-qsort.c): Likewise.
18617 (CFLAGS-tst-makecontext2.c): Likewise.
18618 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
18619 (CFLAGS-xnlm_prot.c): Likewise.
18620 (CFLAGS-xrstat.c): Likewise.
18621 (CFLAGS-xyppasswd.c): Likewise.
18622 (CFLAGS-xklm_prot.c): Likewise.
18623 (CFLAGS-xrex.c): Likewise.
18624 (CFLAGS-xsm_inter.c): Likewise.
18625 (CFLAGS-xmount.c): Likewise.
18626 (CFLAGS-xrusers.c): Likewise.
18627 (CFLAGS-xspray.c): Likewise.
18628 (CFLAGS-xnfs_prot.c): Likewise.
18629 (CFLAGS-xrquota.c): Likewise.
18630 (CFLAGS-xkey_prot.c): Likewise.
18631 (CFLAGS-auth_unix.c): Likewise.
18632 (CFLAGS-key_call.c): Likewise.
18633 (CFLAGS-pmap_rmt.c): Likewise.
18634 (CFLAGS-clnt_perr.c): Likewise.
18635 (CFLAGS-openchild.c): Likewise.
18636 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
18637 (CFLAGS-msgsnd.c): Likewise.
18638 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
18639 * time/Makefile (CFLAGS-tzfile.c): Likewise.
18640 (CFLAGS-tzset.c): Likewise.
18641 (CFLAGS-getdate.c): Likewise.
18642 (CFLAGS-test_time.c): Likewise.
18643 (CPPFLAGS-tst-tzname.c): Likewise.
18644 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
18645 (CFLAGS-zic.c): Likewise.
18646 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
18647 (CFLAGS-wcswidth.c): Likewise.
18648 (CFLAGS-wcstol.c): Likewise.
18649 (CFLAGS-wcstoul.c): Likewise.
18650 (CFLAGS-wcstoll.c): Likewise.
18651 (CFLAGS-wcstoull.c): Likewise.
18652 (CFLAGS-wcstod.c): Likewise.
18653 (CFLAGS-wcstold.c): Likewise.
18654 (CFLAGS-wcstof128.c): Likewise.
18655 (CFLAGS-wcstof.c): Likewise.
18656 (CFLAGS-wcstol_l.c): Likewise.
18657 (CFLAGS-wcstoul_l.c): Likewise.
18658 (CFLAGS-wcstoll_l.c): Likewise.
18659 (CFLAGS-wcstoull_l.c): Likewise.
18660 (CFLAGS-wcstod_l.c): Likewise.
18661 (CFLAGS-wcstold_l.c): Likewise.
18662 (CFLAGS-wcstof128_l.c): Likewise.
18663 (CFLAGS-wcstof_l.c): Likewise.
18664 (CPPFLAGS-tst-wchar-h.c): Likewise.
18665 (CPPFLAGS-wcstold_l.c): Likewise.
18666
18667 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
18668
18669 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
18670
18671 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
18672 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18673
18674 * manual/tunables.texi (Hardware Capability Tunables): Document
18675 glibc.tune.cached_memopt.
18676 * sysdeps/powerpc/cpu-features.c: New file.
18677 * sysdeps/powerpc/cpu-features.h: New file.
18678 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
18679 _dl_powerpc_cpu_features.
18680 * sysdeps/powerpc/dl-tunables.list: New file.
18681 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
18682 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
18683 (INIT_ARCH): Initialize use_aligned_memopt.
18684 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
18685 IS_IN(rtld))]: Restrict dl_platform_init availability and
18686 initialize CPU features used by tunables.
18687 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
18688 Add memcpy-power8-cached.
18689 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
18690 __memcpy_power8_cached.
18691 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
18692 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
18693 New file.
18694
18695 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18696
18697 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
18698 (CFLAGS-noinl-tester.c): Likewise.
18699 (CFLAGS-tst-strlen.c): Likewise.
18700 (CFLAGS-stratcliff.c): Likewise.
18701 (CFLAGS-test-ffs.c): Likewise.
18702 (CFLAGS-tst-inlcall.c): Likewise.
18703 (CFLAGS-tst-xbzero-opt.c): Likewise.
18704 (CFLAGS-memcpy.c): Likewise.
18705 (CFLAGS-wordcopy.c): Likewise.
18706
18707 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
18708
18709 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
18710 Store r15 on stack and add cfi rule.
18711 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
18712 Likewise.
18713
18714 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
18715
18716 [BZ #22577]
18717 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
18718 call.
18719
18720 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18721
18722 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18723 Add s_sinf-sse2 and s_sinf-fma.
18724 (CFLAGS-s_sinf-fma.c): New.
18725 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
18726 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
18727 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
18728
18729 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18730
18731 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
18732
18733 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18734
18735 [BZ #22568]
18736 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
18737 part of result to imaginary part of argument if it is zero and the
18738 real part of the argument is not finite.
18739 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
18740 of result to real part of argument if it is zero and the imaginary
18741 part of the argument is not finite.
18742
18743 2017-12-07 Mike FABIAN <mfabian@redhat.com>
18744
18745 [BZ #22524]
18746 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
18747 and to the list of locales to be built for testing.
18748 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
18749 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
18750 and build the collation rules upon that.
18751
18752 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18753
18754 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
18755 * manual/math.texi (Mathematics): Document support for _Float32.
18756 * math/Makefile (test-types): Add float32.
18757 * math/Versions (GLIBC_2.27): Add _Float32 functions.
18758 * stdlib/Versions (GLIBC_2.27): Likewise.
18759 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18760 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18761 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18762 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18763 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18764 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18765 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18766 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18767 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18768 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18769 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18770 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18771 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18772 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18773 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18774 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18775 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18776 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18777 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18778 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18779 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18780 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18781 Likewise.
18782 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18783 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18784 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18785 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18786 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18787 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18788 Likewise.
18789 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18790 Likewise.
18791 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18792 Likewise.
18793 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18794 Likewise.
18795
18796 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18797 Likewise.
18798 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18799 Likewise.
18800 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18801 Likewise.
18802 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18803 Likewise.
18804 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18805 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18806 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18807 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18808 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18809 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18810 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18811 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18812 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18813 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18814 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18815 Likewise.
18816 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18817 Likewise.
18818 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18819 Likewise.
18820 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18821 Likewise.
18822 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18823 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18824 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18825 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18826 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18827 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18828 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18829 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18830
18831 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18832
18833 * stdlib/strtof.c: Include <bits/floatn.h>
18834 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
18835 and later undefine as macro. Define as weak alias if
18836 [!USE_WIDE_CHAR].
18837 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
18838 and later undefine as macro. Define as weak alias if
18839 [USE_WIDE_CHAR].
18840 * stdlib/strtof_l.c: Include <bits/floatn.h>
18841 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
18842 and later undefine as macro. Define as weak alias if
18843 [!USE_WIDE_CHAR].
18844 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
18845 and later undefine as macro. Define as weak alias if
18846 [USE_WIDE_CHAR].
18847
18848 * stdlib/strfromf.c: Include <bits/floatn.h>.
18849 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
18850 and later undefine as macro and define as weak alias.
18851
18852 * math/test-float32.h: New file.
18853
18854 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
18855 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
18856 (libm_alias_float_other_r): Create f32 alias.
18857 (libm_alias_float_r): Use semicolon before call to
18858 libm_alias_float_other_r.
18859
18860 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
18861 second argument to libm_alias_float_other.
18862 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
18863 second argument to libm_alias_float_other.
18864 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
18865 argument to libm_alias_float_other.
18866
18867 [BZ #22561]
18868 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
18869 real part of result for argument 0 + i * NaN.
18870 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
18871 results for tests of 0 + i * NaN.
18872
18873 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18874
18875 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18876
18877 2017-12-06 David S. Miller <davem@davemloft.net>
18878
18879 * sysdeps/sparc/fpu/libm-test-ulps: Update
18880 exp_{downward,towardzero,upward} ulps.
18881
18882 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18883
18884 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
18885 variables static.
18886
18887 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
18888 (Y0_2D): Likewise.
18889 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
18890 (Y0_2D): Likewise.
18891 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
18892 (Y0_2D): Likewise.
18893 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
18894 (Y0_2D): Likewise.
18895
18896 2017-12-06 Mike FABIAN <mfabian@redhat.com>
18897
18898 [BZ #22515]
18899 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
18900 and to the list of locales to be built for testing.
18901 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
18902 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
18903 and build the collation rules upon that.
18904
18905 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18906
18907 * NEWS: Add sinf to list of optimized functions.
18908
18909 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18910
18911 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
18912 (__HAVE_FLOAT32X): Likewise.
18913 * manual/math.texi (Mathematics): Document support for _Float64
18914 and _Float32x.
18915 * math/Makefile (test-types): Add float64 and float32x.
18916 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
18917 functions.
18918 * stdlib/Versions (GLIBC_2.27): Likewise.
18919 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18920 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18921 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18922 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18923 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18924 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18925 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18926 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18927 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18928 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18929 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18930 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18931 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18932 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18933 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18934 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18935 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18936 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18937 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18938 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18939 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18940 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18941 Likewise.
18942 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18943 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18944 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18945 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18946 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18947 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18948 Likewise.
18949 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18950 Likewise.
18951 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18952 Likewise.
18953 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18954 Likewise.
18955 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18956 Likewise.
18957 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18958 Likewise.
18959 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18960 Likewise.
18961 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18962 Likewise.
18963 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18964 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18965 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18966 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18967 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18968 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18969 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18970 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18971 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18972 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18973 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18974 Likewise.
18975 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18976 Likewise.
18977 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18978 Likewise.
18979 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18980 Likewise.
18981 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18982 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18983 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18984 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18985 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18986 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18987 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18988 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18989
18990 2017-12-05 Joseph Myers <joseph@codesourcery.com>
18991
18992 * bits/floatn-common.h: Include <bits/long-double.h>.
18993 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18994 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
18995 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18996 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
18997 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18998 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
18999 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19000 (__builtin_huge_valf64): Use __builtin_huge_vall.
19001 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19002 (__builtin_inff64): Use __builtin_infl.
19003 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19004 (__builtin_nanf64): Use __builtin_nanl.
19005 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19006 (__builtin_nansf64): Use __builtin_nansl.
19007
19008 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19009 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19010 Carlos O'Donnell <carlos@redhat.com>
19011
19012 * elf/dl-tunables.list: Add elision parameters.
19013 * manual/tunables.texi: Add entries about elision tunable.
19014 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19015 Add callback functions to dynamically enable/disable elision.
19016 Add multiple callbacks functions to set elision parameters.
19017 Deleted __libc_enable_secure check.
19018 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19019 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19020 * configure: Regenerated.
19021 * configure.ac: Option enable_lock_elision was deleted.
19022 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19023 * config.make.in: Remove references to enable_lock_elision.
19024 * manual/install.texi: Elision configure option was removed.
19025 * INSTALL: Regenerated to remove enable_lock_elision.
19026 * nptl/Makefile:
19027 Disable elision so it can verify error case for destroying a mutex.
19028 * sysdeps/powerpc/nptl/elide.h:
19029 Cleanup ENABLE_LOCK_ELISION check.
19030 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19031 * sysdeps/s390/configure: Regenerated.
19032 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19033 * nptl/tst-mutex8.c:
19034 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19035 * sysdeps/powerpc/powerpc32/sysdep.h:
19036 Deleted all ENABLE_LOCK_ELISION checks.
19037 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19038 * sysdeps/powerpc/sysdep.h: Likewise.
19039 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19040 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19041 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19042 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19043 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19044 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19045 enable-lock-elision.
19046
19047 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19048
19049 * stdlib/strtod.c: Include <bits/floatn.h>.
19050 (BUILD_DOUBLE): New macro.
19051 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19052 (strtof64): Define and later undefine as macro. Define as weak
19053 alias if [!USE_WIDE_CHAR].
19054 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19055 (wcstof64): Define and later undefine as macro. Define as weak
19056 alias if [USE_WIDE_CHAR].
19057 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19058 (strtof32x): Define and later undefine as macro. Define as weak
19059 alias if [!USE_WIDE_CHAR].
19060 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19061 (wcstof32x): Define and later undefine as macro. Define as weak
19062 alias if [USE_WIDE_CHAR].
19063 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19064 (BUILD_DOUBLE): New macro.
19065 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19066 (strtof64_l): Define and later undefine as macro. Define as weak
19067 alias if [!USE_WIDE_CHAR].
19068 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19069 (wcstof64_l): Define and later undefine as macro. Define as weak
19070 alias if [USE_WIDE_CHAR].
19071 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19072 (strtof32x_l): Define and later undefine as macro. Define as weak
19073 alias if [!USE_WIDE_CHAR].
19074 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19075 (wcstof32x_l): Define and later undefine as macro. Define as weak
19076 alias if [USE_WIDE_CHAR].
19077
19078 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19079
19080 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19081 (reduced): Use ones as double instead of integer.
19082
19083 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19084
19085 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19086
19087 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19088
19089 * stdlib/strfromd.c: Include <bits/floatn.h>.
19090 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19091 and later undefine as macro and define as weak alias.
19092 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19093 Likewise.
19094
19095 * math/test-float32x.h: New file.
19096 * math/test-float64.h: Likewise.
19097
19098 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19099 (libm_alias_double_other_r_f64): New macro.
19100 (libm_alias_double_other_r_f32x): Likewise.
19101 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19102 libm_alias_double_other_r_f32x.
19103 (libm_alias_double_r): Use semicolon before call to
19104 libm_alias_double_other_r.
19105 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19106 <bits/floatn.h>.
19107 (libm_alias_double_other_r_f64): New macro.
19108 (libm_alias_double_other_r_f32x): Likewise.
19109 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19110 libm_alias_double_other_r_f32x.
19111
19112 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19113
19114 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19115 int.
19116 (SINF_FUNC): Likewise. Replace floor with simple casts.
19117
19118 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19119
19120 [BZ #22517]
19121 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19122 and to the list of locales to be built for testing.
19123 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19124 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19125 and build the collation rules upon that.
19126
19127 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19128
19129 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19130 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19131 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19132 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19133 instead of __insn__xxx.
19134 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19135 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19136 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19137 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19138 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19139 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19140
19141 2017-12-05 Florian Weimer <fweimer@redhat.com>
19142
19143 Linux: Implement interfaces for memory protection keys
19144 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19145 xsignal, xsysconf.
19146 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19147 * support/xunistd.h (xsysconf): Declare.
19148 * support/xraise.c: New file.
19149 * support/xsigaction.c: Likewise.
19150 * support/xsignal.c: Likewise.
19151 * support/xsysconf.c: Likewise.
19152 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19153 pkey_set, pkey_get, pkey_mprotect.
19154 [misc] (tests): Add tst-pkey.
19155 (tst-pkey): Link with -lpthread.
19156 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19157 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19158 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19159 (PKEY_DISABLE_WRITE): Define.
19160 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19161 Declare.
19162 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19163 (SEGV_PKUERR): Add.
19164 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19165 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19166 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19167 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19168 Add.
19169 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19170 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19171 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19172 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19173 * sysdeps/unix/sysv/linux/**.abilist: Update.
19174
19175 2017-12-05 Florian Weimer <fweimer@redhat.com>
19176
19177 * support/tst-test_compare.c (subprocess): Use long long instead
19178 of long argument for consistent type width across 32-bit and
19179 64-bit architectures.
19180 (do_test): Adjust expected output.
19181
19182 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19183
19184 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19185 (cosf): Define using libm_alias_float.
19186 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19187 (fabsf): Define using libm_alias_float.
19188 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19189 (fmaf): Define using libm_alias_float.
19190 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19191 (rintf): Define using libm_alias_float.
19192 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19193 (sinf): Define using libm_alias_float.
19194 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19195 <libm-alias-float.h>.
19196 (modff): Define using libm_alias_float.
19197 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19198 <libm-alias-float.h>.
19199 (logbf): Define using libm_alias_float.
19200 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19201 <libm-alias-float.h>.
19202 (ceilf): Define using libm_alias_float.
19203 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19204 <libm-alias-float.h>.
19205 (copysignf): Define using libm_alias_float.
19206 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19207 <libm-alias-float.h>.
19208 (floorf): Define using libm_alias_float.
19209 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19210 <libm-alias-float.h>.
19211 (llrintf): Define using libm_alias_float.
19212 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19213 <libm-alias-float.h>.
19214 (llroundf): Define using libm_alias_float.
19215 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19216 <libm-alias-float.h>.
19217 (lrintf): Define using libm_alias_float.
19218 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19219 <libm-alias-float.h>.
19220 (lroundf): Define using libm_alias_float.
19221 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19222 <libm-alias-float.h>.
19223 (nearbyintf): Define using libm_alias_float.
19224 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19225 <libm-alias-float.h>.
19226 (rintf): Define using libm_alias_float.
19227 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19228 <libm-alias-float.h>.
19229 (roundf): Define using libm_alias_float.
19230 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19231 <libm-alias-float.h>.
19232 (truncf): Define using libm_alias_float.
19233 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19234 Include <libm-alias-float.h>.
19235 (ceilf): Define using libm_alias_float.
19236 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19237 Include <libm-alias-float.h>.
19238 (copysignf): Define using libm_alias_float.
19239 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19240 Include <libm-alias-float.h>.
19241 (floorf): Define using libm_alias_float.
19242 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19243 Include <libm-alias-float.h>.
19244 (llrintf): Define using libm_alias_float.
19245 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19246 Include <libm-alias-float.h>.
19247 (llroundf): Define using libm_alias_float.
19248 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19249 Include <libm-alias-float.h>.
19250 (logbf): Define using libm_alias_float.
19251 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19252 Include <libm-alias-float.h>.
19253 (lrintf): Define using libm_alias_float.
19254 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19255 Include <libm-alias-float.h>.
19256 (lroundf): Define using libm_alias_float.
19257 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19258 Include <libm-alias-float.h>.
19259 (modff): Define using libm_alias_float.
19260 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19261 Include <libm-alias-float.h>.
19262 (roundf): Define using libm_alias_float.
19263 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19264 Include <libm-alias-float.h>.
19265 (truncf): Define using libm_alias_float.
19266 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19267 <libm-alias-float.h>.
19268 (llrintf): Define using libm_alias_float.
19269 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19270 <libm-alias-float.h>.
19271 (llroundf): Define using libm_alias_float.
19272 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19273 <libm-alias-float.h>.
19274 (ceilf): Define using libm_alias_float.
19275 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19276 <libm-alias-float.h>.
19277 (floorf): Define using libm_alias_float.
19278 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19279 <libm-alias-float.h>.
19280 (llroundf): Define using libm_alias_float.
19281 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19282 <libm-alias-float.h>.
19283 (lroundf): Define using libm_alias_float.
19284 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19285 <libm-alias-float.h>.
19286 (roundf): Define using libm_alias_float.
19287 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19288 <libm-alias-float.h>.
19289 (truncf): Define using libm_alias_float.
19290 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19291 <libm-alias-float.h>.
19292 (copysignf): Define using libm_alias_float.
19293 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19294 <libm-alias-float.h>.
19295 (llrintf): Define using libm_alias_float.
19296 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19297 <libm-alias-float.h>.
19298 (llroundf): Define using libm_alias_float.
19299 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19300 <libm-alias-float.h>.
19301 (lrintf): Define using libm_alias_float.
19302 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19303 <libm-alias-float.h>.
19304 (lroundf): Define using libm_alias_float.
19305 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19306 <libm-alias-float.h>.
19307 (ceilf): Define using libm_alias_float.
19308 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19309 <libm-alias-float.h>.
19310 (copysignf): Define using libm_alias_float.
19311 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19312 <libm-alias-float.h>.
19313 (cosf): Define using libm_alias_float.
19314 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
19315 <libm-alias-float.h>.
19316 (floorf): Define using libm_alias_float.
19317 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
19318 <libm-alias-float.h>.
19319 (llrintf): Define using libm_alias_float.
19320 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
19321 <libm-alias-float.h>.
19322 (llroundf): Define using libm_alias_float.
19323 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19324 <libm-alias-float.h>.
19325 (logbf): Define using libm_alias_float.
19326 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19327 <libm-alias-float.h>.
19328 (modff): Define using libm_alias_float.
19329 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19330 <libm-alias-float.h>.
19331 (roundf): Define using libm_alias_float.
19332 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19333 <libm-alias-float.h>.
19334 (sinf): Define using libm_alias_float.
19335 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19336 <libm-alias-float.h>.
19337 (truncf): Define using libm_alias_float.
19338 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
19339 <libm-alias-float.h>.
19340 (ceilf): Define using libm_alias_float.
19341 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19342 <libm-alias-float.h>.
19343 (copysignf): Define using libm_alias_float.
19344 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
19345 <libm-alias-float.h>.
19346 (floorf): Define using libm_alias_float.
19347 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19348 <libm-alias-float.h>.
19349 (llrintf): Define using libm_alias_float.
19350 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
19351 <libm-alias-float.h>.
19352 (llroundf): Define using libm_alias_float.
19353 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
19354 <libm-alias-float.h>.
19355 (nearbyintf): Define using libm_alias_float.
19356 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
19357 <libm-alias-float.h>.
19358 (rintf): Define using libm_alias_float.
19359 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
19360 <libm-alias-float.h>.
19361 (roundf): Define using libm_alias_float.
19362 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
19363 <libm-alias-float.h>.
19364 (truncf): Define using libm_alias_float.
19365 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
19366 <libm-alias-float.h>.
19367 (ceilf): Define using libm_alias_float.
19368 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
19369 <libm-alias-float.h>.
19370 (floorf): Define using libm_alias_float.
19371 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19372 <libm-alias-float.h>.
19373 (llroundf): Define using libm_alias_float.
19374 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
19375 <libm-alias-float.h>.
19376 (roundf): Define using libm_alias_float.
19377 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
19378 <libm-alias-float.h>.
19379 (truncf): Define using libm_alias_float.
19380 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19381 <libm-alias-float.h>.
19382 (copysignf): Define using libm_alias_float.
19383 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19384 <libm-alias-float.h>.
19385 (llrintf): Define using libm_alias_float.
19386 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19387 <libm-alias-float.h>.
19388 (llroundf): Define using libm_alias_float.
19389 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
19390 <libm-alias-float.h>.
19391 (cosf): Define using libm_alias_float.
19392 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19393 <libm-alias-float.h>.
19394 (llrintf): Define using libm_alias_float.
19395 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19396 <libm-alias-float.h>.
19397 (llroundf): Define using libm_alias_float.
19398 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
19399 <libm-alias-float.h>.
19400 (sinf): Define using libm_alias_float.
19401
19402 2017-12-04 Florian Weimer <fweimer@redhat.com>
19403
19404 * support/check.h (TEST_COMPARE): Define.
19405 (support_test_compare_failure): Declare.
19406 * support/Makefile (libsupport-routines): Add
19407 support_test_compare_failure.
19408 (tests): Add tst-test_compare.
19409 * support /support_test_compare_failure.c: New file.
19410 * support/tst-test_compare.c: Likewise.
19411
19412 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19413
19414 [BZ #22527]
19415 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
19416 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
19417 available, this rewrite of the collation rules does reproduce
19418 the test file in the same order.
19419
19420 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19421
19422 [BZ #10580]
19423 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
19424 digraphs in the month and day names. Using single code points for
19425 digraphs is deprecated. While there are dedicated Unicode
19426 codepoints, for the digraphs, these are included for backwards
19427 compatibility and modern texts use a sequence of Basic Latin
19428 characters. See: https://www.unicode.org/faq/ligature_digraph.html
19429 This makes the month and day names agree exactly with CLDR now,
19430 CLDR does not use the single code points for the digraphs either.
19431
19432 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
19433
19434 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
19435
19436 2017-12-04 Joseph Myers <joseph@codesourcery.com>
19437
19438 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
19439 of floor.
19440
19441 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
19442
19443 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
19444 Define only for libc.so.
19445
19446 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
19447
19448 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19449 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
19450 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
19451 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
19452 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
19453
19454 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19455
19456 [BZ #5997]
19457 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
19458
19459 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
19460
19461 [BZ libc/19170]
19462 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
19463 PREINIT_FUNCTION_WEAK is nonzero.
19464 (gmon_initializer): New function. Put procedure label for it in
19465 .init_array section.
19466 (_init): Don't call PREINIT_FUNCTION.
19467 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
19468 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
19469 value when map argument is null.
19470
19471 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
19472 depi instruction from PIC pc-relative sequence.
19473 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
19474 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
19475 (elf_machine_load_address): Likewise.
19476 (elf_machine_runtime_setup): Likewise.
19477
19478 2017-12-02 Joseph Myers <joseph@codesourcery.com>
19479
19480 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
19481 <libm-alias-double.h>.
19482 (logb): Define using libm_alias_double.
19483 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19484 <libm-alias-double.h>.
19485 (copysign): Define using libm_alias_double.
19486 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
19487 <libm-alias-double.h>.
19488 (llrint): Define using libm_alias_double.
19489 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
19490 <libm-alias-double.h>.
19491 (llround): Define using libm_alias_double.
19492 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19493 <libm-alias-double.h>.
19494 (lrint): Define using libm_alias_double.
19495 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19496 <libm-alias-double.h>.
19497 (lround): Define using libm_alias_double.
19498 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
19499 Include <libm-alias-double.h>.
19500 (copysign): Define using libm_alias_double.
19501 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
19502 Include <libm-alias-double.h>.
19503 (llrint): Define using libm_alias_double.
19504 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
19505 Include <libm-alias-double.h>.
19506 (llround): Define using libm_alias_double.
19507 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
19508 <libm-alias-double.h>.
19509 (logb): Define using libm_alias_double.
19510 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
19511 Include <libm-alias-double.h>.
19512 (lrint): Define using libm_alias_double.
19513 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
19514 Include <libm-alias-double.h>.
19515 (lround): Define using libm_alias_double.
19516 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
19517 <libm-alias-double.h>.
19518 (llrint): Define using libm_alias_double.
19519 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19520 <libm-alias-double.h>.
19521 (llround): Define using libm_alias_double.
19522 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19523 <libm-alias-double.h>.
19524 (llround): Define using libm_alias_double.
19525 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19526 <libm-alias-double.h>.
19527 (lround): Define using libm_alias_double.
19528 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19529 <libm-alias-double.h>.
19530 (copysign): Define using libm_alias_double.
19531 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
19532 <libm-alias-double.h>.
19533 (llrint): Define using libm_alias_double.
19534 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19535 <libm-alias-double.h>.
19536 (llround): Define using libm_alias_double.
19537 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19538 <libm-alias-double.h>.
19539 (lrint): Define using libm_alias_double.
19540 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19541 <libm-alias-double.h>.
19542 (lround): Define using libm_alias_double.
19543 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
19544 <libm-alias-double.h>.
19545 (copysign): Define using libm_alias_double.
19546 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
19547 <libm-alias-double.h>.
19548 (llrint): Define using libm_alias_double.
19549 (lrint): Likewise.
19550 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
19551 <libm-alias-double.h>.
19552 (llround): Define using libm_alias_double.
19553 (lround): Likewise.
19554 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
19555 <libm-alias-double.h>.
19556 (logb): Define using libm_alias_double.
19557 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19558 <libm-alias-double.h>.
19559 (copysign): Define using libm_alias_double.
19560 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19561 <libm-alias-double.h>.
19562 (llrint): Define using libm_alias_double.
19563 (lrint): Likewise.
19564 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
19565 <libm-alias-double.h>.
19566 (llround): Define using libm_alias_double.
19567 (lround): Likewise.
19568 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19569 <libm-alias-double.h>.
19570 (llround): Define using libm_alias_double.
19571 (lround): Likewise.
19572 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19573 <libm-alias-double.h>.
19574 (copysign): Define using libm_alias_double.
19575 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19576 <libm-alias-double.h>.
19577 (llrint): Define using libm_alias_double.
19578 (lrint): Likewise.
19579 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19580 <libm-alias-double.h>.
19581 (llround): Define using libm_alias_double.
19582 (lround): Likewise.
19583 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19584 <libm-alias-double.h>.
19585 (llrint): Define using libm_alias_double.
19586 (lrint): Likewise.
19587 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19588 <libm-alias-double.h>.
19589 (llround): Define using libm_alias_double.
19590 (lround): Likewise.
19591
19592 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19593
19594 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
19595 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
19596 compat symbol based on llround.
19597
19598 * sysdeps/powerpc/power7/fpu/s_logb.c
19599 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
19600 symbol based on __logb, not on logb.
19601 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
19602 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19603 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
19604 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19605
19606 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
19607 (rint): Define using libm_alias_double.
19608 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
19609 <libm-alias-double.h>.
19610 (modf): Define using libm_alias_double.
19611 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
19612 <libm-alias-double.h>.
19613 (ceil): Define using libm_alias_double.
19614 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
19615 <libm-alias-double.h>.
19616 (floor): Define using libm_alias_double.
19617 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
19618 <libm-alias-double.h>.
19619 (nearbyint): Define using libm_alias_double.
19620 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
19621 <libm-alias-double.h>.
19622 (rint): Define using libm_alias_double.
19623 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
19624 <libm-alias-double.h>.
19625 (round): Define using libm_alias_double.
19626 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
19627 <libm-alias-double.h>.
19628 (trunc): Define using libm_alias_double.
19629 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
19630 <libm-alias-double.h>.
19631 (ceil): Define using libm_alias_double.
19632 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
19633 Include <libm-alias-double.h>.
19634 (floor): Define using libm_alias_double.
19635 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
19636 <libm-alias-double.h>.
19637 (modf): Define using libm_alias_double.
19638 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
19639 Include <libm-alias-double.h>.
19640 (round): Define using libm_alias_double.
19641 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
19642 Include <libm-alias-double.h>.
19643 (trunc): Define using libm_alias_double.
19644 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
19645 <libm-alias-double.h>.
19646 (ceil): Define using libm_alias_double.
19647 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
19648 <libm-alias-double.h>.
19649 (floor): Define using libm_alias_double.
19650 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
19651 <libm-alias-double.h>.
19652 (round): Define using libm_alias_double.
19653 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
19654 <libm-alias-double.h>.
19655 (trunc): Define using libm_alias_double.
19656 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
19657 <libm-alias-double.h>.
19658 (ceil): Define using libm_alias_double.
19659 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
19660 <libm-alias-double.h>.
19661 (floor): Define using libm_alias_double.
19662 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
19663 <libm-alias-double.h>.
19664 (modf): Define using libm_alias_double.
19665 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
19666 <libm-alias-double.h>.
19667 (round): Define using libm_alias_double.
19668 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
19669 <libm-alias-double.h>.
19670 (trunc): Define using libm_alias_double.
19671 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
19672 <libm-alias-double.h>.
19673 (ceil): Define using libm_alias_double.
19674 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
19675 <libm-alias-double.h>.
19676 (floor): Define using libm_alias_double.
19677 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
19678 <libm-alias-double.h>.
19679 (nearbyint): Define using libm_alias_double.
19680 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
19681 <libm-alias-double.h>.
19682 (rint): Define using libm_alias_double.
19683 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
19684 <libm-alias-double.h>.
19685 (round): Define using libm_alias_double.
19686 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
19687 <libm-alias-double.h>.
19688 (trunc): Define using libm_alias_double.
19689 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
19690 <libm-alias-double.h>.
19691 (ceil): Define using libm_alias_double.
19692 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
19693 <libm-alias-double.h>.
19694 (floor): Define using libm_alias_double.
19695 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
19696 <libm-alias-double.h>.
19697 (round): Define using libm_alias_double.
19698 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
19699 <libm-alias-double.h>.
19700 (trunc): Define using libm_alias_double.
19701
19702 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
19703 (fabs): Define using libm_alias_double.
19704 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
19705 (fma): Define using libm_alias_double.
19706 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
19707 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
19708 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
19709 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
19710
19711 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19712
19713 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
19714
19715 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
19716 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
19717 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
19718
19719 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
19720 due redirect macro.
19721
19722 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
19723
19724 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
19725
19726 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19727
19728 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
19729 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
19730 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
19731 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
19732
19733 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19734 (libm-sysdep_routines): Add s_nearbyintf-generic and
19735 s_nearbyint-generic.
19736 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
19737 New file.
19738 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
19739 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
19740 Likewise.
19741 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
19742 Likewise.
19743 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
19744 file.
19745 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
19746 Likewise.
19747
19748 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19749 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
19750 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
19751 file.
19752 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
19753 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
19754 Likewise.
19755 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
19756 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
19757 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
19758
19759 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19760 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
19761 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
19762 file.
19763 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
19764 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
19765 Likewise.
19766 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
19767 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
19768 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
19769
19770 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19771 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
19772 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
19773 file.
19774 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
19775 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
19776 Likewise.
19777 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
19778 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
19779 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
19780
19781 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19782 (sysdep_calls): New rule.
19783 (sysdep_routines): Use sysdep_calls as base.
19784 (libm-sysdep_routines): Add generic rule for symbols shared with
19785 libc. Add s_copysign-generic and s_copysign-generic objects.
19786 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
19787 New file.
19788 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
19789 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
19790 Likewise.
19791 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
19792 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
19793 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
19794
19795 2017-12-01 Mike FABIAN <mfabian@redhat.com>
19796
19797 [BZ #22519]
19798 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
19799 the list of locales to be built for testing.
19800 * localedata/is_IS.UTF-8.in: New file.
19801 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
19802 on iso14651_t1.
19803
19804 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19805
19806 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
19807 <libm-alias-float.h>.
19808 (fabsf): Define using libm_alias_float.
19809
19810 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
19811
19812 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
19813
19814 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19815
19816 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
19817 <libm-alias-float.h>.
19818 (fabsf): Define using libm_alias_float.
19819 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
19820 <libm-alias-float.h>.
19821 (lrintf): Define using libm_alias_float.
19822 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
19823 <libm-alias-float.h>.
19824 (rintf): Define using libm_alias_float.
19825
19826 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
19827 <libm-alias-double.h>.
19828 (fabs): Define using libm_alias_double.
19829 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
19830 <libm-alias-double.h>.
19831 (lrint): Define using libm_alias_double.
19832 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
19833 <libm-alias-double.h>.
19834 (rint): Define using libm_alias_double.
19835
19836 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
19837 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
19838 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
19839 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
19840 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
19841 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
19842 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
19843 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
19844 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
19845 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
19846 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
19847 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
19848 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
19849 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
19850 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
19851 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
19852 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
19853 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
19854 s_atan_template.c.
19855 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
19856 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
19857 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
19858 s_ceil_template.c.
19859 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
19860 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
19861 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
19862 s_cos_template.c.
19863 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
19864 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
19865 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
19866 s_expm1_template.c.
19867 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
19868 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
19869 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
19870 s_fabs_template.c.
19871 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
19872 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
19873 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
19874 s_floor_template.c.
19875 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
19876 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
19877 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
19878 s_frexp_template.c.
19879 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
19880 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
19881 s_lrint_template.c.
19882 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
19883 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
19884 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
19885 s_modf_template.c.
19886 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
19887 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
19888 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
19889 s_nearbyint_template.c.
19890 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
19891 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
19892 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
19893 s_remquo_template.c.
19894 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
19895 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
19896 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
19897 s_rint_template.c.
19898 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
19899 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
19900 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
19901 s_sin_template.c.
19902 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
19903 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
19904 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
19905 s_sincos_template.c.
19906 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
19907 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
19908 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
19909 s_tan_template.c.
19910 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
19911 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
19912 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
19913 s_tanh_template.c.
19914 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
19915 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
19916 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
19917 s_trunc_template.c.
19918 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
19919 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
19920 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
19921 s_atan.c instead of including s_atan.c.
19922 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
19923 s_atanf.c instead of including s_atanf.c.
19924 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
19925 s_atanl.c instead of including s_atanl.c.
19926 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
19927 instead of s_atan.c.
19928 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
19929 instead of s_atanf.c.
19930 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
19931 instead of s_atanl.c.
19932
19933 * scripts/update-copyrights: Do not handle intl/plural.c
19934 specially.
19935
19936 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
19937
19938 [BZ #22432]
19939 * configure.ac (BISON): Require to be present.
19940 * configure: Regenerated.
19941 * intl/Makefile (generated): Add plural.c.
19942 [$(BISON) != no]: Make code unconditional.
19943 (plural.c): Change rule to $(objpfx)plural.c.
19944 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
19945 * intl/plural.c: Remove.
19946 * manual/install.texi (Tools for Compilation): Document bison as
19947 required.
19948 * INSTALL: Regenerated.
19949
19950 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19951
19952 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
19953 <libm-alias-double.h>.
19954 (llrint): Define using libm_alias_double.
19955 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
19956 <libm-alias-float.h>.
19957 (llrintf): Define using libm_alias_float.
19958 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
19959 <libm-alias-ldouble.h>.
19960 (llrintl): Define using libm_alias_ldouble.
19961
19962 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
19963 declare_mgen_alias instead of weak_alias.
19964 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
19965 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
19966 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
19967
19968 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19969
19970 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19971 Add add_n-generic.
19972 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
19973 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
19974 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
19975
19976 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19977 Add submul_1-generic.
19978 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
19979 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
19980 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
19981
19982 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19983 Add addmul_1-generic.
19984 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
19985 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
19986 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
19987
19988 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19989 Add sub_n-generic.
19990 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
19991 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
19992 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
19993
19994 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19995 Add mul_1-generic.
19996 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
19997 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
19998 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
19999
20000 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20001
20002 According to CLDR, collation rules for Serbian and Bosnian
20003 should be the same as for Croatian.
20004
20005 [BZ #22534]
20006 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20007 and to the list of locales to be built for testing.
20008 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20009 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20010 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20011 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20012
20013 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20014
20015 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20016 to make test case pass.
20017 * localedata/hr_HR.UTF-8.in: Add more test strings.
20018
20019 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20020
20021 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20022
20023 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20024
20025 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20026 the list of locales to built for testing.
20027 * localedata/hr_HR.UTF-8.in: New file.
20028
20029 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20030
20031 [BZ #10580]
20032 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20033 iso14651_t1.
20034 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20035 CLDR (except use ligatures for the digraphs, CLDR does not use
20036 the ligatures), add first_workday, some fixes in the date and time
20037 formats.
20038 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20039 for Đ and đ.
20040 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20041 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20042 Add int_p_cs_precedes and int_n_cs_precedes.
20043 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20044 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20045 LC_MONETARY now).
20046 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20047 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20048 name_miss.
20049 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20050 and lang_lib. Change postal_fmt.
20051
20052 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20053
20054 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20055 <setjmp.h>.
20056 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20057 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20058 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20059 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20060 * sysdeps/generic/setjmpP.h: New file.
20061 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20062 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20063 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20064 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20065 Add jmp_buf-ssp.sym.
20066 (tests): Add tst-saved_mask-1.
20067
20068 2017-11-30 Arjun Shankar <arjun@redhat.com>
20069
20070 [BZ #22375]
20071 CVE-2017-17426
20072 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20073 instead of request2size.
20074
20075 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20076
20077 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20078 (__lllrint): Remove alias.
20079 (lllrint): Likewise.
20080 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20081 (__lllrintf): Likewise.
20082 (lllrintf): Likewise.
20083
20084 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20085 <libm-alias-float.h>.
20086 (copysignf): Define using libm_alias_float.
20087 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20088 <libm-alias-float.h>.
20089 (fabsf): Define using libm_alias_float.
20090 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20091 Include <libm-alias-float.h>.
20092 (copysignf): Define using libm_alias_float.
20093 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20094 <libm-alias-float.h>.
20095 (fabsf): Define using libm_alias_float.
20096 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20097 <libm-alias-float.h>.
20098 (fdimf): Define using libm_alias_float.
20099 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20100 <libm-alias-float.h>.
20101 (fmaf): Define using libm_alias_float.
20102 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20103 <libm-alias-float.h>.
20104 (llrintf): Define using libm_alias_float.
20105 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20106 Include <libm-alias-float.h>.
20107 (nearbyintf): Define using libm_alias_float.
20108 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20109 <libm-alias-float.h>.
20110 (rintf): Define using libm_alias_float.
20111 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20112 <libm-alias-float.h>.
20113 (llrintf): Define using libm_alias_float.
20114 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20115 <libm-alias-float.h>.
20116 (lrintf): Define using libm_alias_float.
20117 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20118 <libm-alias-float.h>.
20119 (nearbyintf): Define using libm_alias_float.
20120 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20121 <libm-alias-float.h>.
20122 (rintf): Define using libm_alias_float.
20123 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20124 <libm-alias-float.h>.
20125 (ceilf): Define using libm_alias_float.
20126 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20127 <libm-alias-float.h>.
20128 (floorf): Define using libm_alias_float.
20129 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20130 <libm-alias-float.h>.
20131 (fmaf): Define using libm_alias_float.
20132 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20133 <libm-alias-float.h>.
20134 (lrintf): Define using libm_alias_float.
20135 (llrintf): Likewise.
20136 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20137 <libm-alias-float.h>.
20138 (nearbyintf): Define using libm_alias_float.
20139 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20140 <libm-alias-float.h>.
20141 (rintf): Define using libm_alias_float.
20142 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20143 <libm-alias-float.h>.
20144 (truncf): Define using libm_alias_float.
20145 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20146 <libm-alias-float.h>.
20147 (copysignf): Define using libm_alias_float.
20148 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20149 <libm-alias-float.h>.
20150 (fabsf): Define using libm_alias_float.
20151 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20152 <libm-alias-float.h>.
20153 (lrintf): Define using libm_alias_float.
20154 (llrintf): Likewise.
20155 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20156 <libm-alias-float.h>.
20157 (nearbyintf): Define using libm_alias_float.
20158 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20159 <libm-alias-float.h>.
20160 (rintf): Define using libm_alias_float.
20161
20162 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20163
20164 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20165 <libm-alias-double.h>.
20166 (copysign): Define using libm_alias_double.
20167 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20168 <libm-alias-double.h>.
20169 (fabs): Define using libm_alias_double.
20170 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20171 Include <libm-alias-double.h>.
20172 (copysign): Define using libm_alias_double.
20173 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20174 <libm-alias-double.h>.
20175 (fabs): Define using libm_alias_double.
20176 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20177 <libm-alias-double.h>.
20178 (fdim): Define using libm_alias_double.
20179 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20180 <libm-alias-double.h>.
20181 (fma): Define using libm_alias_double.
20182 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20183 <libm-alias-double.h>.
20184 (llrint): Define using libm_alias_double.
20185 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20186 Include <libm-alias-double.h>.
20187 (nearbyint): Define using libm_alias_double.
20188 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20189 <libm-alias-double.h>.
20190 (rint): Define using libm_alias_double.
20191 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20192 <libm-alias-double.h>.
20193 (fabs): Define using libm_alias_double.
20194 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20195 <libm-alias-double.h>.
20196 (llrint): Define using libm_alias_double.
20197 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20198 <libm-alias-double.h>.
20199 (nearbyint): Define using libm_alias_double.
20200 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20201 <libm-alias-double.h>.
20202 (rint): Define using libm_alias_double.
20203 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20204 <libm-alias-double.h>.
20205 (ceil): Define using libm_alias_double.
20206 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20207 <libm-alias-double.h>.
20208 (floor): Define using libm_alias_double.
20209 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20210 <libm-alias-double.h>.
20211 (fma): Define using libm_alias_double.
20212 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20213 <libm-alias-double.h>.
20214 (lrint): Define using libm_alias_double.
20215 (llrint): Likewise.
20216 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20217 <libm-alias-double.h>.
20218 (nearbyint): Define using libm_alias_double.
20219 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20220 <libm-alias-double.h>.
20221 (rint): Define using libm_alias_double.
20222 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20223 <libm-alias-double.h>.
20224 (trunc): Define using libm_alias_double.
20225 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20226 <libm-alias-double.h>.
20227 (copysign): Define using libm_alias_double.
20228 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20229 <libm-alias-double.h>.
20230 (fabs): Define using libm_alias_double.
20231 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20232 <libm-alias-double.h>.
20233 (lrint): Define using libm_alias_double.
20234 (llrint): Likewise.
20235 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20236 <libm-alias-double.h>.
20237 (nearbyint): Define using libm_alias_double.
20238 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20239 <libm-alias-double.h>.
20240 (rint): Define using libm_alias_double.
20241
20242 [BZ #22229]
20243 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20244 <math_ldbl_opt.h>.
20245 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20246
20247 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20248 SPARC --disable-multi-arch glibc variants.
20249
20250 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20251 <libm-alias-float.h>.
20252 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20253 if [SHARED].
20254 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20255 <libm-alias-float.h>.
20256 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20257 if [SHARED].
20258 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20259 <libm-alias-float.h>.
20260 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20261 if [SHARED].
20262 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20263 <libm-alias-float.h>.
20264 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20265 if [SHARED].
20266 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20267 <libm-alias-float.h>.
20268 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20269 if [SHARED].
20270 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20271 <libm-alias-float.h>.
20272 (ceilf): Define using libm_alias_float.
20273 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20274 <libm-alias-float.h>.
20275 (floorf): Define using libm_alias_float.
20276 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20277 <libm-alias-float.h>.
20278 (fmaf): Define using libm_alias_float.
20279 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20280 <libm-alias-float.h>.
20281 (nearbyintf): Define using libm_alias_float.
20282 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20283 <libm-alias-float.h>.
20284 (rintf): Define using libm_alias_float.
20285 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20286 <libm-alias-float.h>.
20287 (truncf): Define using libm_alias_float.
20288 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20289 (copysignf): Define using libm_alias_float.
20290 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20291 (cosf): Define using libm_alias_float.
20292 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20293 (fabsf): Define using libm_alias_float.
20294 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20295 (fmaxf): Define using libm_alias_float.
20296 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20297 (fminf): Define using libm_alias_float.
20298 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20299 (llrintf): Define using libm_alias_float.
20300 [!__ILP32__] (lrintf): Likewise.
20301 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20302 (sincosf): Define using libm_alias_float.
20303 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20304 (sinf): Define using libm_alias_float.
20305 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20306 (lrintf): Define using libm_alias_float.
20307
20308 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20309 <libm-alias-double.h>.
20310 (atan): Define using libm_alias_double.
20311 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20312 <libm-alias-double.h>.
20313 (ceil): Define using libm_alias_double.
20314 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
20315 <libm-alias-double.h>.
20316 (floor): Define using libm_alias_double.
20317 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
20318 <libm-alias-double.h>.
20319 (fma): Define using libm_alias_double.
20320 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
20321 <libm-alias-double.h>.
20322 (nearbyint): Define using libm_alias_double.
20323 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20324 <libm-alias-double.h>.
20325 (rint): Define using libm_alias_double.
20326 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20327 <libm-alias-double.h>.
20328 (sin): Define using libm_alias_double.
20329 (cos): Likewise.
20330 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20331 <libm-alias-double.h>.
20332 (tan): Define using libm_alias_double.
20333 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20334 <libm-alias-double.h>.
20335 (trunc): Define using libm_alias_double.
20336 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20337 (copysign): Define using libm_alias_double.
20338 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
20339 (fabs): Define using libm_alias_double.
20340 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
20341 (fmax): Define using libm_alias_double.
20342 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
20343 (fmin): Define using libm_alias_double.
20344 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
20345 (llrint): Define using libm_alias_double.
20346 [!__ILP32__] (lrint): Likewise.
20347 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
20348 (lrint): Define using libm_alias_double.
20349
20350 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20351
20352 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20353 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
20354 objects.
20355 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
20356 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
20357 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
20358 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
20359 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
20360 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20361
20362 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20363 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
20364 objects.
20365 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
20366 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
20367 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
20368 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
20369 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
20370 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20371
20372 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20373 (libm-sysdep_routines): Add s_nearbyint-generic and
20374 s_nearbyintf-generic objects.
20375 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
20376 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
20377 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
20378 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
20379 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
20380 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
20381
20382 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20383 Add s_finitef-generic and s_finite-generic objects.
20384 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
20385 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
20386 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
20387 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
20388 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
20389 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
20390
20391 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20392 Add s_isinff-generic and s_isinf-generic objects.
20393 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
20394 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
20395 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
20396 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
20397 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
20398 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
20399
20400 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20401 Add s_isnanf-generic and s_isnan-generic objects.
20402 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
20403 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
20404 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
20405 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
20406 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
20407 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
20408
20409 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
20410 macro.
20411 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
20412 rule.
20413 (sysdep_routines): Use sysdep_calls as base.
20414 (libm-sysdep_routines): Add generic rule for symbols shared with
20415 libc. Add s_signbit-generic and s_signbitf-generic objects.
20416 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
20417 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
20418 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
20419 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
20420 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
20421 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
20422
20423 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20424
20425 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
20426 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
20427 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
20428 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
20429 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
20430 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
20431 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
20432 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
20433 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
20434 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
20435 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
20436 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
20437 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
20438 libm_alias_float_r.
20439 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
20440 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
20441 (logf): Likewise.
20442 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
20443 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
20444 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
20445 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
20446 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
20447 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
20448 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
20449 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
20450 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
20451 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
20452 libm_alias_float.
20453 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
20454 (cosf): Likewise.
20455 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
20456 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
20457 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
20458 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
20459 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
20460 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
20461 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
20462 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
20463 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
20464 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
20465 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
20466 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
20467 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
20468 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
20469 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
20470 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
20471 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
20472 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
20473 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
20474 libm_alias_float.
20475 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
20476 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
20477 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
20478 * sysdeps/ia64/fpu/w_lgammaf_main.c
20479 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
20480 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
20481
20482 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20483 Alexandre Oliva <aoliva@redhat.com>
20484
20485 [BZ #17750]
20486 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
20487 * localedata/fr_CA.UTF-8.in: New file with test data for backward
20488 accents sorting.
20489 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
20490 sorting.
20491 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
20492 * localedata/locales/de_DE (LC_COLLATE): Likewise.
20493 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
20494 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
20495 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
20496 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
20497 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
20498 instead of “ifdef DIACRIT_BACKWARD”.
20499
20500 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20501
20502 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
20503 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
20504 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
20505 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
20506 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
20507 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
20508 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
20509 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
20510 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
20511 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
20512 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
20513 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
20514 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
20515 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
20516 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
20517 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20518 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
20519 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
20520 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20521 ($(have-as-vis3) == yes): Remove conditional.
20522 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
20523 Likewise.
20524 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
20525 file.
20526 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
20527 file.
20528 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
20529 file.
20530 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
20531 file.
20532 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
20533 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
20534 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
20535 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
20536 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
20537 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
20538 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
20539 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
20540
20541 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20542
20543 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
20544 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
20545 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
20546 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
20547 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
20548 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
20549 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
20550 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
20551 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
20552 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
20553 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
20554 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
20555 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
20556 libm_alias_double_r.
20557 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
20558 (log): Likewise.
20559 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
20560 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
20561 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
20562 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
20563 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
20564 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
20565 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
20566 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
20567 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
20568 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
20569 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
20570 libm_alias_double.
20571 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
20572 (cos): Likewise.
20573 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
20574 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
20575 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
20576 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
20577 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
20578 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
20579 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
20580 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
20581 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
20582 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
20583 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
20584 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
20585 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
20586 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
20587 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
20588 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
20589 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
20590 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
20591 libm_alias_double.
20592 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
20593 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
20594 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
20595 * sysdeps/ia64/fpu/w_lgamma_main.c
20596 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
20597 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
20598
20599 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
20600
20601 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
20602 address of $global$ into %dp register earlier. Use pc-relative
20603 instruction sequence for PIC case.
20604
20605 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20606
20607 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
20608 (asinhf): Define using libm_alias_float.
20609 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
20610 (atanf): Define using libm_alias_float.
20611 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
20612 (cbrtf): Define using libm_alias_float.
20613 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
20614 (ceilf): Define using libm_alias_float.
20615 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20616 (copysignf): Define using libm_alias_float.
20617 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
20618 (expm1f): Define using libm_alias_float.
20619 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
20620 (fabsf): Define using libm_alias_float.
20621 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
20622 (floorf): Define using libm_alias_float.
20623 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20624 (fmaxf): Define using libm_alias_float.
20625 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
20626 (fminf): Define using libm_alias_float.
20627 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
20628 (frexpf): Define using libm_alias_float.
20629 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20630 (llrintf): Define using libm_alias_float.
20631 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
20632 (logbf): Define using libm_alias_float.
20633 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20634 (lrintf): Define using libm_alias_float.
20635 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
20636 (nearbyintf): Define using libm_alias_float.
20637 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
20638 (remquof): Define using libm_alias_float.
20639 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
20640 (rintf): Define using libm_alias_float.
20641 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
20642 (truncf): Define using libm_alias_float.
20643 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
20644 <libm-alias-float.h>.
20645 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20646 if [SHARED].
20647 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
20648 <libm-alias-float.h>.
20649 (expf): Define using libm_alias_float, or libm_alias_float_other
20650 if [SHARED].
20651 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
20652 <libm-alias-float.h>.
20653 (log2f): Define using libm_alias_float, or libm_alias_float_other
20654 if [SHARED].
20655 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
20656 <libm-alias-float.h>.
20657 (logf): Define using libm_alias_float, or libm_alias_float_other
20658 if [SHARED].
20659 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
20660 <libm-alias-float.h>.
20661 (powf): Define using libm_alias_float, or libm_alias_float_other
20662 if [SHARED].
20663 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
20664 <libm-alias-float.h>.
20665 (cosf): Define using libm_alias_float.
20666 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
20667 <libm-alias-float.h>.
20668 (sincosf): Define using libm_alias_float.
20669 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
20670 <libm-alias-float.h>.
20671 (sinf): Define using libm_alias_float.
20672 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20673 (fmaxf): Define using libm_alias_float.
20674 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
20675 (fminf): Define using libm_alias_float.
20676 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20677 <libm-alias-float.h>.
20678 (fmaf): Define using libm_alias_float.
20679
20680 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
20681 (asinh): Define using libm_alias_double.
20682 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
20683 (atan): Define using libm_alias_double.
20684 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
20685 (cbrt): Define using libm_alias_double.
20686 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
20687 (ceil): Define using libm_alias_double.
20688 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
20689 (copysign): Define using libm_alias_double.
20690 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
20691 (expm1): Define using libm_alias_double.
20692 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
20693 (fabs): Define using libm_alias_double.
20694 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
20695 (fdim): Define using libm_alias_double.
20696 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
20697 (floor): Define using libm_alias_double.
20698 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
20699 (fmax): Define using libm_alias_double.
20700 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
20701 (fmin): Define using libm_alias_double.
20702 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
20703 (frexp): Define using libm_alias_double.
20704 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
20705 (llrint): Define using libm_alias_double.
20706 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
20707 (logb): Define using libm_alias_double.
20708 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
20709 (lrint): Define using libm_alias_double.
20710 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
20711 (nearbyint): Define using libm_alias_double.
20712 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
20713 (remquo): Define using libm_alias_double.
20714 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
20715 (rint): Define using libm_alias_double.
20716 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
20717 (trunc): Define using libm_alias_double.
20718 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
20719 (fmax): Define using libm_alias_double.
20720 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
20721 (fmin): Define using libm_alias_double.
20722 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
20723 (fma): Define using libm_alias_double.
20724
20725 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
20726
20727 [BZ #22370]
20728 * elf/dl-hwcaps.c (ROUND): Removed.
20729 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
20730 and ELF_NOTE_NEXT_OFFSET.
20731 * elf/dl-load.c (ROUND): Removed.
20732 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20733 * elf/readelflib.c (ROUND): Removed.
20734 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20735 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
20736 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
20737 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
20738
20739 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20740
20741 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20742 [!__fmaf] (fmaf): Define using libm_alias_float.
20743
20744 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
20745 [!__fma] (fma): Define using libm_alias_double.
20746 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
20747
20748 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20749
20750 [BZ #22336]
20751 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
20752 and implement the collation rules for cs from CLDR on top of that.
20753 * Makefile: Add cs_CZ.UTF-8 to test-input.
20754 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
20755
20756 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
20757
20758 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
20759
20760 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20761 Icarus Sparry <icarus.w.sparry@intel.com>
20762
20763 * benchtests/Makefile:Add BENCHSET to allow subsets of
20764 benchmarks to be run.
20765 * benchtests/README: Add documentation for: Running subsets of
20766 benchmarks.
20767
20768 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20769
20770 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
20771 range of tests names.
20772
20773 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
20774 result from property and remove "max", min" and "mean" from
20775 required properties based on benchtests/bench-skeleton.c.
20776
20777 2017-11-28 Florian Weimer <fweimer@redhat.com>
20778
20779 [BZ #20826]
20780 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
20781 due to Internet requirement.
20782 * posix/Makefile (tests): Remove tst-getaddrinfo4,
20783 tst-getaddrinfo5.
20784 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
20785
20786 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20787
20788 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20789 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
20790 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20791 (sysdep_routines): Add memset-ultra1.
20792 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
20793 file.
20794 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
20795 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
20796 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
20797 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
20798 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
20799 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
20800 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
20801 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20802
20803 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
20804 file.
20805 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
20806 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
20807 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
20808 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
20809 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
20810 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
20811 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
20812 macro.
20813 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20814 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
20815 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20816 (sysdep_routines): Add memcpy-ultra1.
20817 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
20818 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
20819
20820 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20821
20822 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
20823 (cfloat_versions): Take function argument without trailing 'f'.
20824 Call libm_alias_float_other.
20825 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
20826 * sysdeps/alpha/fpu/cargf.c: Likewise.
20827 * sysdeps/alpha/fpu/cimagf.c: Likewise.
20828 * sysdeps/alpha/fpu/conjf.c: Likewise.
20829 * sysdeps/alpha/fpu/crealf.c: Likewise.
20830 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
20831 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
20832 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
20833 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
20834 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
20835 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
20836 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
20837 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
20838 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
20839 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
20840 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
20841 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
20842 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
20843 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
20844 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
20845 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
20846 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
20847 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
20848 (clog10f): Use libm_alias_float_other.
20849 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20850 (ceilf): Define using libm_alias_float.
20851 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
20852 (copysignf): Define using libm_alias_float.
20853 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20854 (fabsf): Define using libm_alias_float.
20855 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
20856 (floorf): Define using libm_alias_float.
20857 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
20858 (fmaxf): Define using libm_alias_float.
20859 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
20860 (fminf): Define using libm_alias_float.
20861 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20862 (lrintf): Define using libm_alias_float.
20863 (llrintf): Likewise.
20864 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20865 (lroundf): Define using libm_alias_float.
20866 (llroundf): Likewise.
20867 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
20868 (rintf): Define using libm_alias_float.
20869 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
20870 (truncf): Define using libm_alias_float.
20871
20872 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20873 (ceilf): Define using libm_alias_float.
20874 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
20875 (floorf): Define using libm_alias_float.
20876 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20877 (fmaf): Define using libm_alias_float.
20878 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
20879 (fmaxf): Define using libm_alias_float.
20880 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
20881 (fminf): Define using libm_alias_float.
20882 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
20883 (llrintf): Define using libm_alias_float.
20884 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
20885 (llroundf): Define using libm_alias_float.
20886 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20887 (lrintf): Define using libm_alias_float.
20888 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20889 (lroundf): Define using libm_alias_float.
20890 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
20891 <libm-alias-float.h>.
20892 (nearbyintf): Define using libm_alias_float.
20893 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
20894 (rintf): Define using libm_alias_float.
20895 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
20896 (roundf): Define using libm_alias_float.
20897 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
20898 (truncf): Define using libm_alias_float.
20899
20900 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
20901 (ceil): Define using libm_alias_double.
20902 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
20903 (copysign): Define using libm_alias_double.
20904 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
20905 (fabs): Define using libm_alias_double.
20906 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
20907 (floor): Define using libm_alias_double.
20908 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
20909 (fmax): Define using libm_alias_double.
20910 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
20911 (fmin): Define using libm_alias_double.
20912 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
20913 (lrint): Define using libm_alias_double.
20914 (llrint): Likewise.
20915 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
20916 (lround): Define using libm_alias_double.
20917 (llround): Likewise.
20918 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
20919 (rint): Define using libm_alias_double.
20920 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
20921 (trunc): Define using libm_alias_double.
20922
20923 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
20924 (libm_alias_double_r): Add semicolon after weak_alias call.
20925
20926 2017-11-27 Joseph Myers <joseph@codesourcery.com>
20927
20928 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
20929 (ceil): Define using libm_alias_double.
20930 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
20931 (floor): Define using libm_alias_double.
20932 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
20933 (fma): Define using libm_alias_double.
20934 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
20935 (fmax): Define using libm_alias_double.
20936 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
20937 (fmin): Define using libm_alias_double.
20938 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
20939 (llrint): Define using libm_alias_double.
20940 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
20941 (llround): Define using libm_alias_double.
20942 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
20943 (lrint): Define using libm_alias_double.
20944 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
20945 (lround): Define using libm_alias_double.
20946 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
20947 (nearbyint): Define using libm_alias_double.
20948 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
20949 (rint): Define using libm_alias_double.
20950 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
20951 (round): Define using libm_alias_double.
20952 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
20953 (trunc): Define using libm_alias_double.
20954
20955 2017-11-27 Florian Weimer <fweimer@redhat.com>
20956
20957 * sysdeps/unix/sysv/linux/mlock2.c: New file.
20958 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
20959 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
20960 (tests): Add tst-mlock2.
20961 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
20962 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
20963 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
20964 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
20965 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
20966 for mlock. Document mlock2.
20967
20968 2017-11-27 Joseph Myers <joseph@codesourcery.com>
20969
20970 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
20971 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
20972 Likewise.
20973 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
20974 Likewise.
20975 * sysdeps/x86/Makeconfig: New file.
20976 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
20977 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20978 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
20979 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20980 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20981 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20982 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
20983 Likewise.
20984 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20985 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20986 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20987 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20988 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20989 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20990 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20991 * manual/math.texi (Mathematics): Document support for _Float64x.
20992 * math/Versions (GLIBC_2.27): Add _Float64x functions.
20993 * stdlib/Versions (GLIBC_2.27): Likewise.
20994 * wcsmbs/Versions (GLIBC_2.27): Likewise.
20995 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
20996 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20997 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20998 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20999 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21000 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21001 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21002 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21003 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21004 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21005 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21006 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21007 Likewise.
21008 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21009 Likewise.
21010 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21011 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21012 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21013 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21014 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21015 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21016 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21017 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21018 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21019 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21020 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21021 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21022 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21023 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21024
21025 2017-11-27 Andreas Schwab <schwab@suse.de>
21026
21027 * elf/Makefile (dl-routines): Add dl-sort-maps.
21028 * elf/dl-sort-maps.c: New file.
21029 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21030 (_dl_sort_maps): Declare.
21031 * elf/dl-fini.c (_dl_sort_fini): Remove.
21032 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21033 * elf/dl-close.c (_dl_close_worker): Likewise.
21034 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21035 open-coding it.
21036 * elf/dl-open.c (dl_open_worker): Likewise.
21037
21038 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21039
21040 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21041 using libm_alias_float128.
21042 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21043 Likewise.
21044 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21045 Likewise.
21046 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21047 (setpayloadsigf128): Likewise.
21048 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21049 Likewise.
21050 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21051 Likewise.
21052
21053 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21054 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21055 -mfloat128 to CFLAGS.
21056 ($(foreach
21057 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21058 Likewise.
21059 (CFLAGS-libm-test-support-float64x.c): New variable.
21060 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21061 $(f128-loader-link) to gnulib-tests.
21062
21063 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21064 (libm_alias_float128_other_r): If
21065 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21066 alias.
21067 (libm_alias_float128_r): Add semicolon after weak_alias call.
21068 * sysdeps/generic/libm-alias-ldouble.h
21069 (libm_alias_ldouble_other_r_f128): New macro.
21070 (libm_alias_ldouble_other_r_f64x): Likewise.
21071 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21072 and libm_alias_ldouble_other_r_f64x.
21073 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21074 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21075 (libm_alias_ldouble_other_r_f128): New macro.
21076 (libm_alias_ldouble_other_r_f64x): Likewise.
21077 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21078 and libm_alias_ldouble_other_r_f64x.
21079
21080 * stdlib/strfroml.c: Always include <stdlib.h>.
21081 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21082 undefine as macro and define as weak alias.
21083 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21084 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21085 <stdlib.h>.
21086 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21087 Define and later undefine as macro and define as weak alias.
21088
21089 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21090 Define and later undefine as macro. Define as weak alias if
21091 [!USE_WIDE_CHAR].
21092 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21093 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21094 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21095 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21096 Define and later undefine as macro. Define as weak alias if
21097 [!USE_WIDE_CHAR].
21098 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21099 Define and later undefine as macro. Define as weak alias if
21100 [USE_WIDE_CHAR].
21101 * sysdeps/ieee754/float128/strtof128_l.c
21102 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21103 Define and later undefine as macro. Define as weak alias if
21104 [!USE_WIDE_CHAR].
21105 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21106 Define and later undefine as macro. Define as weak alias if
21107 [USE_WIDE_CHAR].
21108 * sysdeps/ieee754/ldbl-128/strtold_l.c
21109 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21110 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21111 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21112 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21113 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21114 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21115 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21116 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21117 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21118 * sysdeps/ieee754/ldbl-96/strtold_l.c
21119 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21120 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21121 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21122 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21123
21124 * math/test-float64x.h: New file.
21125 * math/Makefile (type-float64x-yes): New variable.
21126 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21127
21128 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21129 function-like macro.
21130 (min_of_type_): Likewise.
21131 (min_of_type_l): Likewise.
21132 (min_of_type_f128): Likewise.
21133 (min_of_type): Pass () as last argument of __MATH_TG.
21134
21135 * stdlib/tst-strtod-round-skeleton.c
21136 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21137 headers.
21138
21139 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21140 for combinations of long double with _Float64 and _Float64x.
21141
21142 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21143 (__DECL_SIMD_cosf32): Likewise.
21144 (__DECL_SIMD_cosf64): Likewise.
21145 (__DECL_SIMD_cosf32x): Likewise.
21146 (__DECL_SIMD_cosf64x): Likewise.
21147 (__DECL_SIMD_cosf128x): Likewise.
21148 (__DECL_SIMD_sinf16): Likewise.
21149 (__DECL_SIMD_sinf32): Likewise.
21150 (__DECL_SIMD_sinf64): Likewise.
21151 (__DECL_SIMD_sinf32x): Likewise.
21152 (__DECL_SIMD_sinf64x): Likewise.
21153 (__DECL_SIMD_sinf128x): Likewise.
21154 (__DECL_SIMD_sincosf16): Likewise.
21155 (__DECL_SIMD_sincosf32): Likewise.
21156 (__DECL_SIMD_sincosf64): Likewise.
21157 (__DECL_SIMD_sincosf32x): Likewise.
21158 (__DECL_SIMD_sincosf64x): Likewise.
21159 (__DECL_SIMD_sincosf128x): Likewise.
21160 (__DECL_SIMD_logf16): Likewise.
21161 (__DECL_SIMD_logf32): Likewise.
21162 (__DECL_SIMD_logf64): Likewise.
21163 (__DECL_SIMD_logf32x): Likewise.
21164 (__DECL_SIMD_logf64x): Likewise.
21165 (__DECL_SIMD_logf128x): Likewise.
21166 (__DECL_SIMD_expf16): Likewise.
21167 (__DECL_SIMD_expf32): Likewise.
21168 (__DECL_SIMD_expf64): Likewise.
21169 (__DECL_SIMD_expf32x): Likewise.
21170 (__DECL_SIMD_expf64x): Likewise.
21171 (__DECL_SIMD_expf128x): Likewise.
21172 (__DECL_SIMD_powf16): Likewise.
21173 (__DECL_SIMD_powf32): Likewise.
21174 (__DECL_SIMD_powf64): Likewise.
21175 (__DECL_SIMD_powf32x): Likewise.
21176 (__DECL_SIMD_powf64x): Likewise.
21177 (__DECL_SIMD_powf128x): Likewise.
21178
21179 * stdlib/Versions (libc): Move entries for wcstof128 and
21180 wcstof128_l to ....
21181 * wcsmbs/Versions (libc): ... here.
21182 Include <float128-abi.h>.
21183
21184 2017-11-24 Florian Weimer <fweimer@redhat.com>
21185
21186 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21187 bits/mman-shared.h.
21188 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21189 <bits/mman-shared.h>.
21190 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21191 to ...
21192 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21193 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21194 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21195 <bits/mman-shared.h>.
21196
21197 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21198
21199 [BZ #22457]
21200 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21201 posix_memalign/free.
21202 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21203
21204 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21205
21206 [BZ #22469]
21207 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21208 and implement the collation rules for pl from CLDR on top of that.
21209 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21210 of locales to be built for testing.
21211 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21212
21213 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21214
21215 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21216 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21217 libm_alias_ldouble_other.
21218 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21219 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21220 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21221 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21222 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21223 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21224 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21225 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21226 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21227 libm_alias_ldouble_r.
21228 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21229 libm_alias_ldouble_other.
21230 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21231 (log10l): Likewise.
21232 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21233 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21234 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21235 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21236 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21237 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21238 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21239 (atan2l): Likewise.
21240 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21241 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21242 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21243 libm_alias_ldouble.
21244 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21245 (cosl): Likewise.
21246 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21247 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21248 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21249 (expl): Likewise.
21250 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21251 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21252 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21253 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21254 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21255 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21256 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21257 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21258 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21259 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21260 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21261 libm_alias_ldouble.
21262 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21263 libm_alias_ldouble_other.
21264 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21265 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21266 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21267 libm_alias_ldouble.
21268 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21269 libm_alias_ldouble_other.
21270 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21271 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21272 * sysdeps/ia64/fpu/w_lgammal_main.c
21273 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21274 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21275
21276 2017-11-23 Florian Weimer <fweimer@redhat.com>
21277
21278 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21279 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21280 alike. Remove freeres marker.
21281 * malloc/arena.c (arena_thread_freeres): Call
21282 tcache_thread_shutdown.
21283
21284 2017-11-23 Florian Weimer <fweimer@redhat.com>
21285
21286 [BZ #22459]
21287 Export nscd hash function as __nss_hash.
21288 * include/nss.h (__nss_hash): Declare.
21289 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21290 symbol.
21291 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21292 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21293 of __nscd_hash.
21294 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21295 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21296 * nss/Makefiles (routines): Add nss_hash.
21297 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21298 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21299 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21300 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21301
21302 2017-11-23 Florian Weimer <fweimer@redhat.com>
21303
21304 [BZ #22478]
21305 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21306 Return error code, not -1.
21307 * signal/tst-sigwait-eintr.c: New file.
21308 * signal/Makefile (tests): Add tst-sigwait-eintr.
21309
21310 2017-11-23 Florian Weimer <fweimer@redhat.com>
21311
21312 Linux: Add memfd_create system call wrapper
21313 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21314 tst-memfd_create.
21315 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
21316 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
21317 [__USE_GNU] (memfd_create): Declare.
21318 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
21319 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
21320 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
21321 * sysdeps/unix/sysv/linux/**.abilist: Update.
21322 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21323
21324 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21325
21326 * localedata/gen-locale.sh: Fix typo in variable name.
21327
21328 * resolv/res_debug.c (p_secstodate): Condition definition on
21329 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21330 directly as __p_secstodate, and as a compat symbol. Do not use
21331 libresolv_hidden_def.
21332 * resolv/resolv.h (p_secstodate): Remove macro and function
21333 declaration.
21334 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21335 using p_secstodate.
21336 * include/resolv.h (__p_secstodate): Do not use
21337 libresolv_hidden_proto.
21338 * resolv/Makefile (tests): Move tst-p_secstodate to ....
21339 (tests-internal): ... here.
21340 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
21341 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
21342 and declare and use __p_secstodate and use compat_symbol_reference
21343 in that case.
21344 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
21345 implementation returning 77.
21346
21347 [BZ #22463]
21348 * resolv/res_debug.c: Include <libc-diag.h>.
21349 (p_secstodate): Assert time_t at least as wide as u_long. On
21350 overflow, use integer seconds since the epoch as output, or use
21351 "<overflow>" as output and set errno to EOVERFLOW if integer
21352 seconds since the epoch would be 14 or more characters.
21353 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
21354 for sprintf call.
21355 * resolv/tst-p_secstodate.c: New file.
21356 * resolv/Makefile (tests): Add tst-p_secstodate.
21357 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
21358
21359 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
21360 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
21361 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
21362
21363 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
21364
21365 * posix/regcomp.c (init_word_char): Add comments.
21366
21367 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21368
21369 [BZ #22447]
21370 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
21371 strlen to compute length of ut_user and set trailing NUL byte of
21372 result explicitly.
21373
21374 2017-11-21 Mike FABIAN <mfabian@redhat.com>
21375
21376 [BZ #15537]
21377 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
21378 using “copy "iso14651_t1"” and then implementing the
21379 collation rules for lv from CLDR on top of that.
21380 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
21381 of locales to be built for testing.
21382 * lv_LV.UTF-8.in: New file with test data to test the Latvian
21383 sorting.
21384
21385 2017-11-21 Joseph Myers <joseph@codesourcery.com>
21386
21387 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21388 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
21389 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
21390 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
21391 [__USE_MISC] (MADV_HWPOISON): New macro.
21392 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
21393
21394 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21395
21396 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
21397 -Wmissing-braces on GCC 4.9.
21398
21399 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21400
21401 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
21402 * sysdeps/s390/s390-32/start.S (_start): Likewise
21403 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
21404 (thread_start): Likewise.
21405 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
21406 (thread_start): Likewise.
21407 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
21408 (__makecontext_ret): Likewise.
21409 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
21410 (__makecontext_ret): Likewise.
21411
21412 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21413
21414 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
21415 __wcschrnul): Remove attribute_hidden.
21416
21417 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
21418
21419 regex: don't assume uint64_t or uint32_t
21420 This avoids -Werror=overflow errors for 32-bit systems in
21421 the 64-bit case. Problem reported by Joseph Myers in:
21422 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
21423 Also, when this code is used in Gnulib it ports to platforms
21424 that lack uint64_t and uint32_t. The C standard doesn't guarantee
21425 them, and on some 32-bit compilers there is no uint64_t.
21426 Problem reported by Gianluigi Tiesi in:
21427 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
21428 * posix/regcomp.c (init_word_char): Don't assume that the types
21429 uint64_t and uint32_t exist. Adapted from Gnulib patch
21430 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
21431 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
21432
21433 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
21434
21435 * sysdeps/aarch64/memset-reg.h: New file.
21436 * sysdeps/aarch64/memset.S: Use it.
21437 (__memset): Rename to MEMSET macro.
21438 [ZVA_MACRO]: Use zva_macro.
21439 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21440 Add memset_generic and memset_falkor.
21441 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21442 (__libc_ifunc_impl_list): Add memset ifuncs.
21443 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
21444 local variable zva_size.
21445 * sysdeps/aarch64/multiarch/memset.c: New file.
21446 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
21447 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
21448 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
21449 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
21450 (DCZID_DZP_MASK): New macro.
21451 (DCZID_BS_MASK): Likewise.
21452 (init_cpu_features): Read and set zva_size.
21453 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
21454 (struct cpu_features): New member zva_size.
21455
21456 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
21457 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
21458 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
21459
21460 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
21461 backwards. Fix timing computation.
21462 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
21463 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
21464 on memset by N at a time. Fix timing computation.
21465
21466 2017-11-20 Florian Weimer <fweimer@redhat.com>
21467
21468 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
21469 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
21470
21471 2017-11-19 Florian Weimer <fweimer@redhat.com>
21472
21473 manual: Document mprotect
21474 * manual/memory.texi (Memory Protection): New section.
21475 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
21476 documentation of PROT_* flags and reference the Memory Protection
21477 section instead.
21478
21479 2017-11-19 Florian Weimer <fweimer@redhat.com>
21480
21481 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
21482 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
21483 (Scatter-Gather): ... to here. Remove misleading comment.
21484
21485 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
21486
21487 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
21488 style.
21489
21490 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
21491 when /proc/<pid>/setgroups does not exist.
21492
21493 2017-11-18 Florian Weimer <fweimer@redhat.com>
21494
21495 * sysdeps/unix/sysv/linux/tst-ttyname.c
21496 (become_root_in_mount_ns): Remove.
21497 (do_in_chroot_1): Call support_enter_mount_namespace.
21498 (do_in_chroot_2): Likewise.
21499 (do_test): Call support_become_root early.
21500
21501 2017-11-18 Florian Weimer <fweimer@redhat.com>
21502
21503 * support/namespace.h (support_enter_mount_namespace): Declare.
21504 * support/support_enter_mount_namespace.c: New file.
21505 * support/Makefile (libsupport-routines): Add
21506 support_enter_mount_namespace.
21507
21508 2017-11-18 Florian Weimer <fweimer@redhat.com>
21509
21510 * support/temp_file.c (support_create_temp_directory): Use
21511 test_dir and do not rely on the presence of the XXXXXX suffix.
21512 * support/temp_file.h (support_create_temp_directory): Update
21513 comment.
21514 * support/tst-xreadlink.c (do_test): Adjust.
21515 * support/support_chroot.c (support_chroot_create): Likewise.
21516
21517 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21518
21519 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
21520 macro.
21521 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
21522 htm-no-suspend.
21523
21524 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21525
21526 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21527 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21528 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21529 (ceill): Define using libm_alias_ldouble.
21530 * sysdeps/x86_64/fpu/s_copysignl.S: Include
21531 <libm-alias-ldouble.h>.
21532 (copysignl): Define using libm_alias_ldouble.
21533 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21534 (fabsl): Define using libm_alias_ldouble.
21535 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21536 (floorl): Define using libm_alias_ldouble.
21537 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21538 (fmaxl): Define using libm_alias_ldouble.
21539 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21540 (fminl): Define using libm_alias_ldouble.
21541 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21542 (llrintl): Define using libm_alias_ldouble.
21543 (lrintl): Likewise.
21544 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
21545 <libm-alias-ldouble.h>.
21546 (nearbyintl): Define using libm_alias_ldouble.
21547 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21548 (truncl): Define using libm_alias_ldouble.
21549 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
21550 <libm-alias-ldouble.h>.
21551 (lrintl): Define using libm_alias_ldouble.
21552
21553 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21554 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21555 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
21556 (asinhl): Define using libm_alias_ldouble.
21557 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
21558 (atanl): Define using libm_alias_ldouble.
21559 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
21560 (cbrtl): Define using libm_alias_ldouble.
21561 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21562 (ceill): Define using libm_alias_ldouble.
21563 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
21564 (copysignl): Define using libm_alias_ldouble.
21565 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21566 (fabsl): Define using libm_alias_ldouble.
21567 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21568 (floorl): Define using libm_alias_ldouble.
21569 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21570 (fmaxl): Define using libm_alias_ldouble.
21571 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21572 (fminl): Define using libm_alias_ldouble.
21573 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
21574 (frexpl): Define using libm_alias_ldouble.
21575 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21576 (llrintl): Define using libm_alias_ldouble.
21577 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
21578 (logbl): Define using libm_alias_ldouble.
21579 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
21580 (lrintl): Define using libm_alias_ldouble.
21581 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
21582 (nearbyintl): Define using libm_alias_ldouble.
21583 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
21584 (nextafterl): Define using libm_alias_ldouble.
21585 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
21586 (remquol): Define using libm_alias_ldouble.
21587 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
21588 (rintl): Define using libm_alias_ldouble.
21589 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21590 (truncl): Define using libm_alias_ldouble.
21591 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21592 (fmaxl): Define using libm_alias_ldouble.
21593 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21594 (fminl): Define using libm_alias_ldouble.
21595
21596 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
21597 to C syntax instead of availability and properties of types.
21598 * bits/floatn.h [!__ASSEMBLER]: Likewise.
21599 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
21600 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
21601 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
21602 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
21603 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
21604
21605 2017-11-17 Florian Weimer <fweimer@redhat.com>
21606
21607 support_become_root: Enable file creation in namespaces.
21608 * support/support_become_root.c (setup_mapping): New function.
21609 (support_become_root): Call it.
21610
21611 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21612
21613 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
21614 macro.
21615
21616 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21617
21618 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
21619 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
21620
21621 2017-11-16 Joseph Myers <joseph@codesourcery.com>
21622
21623 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
21624
21625 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21626 version to 4.14.
21627
21628 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
21629
21630 * INSTALL: Fix botched up regeneration.
21631
21632 * NEWS: Update sourceare link to https.
21633 * configure.ac: Likewise.
21634 * crypt/md5test-giant.c: Likewise.
21635 * dlfcn/bug-atexit1.c: Likewise.
21636 * dlfcn/bug-atexit2.c: Likewise.
21637 * localedata/README: Likewise.
21638 * malloc/tst-mallocfork.c: Likewise.
21639 * manual/install.texi: Likewise.
21640 * nptl/tst-pthread-getattr.c: Likewise.
21641 * stdio-common/tst-fgets.c: Likewise.
21642 * stdio-common/tst-fwrite.c: Likewise.
21643 * sunrpc/Makefile: Likewise.
21644 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
21645 * wcsmbs/tst-mbrtowc2.c: Likewise.
21646 * configure: Regenerate.
21647 * INSTALL: Regenerate.
21648
21649 2017-11-15 Martin Sebor <msebor@redhat.com>
21650
21651 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
21652 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
21653 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
21654
21655 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21656
21657 [BZ #22145]
21658 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
21659 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
21660
21661 [BZ #22145]
21662 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
21663 Defer is_pty check until end of the function.
21664 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21665
21666 [BZ #22145]
21667 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
21668 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
21669 (ttyname): Likewise.
21670 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
21671 (__ttyname_r): Likewise.
21672
21673 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
21674 int to bool.
21675
21676 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
21677
21678 * manual/terminal.texi (Is It a Terminal):
21679 Mention ENODEV for ttyname and ttyname_r.
21680
21681 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21682
21683 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
21684 constant and macro.
21685
21686 * sysdeps/unix/sysv/linux/bits/mman-linux.h
21687 [__USE_MISC] (MADV_WIPEONFORK): New macro.
21688 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21689 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21690 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
21691 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21692
21693 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21694
21695 * signal/sigrelse.c (sigrelse): Optimize implementation.
21696
21697 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
21698 (__sigpause): Rely on __sigsuspend to implement single thread
21699 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
21700
21701 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21702
21703 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
21704 kernel version to 4.14.
21705
21706 2017-11-15 Steve Ellcey <sellcey@cavium.com>
21707
21708 [BZ #22442]
21709 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
21710 Check if ifname is too long.
21711
21712 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21713
21714 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
21715
21716 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21717
21718 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
21719 was accidentally lost.
21720
21721 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21722
21723 * localedata/locales/az_IR: Add standard copyright header.
21724
21725 2017-11-15 Florian Weimer <fweimer@redhat.com>
21726
21727 [BZ #22439]
21728 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
21729 not just the top one. Output a new "subheaps" statistic.
21730
21731 2017-11-15 Florian Weimer <fweimer@redhat.com>
21732
21733 [BZ #22408]
21734 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
21735 under the per-arena lock.
21736 * malloc/Makefile (tests): Add tst-malloc_info.
21737 (tst-malloc_info): Link with libpthread.
21738 * malloc/tst-malloc_info.c: New file.
21739
21740 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21741
21742 [BZ #21660]
21743 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
21744 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
21745 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
21746 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
21747 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
21748 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
21749 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
21750 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
21751 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
21752 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
21753 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
21754 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
21755 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
21756 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
21757 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
21758 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
21759 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
21760 (__floating_type): Likewise.
21761 (__real_integer_type): Likewise.
21762 (__complex_integer_type): Likewise.
21763 (__expr_is_real): Likewise.
21764 (__tgmath_real_type_sub): Likewise.
21765 (__tgmath_real_type): Likewise.
21766 (__tgmath_complex_type_sub): Likewise.
21767 (__tgmath_complex_type): Likewise.
21768 (__TGMATH_F128): Likewise.
21769 (__TGMATH_CF128): Likewise.
21770 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
21771 new macros.
21772 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
21773 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
21774 Likewise.
21775 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
21776 Likewise.
21777 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
21778 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
21779 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
21780 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
21781 Likewise.
21782 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
21783 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
21784 Likewise.
21785 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
21786 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
21787 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
21788 Likewise.
21789 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
21790 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
21791 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
21792 (cimag): Likewise.
21793 (creal): Likewise.
21794
21795 2017-11-14 Joseph Myers <joseph@codesourcery.com>
21796
21797 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
21798 for stpncpy calls for GCC 8.
21799 (test_strncat): Disable -Wstringop-truncation warning for strncat
21800 calls for GCC 8. Disable -Wstringop-overflow= warning for one
21801 strncat call for GCC 7.
21802 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
21803 calls for GCC 8.
21804 (test_memcmp): Use memcpy instead of strncpy for calls not copying
21805 trailing NUL.
21806
21807 * string/bug-strncat1.c: Include <libc-diag.h>.
21808 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
21809
21810 2017-11-13 Claude Paroz <claude@2xlibre.net>
21811
21812 [BZ #22387]
21813 * localedata/locales/aa_DJ: Improved readibility by replacing
21814 <Uxxxx> sequences in the ASCII printable range by their ASCII
21815 character equivalents.
21816 * localedata/locales/aa_ER: Likewise.
21817 * localedata/locales/aa_ER@saaho: Likewise.
21818 * localedata/locales/aa_ET: Likewise.
21819 * localedata/locales/af_ZA: Likewise.
21820 * localedata/locales/agr_PE: Likewise.
21821 * localedata/locales/ak_GH: Likewise.
21822 * localedata/locales/am_ET: Likewise.
21823 * localedata/locales/anp_IN: Likewise.
21824 * localedata/locales/ar_AE: Likewise.
21825 * localedata/locales/ar_BH: Likewise.
21826 * localedata/locales/ar_DZ: Likewise.
21827 * localedata/locales/ar_EG: Likewise.
21828 * localedata/locales/ar_IN: Likewise.
21829 * localedata/locales/ar_IQ: Likewise.
21830 * localedata/locales/ar_JO: Likewise.
21831 * localedata/locales/ar_KW: Likewise.
21832 * localedata/locales/ar_LB: Likewise.
21833 * localedata/locales/ar_LY: Likewise.
21834 * localedata/locales/ar_MA: Likewise.
21835 * localedata/locales/ar_OM: Likewise.
21836 * localedata/locales/ar_QA: Likewise.
21837 * localedata/locales/ar_SA: Likewise.
21838 * localedata/locales/ar_SD: Likewise.
21839 * localedata/locales/ar_SS: Likewise.
21840 * localedata/locales/ar_SY: Likewise.
21841 * localedata/locales/ar_TN: Likewise.
21842 * localedata/locales/ar_YE: Likewise.
21843 * localedata/locales/as_IN: Likewise.
21844 * localedata/locales/ast_ES: Likewise.
21845 * localedata/locales/ayc_PE: Likewise.
21846 * localedata/locales/az_AZ: Likewise.
21847 * localedata/locales/az_IR: Likewise.
21848 * localedata/locales/be_BY: Likewise.
21849 * localedata/locales/be_BY@latin: Likewise.
21850 * localedata/locales/bem_ZM: Likewise.
21851 * localedata/locales/ber_DZ: Likewise.
21852 * localedata/locales/ber_MA: Likewise.
21853 * localedata/locales/bg_BG: Likewise.
21854 * localedata/locales/bhb_IN: Likewise.
21855 * localedata/locales/bho_IN: Likewise.
21856 * localedata/locales/bi_VU: Likewise.
21857 * localedata/locales/bn_BD: Likewise.
21858 * localedata/locales/bn_IN: Likewise.
21859 * localedata/locales/bo_CN: Likewise.
21860 * localedata/locales/bo_IN: Likewise.
21861 * localedata/locales/br_FR: Likewise.
21862 * localedata/locales/brx_IN: Likewise.
21863 * localedata/locales/bs_BA: Likewise.
21864 * localedata/locales/byn_ER: Likewise.
21865 * localedata/locales/ca_AD: Likewise.
21866 * localedata/locales/ca_ES: Likewise.
21867 * localedata/locales/ca_FR: Likewise.
21868 * localedata/locales/ca_IT: Likewise.
21869 * localedata/locales/ce_RU: Likewise.
21870 * localedata/locales/chr_US: Likewise.
21871 * localedata/locales/cmn_TW: Likewise.
21872 * localedata/locales/crh_UA: Likewise.
21873 * localedata/locales/cs_CZ: Likewise.
21874 * localedata/locales/csb_PL: Likewise.
21875 * localedata/locales/cv_RU: Likewise.
21876 * localedata/locales/cy_GB: Likewise.
21877 * localedata/locales/da_DK: Likewise.
21878 * localedata/locales/de_AT: Likewise.
21879 * localedata/locales/de_BE: Likewise.
21880 * localedata/locales/de_CH: Likewise.
21881 * localedata/locales/de_DE: Likewise.
21882 * localedata/locales/de_IT: Likewise.
21883 * localedata/locales/de_LI: Likewise.
21884 * localedata/locales/de_LU: Likewise.
21885 * localedata/locales/doi_IN: Likewise.
21886 * localedata/locales/dv_MV: Likewise.
21887 * localedata/locales/dz_BT: Likewise.
21888 * localedata/locales/el_CY: Likewise.
21889 * localedata/locales/el_GR: Likewise.
21890 * localedata/locales/en_AG: Likewise.
21891 * localedata/locales/en_AU: Likewise.
21892 * localedata/locales/en_BW: Likewise.
21893 * localedata/locales/en_CA: Likewise.
21894 * localedata/locales/en_DK: Likewise.
21895 * localedata/locales/en_GB: Likewise.
21896 * localedata/locales/en_HK: Likewise.
21897 * localedata/locales/en_IE: Likewise.
21898 * localedata/locales/en_IL: Likewise.
21899 * localedata/locales/en_IN: Likewise.
21900 * localedata/locales/en_NG: Likewise.
21901 * localedata/locales/en_NZ: Likewise.
21902 * localedata/locales/en_PH: Likewise.
21903 * localedata/locales/en_SG: Likewise.
21904 * localedata/locales/en_US: Likewise.
21905 * localedata/locales/en_ZA: Likewise.
21906 * localedata/locales/en_ZM: Likewise.
21907 * localedata/locales/en_ZW: Likewise.
21908 * localedata/locales/eo: Likewise.
21909 * localedata/locales/es_AR: Likewise.
21910 * localedata/locales/es_BO: Likewise.
21911 * localedata/locales/es_CL: Likewise.
21912 * localedata/locales/es_CO: Likewise.
21913 * localedata/locales/es_CR: Likewise.
21914 * localedata/locales/es_CU: Likewise.
21915 * localedata/locales/es_DO: Likewise.
21916 * localedata/locales/es_EC: Likewise.
21917 * localedata/locales/es_ES: Likewise.
21918 * localedata/locales/es_GT: Likewise.
21919 * localedata/locales/es_HN: Likewise.
21920 * localedata/locales/es_MX: Likewise.
21921 * localedata/locales/es_NI: Likewise.
21922 * localedata/locales/es_PA: Likewise.
21923 * localedata/locales/es_PE: Likewise.
21924 * localedata/locales/es_PR: Likewise.
21925 * localedata/locales/es_PY: Likewise.
21926 * localedata/locales/es_SV: Likewise.
21927 * localedata/locales/es_US: Likewise.
21928 * localedata/locales/es_UY: Likewise.
21929 * localedata/locales/es_VE: Likewise.
21930 * localedata/locales/et_EE: Likewise.
21931 * localedata/locales/eu_ES: Likewise.
21932 * localedata/locales/eu_ES@euro: Likewise.
21933 * localedata/locales/fa_IR: Likewise.
21934 * localedata/locales/ff_SN: Likewise.
21935 * localedata/locales/fi_FI: Likewise.
21936 * localedata/locales/fil_PH: Likewise.
21937 * localedata/locales/fo_FO: Likewise.
21938 * localedata/locales/fr_BE: Likewise.
21939 * localedata/locales/fr_CA: Likewise.
21940 * localedata/locales/fr_CH: Likewise.
21941 * localedata/locales/fr_FR: Likewise.
21942 * localedata/locales/fr_LU: Likewise.
21943 * localedata/locales/fur_IT: Likewise.
21944 * localedata/locales/fy_DE: Likewise.
21945 * localedata/locales/fy_NL: Likewise.
21946 * localedata/locales/ga_IE: Likewise.
21947 * localedata/locales/gd_GB: Likewise.
21948 * localedata/locales/gez_ER: Likewise.
21949 * localedata/locales/gez_ET: Likewise.
21950 * localedata/locales/gl_ES: Likewise.
21951 * localedata/locales/gu_IN: Likewise.
21952 * localedata/locales/gv_GB: Likewise.
21953 * localedata/locales/ha_NG: Likewise.
21954 * localedata/locales/hak_TW: Likewise.
21955 * localedata/locales/he_IL: Likewise.
21956 * localedata/locales/hi_IN: Likewise.
21957 * localedata/locales/hif_FJ: Likewise.
21958 * localedata/locales/hne_IN: Likewise.
21959 * localedata/locales/hr_HR: Likewise.
21960 * localedata/locales/hsb_DE: Likewise.
21961 * localedata/locales/ht_HT: Likewise.
21962 * localedata/locales/hu_HU: Likewise.
21963 * localedata/locales/hy_AM: Likewise.
21964 * localedata/locales/i18n: Likewise.
21965 * localedata/locales/ia_FR: Likewise.
21966 * localedata/locales/id_ID: Likewise.
21967 * localedata/locales/ig_NG: Likewise.
21968 * localedata/locales/ik_CA: Likewise.
21969 * localedata/locales/is_IS: Likewise.
21970 * localedata/locales/it_CH: Likewise.
21971 * localedata/locales/it_IT: Likewise.
21972 * localedata/locales/iu_CA: Likewise.
21973 * localedata/locales/ja_JP: Likewise.
21974 * localedata/locales/ka_GE: Likewise.
21975 * localedata/locales/kk_KZ: Likewise.
21976 * localedata/locales/kl_GL: Likewise.
21977 * localedata/locales/kn_IN: Likewise.
21978 * localedata/locales/ko_KR: Likewise.
21979 * localedata/locales/kok_IN: Likewise.
21980 * localedata/locales/ks_IN: Likewise.
21981 * localedata/locales/ks_IN@devanagari: Likewise.
21982 * localedata/locales/ku_TR: Likewise.
21983 * localedata/locales/kw_GB: Likewise.
21984 * localedata/locales/ky_KG: Likewise.
21985 * localedata/locales/lb_LU: Likewise.
21986 * localedata/locales/lg_UG: Likewise.
21987 * localedata/locales/li_BE: Likewise.
21988 * localedata/locales/li_NL: Likewise.
21989 * localedata/locales/lij_IT: Likewise.
21990 * localedata/locales/ln_CD: Likewise.
21991 * localedata/locales/lo_LA: Likewise.
21992 * localedata/locales/lt_LT: Likewise.
21993 * localedata/locales/lv_LV: Likewise.
21994 * localedata/locales/lzh_TW: Likewise.
21995 * localedata/locales/mag_IN: Likewise.
21996 * localedata/locales/mai_IN: Likewise.
21997 * localedata/locales/mg_MG: Likewise.
21998 * localedata/locales/mhr_RU: Likewise.
21999 * localedata/locales/mi_NZ: Likewise.
22000 * localedata/locales/mk_MK: Likewise.
22001 * localedata/locales/ml_IN: Likewise.
22002 * localedata/locales/mn_MN: Likewise.
22003 * localedata/locales/mni_IN: Likewise.
22004 * localedata/locales/mr_IN: Likewise.
22005 * localedata/locales/ms_MY: Likewise.
22006 * localedata/locales/mt_MT: Likewise.
22007 * localedata/locales/my_MM: Likewise.
22008 * localedata/locales/nan_TW: Likewise.
22009 * localedata/locales/nan_TW@latin: Likewise.
22010 * localedata/locales/nb_NO: Likewise.
22011 * localedata/locales/nds_DE: Likewise.
22012 * localedata/locales/nds_NL: Likewise.
22013 * localedata/locales/ne_NP: Likewise.
22014 * localedata/locales/nhn_MX: Likewise.
22015 * localedata/locales/niu_NU: Likewise.
22016 * localedata/locales/niu_NZ: Likewise.
22017 * localedata/locales/nl_AW: Likewise.
22018 * localedata/locales/nl_BE: Likewise.
22019 * localedata/locales/nl_NL: Likewise.
22020 * localedata/locales/nn_NO: Likewise.
22021 * localedata/locales/nr_ZA: Likewise.
22022 * localedata/locales/nso_ZA: Likewise.
22023 * localedata/locales/oc_FR: Likewise.
22024 * localedata/locales/om_ET: Likewise.
22025 * localedata/locales/om_KE: Likewise.
22026 * localedata/locales/or_IN: Likewise.
22027 * localedata/locales/os_RU: Likewise.
22028 * localedata/locales/pa_IN: Likewise.
22029 * localedata/locales/pa_PK: Likewise.
22030 * localedata/locales/pap_AW: Likewise.
22031 * localedata/locales/pap_CW: Likewise.
22032 * localedata/locales/pl_PL: Likewise.
22033 * localedata/locales/ps_AF: Likewise.
22034 * localedata/locales/pt_BR: Likewise.
22035 * localedata/locales/pt_PT: Likewise.
22036 * localedata/locales/quz_PE: Likewise.
22037 * localedata/locales/raj_IN: Likewise.
22038 * localedata/locales/ro_RO: Likewise.
22039 * localedata/locales/ru_RU: Likewise.
22040 * localedata/locales/ru_UA: Likewise.
22041 * localedata/locales/rw_RW: Likewise.
22042 * localedata/locales/sa_IN: Likewise.
22043 * localedata/locales/sat_IN: Likewise.
22044 * localedata/locales/sc_IT: Likewise.
22045 * localedata/locales/sd_IN: Likewise.
22046 * localedata/locales/sd_IN@devanagari: Likewise.
22047 * localedata/locales/se_NO: Likewise.
22048 * localedata/locales/sgs_LT: Likewise.
22049 * localedata/locales/shs_CA: Likewise.
22050 * localedata/locales/si_LK: Likewise.
22051 * localedata/locales/sid_ET: Likewise.
22052 * localedata/locales/sk_SK: Likewise.
22053 * localedata/locales/sl_SI: Likewise.
22054 * localedata/locales/sm_WS: Likewise.
22055 * localedata/locales/so_DJ: Likewise.
22056 * localedata/locales/so_ET: Likewise.
22057 * localedata/locales/so_KE: Likewise.
22058 * localedata/locales/so_SO: Likewise.
22059 * localedata/locales/sq_AL: Likewise.
22060 * localedata/locales/sq_MK: Likewise.
22061 * localedata/locales/sr_ME: Likewise.
22062 * localedata/locales/sr_RS: Likewise.
22063 * localedata/locales/sr_RS@latin: Likewise.
22064 * localedata/locales/ss_ZA: Likewise.
22065 * localedata/locales/st_ZA: Likewise.
22066 * localedata/locales/sv_FI: Likewise.
22067 * localedata/locales/sv_SE: Likewise.
22068 * localedata/locales/sw_KE: Likewise.
22069 * localedata/locales/sw_TZ: Likewise.
22070 * localedata/locales/szl_PL: Likewise.
22071 * localedata/locales/ta_IN: Likewise.
22072 * localedata/locales/ta_LK: Likewise.
22073 * localedata/locales/tcy_IN: Likewise.
22074 * localedata/locales/te_IN: Likewise.
22075 * localedata/locales/tg_TJ: Likewise.
22076 * localedata/locales/th_TH: Likewise.
22077 * localedata/locales/the_NP: Likewise.
22078 * localedata/locales/ti_ER: Likewise.
22079 * localedata/locales/ti_ET: Likewise.
22080 * localedata/locales/tig_ER: Likewise.
22081 * localedata/locales/tk_TM: Likewise.
22082 * localedata/locales/tl_PH: Likewise.
22083 * localedata/locales/tn_ZA: Likewise.
22084 * localedata/locales/to_TO: Likewise.
22085 * localedata/locales/tpi_PG: Likewise.
22086 * localedata/locales/tr_CY: Likewise.
22087 * localedata/locales/tr_TR: Likewise.
22088 * localedata/locales/ts_ZA: Likewise.
22089 * localedata/locales/tt_RU: Likewise.
22090 * localedata/locales/tt_RU@iqtelif: Likewise.
22091 * localedata/locales/ug_CN: Likewise.
22092 * localedata/locales/uk_UA: Likewise.
22093 * localedata/locales/unm_US: Likewise.
22094 * localedata/locales/ur_IN: Likewise.
22095 * localedata/locales/ur_PK: Likewise.
22096 * localedata/locales/uz_UZ: Likewise.
22097 * localedata/locales/uz_UZ@cyrillic: Likewise.
22098 * localedata/locales/ve_ZA: Likewise.
22099 * localedata/locales/vi_VN: Likewise.
22100 * localedata/locales/wa_BE: Likewise.
22101 * localedata/locales/wae_CH: Likewise.
22102 * localedata/locales/wal_ET: Likewise.
22103 * localedata/locales/wo_SN: Likewise.
22104 * localedata/locales/xh_ZA: Likewise.
22105 * localedata/locales/yi_US: Likewise.
22106 * localedata/locales/yo_NG: Likewise.
22107 * localedata/locales/yue_HK: Likewise.
22108 * localedata/locales/yuw_PG: Likewise.
22109 * localedata/locales/zh_CN: Likewise.
22110 * localedata/locales/zh_HK: Likewise.
22111 * localedata/locales/zh_SG: Likewise.
22112 * localedata/locales/zh_TW: Likewise.
22113 * localedata/locales/zu_ZA: Likewise.
22114
22115 2017-11-13 Florian Weimer <fweimer@redhat.com>
22116
22117 * support/next_to_fault.h, support/next_to_fault.c: New files.
22118 * support/Makefile (libsupport-routines): Add next_to_fault.
22119 * resolv/tst-inet_pton.c (struct next_to_fault)
22120 (next_to_fault_allocate, next_to_fault_free): Remove.
22121 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22122
22123 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22124
22125 * elf/dl-support.c: Include <dl-procruntime.c>.
22126 * include/link.h: Include <link_map.h>.
22127 * sysdeps/generic/dl-procruntime.c: New file.
22128 * sysdeps/generic/link_map.h: Likewise.
22129 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22130 the writable ld.so namespace.
22131
22132 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22133
22134 timezone: pacify GCC -Wstringop-truncation
22135 Problem reported by Martin Sebor in:
22136 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22137 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22138
22139 2017-11-12 Florian Weimer <fweimer@redhat.com>
22140
22141 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22142 tst-xreadlink.
22143 (tests): Add tst-xreadlink.
22144 * support/support.h (xstrndup): Declare.
22145 * support/xunistd.h (xunlink, xreadlink): Declare.
22146 * support/temp_file.h (support_create_temp_directory): Declare.
22147 * support/temp_file.c (support_create_temp_directory): New function.
22148 * support/support_chroot.c (support_chroot_create): Use it.
22149 * support/xreadlink.c: New file.
22150 * support/xstrndup.c: Likewise.
22151 * support/xunlink.c: Likewise.
22152 * support/tst-xreadlink.c: Likewise.
22153
22154 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22155
22156 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22157
22158 2017-11-11 Florian Weimer <fweimer@redhat.com>
22159
22160 [BZ #22409]
22161 [BZ #22412]
22162 * resolv/res_comp.c (printable_string, binary_hnok)
22163 (binary_leading_dash): New functions.
22164 (res_hnok): Reimplement using these functions and ns_name_pton.
22165 (res_ownok): Likewise.
22166 (res_mailok): Reimplement using printable_string, ns_name_pton and
22167 binary_hnok.
22168 (res_dnok): Reimplement using printable_string and ns_name_pton.
22169 * resolv/tst-res_hnok.c (tests): Add additional tests.
22170 (LETTERDIGITS, PRINTABLE): Define.
22171 (do_test): Adjust one_char results.
22172
22173 2017-11-11 Florian Weimer <fweimer@redhat.com>
22174
22175 [BZ #22413]
22176 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22177 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22178
22179 2017-11-11 Florian Weimer <fweimer@redhat.com>
22180
22181 * resolv/tst-ns_name_pton.c: New file.
22182 * resolv/Makefile (tests): Add tst-ns_name_pton.
22183 (tst-ns_name_pton): Link against libresolv.
22184
22185 2017-11-11 Florian Weimer <fweimer@redhat.com>
22186
22187 * resolv/tst-res_hnok.c: New file.
22188 * resolv/Makefile (tests): Add tst-res_hnok.
22189 (tst-res_hnok): Link against libresolv.
22190
22191 2017-11-11 Florian Weimer <fweimer@redhat.com>
22192
22193 * resolv/tst-resolv-network.c: Use test framework instead explicit
22194 main function.
22195
22196 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22197
22198 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22199 <jmp_buf-macros.h>.
22200 [!_ISOMAC] (STR_HELPER): New.
22201 [!_ISOMAC] (STR): Likewise.
22202 [!_ISOMAC] (TEST_SIZE): Likewise.
22203 [!_ISOMAC] (TEST_ALIGN): Likewise.
22204 [!_ISOMAC] (TEST_OFFSET): Likewise.
22205 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22206 field offsets of jmp_buf as well as sigjmp_buf.
22207 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22208 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22209 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22210 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22211 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22212 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22213 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22214 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22215 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22216 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22217 Likewise.
22218 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22219 Likewise.
22220 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22221 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22222 Likewise.
22223 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22224 Likewise.
22225 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22226 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22227 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22228 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22229 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22230 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22231 Likewise.
22232 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22233 Likewise.
22234 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22235 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22236 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22237
22238 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22239
22240 * include/float.h
22241 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22242 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22243 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22244 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22245 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22246 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22247 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22248 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22249 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22250 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22251 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22252 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22253 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22254 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22255 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22256 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22257 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22258 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22259 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22260 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22261 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22262 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22263 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22264 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22265 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22266 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22267 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22268 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22269 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22270 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22271 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22272 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22273 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22274 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22275 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22276 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22277 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22278 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22279 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22280 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22281 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22282 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22283 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22284 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22285 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22286 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22287 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22288 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22289 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22290 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22291 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22292 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22293 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22294 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22295 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22296 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22297 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22298 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22299 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22300 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22301 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22302 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22303 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22304 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22305 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22306 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22307 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22308 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22309 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22310 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22311 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22312 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22313 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22314 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
22315 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22316 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
22317 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22318 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
22319 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22320 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
22321 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22322 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22323 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22324 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22325 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22326 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22327 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22328 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22329
22330 * stdlib/tst-strtod.h (F16): New macro.
22331 (F32): Likewise.
22332 (F64): Likewise.
22333 (F32X): Likewise.
22334 (F64X): Likewise.
22335 (F128X): Likewise.
22336 (IF_FLOAT16): Likewise.
22337 (IF_FLOAT32): Likewise.
22338 (IF_FLOAT64): Likewise.
22339 (IF_FLOAT32X): Likewise.
22340 (IF_FLOAT64X): Likewise.
22341 (IF_FLOAT128X): Likewise.
22342 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
22343 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
22344 (STRTOD_TEST_FOREACH): Likewise.
22345 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
22346 (CHOOSE_f64): Likewise.
22347 (CHOOSE_f32x): Likewise.
22348 (CHOOSE_f64x): Likewise.
22349
22350 2017-11-07 Andreas Schwab <schwab@suse.de>
22351
22352 * nptl/Makefile (tests-internal): Remove tst-typesizes.
22353
22354 2017-11-07 Mike FABIAN <mfabian@redhat.com>
22355
22356 [BZ #22403]
22357 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
22358 to be escaped.
22359 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
22360 to be escaped.
22361
22362 2017-11-07 Claude Paroz <claude@2xlibre.net>
22363
22364 [BZ #22403]
22365 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
22366 to be escaped.
22367 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
22368 to be escaped.
22369 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
22370 to be escaped.
22371
22372 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22373
22374 [BZ #22298]
22375 * nptl/allocatestack.c (allocate_stack): Check if
22376 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
22377 __PTHREAD_MUTEX_HAVE_PREV is defined.
22378 * nptl/descr.h (pthread): Likewise.
22379 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
22380 Likewise.
22381 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22382 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22383 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
22384 * sysdeps/nptl/bits/thread-shared-types.h
22385 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22386 defines.
22387 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
22388 of __WORDSIZE for internal layout.
22389 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
22390 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
22391 instead of __WORDSIZE whether to use an union for __spins and __list
22392 fields.
22393 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
22394 case.
22395 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
22396 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22397 defines.
22398 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
22399 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22400 Likewise.
22401 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
22402 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22403 Likewise.
22404 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
22405 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22406 Likewise.
22407 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
22408 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22409 Likewise.
22410 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
22411 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22412 Likewise.
22413 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
22414 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22415 Likewise.
22416 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
22417 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22418 Likewise.
22419 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
22420 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22421 Likewise.
22422 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
22423 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22424 Likewise.
22425 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
22426 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22427 Likewise.
22428 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
22429 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22430 Likewise.
22431 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
22432 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22433 Likewise.
22434 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
22435 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22436 Likewise.
22437 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
22438 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22439 Likewise.
22440
22441 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
22442 New macros.
22443 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
22444 checks for expected input type size.
22445 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22446 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22447 Likewise.
22448 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22449 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
22450 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
22451 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
22452 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22453 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
22454 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
22455 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
22456 superflous runtime assert check.
22457 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
22458 Likewise.
22459 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
22460 Likewise.
22461 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22462 Likewise.
22463 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
22464 Likewise.
22465 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
22466 Likewise.
22467 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
22468 Likewise.
22469 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
22470 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
22471 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
22472 Likewise.
22473 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
22474 Likewise.
22475 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
22476 Likewise.
22477 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
22478 Likewise.
22479 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
22480 Likewise.
22481 * nptl/pthread_attr_setinheritsched.c
22482 (__pthread_attr_setinheritsched): Likewise.
22483 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
22484 Likewise.
22485 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
22486 Likewise.
22487 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
22488 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
22489 __old_pthread_attr_setstack): Likewise.
22490 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
22491 Likewise.
22492 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
22493 Likewise.
22494 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
22495 Likewise.
22496 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
22497 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
22498 Likewise.
22499 * nptl/tst-typesizes.c: Remove file.
22500
22501 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
22502 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
22503 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
22504 checks for internal pthread_mutex_t offsets.
22505 * sysdeps/aarch64/nptl/pthread-offsets.h
22506 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
22507 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
22508 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
22509 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
22510 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
22511 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
22512 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
22513 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
22514 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
22515 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
22516 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
22517 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
22518 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
22519 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
22520 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
22521 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
22522 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
22523 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
22524
22525 2017-11-07 Florian Weimer <fweimer@redhat.com>
22526
22527 * bits/mman-linux.h: Move ...
22528 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
22529 comment.
22530 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
22531 outdated comment.
22532
22533 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22534
22535 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
22536 Redefine STRNLEN as __strnlen_power8.
22537
22538 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22539
22540 * signal/sighold.c (sighold): Optimize implementation.
22541
22542 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
22543 __NR_rt_sigqueueinfo.
22544
22545 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
22546 __sigtimedwait.
22547 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
22548 assume __NR_rt_sigtimedwait.
22549 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
22550 and add LIBC_CANCEL_HANDLED for cancellation marking.
22551 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22552
22553 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22554 (sysdeps_routines): Add memchr_noneon.
22555 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
22556 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
22557 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
22558 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
22559 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
22560 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
22561 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
22562
22563 * sysdeps/arm/arm-ifunc.h: New file.
22564 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
22565 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
22566 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
22567 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
22568 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
22569 (__memcpy_neon): Avoid create hidden alias.
22570 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
22571 (__memcpy_vfp): Likewise.
22572 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22573 (sysdep_routines): Add memcpy_arm.
22574 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
22575
22576 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
22577
22578 [BZ #22362]
22579 * Makerules (make-link-multidir): New.
22580 * config.make.in (multidir): New.
22581 * configure.ac (libc_cv_multidir): New. AC_SUBST.
22582 * configure: Regenerated.
22583 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
22584 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
22585 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
22586 New target.
22587
22588 2017-11-06 Joseph Myers <joseph@codesourcery.com>
22589
22590 [BZ #22402]
22591 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
22592 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
22593
22594 2017-11-04 Mike FABIAN <mfabian@redhat.com>
22595
22596 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
22597 to be escaped.
22598
22599 2017-11-04 Florian Weimer <fweimer@redhat.com>
22600
22601 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
22602
22603 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22604
22605 * math/math.h [__HAVE_DISTINCT_FLOAT16
22606 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22607 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22608 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22609 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
22610 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
22611 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
22612 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22613 (__MATH_TG_F32): New macro.
22614 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22615 (__MATH_TG_F64X): Likewise.
22616 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22617 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
22618
22619 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
22620
22621 * po/de.po: Update translations.
22622 * po/ru.po: Likewise.
22623
22624 2017-11-03 Florian Weimer <fweimer@redhat.com>
22625
22626 * manual/filesys.texi (Hard Links): Document linkat.
22627
22628 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22629
22630 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
22631 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22632 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22633 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22634 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22635 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22636 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
22637 the same as _Float128.
22638 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22639 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22640 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
22641
22642 * stdlib/stdlib.h
22643 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
22644 Declare.
22645 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
22646 Likewise.
22647 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
22648 Likewise.
22649 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22650 (strtof32x): Likewise.
22651 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22652 (strtof64x): Likewise.
22653 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22654 (strtof128x): Likewise.
22655 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22656 (strfromf16): Likewise.
22657 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22658 (strfromf32): Likewise.
22659 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22660 (strfromf64): Likewise.
22661 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22662 (strfromf32x): Likewise.
22663 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22664 (strfromf64x): Likewise.
22665 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22666 (strfromf128x): Likewise.
22667 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
22668 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
22669 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
22670 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
22671 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
22672 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
22673
22674 2017-11-03 Richard Henderson <rth@twiddle.net>
22675
22676 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
22677
22678 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22679
22680 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
22681
22682 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22683
22684 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
22685 DT_TLSDESC_GOT initialization.
22686 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
22687 (_dl_tlsdesc_resolve_hold): Likewise.
22688 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
22689 (_dl_tlsdesc_resolve_hold): Likewise.
22690 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
22691 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22692
22693 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22694
22695 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
22696
22697 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22698
22699 [BZ #18572]
22700 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
22701 non-lazily for R_ARM_TLS_DESC.
22702
22703 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22704
22705 [BZ #17078]
22706 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
22707 R_ARM_TLS_DESC case.
22708 (elf_machine_lazy_rel): Remove the prelink check.
22709
22710 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22711
22712 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
22713 DT_TLSDESC_GOT initialization.
22714 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
22715 (_dl_tlsdesc_resolve_rela): Likewise.
22716 (_dl_tlsdesc_resolve_hold): Likewise.
22717 (_dl_tlsdesc_undefweak): Remove ldar.
22718 (_dl_tlsdesc_dynamic): Likewise.
22719 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
22720 (_dl_tlsdesc_resolve_rela): Likewise.
22721 (_dl_tlsdesc_resolve_hold): Likewise.
22722 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
22723 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22724 (_dl_tlsdesc_resolve_rela): Likewise.
22725 (_dl_tlsdesc_resolve_hold): Likewise.
22726
22727 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22728
22729 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
22730 binding and initialization non-lazily for R_AARCH64_TLSDESC.
22731
22732 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22733
22734 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
22735 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
22736
22737 2017-11-02 Joseph Myers <joseph@codesourcery.com>
22738
22739 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
22740 Declare.
22741 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
22742 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
22743 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
22744 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
22745 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
22746 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
22747 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
22748 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
22749 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
22750 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
22751 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
22752
22753 2017-11-02 Mike FABIAN <mfabian@redhat.com>
22754
22755 [BZ #22382]
22756 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
22757 * localedata/locales/tpi_PG: Add standard header.
22758
22759 2017-11-02 Florian Weimer <fweimer@redhat.com>
22760
22761 test-errno-linux: quotactl can fail with EPERM in containers.
22762 * sysdeps/unix/sysv/linux/test-errno-linux.c
22763 (LIST, LIST_FORWARD): New macros.
22764 (check_error_in_list): New function.
22765 (test_wrp_rv): Accept list of permitted error codes.
22766 (test_wrp_rv2): Remove.
22767 (test_wrp): Call test_wrp_rv with list of error codes.
22768 (test_wrp2): Accept list of error codes.
22769 (do_test): Adjust. Allow EPERM for quotactl.
22770
22771 2017-11-02 Florian Weimer <fweimer@redhat.com>
22772
22773 * stdio-common/bug16.c (do_test): Use array_length.
22774 * stdio-common/errlist.c (_sys_nerr): Likewise.
22775 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
22776 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
22777 * stdio-common/psiginfo.c (psiginfo): Use array_length.
22778 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
22779 (do_test): Use array_length.
22780 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
22781 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
22782 * stdio-common/tst-printf-round.c (do_test): Likewise.
22783 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
22784 (CHECK): Use array_length.
22785 * stdio-common/tstdiomisc.c (t3, F): Likewise.
22786 * stdio-common/tstscanf.c (main): Likewise.
22787 * stdio-common/vfprintf.c (process_string_arg): Likewise.
22788
22789 2017-11-02 Florian Weimer <fweimer@redhat.com>
22790
22791 Add array_length and array_end macros.
22792 * include/array_length.h: New file.
22793
22794 2017-11-02 Florian Weimer <fweimer@redhat.com>
22795
22796 [BZ #22332]
22797 * posix/tst-glob-tilde.c (do_noescape): New variable.
22798 (one_test): Process it.
22799 (do_test): Set do_noescape. Add unescaping test case.
22800
22801 2017-11-01 Joseph Myers <joseph@codesourcery.com>
22802
22803 * math/complex.h
22804 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
22805 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
22806 with appropriate macros defined and undefined.
22807 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
22808 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22809 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
22810 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22811 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
22812 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22813 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
22814 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22815 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
22816 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22817
22818 * math/complex.h
22819 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
22820 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
22821 that for long double. Do not condition define and undefine of
22822 _Mdouble_complex_ on [__CFLOAT128].
22823
22824 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
22825
22826 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22827 of <sysdeps/generic/sysdep.h>.
22828 (ALIGNARG): Removed.
22829 (ASM_SIZE_DIRECTIVE): Likewise.
22830 (ENTRY): Likewise.
22831 (END): Likewise.
22832 (ENTRY_CHK): Likewise.
22833 (END_CHK): Likewise.
22834 (syscall_error): Likewise.
22835 (mcount): Likewise.
22836 (PSEUDO_END): Likewise.
22837 (L): Likewise.
22838 (atom_text_section): Likewise.
22839 * sysdeps/x86/sysdep.h: New file.
22840 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22841 of <sysdeps/generic/sysdep.h>.
22842 (ALIGNARG): Removed.
22843 (ASM_SIZE_DIRECTIVE): Likewise.
22844 (ENTRY): Likewise.
22845 (END): Likewise.
22846 (ENTRY_CHK): Likewise.
22847 (END_CHK): Likewise.
22848 (syscall_error): Likewise.
22849 (mcount): Likewise.
22850 (PSEUDO_END): Likewise.
22851 (L): Likewise.
22852 (atom_text_section): Likewise.
22853
22854 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
22855
22856 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
22857 category of LC_CTYPE set to "i18n:2012".
22858 * localedata/locales/i18n_ctype: Regenerate.
22859
22860 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
22861
22862 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
22863 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
22864 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
22865 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
22866
22867 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
22868 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
22869 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
22870 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
22871
22872 2017-10-31 Joseph Myers <joseph@codesourcery.com>
22873
22874 * math/complex.h
22875 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
22876 New macro.
22877 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
22878 Likewise.
22879 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
22880 Likewise.
22881 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22882 (CMPLXF32X): Likewise.
22883 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22884 (CMPLXF64X): Likewise.
22885 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22886 (CMPLXF128X): Likewise.
22887
22888 * math/math.h
22889 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
22890 (__MATH_EVAL_FMT2): Define to add 0.0f.
22891
22892 2017-10-31 Alan Modra <amodra@gmail.com>
22893
22894 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
22895 include sysdep.h.
22896 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
22897 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
22898 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
22899 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
22900 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
22901 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
22902 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
22903 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
22904 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
22905 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
22906 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
22907 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
22908 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
22909 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
22910 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
22911 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
22912 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
22913 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
22914 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
22915 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
22916 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
22917 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
22918 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
22919 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
22920 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
22921 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
22922 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
22923 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
22924 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
22925 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
22926 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
22927 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
22928 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
22929 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
22930 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
22931 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
22932 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
22933 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
22934 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
22935 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
22936 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
22937 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
22938 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
22939 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
22940 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
22941 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
22942 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
22943 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
22944 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
22945 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
22946 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
22947 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
22948 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
22949 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
22950 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
22951 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
22952 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
22953 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
22954 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
22955 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
22956 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
22957 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
22958 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
22959 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
22960 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
22961 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
22962 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
22963 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
22964 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
22965
22966 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
22967 include sysdep.h and math_ldbl_opt.h.
22968
22969 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
22970 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
22971 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
22972 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
22973 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
22974 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
22975 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
22976 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
22977 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
22978 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
22979 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
22980 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
22981 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
22982 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
22983 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
22984 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
22985 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
22986 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
22987 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
22988 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
22989 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
22990 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
22991 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
22992 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
22993 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
22994 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
22995
22996 2017-10-31 Alan Modra <amodra@gmail.com>
22997
22998 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
22999 string/strncase_l.c, not string/strncase.c.
23000 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23001 (libc_hidden_def): Redefine.
23002
23003 2017-10-31 Alan Modra <amodra@gmail.com>
23004
23005 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23006 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23007 (__strcasecmp): Don't define.
23008
23009 2017-10-31 Alan Modra <amodra@gmail.com>
23010
23011 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23012 IS_IN (libc).
23013 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23014 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23015 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23016
23017 2017-10-31 Alan Modra <amodra@gmail.com>
23018
23019 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23020 USE_AS_STPNCPY.
23021
23022 2017-10-31 Alan Modra <amodra@gmail.com>
23023
23024 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23025 Redefine only when SHARED.
23026
23027 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23028
23029 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23030 Include <bits/math-finite.h> with appropriate macros defined and
23031 undefined.
23032 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23033 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23034 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23035 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23036 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23037
23038 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23039 [!_Mlong_double_] (_Mlong_double_): Likewise.
23040 [!_Mfloat16_] (_Mfloat16_): Likewise.
23041 [!_Mfloat32_] (_Mfloat32_): Likewise.
23042 [!_Mfloat64_] (_Mfloat64_): Likewise.
23043 [!_Mfloat128_] (_Mfloat128_): Likewise.
23044 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23045 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23046 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23047 (_Mdouble_): Define without indirection through those macros.
23048 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23049 [!_Mfloat128_] (_Mfloat128_): Likewise.
23050 [_Mlong_double_] (_Mlong_double_): Likewise.
23051 (_Mdouble_): Define without indirection through those macros.
23052 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23053 not add -D_Mlong_double_=double.
23054 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23055 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23056
23057 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23058
23059 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23060
23061 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23062
23063 * sysdeps/x86/libc-start.c: Reformat.
23064
23065 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23066
23067 [BZ #22353]
23068 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23069 (1): Renamed to ...
23070 (L(Src0)): This.
23071 (L(Src1)): New.
23072 (L(Src2)): Likewise.
23073 (L(1)): Renamed to ...
23074 (L(Src3)): This.
23075
23076 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23077
23078 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23079 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23080 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23081 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23082 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23083 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23084 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23085 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23086 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23087 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23088 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23089 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23090 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23091 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23092 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23093 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23094 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23095 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23096 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23097 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23098 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23099 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23100 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23101 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23102 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23103 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23104 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23105 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23106 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23107 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23108 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23109 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23110 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23111 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23112 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23113 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23114 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23115 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23116 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23117 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23118 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23119 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23120 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23121 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23122 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23123 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23124 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23125 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23126 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23127 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23128 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23129 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23130 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23131 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23132 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23133 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23134 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23135 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23136 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23137 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23138 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23139 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23140 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23141 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23142 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23143 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23144
23145 2017-10-30 Florian Weimer <fweimer@redhat.com>
23146
23147 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23148 always defined.
23149 * io/tst-mkdirat.c (do_test): Likewise.
23150 * io/tst-mkfifoat.c (do_test): Likewise.
23151 * io/tst-mknodat.c (do_test): Likewise.
23152 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23153 * locale/programs/locale.c (select_dirs): Likewise.
23154 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23155 * posix/bug-glob2.c (my_readdir): Likewise.
23156 * posix/tst-dir.c (main): Likewise.
23157 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23158 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23159
23160 2017-10-30 Florian Weimer <fweimer@redhat.com>
23161
23162 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23163 just __USE_GNU.
23164
23165 2017-10-30 Florian Weimer <fweimer@redhat.com>
23166
23167 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23168 Convert to support/test-driver.c.
23169 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23170 New macro parameters.
23171 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23172 * posix/tst-gnuglob.c: New file.
23173 * posix/tst-gnuglob64.c: Likewise.
23174 * posix/Makefile (tests): Add tst-gnuglob64.
23175
23176 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23177
23178 [BZ #19485]
23179 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23180 and use a better translation for March in “mon”.
23181 * localedata/locales/csb_PL: Use more ASCII to improve the
23182 readability of the source.
23183
23184 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23185
23186 [BZ #13953]
23187 * localedata/locales/km_KH: Use ASCII as much
23188 as possible for better readability of the source and
23189 remove useless comments.
23190 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23191 was commented out and apparently wrong anyway because it was
23192 using Lao characters. If Buddhist era should be used
23193 for km_KH, a native speaker should write the correct formaat
23194 for Khmer.
23195 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23196 (According to CLDR, the first weekday for Cambodia is Sunday).
23197 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23198 (These were using Lao characters which must be wrong. If we get
23199 the correct data from a native speaker, we could add it back, until
23200 then it is better not to have name_mr and name_mrs at all than
23201 having it wrong).
23202
23203 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23204
23205 * locale/loadlocale.c: Correct size of
23206 _nl_value_type_LC_<category> arrays.
23207
23208 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23209
23210 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23211 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23212 with appropriate macros defined and undefined.
23213 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23214 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23215 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23216 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23217 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23218
23219 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23220
23221 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23222 "-O2 -march=i586".
23223
23224 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23225
23226 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23227 with lowercase letters to make it agree with CLDR.
23228
23229 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23230
23231 [BZ #15260]
23232 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23233 first letters of yesstr and nostr in yesexpr and noexpr,
23234 not for the full words.
23235 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23236 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23237 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23238 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23239 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23240 first letters of yesstr and nostr in yesexpr and noexpr,
23241 until now only English was matched in yesexpr and noexpr.
23242 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23243 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23244 fil but not for tl. As tl and fil are very similar, using fil
23245 is probably better than using English.
23246
23247 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23248
23249 [BZ #21706]
23250 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23251 in yesstr and nostr.
23252
23253 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23254
23255 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23256 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23257 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23258 Likewise.
23259 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23260 Likewise.
23261 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23262 Likewise.
23263 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23264 Likewise.
23265 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23266 (SNANF128X): Likewise.
23267
23268 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23269 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23270 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23271 (HUGE_VAL_F32): Likewise.
23272 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23273 (HUGE_VAL_F64): Likewise.
23274 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23275 (HUGE_VAL_F32X): Likewise.
23276 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23277 (HUGE_VAL_F64X): Likewise.
23278 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23279 (HUGE_VAL_F128X): Likewise.
23280
23281 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23282
23283 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23284 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23285 for the br_FR locale.
23286
23287 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23288
23289 [BZ #21706]
23290 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23291
23292 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23293
23294 * locale/programs/record-status.h: Define globals, and function
23295 prototypes. Move function bodies...
23296 * locale/programs/record-status.c: ... to here. New file.
23297 * iconv/Makefile (iconv_prog-modules): Add record-status.
23298 * locale/Makefile (lib-modules): Likewise.
23299 * iconv/iconv_prog.c: Remove verbose.
23300 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23301 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23302 record a warning about ASCII compatibility.
23303 * locale/programs/ld-monetary.c (monetary_finish): If
23304 warn_int_curr_symbol is true then record a warning about the symbol
23305 not being in our ISO 4217 list.
23306 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23307 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23308 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23309 (OPT_NO_WARN): Define.
23310 (OPT_WARN): Define.
23311 (options): Add entry for --no-warnings, and --warnings.
23312 (set_warnings): New function to enable/disable warnings.
23313 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23314 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
23315 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
23316 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
23317 Pass flags to generate_locale.
23318 (generate_locale): Accept new flag argument and pass it to localedef
23319 invocation.
23320 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
23321 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
23322
23323 * localedata/Makefile (test-input-data): Use full file name.
23324 * localedata/da_DK.in: Rename to...
23325 * localedata/da_DK.ISO-8859-1.in: ...this.
23326 * localedata/de_DE.in: Rename to...
23327 * localedata/de_DE.ISO-8859-1.in: ...this.
23328 * localedata/en_US.in: Rename to...
23329 * localedata/en_US.ISO-8859-1.in: ...this.
23330 * localedata/fr_FR.in: Rename to...
23331 * localedata/fr_FR.UTF-8.in: ... this.
23332 * localedata/hr_HR.in: Rename to...
23333 * localedata/hr_HR.ISO-8859-2.in: ...this.
23334 * localedata/hu_HU.in: Rename to...
23335 * localedata/hu_HU.UTF-8.in: ...this.
23336 * localedata/si_LK.in: Rename to...
23337 * localedata/si_LK.UTF-8.in: ...this.
23338 * localedata/sv_SE.in: Rename to...
23339 * localedata/sv_SE.ISO-8859-1.in: ...this.
23340 * localedata/tr_TR.in: Rename to...
23341 * localedata/tr_TR.UTF-8.in: ...this.
23342 * localedata/uk_UA.in: Rename to...
23343 * localedata/uk_UA.UTF-8.in: ...this.
23344 * localedata/sort-test.sh: Test file is locale name with the
23345 suffix.
23346
23347 * localedata/unicode-gen/Makefile (check_i18n): Rename to
23348 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
23349 file.
23350 * localedata/locales/i18n_ctype: Regenerate.
23351 * localedata/locales/tr_TR: Likewise.
23352 * localedata/locales/translit_circle: Likewise.
23353 * localedata/locales/translit_cjk_compat: Likewise.
23354 * localedata/locales/translit_combining: Likewise.
23355 * localedata/locales/translit_compat: Likewise.
23356 * localedata/locales/translit_font: Likewise.
23357 * localedata/locales/translit_fraction: Likewise.
23358
23359 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23360
23361 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
23362 lxvd2x/stxvd2x with lvx/stvx.
23363 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
23364
23365 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
23366
23367 * include/alloc_buffer.h: Replace "if if " with "if " in
23368 comments.
23369 * sysdeps/mips/memcpy.S: Likkewise.
23370 * sysdeps/mips/memset.S: Likewise.
23371 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23372 Likewise.
23373 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
23374 Likewise.
23375 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
23376 Likewise.
23377
23378 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23379
23380 [BZ #15261]
23381 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
23382 yesexpr and noexpr.
23383 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23384 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23385 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23386 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23387 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23388 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23389 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23390
23391 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23392
23393 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
23394 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23395 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23396 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23397 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23398 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
23399 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23400 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23401 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23402 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23403 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23404 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23405
23406 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23407
23408 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
23409 as possible for better readability of the source.
23410 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
23411 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
23412 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
23413 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
23414 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
23415 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
23416 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
23417 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
23418 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23419 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
23420 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
23421 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
23422 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
23423 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
23424 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
23425 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
23426 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
23427 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
23428 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
23429 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
23430 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
23431 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
23432 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
23433 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
23434 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
23435 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
23436 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
23437 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
23438 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
23439 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
23440 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
23441 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23442 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
23443 * localedata/locales/en_US (LC_MESSAGES): Likewise.
23444 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
23445 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
23446 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
23447 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
23448 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
23449 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
23450 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
23451 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
23452 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
23453 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
23454 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
23455 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
23456 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
23457 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
23458 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
23459 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
23460 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
23461 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
23462 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
23463 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23464 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23465 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
23466 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
23467 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23468 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
23469 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
23470 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
23471 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
23472 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
23473 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
23474 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
23475 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
23476 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
23477 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
23478 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
23479 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
23480 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
23481 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
23482 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
23483 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
23484 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23485 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
23486 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
23487 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
23488 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
23489 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
23490 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
23491 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
23492 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
23493 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23494 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
23495 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
23496 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
23497 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23498 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
23499 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
23500 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
23501 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
23502 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23503 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
23504 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
23505 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23506 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
23507 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23508 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
23509 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
23510 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
23511 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
23512 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
23513 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
23514 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
23515 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
23516 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
23517 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
23518 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
23519 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
23520 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
23521 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
23522 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23523 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
23524 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
23525 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
23526 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
23527 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
23528 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
23529 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
23530 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
23531 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
23532 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
23533 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
23534 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
23535 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
23536 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
23537 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
23538 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
23539 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
23540 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
23541 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
23542 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
23543 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
23544 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
23545 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
23546 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
23547 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
23548 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
23549 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
23550 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
23551 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
23552 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
23553 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
23554 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
23555 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23556 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
23557 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
23558 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
23559 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
23560 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
23561 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
23562 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
23563 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
23564 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23565 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
23566 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
23567 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
23568 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
23569 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
23570 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
23571 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
23572 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
23573 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
23574 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
23575 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23576 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
23577 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
23578 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
23579 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
23580 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23581 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23582 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23583 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
23584
23585 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23586
23587 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
23588 (Use first letters of yesstr and nostr correctly instead of using
23589 full words).
23590
23591 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23592
23593 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
23594 (Use first letters of yesstr and nostr correctly).
23595
23596 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23597
23598 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
23599 also check for the first characters of yesstr and nostr.
23600 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
23601 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
23602
23603 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23604
23605 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
23606 also check for Chinese characters.
23607
23608 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23609
23610 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
23611 match also for the contents of yesstr and nostr. As the first letter
23612 of yesstr and nostr is equal, checking only for the first letter
23613 is not enough.
23614
23615 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23616
23617 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
23618 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
23619
23620 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23621
23622 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
23623 of main contributor.
23624
23625 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23626
23627 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
23628 instead of using English.
23629
23630 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23631
23632 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
23633 by including the first letters of nostr and yesexpr in the regexp.
23634 Also make it more readable by using ASCII where possible.
23635
23636 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23637
23638 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
23639 the first letter of nostr in the regexp. It agrees with CLDR now.
23640 Also make it more readable by using ASCII where possible.
23641
23642 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23643
23644 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
23645 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
23646 these strings contain a U+17D6 (which somewhat looks like a colon)
23647 instead of a real colon to separate the full words for “yes”
23648 and “no” from the single letter responses.
23649
23650 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23651
23652 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
23653 it agree with CLDR (include the first letter of yesstr).
23654 Also make it more readable by using ASCII where possible.
23655
23656 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23657
23658 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
23659 and improve yesexpr and noexpr. The yesstr and nostr apparently
23660 came from CLDR. And CLDR has a bug there: these strings contain
23661 a U+0903 (which looks like a colon) instead of a real colon
23662 to separate the full words for “yes” and “no” from the single
23663 letter responses.
23664
23665 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23666
23667 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
23668 letters of the full yesstr and nostr in yesexpr and noexpr.
23669
23670 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23671
23672 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
23673 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
23674 * localedata/locales/an_ES: Make source more readable by using ASCII
23675 where possible.
23676
23677 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23678
23679 [BZ #20952]
23680 * localedata/locales/yuw_PG: New file.
23681 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
23682 * locale/iso-639.def: Add Yau (Uruwa).
23683
23684 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23685
23686 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
23687
23688 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23689
23690 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
23691 (__libc_realloc): Likewise.
23692 (_mid_memalign): Likewise.
23693 (__libc_calloc): Likewise.
23694
23695 2017-10-23 Mike FABIAN <mfabian@redhat.com>
23696
23697 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
23698 by adding the generic +1 and -0 as in all other locales.
23699 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
23700 day names and make it more readable by using ASCII where possible.
23701
23702 2017-10-24 Joseph Myers <joseph@codesourcery.com>
23703
23704 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
23705 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
23706
23707 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23708
23709 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
23710 WNOHANG in waitpid call.
23711
23712 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
23713
23714 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
23715 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
23716
23717 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
23718 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
23719 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
23720 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
23721 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
23722 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
23723 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
23724 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
23725 variables.
23726
23727 2017-10-23 Michael Collison <michael.collison@arm.com>
23728
23729 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
23730 with __builtin_sqrt.
23731 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
23732 with __builtin_sqrtf.
23733 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
23734 with __builtin_ceil.
23735 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
23736 with __builtin_ceilf.
23737 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
23738 with __builtin_floor.
23739 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
23740 with __builtin_floorf.
23741 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
23742 with __builtin_fma.
23743 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
23744 with __builtin_fmaf.
23745 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
23746 with __builtin_fmax.
23747 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
23748 with __builtin_fmaxf.
23749 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
23750 with __builtin_fmin.
23751 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
23752 with __builtin_fminf.
23753 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
23754 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
23755 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
23756 with builtin_rint and conversion to int.
23757 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
23758 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
23759 with builtin_llround.
23760 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
23761 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
23762 with builtin_rint and conversion to long int.
23763 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
23764 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
23765 with builtin_lround.
23766 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
23767 with builtin_lroundf.
23768 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
23769 statements with __builtin_nearbyint.
23770 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
23771 statements with __builtin_nearbyintf.
23772 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
23773 with __builtin_rint.
23774 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
23775 with __builtin_rintf.
23776 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
23777 with __builtin_round.
23778 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
23779 with __builtin_roundf.
23780 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
23781 with __builtin_trunc.
23782 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
23783 with __builtin_truncf.
23784 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
23785 and s_l[l]round[f].c too.
23786
23787 2017-10-23 Alan Modra <amodra@gmail.com>
23788
23789 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
23790 Adjust stack after restoring regs. Add missing LR cfi_restore.
23791
23792 2017-10-23 Alan Modra <amodra@gmail.com>
23793
23794 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
23795 Move LR save and frame setup/teardown and LR restore to
23796 immediately around memset call. Provide cfi.
23797
23798 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23799
23800 * sysdeps/i386/fpu/e_powf.S: Removed.
23801 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
23802 * sysdeps/i386/fpu/w_powf.c: Likewise.
23803 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
23804 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23805 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23806 Add e_powf-sse2.
23807 (CFLAGS-e_powf-sse2.c): New.
23808 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
23809 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
23810
23811 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23812
23813 * sysdeps/i386/fpu/e_log2f.S: Removed.
23814 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
23815 * sysdeps/i386/fpu/w_log2f.c: Likewise.
23816 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
23817 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23818 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23819 Add e_log2f-sse2.
23820 (CFLAGS-e_log2f-sse2.c): New.
23821 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
23822 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
23823
23824 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23825
23826 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23827 Add e_powf-fma.
23828 (CFLAGS-e_powf-fma.c): New.
23829 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
23830 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
23831
23832 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23833
23834 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23835 Add e_log2f-fma.
23836 (CFLAGS-e_log2f-fma.c): New.
23837 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
23838 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
23839
23840 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23841
23842 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23843 Add e_logf-fma.
23844 (CFLAGS-e_logf-fma.c): New.
23845 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
23846 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
23847
23848 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23849
23850 * sysdeps/i386/fpu/e_logf.S: Removed.
23851 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
23852 * sysdeps/i386/fpu/w_logf.c: Likewise.
23853 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
23854 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
23855 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23856 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23857 Add e_logf-sse2.
23858 (CFLAGS-e_logf-sse2.c): New.
23859 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
23860 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
23861
23862 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23863
23864 * sysdeps/i386/fpu/e_exp2f.S: Removed.
23865 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
23866 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
23867 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23868 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23869 Add e_exp2f-sse2.
23870 (CFLAGS-e_exp2f-sse2.c): New.
23871 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
23872 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
23873
23874 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23875
23876 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23877 Add e_exp2f-fma.
23878 (CFLAGS-e_exp2f-fma.c): New.
23879 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
23880 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
23881
23882 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23883
23884 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
23885 * sysdeps/i386/fpu/e_expf.S: Likewise.
23886 * sysdeps/i386/fpu/math_errf.c: Likewise.
23887 * sysdeps/i386/fpu/w_expf.c: Likewise.
23888 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
23889 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
23890 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
23891 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
23892 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23893 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23894 Remove e_expf-ia32.
23895 (CFLAGS-e_expf-sse2.c): New.
23896 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
23897 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
23898
23899 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23900
23901 * sysdeps/x86_64/fpu/e_expf.S: Removed.
23902 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
23903 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
23904 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
23905 e_expf.c.
23906 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
23907 New.
23908 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
23909 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
23910 Renamed to ...
23911 (__redirect_expf): This.
23912 (SYMBOL_NAME): Changed to expf.
23913 (__ieee754_expf): Renamed to ...
23914 (__expf): This.
23915 (__GI___expf): This.
23916 (__ieee754_expf): Add strong_alias.
23917 (__expf_finite): Likewise.
23918 (__expf): New.
23919 Include <sysdeps/ieee754/flt-32/e_expf.c>.
23920
23921 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
23922
23923 [BZ #22332]
23924 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
23925 unescaping.
23926
23927 2017-10-21 Florian Weimer <fweimer@redhat.com>
23928
23929 * posix/Makefile (tests): Add tst-glob-tilde.
23930 (tests-special): Add tst-glob-tilde-mem.out
23931 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
23932 (tst-glob-tilde-mem.out): Add mtrace check.
23933 * posix/tst-glob-tilde.c: New file.
23934
23935 2017-10-20 Joseph Myers <joseph@codesourcery.com>
23936
23937 * bits/floatn-common.h: New file.
23938 * math/Makefile (headers): Add bits/floatn-common.h.
23939 * bits/floatn.h: Include <bits/floatn-common.h>.
23940 * sysdeps/ia64/bits/floatn.h: Likewise.
23941 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
23942 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
23943 * sysdeps/powerpc/bits/floatn.h: Likewise.
23944 * sysdeps/x86/bits/floatn.h: Likewise.
23945
23946 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23947
23948 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
23949 indicates whether compiler emits an warning for alias for
23950 functions with incompatible types.
23951
23952 [BZ #22273]
23953 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
23954 the auxiliary process is terminated by a signal before calling _exit
23955 or execve.
23956
23957 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
23958
23959 [BZ #21265]
23960 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
23961 New.
23962 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
23963 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
23964 and bit_arch_XSAVEC_Usable if needed.
23965 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
23966 and bit_arch_Use_dl_runtime_resolve_opt.
23967 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
23968 Removed.
23969 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
23970 (bit_arch_Prefer_No_AVX512): Updated.
23971 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
23972 (bit_arch_XSAVEC_Usable): New.
23973 (STATE_SAVE_OFFSET): Likewise.
23974 (STATE_SAVE_MASK): Likewise.
23975 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
23976 (cpu_features): Add xsave_state_size and xsave_state_full_size.
23977 (index_arch_Use_dl_runtime_resolve_opt): Removed.
23978 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
23979 (index_arch_XSAVEC_Usable): New.
23980 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
23981 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
23982 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
23983 is enabled.
23984 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
23985 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
23986 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
23987 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
23988 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
23989 _dl_runtime_resolve_xsavec.
23990 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
23991 Removed.
23992 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
23993 instead of VEC_SIZE.
23994 (REGISTER_SAVE_BND0): Removed.
23995 (REGISTER_SAVE_BND1): Likewise.
23996 (REGISTER_SAVE_BND3): Likewise.
23997 (REGISTER_SAVE_RAX): Always defined to 0.
23998 (VMOV): Removed.
23999 (_dl_runtime_resolve_avx): Likewise.
24000 (_dl_runtime_resolve_avx_slow): Likewise.
24001 (_dl_runtime_resolve_avx_opt): Likewise.
24002 (_dl_runtime_resolve_avx512): Likewise.
24003 (_dl_runtime_resolve_avx512_opt): Likewise.
24004 (_dl_runtime_resolve_sse): Likewise.
24005 (_dl_runtime_resolve_sse_vex): Likewise.
24006 (USE_FXSAVE): New.
24007 (_dl_runtime_resolve_fxsave): Likewise.
24008 (USE_XSAVE): Likewise.
24009 (_dl_runtime_resolve_xsave): Likewise.
24010 (USE_XSAVEC): Likewise.
24011 (_dl_runtime_resolve_xsavec): Likewise.
24012 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24013 Removed.
24014 (_dl_runtime_resolve_avx512_opt): Likewise.
24015 (_dl_runtime_resolve_avx): Likewise.
24016 (_dl_runtime_resolve_avx_opt): Likewise.
24017 (_dl_runtime_resolve_sse): Likewise.
24018 (_dl_runtime_resolve_sse_vex): Likewise.
24019 (_dl_runtime_resolve_fxsave): New.
24020 (_dl_runtime_resolve_xsave): Likewise.
24021 (_dl_runtime_resolve_xsavec): Likewise.
24022
24023 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24024
24025 [BZ #22320]
24026 CVE-2017-15670
24027 * posix/glob.c (__glob): Fix one-byte overflow.
24028
24029 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24030
24031 * malloc/malloc.c (sysdep-cancel.h): Add include.
24032
24033 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24034
24035 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24036
24037 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24038
24039 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24040 (tests): Remove $(objpfx)ga_test depdendency.
24041 * resolv/ga_test.c: Remove file.
24042
24043 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24044
24045 [BZ #18812]
24046 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24047 * localedata/locales/kab_DZ: New file.
24048
24049 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24050
24051 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24052 _dl_relocate_static_pie instead of _dl_start to compute load
24053 address in static PIE.
24054
24055 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24056
24057 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24058
24059 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24060
24061 [BZ #13605]
24062 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24063 * localedata/locales/shn_MM: New file.
24064
24065 2017-10-20 Florian Weimer <fweimer@redhat.com>
24066
24067 [BZ #22321]
24068 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24069 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24070 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24071 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24072 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24073 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24074
24075 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24076
24077 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24078
24079 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24080
24081 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24082
24083 [BZ #22322]
24084 * sysdeps/mips/bits/long-double.h: Move to ....
24085 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24086
24087 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24088
24089 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24090
24091 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24092 H.J. Lu <hongjiu.lu@intel.com>
24093
24094 [BZ #22299]
24095 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24096 GLRO(dl_platform) to NULL.
24097 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24098 (modules-names): Add tst-platformmod-1 and
24099 x86_64/tst-platformmod-2.
24100 (CFLAGS-tst-platform-1.c): New.
24101 (CFLAGS-tst-platformmod-1.c): Likewise.
24102 (CFLAGS-tst-platformmod-2.c): Likewise.
24103 (LDFLAGS-tst-platformmod-2.so): Likewise.
24104 ($(objpfx)tst-platform-1): Likewise.
24105 ($(objpfx)tst-platform-1.out): Likewise.
24106 (tst-platform-1-ENV): Likewise.
24107 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24108 * sysdeps/x86_64/tst-platform-1.c: New file.
24109 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24110 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24111
24112 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24113
24114 [BZ #13994]
24115 * locale/iso-639.def: Add Karbi.
24116 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24117 * localedata/locales/mjw_IN: New file.
24118
24119 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24120
24121 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24122 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24123 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24124 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24125 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24126 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24127 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24128 <bits/floatn.h>.
24129 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24130 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24131 * manual/math.texi (Mathematics): Document additional architecture
24132 support for _Float128.
24133 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24134 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24135 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24136 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24137 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24138 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24139 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24140 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24141 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24142 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24143 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24144 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24145 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24146 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24147 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24148
24149 2017-10-18 Renlin Li <renlin.li@arm.com>
24150
24151 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24152 _DYNAMIC symbol to calculate load address.
24153
24154 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24155
24156 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24157 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24158 summary bits.
24159 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24160 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24161
24162 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24163
24164 [BZ #16777]
24165 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24166 and improve readability by using more ASCII.
24167 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24168 and improve readability by using more ASCII.
24169
24170 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24171
24172 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24173 not all targets support atomics on bool.
24174
24175 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24176
24177 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24178 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24179 __f128.
24180 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24181 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24182 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24183 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24184 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24185 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24186
24187 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24188
24189 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24190 defines.
24191
24192 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24193
24194 [BZ #22159]
24195 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24196 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24197 (do_check_remalloced_chunk): Fix build bug.
24198 (do_check_malloc_state): Add assert that checks arena->top.
24199 (malloc_consolidate): Remove initialization.
24200 (int_mallinfo): Remove call to malloc_consolidate.
24201 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24202
24203 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24204
24205 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24206 (have_fastchunks): Remove.
24207 (clear_fastchunks): Remove.
24208 (set_fastchunks): Remove.
24209 (malloc_state): Add have_fastchunks.
24210 (malloc_init_state): Use have_fastchunks.
24211 (do_check_malloc_state): Remove incorrect invariant checks.
24212 (_int_malloc): Use have_fastchunks.
24213 (_int_free): Likewise.
24214 (malloc_consolidate): Likewise.
24215
24216 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24217
24218 * malloc/malloc.c (tcache_put): Inline.
24219 (tcache_get): Inline.
24220
24221 2017-10-17 Jordi Mallach <jordi@gnu.org>
24222
24223 Aurelien Jarno <aurelien@aurel32.net>
24224 [BZ #2522]
24225 * localedata/locales/ca_ES@valencia: New file.
24226 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24227
24228 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24229
24230 [BZ #22296]
24231 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24232 < 6.x
24233
24234 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24235
24236 * scripts/build-many-glibcs.py (Context.add_all_configs):
24237 Add arm-linux-gnueabihf multiarch extra_glibcs.
24238
24239 * sysdeps/generic/ifunc-init.h: New file.
24240 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24241
24242 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24243
24244 [BZ #22019]
24245 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24246 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24247 * stdlib/tst-strfmon_l.c: adapt test case.
24248
24249 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24250
24251 * sysdeps/generic/float128-abi.h: New file.
24252 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24253 non-__prefixed symbols to ....
24254 * math/Versions: ... here. Include <float128-abi.h>.
24255 * stdlib/Versions ... and here. Include <float128-abi.h>
24256
24257 2017-10-16 Florian Weimer <fweimer@redhat.com>
24258
24259 * version.h (VERSION): Switch to ".9000" as the development
24260 version suffix.
24261
24262 2017-10-16 Florian Weimer <fweimer@redhat.com>
24263
24264 [BZ #22050]
24265 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24266 compat_symbol_reference to access non-default version.
24267
24268 2017-10-16 Florian Weimer <fweimer@redhat.com>
24269
24270 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24271
24272 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24273
24274 * include/shlib-compat.h (compat_symbol_reference): Update
24275 comment.
24276
24277 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24278
24279 * math/Makefile (test-types): Add
24280 $(type-float128-$(float128-alias-fcts)).
24281 * math/test-float128.h (TYPE_STR): Define conditional on
24282 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24283 (ULP_IDX): Likewise.
24284 (ULP_I_IDX): Likewise.
24285
24286 * stdlib/strtold.c: Include <bits/floatn.h>
24287 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24288 and later undefine as macro. Define as weak alias if
24289 [!USE_WIDE_CHAR].
24290 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24291 and later undefine as macro. Define as weak alias if
24292 [USE_WIDE_CHAR].
24293 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24294 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24295 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24296 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24297 Define and later undefine as macro. Define as weak alias if
24298 [USE_WIDE_CHAR].
24299 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24300 <bits/floatn.h>.
24301 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24302 Define and later undefine as macro. Define as weak alias if
24303 [!USE_WIDE_CHAR].
24304 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24305 Define and later undefine as macro. Define as weak alias if
24306 [USE_WIDE_CHAR].
24307
24308 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24309
24310 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24311 record_verbose messages.
24312
24313 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24314
24315 [BZ #22052]
24316 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
24317 to silence -O3 -Wall warning with GCC 7.
24318
24319 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
24320
24321 * Makeconfig (+link-static-before-libc): Use the first of
24322 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24323 * gmon/Makefile (tests): Add tst-gmon-static.
24324 (tests-static): Likewise.
24325 (CFLAGS-tst-gmon-static.c): New.
24326 (CRT-tst-gmon-static): Likewise.
24327 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24328 (tst-gmon-static-ENV): Likewise.
24329 (tests-special): Likewise.
24330 ($(objpfx)tst-gmon-static.out): Likewise.
24331 (clean-tst-gmon-static-data): Likewise.
24332 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24333 * gmon/tst-gmon-static-gprof.sh: New file.
24334 * gmon/tst-gmon-static.c: Likewise.
24335
24336 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24337
24338 [BZ #22295]
24339 * locale/programs/linereader.c (get_string): Don't warn on
24340 non-symbolic character.
24341
24342 [BZ #22294]
24343 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
24344 int_curr_symbol.
24345
24346 [BZ #22292]
24347 * locale/programs/record-status.h: New file
24348 * locale/programs/locale.c: Add comment.
24349 * locale/programs/charmap-dir.c: Don't include error.h.
24350 (charmap_opendir): Use record_error.
24351 * locale/programs/charmap.c: Don't include error.h.
24352 (charmap_read): Use record_error, and record_warning.
24353 (parse_charmap): Likewise.
24354 * locale/programs/ld-address.c: Don't include error.h.
24355 (address_finish): Use record_error, and record_warning.
24356 * locale/programs/ld-collate.c: Don't include error.h.
24357 (collate_finish): Use record_error, and record_error_at_line.
24358 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
24359 (ctype_class_new): Likewise.
24360 (ctype_map_new): Likewise.
24361 (set_one_default): Likewise.
24362 (set_class_defaults): Likewise.
24363 (translit_flatten): Likewise.
24364 (allocate_arrays): Use record_error, and record_verbose.
24365 * locale/programs/ld-identification.c: Don't include error.h.
24366 (indentation_finish): Use record_error and record_warning.
24367 * locale/programs/ld-measurement.c: Don't include error.h.
24368 (measurement_finish): Use record_error.
24369 * locale/programs/ld-messages.c
24370 (message_finish): Likewise.
24371 * locale/programs/ld-monetary.c
24372 (monetary_finish): Likewise.
24373 * locale/programs/ld-name.c (name_finish): Use record_error
24374 and record_warning.
24375 * locale/programs/ld-numeric.c
24376 (numeric_finish): Use record_error.
24377 * locale/programs/ld-paper.c: Don't include error.h.
24378 (paper_finish): Use record_error.
24379 * locale/programs/ld-telephone.c: Don't include error.h.
24380 (telephone_finish): Use record_error.
24381 * locale/programs/ld-time.c (time_finish): Likewise.
24382 * locale/programs/linereader.h (lr_error): Make inline func.
24383 * locale/programs/localedef.c: Define recorded_warning_count,
24384 and recorded_error_count.
24385 (main): Use record_error. Use recorded_error_count and
24386 recorded_warning_count to issue correct error returns.
24387 (add_to_readlist): Use record_error.
24388 (find_locale): Likewise.
24389 (load_locale): Likewise.
24390 * locale/programs/localedef.h: Remove be_quiet
24391 and WITH_CUR_LOCALE.
24392 * locale/programs/locarchive.c (compare_from_file): Use
24393 record_error.
24394 * locale/programs/locfile.c (write_locale_data): Use
24395 record_error.
24396 * locale/programs/repertoire.c: Dont include error.h.
24397 (repertoire_complain): Use record_error.
24398 * localedata/tst-fmon.sh: Expect failures from localedef.
24399 * localedata/tst-locale.sh: Likewise.
24400 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
24401
24402 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
24403 (REPORTS): Likewise.
24404 (check): Likewise.
24405 (i18n): Rename to...
24406 (i18n_ctype): ...this.
24407 (i18n-report): Rename to...
24408 (i18n_ctype-report): ...this.
24409 * localedata/locales/i18n_ctype: Regenerate.
24410 * localedata/locales/i18n: copy i18n_ctype.
24411
24412 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24413
24414 * stdlib/strfroml.c: Include <bits/floatn.h>.
24415 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
24416 Define before include of <stdlib.h> and undefine afterwards, then
24417 define as weak alias.
24418
24419 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
24420 Undefine and restore default definition. Use
24421 libm_alias_ldouble_other.
24422
24423 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
24424
24425 [BZ #22153]
24426 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
24427 in coredumps.
24428
24429 2017-10-13 James Clarke <jrtc27@jrtc27.com>
24430
24431 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24432 Assign sym_map to be map for local symbols, as TLS relocations
24433 use sym_map to determine whether the symbol is defined and to
24434 extract the TLS information.
24435 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24436 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24437
24438 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24439
24440 [BZ #22189]
24441 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
24442 (math_force_eval): Add powerpc version.
24443
24444 [BZ #22142]
24445 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
24446 -DBL_MAX.
24447 (do_test): Likewise.
24448 * stdio-common/tst-printf.sh: Likewise.
24449 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
24450 ifdef clause in order to set the carry bit right. Replace r0 by
24451 0 without changing the behavior.
24452
24453 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24454
24455 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
24456 <libm-alias-ldouble.h>.
24457 (fabsl): Define using libm_alias_ldouble.
24458 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
24459 <libm-alias-ldouble.h>.
24460 (fabsl): Define using libm_alias_ldouble.
24461
24462 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
24463 Remove conditional code.
24464
24465 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
24466 Rename to __clog10_internal_l.
24467 (__clog10_internal_l): Define aliases using
24468 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
24469 with __clog10.
24470
24471 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24472
24473 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
24474 * benchtests/sincosf-inputs: New file.
24475 * benchtests/cosf-inputs: New file.
24476 * benchtests/sinf-inputs: New file.
24477
24478 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24479
24480 * posix/tst-spawn.c (do_test): Wait for both children.
24481
24482 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
24483
24484 [BZ #22284]
24485 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
24486 tests-pie): Add tst-gmon-pie.
24487 (CFLAGS-tst-gmon-pie.c): New.
24488 (CRT-tst-gmon-pie): Likewise.
24489 (tst-gmon-pie-ENV): Likewise.
24490 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
24491 ($(objpfx)tst-gmon-pie.out): Likewise.
24492 (clean-tst-gmon-pie-data): Likewise.
24493 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
24494 * gmon/gmon.c [PIC]: Include <link.h>.
24495 [PIC] (callback): New function.
24496 (write_hist): Add an argument for load address. Subtract load
24497 address from PCs.
24498 (write_call_graph): Likewise.
24499 (write_gmon): Call __dl_iterate_phdr to get load address, pass
24500 it to write_hist and write_call_graph.
24501 * gmon/tst-gmon-pie.c: New file.
24502
24503 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24504
24505 * math/Makefile (test-types-basic): New variable.
24506 (test-types): Likewise.
24507 (libm-test-support): Use $(test-types) instead of $(types).
24508 (libm-tests-base-normal): Likewise.
24509 (libm-tests-base-finite): Likewise.
24510 (libm-tests-base-inline): Likewise.
24511 (generated): Likewise.
24512 ($(objpfx)libm-test-support-$(t).c): Likewise.
24513 (libm-tests-for-type iterator): Likewise.
24514 (libm-test-support iterator): Likewise.
24515 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
24516 (ulp_idx): Use ULP_IDX.
24517 * math/test-ldouble.h: Include <float.h>.
24518 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
24519 (ULP_IDX): New macro.
24520 (ULP_I_IDX): Likewise.
24521 * math/test-double.h (ULP_IDX): Likewise.
24522 (ULP_I_IDX): Likewise.
24523 * math/test-float.h (ULP_IDX): Likewise.
24524 (ULP_I_IDX): Likewise.
24525 * math/test-float128.h (ULP_IDX): Likewise.
24526 (ULP_I_IDX): Likewise.
24527
24528 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24529
24530 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
24531 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24532 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24533 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
24534 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24535 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
24536 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
24537 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24538 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24539 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24540 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
24541 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24542 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24543 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24544 (SINGLE_THREAD_BY_GLOBAL): Define.
24545 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24546 Likewise.
24547 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24548 Likewise.
24549 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24550 Likewise.
24551 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24552 Likewise.
24553 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
24554 (SINGLE_THREAD_BY_GLOBAL): Likewise.
24555 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24556 Likewise.
24557
24558 2017-10-11 Andreas Schwab <schwab@suse.de>
24559
24560 * nis/Makefile (aux): Remove.
24561 * nscd/Makefile (aux): Add nscd_hash.
24562 (nscd-modules): Likewise.
24563 ($(objpfx)nscd): Don't depend on libnsl.
24564 * nscd/nscd_hash.c: New file.
24565 * nscd/nscd_hash.h: Likewise.
24566 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
24567 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
24568 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
24569 instead of <nis/rpcsvc/nis.h>.
24570 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
24571
24572 2017-10-11 Florian Weimer <fweimer@redhat.com>
24573
24574 [BZ #22078]
24575 Avoid large NSS buffers with many addresses, aliases.
24576 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
24577 using dynarrays and struct alloc_buffer.
24578 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
24579 (tst-nss-files-hosts-multi): Link with -ldl.
24580 * nss/tst-nss-files-hosts-multi.c: New file.
24581
24582 2017-10-11 Florian Weimer <fweimer@redhat.com>
24583
24584 [BZ #18023]
24585 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
24586 scratch_buffer. Eliminate gotos.
24587
24588 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24589
24590 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
24591 libm_alias_ldouble_other.
24592 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
24593 undefine and redefine.
24594 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
24595 (exp10l): Do not define here.
24596 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
24597 (weak_alias): Undefine and redefine.
24598 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
24599 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
24600 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
24601 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
24602
24603 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
24604 [!__fma] (fma): Define using libm_alias_double.
24605 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
24606 [!__fmaf] (fmaf): Define using libm_alias_float.
24607 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
24608 (fmal): Define using libm_alias_ldouble.
24609
24610 2017-10-10 Joseph Myers <joseph@codesourcery.com>
24611
24612 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
24613 New macro.
24614 (libm_alias_double_other): Likewise.
24615 (libm_alias_double_r): Use libm_alias_double_other_r.
24616 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
24617 New macro.
24618 (libm_alias_float_other): Likewise.
24619 (libm_alias_float_r): Use libm_alias_float_other_r.
24620 * sysdeps/generic/libm-alias-float128.h
24621 (libm_alias_float128_other_r): New macro.
24622 (libm_alias_float128_other): Likewise.
24623 (libm_alias_float128_r): Use libm_alias_float128_other_r.
24624 * sysdeps/generic/libm-alias-ldouble.h
24625 (libm_alias_ldouble_other_r): New macro.
24626 (libm_alias_ldouble_other): Likewise.
24627 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24628 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24629 (libm_alias_double_other_r): New macro.
24630 (libm_alias_double_other): Likewise.
24631 (libm_alias_double_r): Use libm_alias_double_other_r.
24632 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24633 (libm_alias_ldouble_other_r): New macro.
24634 (libm_alias_ldouble_other): Likewise.
24635 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24636 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
24637 [!USE_AS_COMPAT]: Use libm_alias_double_other.
24638 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
24639 [!USE_AS_COMPAT]: Use libm_alias_float_other.
24640 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
24641 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
24642 * math/w_exp2f.c: Use libm_alias_float_other.
24643 * math/w_expf.c: Likewise.
24644 * math/w_log2f.c: Likewise.
24645 * math/w_logf.c: Likewise.
24646 * math/w_powf.c: Likewise.
24647 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
24648 [!__exp2f]: Use libm_alias_float_other.
24649 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
24650 [!__expf]: Use libm_alias_float_other.
24651 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
24652 [!__log2f]: Use libm_alias_float_other.
24653 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
24654 [!__logf]: Use libm_alias_float_other.
24655 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
24656 [!__powf]: Use libm_alias_float_other.
24657
24658 2017-10-10 Florian Weimer <fweimer@redhat.com>
24659
24660 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
24661 function.
24662 (_nss_files_gethostbyname3_r): Call it.
24663
24664 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24665
24666 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
24667 error. Remove default definition of declare_mgen_alias.
24668 [!declare_mgen_alias_r]: Likewise.
24669 * sysdeps/generic/math-type-macros-double.h
24670 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
24671 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
24672 (declare_mgen_alias_r): Likewise.
24673 * sysdeps/generic/math-type-macros-float128.h
24674 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24675 * sysdeps/generic/math-type-macros-ldouble.h
24676 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24677 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
24678 macro.
24679 (declare_mgen_alias_r_s): Likewise.
24680 (declare_mgen_alias_r): Likewise.
24681 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
24682 (lgamma_r): Define using libm_alias_double_r.
24683 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
24684 (lgammaf_r): Define using libm_alias_float_r.
24685 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
24686 (lgammal_r): Define using libm_alias_ldouble_r.
24687 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
24688 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
24689
24690 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24691
24692 * lib/glob.c (__glob_pattern_type): Remove now-spurious
24693 extern declaration.
24694
24695 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24696
24697 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
24698
24699 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
24700
24701 [BZ #21326]
24702 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
24703 [__cplusplus >= 201103] (__USE_ISOC99): Define.
24704 * math/Makefile (test-math-cxx11): New test.
24705 * math/test-math-cxx11.cc: New file.
24706
24707 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
24708
24709 * login/openpty.c (openpty): Close slave pty file descriptor on error.
24710
24711 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
24712 call to allocate the slave pty file descriptor.
24713
24714 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24715
24716 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
24717 [!__fma] (fma): Define using libm_alias_double.
24718 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
24719 [!__fma] (fma): Define using libm_alias_double.
24720
24721 * sysdeps/ieee754/float128/float128_private.h: Include
24722 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
24723 (libm_alias_ldouble_r): Undefine and redefine.
24724 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
24725 <libm-alias-ldouble.h>.
24726 (asinhl): Define using libm_alias_ldouble.
24727 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
24728 <libm-alias-ldouble.h>.
24729 (atanl): Define using libm_alias_ldouble.
24730 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
24731 <libm-alias-ldouble.h>.
24732 (cbrtl): Define using libm_alias_ldouble.
24733 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
24734 <libm-alias-ldouble.h>.
24735 (ceill): Define using libm_alias_ldouble.
24736 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
24737 <libm-alias-ldouble.h>.
24738 (copysignl): Define using libm_alias_ldouble.
24739 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
24740 <libm-alias-ldouble.h>.
24741 (cosl): Define using libm_alias_ldouble.
24742 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
24743 <libm-alias-ldouble.h>.
24744 (erfl): Define using libm_alias_ldouble.
24745 (erfcl): Likewise.
24746 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
24747 <libm-alias-ldouble.h>.
24748 (expm1l): Define using libm_alias_ldouble.
24749 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
24750 <libm-alias-ldouble.h>.
24751 (fabsl): Define using libm_alias_ldouble.
24752 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
24753 <libm-alias-ldouble.h>.
24754 (floorl): Define using libm_alias_ldouble.
24755 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
24756 <libm-alias-ldouble.h>.
24757 (fmal): Define using libm_alias_ldouble.
24758 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
24759 <libm-alias-ldouble.h>.
24760 (frexpl): Define using libm_alias_ldouble.
24761 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
24762 libm_alias_ldouble.
24763 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
24764 <libm-alias-ldouble.h>.
24765 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
24766 libm_alias_ldouble.
24767 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
24768 <libm-alias-ldouble.h>.
24769 (getpayloadl): Define using libm_alias_ldouble.
24770 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
24771 <libm-alias-ldouble.h>.
24772 (llrintl): Define using libm_alias_ldouble.
24773 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
24774 <libm-alias-ldouble.h>.
24775 (llroundl): Define using libm_alias_ldouble.
24776 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
24777 <libm-alias-ldouble.h>.
24778 (logbl): Define using libm_alias_ldouble.
24779 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
24780 <libm-alias-ldouble.h>.
24781 (lrintl): Define using libm_alias_ldouble.
24782 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
24783 <libm-alias-ldouble.h>.
24784 (lroundl): Define using libm_alias_ldouble.
24785 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
24786 <libm-alias-ldouble.h>.
24787 (modfl): Define using libm_alias_ldouble.
24788 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
24789 <libm-alias-ldouble.h>.
24790 (nearbyintl): Define using libm_alias_ldouble.
24791 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
24792 <libm-alias-ldouble.h>.
24793 (nextafterl): Define using libm_alias_ldouble.
24794 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
24795 <libm-alias-ldouble.h>.
24796 (nextupl): Define using libm_alias_ldouble.
24797 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
24798 <libm-alias-ldouble.h>.
24799 (remquol): Define using libm_alias_ldouble.
24800 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
24801 <libm-alias-ldouble.h>.
24802 (rintl): Define using libm_alias_ldouble.
24803 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
24804 <libm-alias-ldouble.h>.
24805 (roundevenl): Define using libm_alias_ldouble.
24806 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
24807 <libm-alias-ldouble.h>.
24808 (roundl): Define using libm_alias_ldouble.
24809 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
24810 using libm_alias_ldouble.
24811 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
24812 <libm-alias-ldouble.h>.
24813 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
24814 Define using libm_alias_ldouble.
24815 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
24816 <libm-alias-ldouble.h>.
24817 (sincosl): Define using libm_alias_ldouble.
24818 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
24819 <libm-alias-ldouble.h>.
24820 (sinl): Define using libm_alias_ldouble.
24821 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
24822 <libm-alias-ldouble.h>.
24823 (tanhl): Define using libm_alias_ldouble.
24824 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
24825 <libm-alias-ldouble.h>.
24826 (tanl): Define using libm_alias_ldouble.
24827 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
24828 <libm-alias-ldouble.h>.
24829 (totalorderl): Define using libm_alias_ldouble.
24830 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
24831 <libm-alias-ldouble.h>.
24832 (totalordermagl): Define using libm_alias_ldouble.
24833 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
24834 <libm-alias-ldouble.h>.
24835 (truncl): Define using libm_alias_ldouble.
24836 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
24837 libm_alias_ldouble.
24838 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
24839 libm_alias_ldouble.
24840 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
24841 <libm-alias-ldouble.h>.
24842 (weak_alias): Do not undefine and redefine.
24843 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24844 (copysignl): Define with long_double_symbol only if [IS_IN
24845 (libc)].
24846 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
24847 <libm-alias-ldouble.h>.
24848 (weak_alias): Do not undefine and redefine.
24849 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24850 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
24851 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
24852 <libm-alias-ldouble.h>.
24853 (weak_alias): Do not undefine and redefine.
24854 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24855 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
24856 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
24857 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
24858 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
24859 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
24860 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
24861 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
24862 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
24863 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
24864 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
24865 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
24866 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
24867 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
24868 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
24869 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
24870 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
24871 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
24872 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
24873 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
24874 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
24875 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
24876 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
24877 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
24878 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
24879 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
24880
24881 2017-10-06 Carlos O'Donell <carlos@redhat.com>
24882
24883 [BZ #22111]
24884 * malloc/malloc.c (tcache_shutting_down): Use bool type.
24885 (tcache_thread_freeres): Set tcache_shutting_down before
24886 freeing the tcache.
24887 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
24888 * malloc/tst-malloc-tcache-leak.c: New file.
24889
24890 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24891
24892 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
24893 back to powerpc32 file.
24894 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
24895 (memrchr): Add __memrchr_power8 to ifunc list.
24896 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
24897 extra bytes for unaligned inputs.
24898
24899 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24900
24901 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
24902 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
24903 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
24904 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24905 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24906
24907 2017-10-05 Joseph Myers <joseph@codesourcery.com>
24908
24909 * sysdeps/arm/libm-test-ulps: Update.
24910
24911 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
24912 <libm-alias-ldouble.h>.
24913 (asinhl): Define using libm_alias_ldouble.
24914 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
24915 <libm-alias-ldouble.h>.
24916 (cbrtl): Define using libm_alias_ldouble.
24917 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
24918 <libm-alias-ldouble.h>.
24919 (copysignl): Define using libm_alias_ldouble.
24920 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
24921 <libm-alias-ldouble.h>.
24922 (cosl): Define using libm_alias_ldouble.
24923 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
24924 <libm-alias-ldouble.h>.
24925 (erfl): Define using libm_alias_ldouble.
24926 (erfcl): Likewise.
24927 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
24928 <libm-alias-ldouble.h>.
24929 (fmal): Define using libm_alias_ldouble.
24930 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
24931 <libm-alias-ldouble.h>.
24932 (frexpl): Define using libm_alias_ldouble.
24933 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
24934 libm_alias_ldouble.
24935 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
24936 <libm-alias-ldouble.h>.
24937 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
24938 libm_alias_ldouble.
24939 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
24940 <libm-alias-ldouble.h>.
24941 (getpayloadl): Define using libm_alias_ldouble.
24942 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
24943 <libm-alias-ldouble.h>.
24944 (llrintl): Define using libm_alias_ldouble.
24945 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
24946 <libm-alias-ldouble.h>.
24947 (llroundl): Define using libm_alias_ldouble.
24948 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
24949 <libm-alias-ldouble.h>.
24950 (lrintl): Define using libm_alias_ldouble.
24951 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
24952 <libm-alias-ldouble.h>.
24953 (lroundl): Define using libm_alias_ldouble.
24954 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
24955 <libm-alias-ldouble.h>.
24956 (modfl): Define using libm_alias_ldouble.
24957 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
24958 <libm-alias-ldouble.h>.
24959 (nextupl): Define using libm_alias_ldouble.
24960 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
24961 <libm-alias-ldouble.h>.
24962 (remquol): Define using libm_alias_ldouble.
24963 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
24964 <libm-alias-ldouble.h>.
24965 (roundevenl): Define using libm_alias_ldouble.
24966 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
24967 <libm-alias-ldouble.h>.
24968 (roundl): Define using libm_alias_ldouble.
24969 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
24970 using libm_alias_ldouble.
24971 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
24972 <libm-alias-ldouble.h>.
24973 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
24974 <libm-alias-ldouble.h>.
24975 (setpayloadsigl): Define using libm_alias_ldouble.
24976 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
24977 <libm-alias-ldouble.h>.
24978 (sincosl): Define using libm_alias_ldouble.
24979 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
24980 <libm-alias-ldouble.h>.
24981 (sinl): Define using libm_alias_ldouble.
24982 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
24983 <libm-alias-ldouble.h>.
24984 (tanhl): Define using libm_alias_ldouble.
24985 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
24986 <libm-alias-ldouble.h>.
24987 (tanl): Define using libm_alias_ldouble.
24988 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
24989 <libm-alias-ldouble.h>.
24990 (totalorderl): Define using libm_alias_ldouble.
24991 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
24992 <libm-alias-ldouble.h>.
24993 (totalordermagl): Define using libm_alias_ldouble.
24994 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
24995 libm_alias_ldouble.
24996 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
24997 libm_alias_ldouble.
24998
24999 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25000
25001 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25002 memmove_falkor.
25003 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25004 (__libc_ifunc_impl_list): Likewise.
25005 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25006 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25007
25008 * benchtests/bench-memmove-walk.c: New file.
25009 * benchtests/Makefile (string-benchset): Add it.
25010
25011 * benchtests/bench-memset-walk.c: New file.
25012 * benchtests/Makefile (string-benchset): Add it.
25013
25014 * benchtests/bench-memcpy-walk.c: New file.
25015 * benchtests/Makefile (string-benchset): Add it.
25016
25017 2017-10-05 Florian Weimer <fweimer@redhat.com>
25018
25019 nscd: Eliminate compilation time dependency in the build output.
25020 * nscd/nscd_stat.c (STATDATA_VERSION)
25021 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25022 (STATDATA_VERSION_FULL): New macro definitions.
25023 (compilation): Remove.
25024 (struct statdata): Adjust version member.
25025 (send_stats): Set version from STATDATA_VERSION_FULL.
25026 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25027
25028 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25029
25030 * configure.ac (--enable-add-ons): Remove option.
25031 (machine): Do not mention add-ons in comment.
25032 (LIBC_PRECONFIGURE): Likewise.
25033 (add_ons): Remove variable and sanity checks and logic to locate
25034 add-ons.
25035 (add_ons_automatic): Remove variable.
25036 (configured_add_ons): Likewise.
25037 (add_ons_sfx): Likewise.
25038 (add_ons_pfx): Likewise.
25039 (add_on_subdirs): Likewise.
25040 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25041 consideration of add-ons in Implies handling.
25042 (sysdeps_add_ons): Likewise.
25043 * configure: Regenerated.
25044 * libidn/configure.ac: Remove.
25045 * libidn/configure: Likewise.
25046 * sysdeps/unix/inet/configure.ac: New file.
25047 * sysdeps/unix/inet/configure: New generated file.
25048 * sysdeps/unix/inet/Subdirs: Add libidn.
25049 * Makeconfig (sysdeps-srcdirs): Remove variable.
25050 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25051 ($(common-objpfx)config.status): Do not depend on add-on files.
25052 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25053 comment.
25054 (all-subdirs): Do not include $(add-on-subdirs).
25055 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25056 * config.make.in (add-ons): Remove variable.
25057 (add-on-subdirs): Likewise.
25058 (sysdeps-add-ons): Likewise.
25059 * manual/Makefile (add-chapters): Remove.
25060 ($(objpfx)texis): Do not depend on $(add-chapters).
25061 (nonexamples): Do not handle $(add-chapters).
25062 (examples): Do not handle $(add-ons).
25063 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25064 libc-texinfo.sh.
25065 * manual/install.texi (Installation): Do not mention add-ons.
25066 (--enable-add-ons): Do not document configure option.
25067 * INSTALL: Regenerated.
25068 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25069 * manual/maint.texi (Hierarchy Conventions): Do not mention
25070 add-ons.
25071 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25072 --enable-add-ons.
25073 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25074 add-ons.
25075 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25076 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25077
25078 2017-10-05 Andreas Schwab <schwab@suse.de>
25079
25080 [BZ #15142]
25081 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25082 (_IO_flush_all_lockp): Always lock list_all_lock.
25083 (_IO_flush_all_linebuffered): Likewise.
25084 (_IO_unbuffer_all): Likewise.
25085
25086 2017-10-05 Florian Weimer <fweimer@redhat.com>
25087
25088 [BZ #15436]
25089 Do not flush stdio streams on abort.
25090 * stdlib/abort.c (fflush): Remove macro definition.
25091 (abort): Remove stages related to stdio flushing.
25092
25093 2017-10-05 Florian Weimer <fweimer@redhat.com>
25094
25095 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25096
25097 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25098
25099 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25100
25101 2017-10-05 Florian Weimer <fweimer@redhat.com>
25102
25103 * support/support_format_hostent.c (support_format_hostent): Add
25104 more error information for NETDB_INTERNAL.
25105
25106 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25107
25108 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25109 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25110 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25111 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25112 AC_DEFINE if multi-arch is enabled.
25113 * sysdeps/i386/configure: Regenerated.
25114
25115 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25116
25117 * Makeconfig (+link-static-before-libc): Use
25118 $(DEFAULT-LDFLAGS-$(@F)).
25119 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25120 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25121 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25122
25123 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25124
25125 * elf/Makefile (tests): Add tst-main1.
25126 (modules-names): Add tst-main1mod.
25127 ($(objpfx)tst-main1): New.
25128 (CRT-tst-main1): Likewise.
25129 (LDFLAGS-tst-main1): Likewise.
25130 (LDLIBS-tst-main1): Likewise.
25131 (tst-main1mod.so-no-z-defs): Likewise.
25132 * elf/tst-main1.c: New file.
25133 * elf/tst-main1mod.c: Likewise.
25134
25135 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25136
25137 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25138
25139 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25140
25141 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25142 (fma): Define using libm_alias_double.
25143 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25144 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25145 <math_ldbl_opt.h>.
25146 (fmal): Do not define as compat symbol here.
25147 * sysdeps/alpha/fpu/s_fma.c: New file.
25148
25149 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25150
25151 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25152
25153 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25154
25155 [BZ #22229]
25156 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25157 <math_ldbl_opt.h>
25158 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25159 and libc.
25160 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25161 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25162 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25163 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25164 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25165 Include <math_ldbl_opt.h>
25166 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25167 and libc.
25168 (compat_symbol): Undefine and redefine.
25169 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25170 <math_ldbl_opt.h>
25171 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25172 (compat_symbol): Undefine and redefine.
25173 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25174 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25175 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25176 GLIBC_2_1 for libm.
25177 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25178 GLIBC_2.0 copysignl symbol.
25179 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25180 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25181
25182 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25183
25184 2017-10-04 Florian Weimer <fweimer@redhat.com>
25185
25186 * scripts/check-local-headers.sh: Ignore nspr4 header file
25187 directory in addition to nspr.
25188
25189 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25190
25191 [BZ #17956]
25192 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25193 * configure: Regenerate.
25194 * crypt/Makefile (nss-cpp-flags): New variable.
25195 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25196 (CPPFLAGS-md5-crypt.c): Use it.
25197 * scripts/check-local-headers.sh: Ignore nspr header file
25198 directory.
25199
25200 2017-10-04 Andreas Schwab <schwab@suse.de>
25201
25202 * nis/Makefile (services): Remove compat.
25203 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25204 ($(objpfx)libnss_compat.so): Remove rule.
25205 * nis/Versions (libnss_compat): Remove.
25206 * nss/Makefile (services): Add compat.
25207 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25208 * nss/Versions (libnss_compat): Define.
25209 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25210 Don't include <rpc/types.h>. Replace bool_t by bool.
25211 * nss/nss_compat/compat-initgroups.c: Likewise.
25212 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25213 instead of <rpcsrv/ypclnt.h>.
25214 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25215 yp_get_default_domain.
25216 * nss/nss_compat/compat-pwd.c: Likewise.
25217 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25218 yp_get_default_domain.
25219 * nss/nss_compat/nisdomain.c: New file.
25220 * nss/nss_compat/nisdomain.h: Likewise.
25221
25222 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25223
25224 [BZ #22244]
25225 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25226 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25227
25228 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25229
25230 [BZ #22243]
25231 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25232 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25233
25234 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25235
25236 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25237 "movl main@GOTOFF(%ebx), %eax".
25238
25239 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25240
25241 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25242 allow undefined _DYNAMIC in PIE libc.a.
25243 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25244 Likewse.
25245
25246 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25247
25248 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25249 check _DYNAMIC.
25250
25251 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25252
25253 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25254 check _DYNAMIC.
25255
25256 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25257
25258 * math/test-math-iscanonical.cc (error): Replace bool with int.
25259
25260 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25261
25262 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25263 (modf): Define using libm_alias_double, only if [!__modf].
25264 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25265 <libm-alias-double.h>.
25266 (modf): Define using libm_alias_double, only if [!__modf].
25267 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25268 compat symbol here.
25269 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25270 (weak_alias): Do not undefine and redefine.
25271 (strong_alias): Likewise.
25272 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25273 (weak_alias): Likewise.
25274 (strong_alias): Likewise.
25275
25276 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25277 (logb): Define using libm_alias_double, only if [!__logb].
25278 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25279 <libm-alias-double.h>.
25280 (logb): Define using libm_alias_double, only if [!__logb].
25281 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25282 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25283 (weak_alias): Do not undefine and redefine.
25284 (strong_alias): Likewise.
25285 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25286 (weak_alias): Likewise.
25287 (strong_alias): Likewise.
25288
25289 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25290
25291 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25292 Check SHARED instead PIC.
25293
25294 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25295
25296 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25297 [!__fmaf] (fmaf): Define using libm_alias_float.
25298
25299 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25300 (frexp): Define using libm_alias_double.
25301 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25302 <libm-alias-double.h>.
25303 (frexp): Define using libm_alias_double.
25304 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25305 compat symbol here.
25306
25307 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25308
25309 [BZ #22235]
25310 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25311 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25312 (CFLAGS-test-math-iscanonical.cc): New variable.
25313 * math/test-math-iscanonical.cc: New file.
25314 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
25315 Provide a C++ implementation based on function overloading,
25316 rather than using __MATH_TG, which uses C-only builtins.
25317 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
25318 Likewise.
25319 * sysdeps/powerpc/powerpc64le/Makefile
25320 (CFLAGS-test-math-iscanonical.cc): New variable.
25321
25322 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25323
25324 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25325 (ceil): Define using libm_alias_double.
25326 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25327 (floor): Define using libm_alias_double.
25328 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25329 <libm-alias-double.h>.
25330 (llround): Define using libm_alias_double.
25331 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25332 <libm-alias-double.h>.
25333 (lround): Define using libm_alias_double.
25334 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25335 <libm-alias-double.h>.
25336 (nearbyint): Define using libm_alias_double.
25337 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25338 <libm-alias-double.h>.
25339 (remquo): Define using libm_alias_double.
25340 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
25341 (rint): Define using libm_alias_double.
25342 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
25343 (round): Define using libm_alias_double.
25344 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
25345 (trunc): Define using libm_alias_double.
25346 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
25347 <libm-alias-double.h>.
25348 (ceil): Define using libm_alias_double.
25349 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
25350 <libm-alias-double.h>.
25351 (floor): Define using libm_alias_double.
25352 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
25353 <libm-alias-double.h>.
25354 (llround): Define using libm_alias_double.
25355 [_LP64] (lround): Likewise.
25356 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
25357 <libm-alias-double.h>.
25358 [!_LP64] (lround): Define using libm_alias_double.
25359 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
25360 <libm-alias-double.h>.
25361 (nearbyint): Define using libm_alias_double.
25362 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
25363 <libm-alias-double.h>.
25364 (remquo): Define using libm_alias_double.
25365 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
25366 <libm-alias-double.h>.
25367 (rint): Define using libm_alias_double.
25368 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
25369 <libm-alias-double.h>.
25370 (round): Define using libm_alias_double.
25371 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
25372 <libm-alias-double.h>.
25373 (trunc): Define using libm_alias_double.
25374 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
25375 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
25376 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
25377 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
25378 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
25379 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
25380 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
25381 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
25382 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
25383
25384 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25385
25386 * math/w_remainder.c: New file.
25387 * math/w_remainderf.c: New file.
25388 * math/w_remainderl.c: New file.
25389
25390 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25391
25392 * elf/rtld.c (BOOTSTRAP_MAP): New.
25393 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
25394 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25395 Likewise.
25396 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25397 Likewise.
25398 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25399 Likewise.
25400
25401 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25402
25403 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
25404 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
25405 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
25406 rtld_hidden_data_ver): Define to empty.
25407 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
25408 __assert_perror_fail): Likewise.
25409 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25410 (__rewinddir): Likewise.
25411 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25412 (__profile_frequency): Likewise.
25413 * include/setjmp.h (__sigsetjmp): Likewise.
25414 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
25415 __libc_sigaction): Likewise.
25416 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
25417 not set hidden attribute.
25418 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
25419 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
25420 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
25421 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
25422 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
25423 __fxstatat64): Likewise.
25424 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25425 (__uname): Likewise.
25426 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25427 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
25428 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
25429 (NO_RTLD_HIDDEN): Set.
25430 * sysdeps/mach/hurd/configure: Refresh.
25431 * config.h.in: Refresh.
25432
25433 2017-10-02 Joseph Myers <joseph@codesourcery.com>
25434
25435 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
25436 (atan): Define using libm_alias_double.
25437 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
25438 (tan): Define using libm_alias_double.
25439 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
25440 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
25441
25442 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
25443 define as weak alias of __atan. Do not define any aliases if
25444 [__atan].
25445 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
25446 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
25447 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
25448 as weak alias of __tan. Do not define any aliases if [__tan].
25449 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
25450 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
25451 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
25452 __atan.
25453 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
25454 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
25455 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
25456 and define as weak alias of __atan.
25457 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
25458 __atan.
25459 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
25460 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
25461 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
25462 define as weak alias of __tan.
25463
25464 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25465
25466 * math/w_lgamma.c: New file.
25467 * math/w_lgammaf.c: New file.
25468 * math/w_lgammal.c: New file.
25469
25470 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25471
25472 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
25473 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
25474 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
25475 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
25476 * sysdeps/ieee754/flt-32/w_logf.c: New file.
25477 * sysdeps/ieee754/flt-32/w_powf.c: New file.
25478 * sysdeps/i386/fpu/w_log2f.c: New file.
25479 * sysdeps/i386/fpu/w_logf.c: New file.
25480 * sysdeps/i386/fpu/w_powf.c: New file.
25481 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
25482 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
25483 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
25484
25485 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25486 H.J. Lu <hongjiu.lu@intel.com>
25487
25488 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
25489 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
25490 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
25491 * sysdeps/ieee754/flt-32/w_expf.c: New file.
25492 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
25493 the new expf code.
25494 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
25495 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
25496 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
25497 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
25498 * sysdeps/i386/fpu/w_exp2f.c: New file.
25499 * sysdeps/i386/fpu/w_expf.c: New file.
25500 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
25501 * sysdeps/x86_64/fpu/w_expf.c: New file.
25502
25503 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25504
25505 * math/Versions (logf): New libm symbol at GLIBC_2.27.
25506 (log2f): Likewise.
25507 (powf): Likewise.
25508 * math/w_log2f.c: New file.
25509 * math/w_logf.c: New file.
25510 * math/w_powf.c: New file.
25511 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
25512 * math/w_logf_compat.c (__logf_compat): Likewise.
25513 * math/w_powf_compat.c (__powf_compat): Likewise.
25514 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
25515 * sysdeps/ia64/fpu/e_logf.S: Likewise.
25516 * sysdeps/ia64/fpu/e_powf.S: Likewise.
25517 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
25518 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25519 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25520 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25521 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25522 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25523 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25524 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25525 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25526 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25527 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25528 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25529 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25530 Likewise.
25531 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25532 Likewise.
25533 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25534 Likewise.
25535 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25536 Likewise.
25537 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25538 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25539 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25540 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25541 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25542 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25543 Likewise.
25544 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25545 Likewise.
25546 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25547 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25548 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25549
25550 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25551
25552 * sysdeps/powerpc/powerpc64/multiarch/Makefile
25553 (sysdep_routines): Add memrchr_power8.
25554 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
25555 (memrchr): Add __memrchr_power8 to list of memrchr functions.
25556 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
25557 New file.
25558 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25559 (memrchr): Add __memrchr_power8 to ifunc list.
25560 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
25561
25562 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25563
25564 [BZ #18822]
25565 * sysdeps/unix/sysv/linux/posix_fadvise64.c
25566 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
25567 libc_hidden_def.
25568 * sysdeps/unix/sysv/linux/posix_fallocate64.c
25569 (__posix_fallocate64_l64): Likewise.
25570
25571 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25572
25573 [BZ #18822]
25574 * sysdeps/unix/sysv/linux/sched_setaffinity.c
25575 (__sched_setaffinity_new): Add libc_hidden_proto and
25576 libc_hidden_def.
25577
25578 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25579
25580 [BZ #18822]
25581 * include/glob.h (__glob64): Add libc_hidden_proto.
25582 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
25583 libc_hidden_def.
25584
25585 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25586
25587 [BZ #18822]
25588 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
25589 attribute_hidden.
25590
25591 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25592
25593 [BZ #18822]
25594 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
25595
25596 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25597
25598 [BZ #18822]
25599 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
25600 libc_hidden_def.
25601
25602 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25603
25604 [BZ #18822]
25605 * csu/version.c (__libc_print_version): Add attribute_hidden.
25606
25607 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25608
25609 [BZ #18822]
25610 * include/libc-internal.h (__init_misc): Add attribute_hidden.
25611
25612 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25613
25614 [BZ #18822]
25615 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
25616
25617 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25618
25619 [BZ #18822]
25620 * nscd/nscd_helper.c (__nis_hash): New prototype.
25621
25622 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25623
25624 [BZ #18822]
25625 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
25626 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
25627 libc_hidden_def.
25628 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
25629 * termios/tcgetattr.c (__tcgetattr): Likewise.
25630
25631 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25632
25633 [BZ #18822]
25634 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
25635 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
25636 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
25637 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
25638 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
25639
25640 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25641
25642 [BZ #18822]
25643 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
25644
25645 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25646
25647 [BZ #18822]
25648 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
25649 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
25650
25651 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25652
25653 [BZ #18822]
25654 * intl/hash-string.h (__hash_string): Add attribute_hidden.
25655
25656 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25657
25658 [BZ #18822]
25659 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
25660 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
25661
25662 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25663
25664 [BZ #18822]
25665 * include/ifreq.h: New file.
25666 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
25667 (__ifreq): Likewise.
25668 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
25669 (__ifreq): Likewise.
25670
25671 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25672
25673 [BZ #18822]
25674 * include/idna.h: New file.
25675 * inet/getnameinfo.c: Include <idna.h> instead of
25676 <libidn/idna.h>.
25677 (__idna_to_unicode_lzlz): Removed.
25678 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
25679 <libidn/idna.h>.
25680 (__idna_to_ascii_lz): Removed.
25681 (__idna_to_unicode_lzlz): Likewise.
25682
25683 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25684
25685 [BZ #18822]
25686 * include/plural-exp.h: New file.
25687 * intl/plural-exp.c: Include <plural-exp.h> instead of
25688 "plural-exp.h".
25689
25690 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25691
25692 [BZ #18822]
25693 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
25694 "getsourcefilter.h".
25695 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
25696 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
25697 "getsourcefilter.h".
25698 (__get_sol): Removed.
25699
25700 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25701
25702 [BZ #18822]
25703 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
25704 to ...
25705 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
25706
25707 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25708
25709 [BZ #18822]
25710 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
25711 attribute_hidden.
25712
25713 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25714
25715 [BZ #18822]
25716 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
25717
25718 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25719
25720 [BZ #18822]
25721 * include/search.h (__tdestroy): Add libc_hidden_proto.
25722 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
25723
25724 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25725
25726 [BZ #18822]
25727 * include/assert.h (__assert_fail_base): Add attribute_hidden.
25728
25729 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25730
25731 [BZ #18822]
25732 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
25733 attribute_hidden.
25734
25735 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25736
25737 [BZ #18822]
25738 * include/signal.h (__kill): Add libc_hidden_proto.
25739 (__sigblock): Likewise.
25740 (__sigprocmask): Likewise.
25741 (__sigaltstack): Likewise.
25742 * signal/kill.c (__kill): Add libc_hidden_def.
25743 * signal/sigblock.c (__sigblock): Likewise.
25744 * signal/sigprocmask.c (__sigprocmask): Likewise.
25745 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
25746 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
25747 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
25748 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
25749 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
25750 Likewise.
25751 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
25752 Likewise.
25753 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
25754 (__sigprocmask): Likewise.
25755 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
25756 Likewise.
25757 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
25758 (__sigprocmask): Likewise.
25759 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
25760 Likewise.
25761
25762 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25763
25764 [BZ #18822]
25765 * include/string.h (__strsep): Add libc_hidden_proto.
25766 * string/strsep.c (__strsep): Add libc_hidden_def.
25767
25768 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25769
25770 [BZ #18822]
25771 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
25772 attribute_hidden.
25773 (__spawni): Likewise.
25774
25775 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25776
25777 [BZ #18822]
25778 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
25779 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
25780 libc_hidden_def.
25781
25782 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25783
25784 [BZ #18822]
25785 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
25786
25787 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25788
25789 [BZ #18822]
25790 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
25791 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
25792 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
25793 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
25794 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
25795 Likewise.
25796 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
25797 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
25798
25799 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25800
25801 [BZ #18822]
25802 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
25803 (__dcigettext): Likewise.
25804
25805 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25806
25807 [BZ #18822]
25808 * include/sys/sysinfo.h (__get_nprocs_conf): Add
25809 libc_hidden_proto.
25810 (__get_nprocs): Likewise.
25811 (__get_phys_pages): Likewise.
25812 (__get_avphys_pages): Likewise.
25813 (__get_child_max): Add attribute_hidden.
25814 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
25815 (__get_nprocs): Likewise.
25816 (__get_phys_pages): Likewise.
25817 (__get_avphys_pages): Likewise.
25818 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
25819 libc_hidden_def.
25820 (__get_nprocs): Likewise.
25821 (__get_phys_pages): Likewise.
25822 (__get_avphys_pages): Likewise.
25823 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
25824 libc_hidden_def.
25825 (__get_nprocs_conf): Likewise.
25826 (__get_phys_pages): Likewise.
25827 (__get_avphys_pages): Likewise.
25828
25829 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25830
25831 [BZ #18822]
25832 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
25833 attribute_hidden.
25834 (__netlink_close): Likewise.
25835 (__netlink_free_handle): Likewise.
25836 (__netlink_request): Likewise.
25837
25838 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25839
25840 [BZ #18822]
25841 * include/rpc/rpc.h (__rpc_thread_variables): Add
25842 attribute_hidden.
25843 (__rpc_thread_svc_cleanup): Likewise.
25844 (__rpc_thread_clnt_cleanup): Likewise.
25845 (__rpc_thread_key_cleanup): Likewise.
25846
25847 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25848
25849 [BZ #18822]
25850 * include/sys/uio.h (__readv): Add libc_hidden_proto.
25851 (__writev): Likewise.
25852 * misc/readv.c (__readv): Add libc_hidden_def.
25853 * misc/writev.c (__writev): Likewise.
25854 * sysdeps/posix/readv.c (__readv): Likewise.
25855 * sysdeps/posix/writev.c (__writev): Likewise.
25856 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
25857 (__readv): Likewise.
25858 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
25859 (__writev): Likewise.
25860
25861 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25862
25863 [BZ #18822]
25864 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
25865 (__regcomp): Add libc_hidden_proto.
25866 (__regexec): Likewise.
25867 (__regfree): Likewise.
25868 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
25869 (__regfree): Likewise.
25870 * posix/regexec.c (__regexec): Likewise.
25871
25872 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25873
25874 [BZ #18822]
25875 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
25876 (__getutent): Likewise.
25877 (__getutid): Likewise.
25878 (__getutline): Likewise.
25879 (__pututline): Likewise.
25880 (__getutent_r): Likewise.
25881 (__getutid_r): Likewise.
25882 (__getutline_r): Likewise.
25883 (__utmpname): Add attribute_hidden.
25884 (__setutent): Likewise.
25885 (__endutent): Likewise.
25886 * login/getutent.c (__getutent): Add libc_hidden_def.
25887 * login/getutent_r.c (__getutent_r): Likewise.
25888 (__pututline): Likewise.
25889 * login/getutid.c (__getutid): Likewise.
25890 * login/getutid_r.c (__getutid_r): Likewise.
25891 * login/getutline.c (__getutline): Likewise.
25892 * login/getutline_r.c (__getutline_r): Likewise.
25893 * login/updwtmp.c (__updwtmp): Likewise.
25894
25895 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25896
25897 [BZ #18822]
25898 * include/dirent.h (__opendir): Always add attribute_hidden.
25899 (__fdopendir): Likewise.
25900 (__closedir): Likewise.
25901 (__readdir): Likewise.
25902 (__readdir64): Add libc_hidden_proto.
25903 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
25904 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
25905 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
25906 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
25907 New alias.
25908
25909 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25910
25911 [BZ #18822]
25912 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
25913 * include/netdb.h (__gethostbyaddr_r): Likewise.
25914 (__gethostbyname_r): Likewise.
25915 (__gethostbyname2_r): Likewise.
25916 (__getnetbyaddr_r): Likewise.
25917 (__getnetbyname_r): Likewise.
25918 (__getservbyname_r): Likewise.
25919 (__getservbyport_r): Likewise.
25920 (__getprotobyname_r): Likewise.
25921 (__getprotobynumber_r): Likewise.
25922 (__getnetgrent_r): Likewise.
25923 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
25924 (__getrpcbynumber_r): Likewise.
25925 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
25926
25927 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25928
25929 [BZ #18822]
25930 * include/stdio.h (__fcloseall): Add attribute_hidden.
25931 (__getline): Likewise.
25932 (__path_search): Likewise.
25933 (__gen_tempname): Likewise.
25934 (__libc_message): Likewise.
25935 (__flockfile): Likewise.
25936 (__funlockfile): Likewise.
25937 (__fxprintf): Likewise.
25938 (__fxprintf_nocancel): Likewise.
25939
25940 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25941
25942 [BZ #18822]
25943 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
25944 (__sgetsgent_r): Likewise.
25945
25946 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25947
25948 [BZ #18822]
25949 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
25950 (__statfs64): Likewise.
25951 (__fstatfs64): Likewise.
25952 * include/sys/statvfs.h (__statvfs64): Likewise.
25953 (__fstatvfs64): Likewise.
25954 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
25955 (__statfs_filesize_max): Likewise.
25956 (__statfs_symlinks): Likewise.
25957 (__statfs_chown_restricted): Likewise.
25958
25959 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25960
25961 [BZ #18822]
25962 * include/time.h (__tzstring): Add attribute_hidden.
25963 (__tzfile_read): Likewise.
25964 (__tzfile_compute): Likewise.
25965 (__tzfile_default): Likewise.
25966 (__tzset_parse_tz): Likewise.
25967 (__offtime): Likewise.
25968 (__asctime_r): Likewise.
25969 (__tzset): Likewise.
25970 (__tz_convert): Likewise.
25971 (__getdate_r): Likewise.
25972 (__getclktck): Likewise.
25973
25974 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25975
25976 [BZ #18822]
25977 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
25978 (__nscd_unmap): Likewise.
25979 (__nscd_cache_search): Likewise.
25980 (__nscd_get_nl_timestamp): Likewise.
25981 (__nscd_getpwnam_r): Likewise.
25982 (__nscd_getpwuid_r): Likewise.
25983 (__nscd_getgrnam_r): Likewise.
25984 (__nscd_getgrgid_r): Likewise.
25985 (__nscd_gethostbyname_r): Likewise.
25986 (__nscd_gethostbyname2_r): Likewise.
25987 (__nscd_gethostbyaddr_r): Likewise.
25988 (__nscd_getai): Likewise.
25989 (__nscd_getgrouplist): Likewise.
25990 (__nscd_getservbyname_r): Likewise.
25991 (__nscd_getservbyport_r): Likewise.
25992 (__nscd_innetgr): Likewise.
25993 (__nscd_setnetgrent): Likewise.
25994
25995 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25996
25997 [BZ #18822]
25998 * include/gmp.h: Declare internal functions only if _ISOMAC is
25999 undefined.
26000 (__mpn_extract_double): Add attribute_hidden.
26001 (__mpn_extract_long_double): Likewise.
26002 (__mpn_extract_float128): Likewise.
26003 (__mpn_construct_float): Likewise.
26004 (__mpn_construct_double): Likewise.
26005 (__mpn_construct_long_double): Likewise.
26006 (__mpn_construct_float128): Likewise.
26007 (mpn_add_1): Likewise.
26008 (mpn_addmul_1): Likewise.
26009 (mpn_add_n): Likewise.
26010 (mpn_cmp): Likewise.
26011 (mpn_divrem): Likewise.
26012 (mpn_lshift): Likewise.
26013 (mpn_mul): Likewise.
26014 (mpn_mul_1): Likewise.
26015 (mpn_rshift): Likewise.
26016 (mpn_sub_1): Likewise.
26017 (mpn_submul_1): Likewise.
26018 (mpn_sub_n): Likewise.
26019
26020 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26021
26022 [BZ #18822]
26023 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26024 (__wcscat): Likewise.
26025 (__btowc): Likewise.
26026 (__wcrtomb): Likewise.
26027 (__mbsrtowcs): Likewise.
26028 (__wcsrtombs): Likewise.
26029 (__mbsnrtowcs): Likewise.
26030 (__wcsnrtombs): Likewise.
26031 (__wcsncpy): Likewise.
26032 (__wcpncpy): Likewise.
26033 (__wmemcpy): Likewise.
26034 (__wmempcpy): Likewise.
26035 (__wmemmove): Likewise.
26036 (__wcschrnul): Likewise.
26037 (__vfwscanf): Likewise.
26038 (__vswprintf): Likewise.
26039 (__fwprintf): Likewise.
26040 (__vfwprintf): Likewise.
26041
26042 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26043
26044 [BZ #18822]
26045 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26046 (__getgrgid_r): Likewise.
26047 (__getgrnam_r): Likewise.
26048 * include/pwd.h (__getpwuid_r): Likewise.
26049 (__getpwnam_r): Likewise.
26050 (__fgetpwent_r): Likewise.
26051 * include/shadow.h (__getspnam_r): Likewise.
26052 (__sgetspent_r): Likewise.
26053 (__fgetspent_r): Likewise.
26054
26055 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26056
26057 [BZ #18822]
26058 * include/unistd.h (__access): Add attribute_hidden.
26059 (__lseek64): Likewise.
26060 (__libc_pread64): Likewise.
26061 (__pipe2): Likewise.
26062 (__sleep): Likewise.
26063 (__chdir): Likewise.
26064 (__fchdir): Likewise.
26065 (__getcwd): Likewise.
26066 (__rmdir): Likewise.
26067 (__execvpe): Likewise.
26068 (__execve): Likewise.
26069 (__setsid): Likewise.
26070 (__getuid): Likewise.
26071 (__geteuid): Likewise.
26072 (__getgid): Likewise.
26073 (__getegid): Likewise.
26074 (__getgroups): Likewise.
26075 (__group_member): Likewise.
26076 (__ttyname_r): Likewise.
26077 (__isatty): Likewise.
26078 (__readlink): Likewise.
26079 (__unlink): Likewise.
26080 (__gethostname): Likewise.
26081 (__profil): Likewise.
26082 (__getdtablesize): Likewise.
26083 (__brk): Likewise.
26084 (__ftruncate): Likewise.
26085 (__ftruncate64): Likewise.
26086
26087 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26088
26089 [BZ #18822]
26090 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26091 * argp/argp-fs-xinl.c: Likewise.
26092 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26093 * argp/argp-parse.c: Include <argp.h>.
26094 * argp/argp-xinl.c: Likewise.
26095 * include/argp-fmtstream.h: New file.
26096 * include/argp.h (__argp_error): Add attribute_hidden.
26097 (__argp_failure): Likewise.
26098 (__argp_input): Likewise.
26099 (__argp_state_help): Likewise.
26100
26101 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26102
26103 [BZ #18822]
26104 * include/wchar.h (____wcstof_l_internal): New prototype.
26105 (____wcstod_l_internal): Likewise.
26106 (____wcstold_l_internal): Likewise.
26107 (____wcstol_l_internal): Likewise.
26108 (____wcstoul_l_internal): Likewise.
26109 (____wcstoll_l_internal): Likewise.
26110 (____wcstoull_l_internal): Likewise.
26111 (____wcstof128_l_internal): Likewise.
26112 * sysdeps/ieee754/float128/wcstof128.c
26113 (____wcstof128_l_internal): Removed.
26114 * sysdeps/ieee754/float128/wcstof128_l.c
26115 (____wcstof128_l_internal): Likewise.
26116 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26117 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26118 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26119 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26120 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26121 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26122 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26123 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26124 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26125 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26126
26127 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26128
26129 [BZ #18822]
26130 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26131 instead of <sys/statvfs.h>.
26132 (__internal_statvfs): Removed.
26133 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26134 instead of <sys/statvfs.h>.
26135 (__internal_statvfs64): Removed.
26136 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26137 "internal_statvfs.h" instead of <sys/statvfs.h>.
26138 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26139 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26140 instead of <sys/statvfs.h>.
26141 (__internal_statvfs): Removed.
26142 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26143 instead of <sys/statvfs.h>.
26144 (__internal_statvfs64): Removed.
26145
26146 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26147
26148 [BZ #18822]
26149 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26150 (__gconv_close): Likewise.
26151 (__gconv): Likewise.
26152 (__gconv_find_transform): Likewise.
26153 (__gconv_lookup_cache): Likewise.
26154 (__gconv_compare_alias_cache): Likewise.
26155 (__gconv_load_cache): Likewise.
26156 (__gconv_get_path): Likewise.
26157 (__gconv_close_transform): Likewise.
26158 (__gconv_release_cache): Likewise.
26159 (__gconv_find_shlib): Likewise.
26160 (__gconv_release_shlib): Likewise.
26161 (__gconv_get_builtin_trans): Likewise.
26162 (__gconv_compare_alias): Likewise.
26163 * include/dlfcn.h (_dlerror_run): Likewise.
26164 * include/stdio.h (__fortify_fail_abort): Likewise.
26165 * include/time.h (__tz_compute): Likewise.
26166 (__strptime_internal): Likewise.
26167 * intl/gettextP.h (_nl_find_domain): Likewise.
26168 (_nl_load_domain): Likewise.
26169 (_nl_find_msg): Likewise.
26170 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26171 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26172 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26173 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26174 (__gai_find_request): Likewise.
26175 (__gai_remove_request): Likewise.
26176 (__gai_notify): Likewise.
26177 (__gai_notify_only): Likewise.
26178 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26179 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26180 (_dl_non_dynamic_init): Likewise.
26181 (_dl_aux_init): Likewise.
26182 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26183 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26184 Likewise.
26185 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26186 (__wcsmbs_clone_conv): Likewise.
26187 (__wcsmbs_named_conv): Likewise.
26188
26189 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26190
26191 [BZ #18822]
26192 * include/stdlib.h (__random): Add attribute_hidden.
26193 (__random_r): Likewise.
26194 (__srandom_r): Likewise.
26195 (__initstate_r): Likewise.
26196 (__setstate_r): Likewise.
26197 (__erand48_r): Likewise.
26198 (__nrand48_r): Likewise.
26199 (__jrand48_r): Likewise.
26200 (__srand48_r): Likewise.
26201 (__seed48_r): Likewise.
26202 (__lcong48_r): Likewise.
26203 (__drand48_iterate): Likewise.
26204 (__setenv): Likewise.
26205 (__unsetenv): Likewise.
26206 (__clearenv): Likewise.
26207 (__ptsname_r): Likewise.
26208 (__posix_openpt): Likewise.
26209 (__add_to_environ): Likewise.
26210 (__realpath): Add libc_hidden_proto.
26211 (__ecvt_r): Likewise.
26212 (__fcvt_r): Likewise.
26213 (__qecvt_r): Likewise.
26214 (__qfcvt_r): Likewise.
26215 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26216 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26217
26218 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26219
26220 [BZ #18822]
26221 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26222 * include/time.h (__mktime_internal): Likewise.
26223 * libio/iolibio.h (__fopen_internal): Likewise.
26224
26225 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26226
26227 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26228 pointer in frame.
26229 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26230 Correct offset used to restore PIC register.
26231
26232 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26233
26234 [BZ libc/22165]
26235 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26236 code to load address of __getcontext_ret when generating PIC code.
26237
26238 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26239
26240 * elf/Makefile (tests-static-internal): Add
26241 tst-tls1-static-non-pie.
26242 (LDFLAGS-tst-tls1-static-non-pie): New.
26243 * elf/tst-tls1-static-non-pie.c: New file.
26244
26245 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26246
26247 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26248 (asinh): Define using libm_alias_double.
26249 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26250 (cbrt): Define using libm_alias_double.
26251 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26252 <libm-alias-double.h>.
26253 (copysign): Define using libm_alias_double.
26254 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26255 (erf): Define using libm_alias_double.
26256 (erfc): Likewise.
26257 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26258 (expm1): Define using libm_alias_double.
26259 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26260 (fabs): Define using libm_alias_double.
26261 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26262 libm_alias_double.
26263 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26264 <libm-alias-double.h>.
26265 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26266 libm_alias_double.
26267 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26268 <libm-alias-double.h>.
26269 (getpayload): Define using libm_alias_double.
26270 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26271 <libm-alias-double.h>.
26272 (llrint): Define using libm_alias_double.
26273 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26274 (lrint): Define using libm_alias_double.
26275 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26276 <libm-alias-double.h>.
26277 (nextup): Define using libm_alias_double.
26278 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26279 <libm-alias-double.h>.
26280 (roundeven): Define using libm_alias_double.
26281 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26282 libm_alias_double.
26283 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26284 <libm-alias-double.h>.
26285 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26286 using libm_alias_double.
26287 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26288 (cos): Define using libm_alias_double.
26289 (sin): Likewise.
26290 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26291 <libm-alias-double.h>.
26292 (sincos): Define using libm_alias_double.
26293 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26294 (tanh): Define using libm_alias_double.
26295 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26296 <libm-alias-double.h>.
26297 (totalorder): Define using libm_alias_double.
26298 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26299 <libm-alias-double.h>.
26300 (totalordermag): Define using libm_alias_double.
26301 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26302 libm_alias_double.
26303 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26304 libm_alias_double.
26305 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26306 <libm-alias-double.h>.
26307 (getpayload): Define using libm_alias_double.
26308 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26309 <libm-alias-double.h>.
26310 (roundeven): Define using libm_alias_double.
26311 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26312 <libm-alias-double.h>.
26313 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26314 <libm-alias-double.h>.
26315 (totalorder): Define using libm_alias_double.
26316 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
26317 <libm-alias-double.h>.
26318 (totalordermag): Define using libm_alias_double.
26319 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
26320 libc compat symbol here.
26321 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
26322 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26323 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26324 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26325 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26326 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26327 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26328 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26329 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26330 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26331
26332 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26333
26334 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26335 _dl_relocate_static_pie instead of _dl_start to compute load
26336 address in static PIE. Return 0 if _DYNAMIC is undefined for
26337 static executable.
26338
26339 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26340
26341 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
26342 _DYNAMIC is undefined for static executable.
26343
26344 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26345
26346 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
26347
26348 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26349
26350 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26351
26352 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26353
26354 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
26355 (__ieee754_lgamma_r): Use fabs rather than __fabs.
26356 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
26357 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
26358 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
26359 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
26360 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
26361 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
26362 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
26363 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26364 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
26365 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
26366 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26367 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26368 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
26369 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
26370 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
26371
26372 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26373
26374 * math/bits/cmathcalls.h (cimag): Remove inline.
26375 (creal): Remove inline.
26376 (conj): Remove inline.
26377
26378 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26379
26380 * math/Makefile (type-float-routines): Add e_powf_log2_data.
26381 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
26382 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
26383 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
26384 (issignalingf_inline): Likewise.
26385 (POWF_LOG2_TABLE_BITS): Likewise.
26386 (POWF_LOG2_POLY_ORDER): Likewise.
26387 (POWF_SCALE_BITS): Likewise.
26388 (POWF_SCALE): Likewise.
26389 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
26390 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
26391 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
26392
26393 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26394
26395 * math/Makefile (type-float-routines): Add e_log2f_data.
26396 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
26397 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
26398 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
26399 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
26400 * sysdeps/i386/fpu/e_log2f_data.c: New file.
26401 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
26402 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
26403
26404 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26405
26406 * math/Makefile (type-float-routines): Add e_logf_data.
26407 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
26408 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
26409 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
26410 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
26411 * sysdeps/i386/fpu/e_logf_data.c: New file.
26412 * sysdeps/ia64/fpu/e_logf_data.c: New file.
26413 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
26414
26415 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
26416
26417 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
26418 undefined _DYNAMIC in PIE libc.a.
26419 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26420 Likewse.
26421
26422 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26423
26424 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
26425 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
26426 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
26427 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
26428 (__signbit): Remove.
26429 (__signbitl): Remove.
26430 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
26431 (__signbit): Remove.
26432 (__signbitl): Remove.
26433 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
26434 (__signbit): Remove.
26435 (__signbitl): Remove.
26436 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
26437 (__signbit): Remove.
26438 (__signbitl): Remove.
26439 * sysdeps/tile/bits/mathinline.h: Delete file.
26440 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
26441 (__signbit): Remove.
26442 (__signbitl): Remove.
26443
26444 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26445
26446 * math/math.h: Improve handling of C99 isgreater macros.
26447 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
26448 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
26449 * sysdeps/powerpc/bits/mathinline.h: Likewise.
26450 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
26451 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
26452
26453 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
26454
26455 * sysdeps/aarch64/libm-test-ulps: Update.
26456
26457 2017-09-28 Joseph Myers <joseph@codesourcery.com>
26458
26459 [BZ #22225]
26460 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
26461 math_opt_barrier on argument when doing arithmetic on it.
26462 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
26463 Likewise. Use math_force_eval not math_opt_barrier after
26464 arithmetic.
26465 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
26466 math_opt_barrier on argument when doing arithmetic on it.
26467 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
26468 Likewise.
26469
26470 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
26471
26472 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
26473 libc_hidden_def.
26474 (__freeifaddrs): Likewise.
26475
26476 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
26477
26478 * include/dirent.h (__dirfd): New declaration.
26479 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
26480 alias.
26481 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
26482 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
26483 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
26484 * include/unistd.h (__revoke): New declaration.
26485 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
26486 alias.
26487 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
26488 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
26489 revoke.
26490 * include/dirent.h (__seekdir): New declaration.
26491 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
26492 redefine as weak alias.
26493 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
26494 of seekdir.
26495 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
26496 and use libc_hidden_def on them.
26497 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
26498 them.
26499 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
26500 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
26501 instead of getifaddrs and freeifaddrs.
26502
26503 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26504
26505 [BZ #18822]
26506 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
26507 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
26508 (__dso_handle): Remove declaration.
26509 * dlfcn/tstatexit.c (__dso_handle): Removed.
26510 (main): Don't check __dso_handle.
26511 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
26512 (main): Don't check __dso_handle.
26513 * include/dso_handle.h: New file.
26514 * malloc/mtrace.c: Include <dso_handle.h>.
26515 (mtrace): Pass __dso_handle directly.
26516 * nptl/pthread_atfork.c: Include <dso_handle.h>.
26517 (__dso_handle): Remove declaration.
26518 (__pthread_atfork): Pass __dso_handle directly.
26519 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
26520 (__dso_handle): Removed.
26521 * posix/wordexp-test.c: Include <dso_handle.h>.
26522 (__dso_handle): Remove declaration.
26523 (__app_register_atfork): Pass __dso_handle directly.
26524 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
26525 (__dso_handle): Remove declaration.
26526 (at_quick_exit): Pass __dso_handle directly.
26527 * stdlib/atexit.c: Include <dso_handle.h>.
26528 (__dso_handle): Remove declaration.
26529 (atexit): Pass __dso_handle directly.
26530 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
26531 (__dso_handle): Removed.
26532
26533 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26534
26535 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
26536 using VDSO.
26537
26538 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
26539
26540 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
26541 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
26542 values to correct default value for given type.
26543
26544 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26545
26546 [BZ #22101]
26547 * elf/Makefile (tests): Add tst-debug1.
26548 ($(objpfx)tst-debug1): New.
26549 ($(objpfx)tst-debug1.out): Likewise.
26550 ($(objpfx)tst-debug1mod1.so): Likewise.
26551 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
26552 with p_filesz == 0.
26553 * elf/tst-debug1.c: New file.
26554
26555 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26556
26557 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
26558 Define using __ifunc.
26559
26560 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26561
26562 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
26563 exp2f() values.
26564
26565 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26566
26567 [BZ #22156]
26568 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
26569
26570 2017-09-26 Florian Weimer <fweimer@redhat.com>
26571
26572 * resolv/Makefile (tests-internal): Fix typo in comment.
26573
26574 2017-09-26 Florian Weimer <fweimer@redhat.com>
26575
26576 * resolv/nss_dns/dns-host.c: Fix typo in comment.
26577
26578 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26579
26580 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
26581 Use an union instead of a max_align_t array for __space,
26582 so that __space is the same size on all platforms.
26583 * malloc/scratch_buffer_grow_preserve.c
26584 (__libc_scratch_buffer_grow_preserve): Likewise.
26585
26586 [BZ #22183]
26587 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
26588 version to 2.
26589 * posix/Makefile (routines): Add glob-lstat-compat and
26590 glob64-lstat-compat.
26591 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
26592 * posix/glob-lstat-compat.c: New file.
26593 * posix/glob64-lstat-compat.c: Likewise.
26594 * posix/tst-glob_lstat_compat.c: Likewise.
26595 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
26596 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
26597 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
26598 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
26599 Likewise.
26600 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
26601 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
26602 * posix/glob.c (glob_lstat): New function.
26603 (glob): Rename to __glob and add versioned symbol to 2.27.
26604 (glob_in_dir): Use glob_lstat.
26605 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
26606 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
26607 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
26608 2.27.
26609 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
26610 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
26611 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
26612 gl_lstat on glob call.
26613 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
26614 and glob64 symbols.
26615 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26616 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
26617 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
26618 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
26619 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
26620 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
26621 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
26622 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
26623 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
26624 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26625 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26626 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
26627 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
26628 Likewise.
26629 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
26630 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
26631 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26632 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26633 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
26634 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26635 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26636 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
26637 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
26638 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
26639 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
26640 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
26641
26642 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
26643
26644 * configure.ac (AS): Require binutils 2.25 or later.
26645 * configure: Regenerated.
26646
26647 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
26648
26649 [BZ #22207]
26650 * stdlib/test-atexit-race-common.c (do_test): Minimize required
26651 VM size.
26652
26653 2017-09-25 DJ Delorie <dj@redhat.com>
26654
26655 [BZ #22161]
26656 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
26657 resetting timeout.
26658
26659 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
26660
26661 * sysdeps/ieee754/dbl-64/sincos32.h
26662 [SINCCOS32_H]: Remove define.
26663 [SINCOS32_H]: Define.
26664
26665 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26666
26667 * math/Versions (expf): New libm symbol at GLIBC_2.27.
26668 (exp2f): Likewise.
26669 * math/w_exp2f.c: New file.
26670 * math/w_expf.c: New file.
26671 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
26672 * math/w_expf_compat.c (__expf_compat): Likewise.
26673 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
26674 * sysdeps/ia64/fpu/e_expf.S: Likewise.
26675 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26676 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26677 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26678 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26679 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26680 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26681 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26682 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26683 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26684 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26685 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26686 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26687 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26688 Likewise.
26689 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26690 Likewise.
26691 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26692 Likewise.
26693 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26694 Likewise.
26695 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26696 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26697 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26698 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26699 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26700 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26701 Likewise.
26702 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26703 Likewise.
26704 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26705 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26706 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26707
26708 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26709
26710 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
26711 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
26712 (roundtoint, converttoint): Likewise.
26713 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
26714 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
26715 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
26716 * sysdeps/ieee754/flt-32/math_config.h: New file.
26717 * sysdeps/ieee754/flt-32/math_errf.c: New file.
26718 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
26719 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
26720 * sysdeps/i386/fpu/math_errf.c: New file.
26721 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
26722 * sysdeps/ia64/fpu/math_errf.c: New file.
26723 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
26724 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
26725
26726 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
26727
26728 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
26729 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
26730 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
26731 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
26732 to make sure that these symbols are defined.
26733 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
26734 of <limits.h>
26735 (__need_NULL): Do not define.
26736 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
26737 alignment.
26738 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
26739 CMGROUP_MAX, cmsgcred): Do not define.
26740 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
26741 NULL.
26742 * bits/socket.h: Likewise.
26743 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
26744 __gettimeofday instead of gettimeofday.
26745 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
26746 instead of settimeofday.
26747
26748 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26749
26750 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
26751 (asinhf): Define using libm_alias_float.
26752 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
26753 (atanf): Define using libm_alias_float.
26754 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
26755 (cbrtf): Define using libm_alias_float.
26756 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
26757 (ceilf): Define using libm_alias_float.
26758 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
26759 <libm-alias-float.h>.
26760 (copysignf): Define using libm_alias_float.
26761 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
26762 (cosf): Define using libm_alias_float.
26763 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
26764 (erff): Define using libm_alias_float.
26765 (erfcf): Likewise.
26766 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
26767 (expm1f): Define using libm_alias_float.
26768 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
26769 (fabsf): Define using libm_alias_float.
26770 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
26771 (floorf): Define using libm_alias_float.
26772 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
26773 (frexpf): Define using libm_alias_float.
26774 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
26775 libm_alias_float.
26776 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
26777 <libm-alias-float.h>.
26778 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
26779 libm_alias_float.
26780 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
26781 <libm-alias-float.h>.
26782 (getpayloadf): Define using libm_alias_float.
26783 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
26784 <libm-alias-float.h>.
26785 (llrintf): Define using libm_alias_float.
26786 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
26787 <libm-alias-float.h>.
26788 (llroundf): Define using libm_alias_float.
26789 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
26790 (logbf): Define using libm_alias_float.
26791 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
26792 (lrintf): Define using libm_alias_float.
26793 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
26794 (lroundf): Define using libm_alias_float.
26795 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
26796 (modff): Define using libm_alias_float.
26797 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
26798 <libm-alias-float.h>.
26799 (nearbyintf): Define using libm_alias_float.
26800 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
26801 <libm-alias-float.h>.
26802 (nextafterf): Define using libm_alias_float.
26803 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
26804 <libm-alias-float.h>.
26805 (nextupf): Define using libm_alias_float.
26806 * sysdeps/ieee754/flt-32/s_remquof.c: Include
26807 <libm-alias-float.h>.
26808 (remquof): Define using libm_alias_float.
26809 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
26810 (rintf): Define using libm_alias_float.
26811 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
26812 <libm-alias-float.h>.
26813 (roundevenf): Define using libm_alias_float.
26814 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
26815 (roundf): Define using libm_alias_float.
26816 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
26817 using libm_alias_float.
26818 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
26819 <libm-alias-float.h>.
26820 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
26821 Define using libm_alias_float.
26822 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
26823 <libm-alias-float.h>.
26824 (sincosf): Define using libm_alias_float.
26825 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
26826 (sinf): Define using libm_alias_float.
26827 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
26828 (tanf): Define using libm_alias_float.
26829 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
26830 (tanhf): Define using libm_alias_float.
26831 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
26832 <libm-alias-float.h>.
26833 (totalorderf): Define using libm_alias_float.
26834 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
26835 <libm-alias-float.h>.
26836 (totalordermagf): Define using libm_alias_float.
26837 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
26838 (truncf): Define using libm_alias_float.
26839 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
26840 libm_alias_float.
26841 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
26842 libm_alias_float.
26843
26844 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26845
26846 [BZ #22146]
26847 math/math.h: Let fpclassify use the builtin in C++ mode, even
26848 when optimazing for size.
26849
26850 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26851
26852 * csu/Makefile (generated): Do not add version-info.h.
26853 (before-compile): Likewise.
26854 (all-Banner-files): Remove variable.
26855 ($(objpfx)version-info.h): Remove rule.
26856 * csu/version.c (banner): Do not include "version-info.h".
26857 * libidn/Banner: Remove.
26858 * manual/contrib.texi (Simon Josefsson): New entry.
26859
26860 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26861
26862 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
26863 Remove conditionals on LDBL_MANT_DIG.
26864 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26865 (__ieee754_lgammal_r): Likewise.
26866
26867 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26868
26869 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
26870 _Float128 and L().
26871 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
26872 _Float128 and L(). Replace _Float128 with long double and L(x)
26873 with xL, throughout the file.
26874 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26875 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26876 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26877 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26878
26879 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26880
26881 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
26882 sysdeps/ieee754/ldbl-128ibm.
26883 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
26884 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
26885 of including it. Keep _Float128 and L() intact. These will be
26886 reviewed by a separate patch.
26887 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26888 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26889 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26890 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26891
26892 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26893
26894 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
26895 (__finitef128): Define to __redirect___finitef128.
26896 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
26897 (__isinff128): Define to __redirect___isinff128.
26898 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
26899 (__isnanf128): Define to __redirect___isnanf128.
26900
26901 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26902
26903 * sysdeps/powerpc/powerpc64le/Makefile
26904 (CFLAGS-tst-strtod-nan-locale.c): New variable.
26905 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
26906
26907 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
26908 Carlos O'Donell <carlos@redhat.com>
26909
26910 [BZ #22180]
26911 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
26912 * stdlib/test-dlclose-exit-race.c: New file.
26913 * stdlib/test-dlclose-exit-race-helper.c: New file.
26914 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
26915
26916 2017-09-21 Joseph Myers <joseph@codesourcery.com>
26917
26918 * crypt/Banner: Remove file.
26919 * nptl/Banner: Likewise.
26920 * resolv/Banner: Likewise.
26921 * soft-fp/Banner: Likewise.
26922 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
26923 ($(objpfx)version.d): Remove dependency on banner.h.
26924 ($(objpfx)version.os): Likewise.
26925 * nptl/version.c (banner): Do not include banner.h.
26926 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
26927 Jelinek and BIND code.
26928
26929 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
26930 Carlos O'Donell <carlos@redhat.com>
26931
26932 * support/xdlfcn.h: New file.
26933 * support/xdlfcn.c: New file.
26934 * support/Makefile (libsupport-routines): Add xdlfcn.
26935 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
26936
26937 2017-09-20 Joseph Myers <joseph@codesourcery.com>
26938
26939 [BZ #20142]
26940 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26941 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
26942 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
26943 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
26944 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
26945 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
26946 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
26947 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
26948
26949 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
26950 Ricky Zhou <rickyz@google.com>
26951 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
26952
26953 [BZ #14333]
26954 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
26955 Remove atomics.
26956 (__new_exitfn): Fail registration when we finished at_exit processing.
26957 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
26958 * stdlib/on_exit.c (__on_exit): Likewise.
26959 * stdlib/exit.c (__exit_funcs_done): New variable.
26960 (__run_exit_handlers): Use __exit_funcs_lock.
26961 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
26962 declarations.
26963 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
26964 (test-cxa_atexit-race, test-on_exit-race): New tests.
26965 * stdlib/test-atexit-race-common.c: New file.
26966 * stdlib/test-atexit-race.c: New file.
26967 * stdlib/test-at_quick_exit-race.c: New file.
26968 * stdlib/test-cxa_atexit-race.c: New file.
26969 * stdlib/test-on_exit-race.c: New file.
26970
26971 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
26972
26973 * benchtests/Makefile: Add exp2f and log2f benchmarks.
26974 * benchtests/exp2f-inputs: Copy of expf-inputs.
26975 * benchtests/log2f-inputs: Copy of logf-inputs.
26976
26977 2017-09-19 Joseph Myers <joseph@codesourcery.com>
26978
26979 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
26980 Explicitly take address of first element of array arguments in
26981 call to INLINE_SYSCALL.
26982
26983 2017-09-19 Andreas Schwab <schwab@suse.de>
26984
26985 [BZ #22134]
26986 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
26987 execveat first.
26988 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
26989 unimplemented.
26990 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
26991 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
26992 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
26993 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
26994 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
26995 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
26996 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
26997 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
26998 * posix/Makefile (tests): Add tst-fexecve.
26999 * posix/tst-fexecve.c: New file.
27000
27001 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27002
27003 * benchtests/Makefile: Add logf benchmark.
27004 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27005
27006 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27007
27008 * benchtests/Makefile: Add expf benchmark.
27009 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27010
27011 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27012
27013 * csu/Makefile: Add -funwind-tables to libc-start.c.
27014 * debug/Makefile: Add -funwind-tables to backtrace.c.
27015 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27016 * sysdeps/arm/Makefile: Likewise.
27017 * sysdeps/i386/Makefile: Likewise.
27018 * sysdeps/m68k/Makefile: Likewise.
27019 * sysdeps/mips/Makefile: Likewise.
27020 * sysdeps/nios2/Makefile: Likewise.
27021 * sysdeps/sh/Makefile: Likewise.
27022 * sysdeps/sparc/Makefile: Likewise.
27023
27024 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27025
27026 * benchtests/Makefile (bench-math): Add trunc and truncf.
27027 (CFLAGS-bench-trunc.c): New variable.
27028 (CFLAGS-bench-truncf.c): Likewise.
27029 * benchtests/trunc-inputs: New file.
27030 * benchtests/truncf-inputs: Likewise.
27031
27032 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27033
27034 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27035
27036 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27037
27038 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27039 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27040 redefine.
27041 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27042 (exp10l): Define as weak alias.
27043 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27044 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27045 and redefine.
27046 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27047 (remainderl): Define as weak alias.
27048
27049 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27050 (fmal): Define using libm_alias_ldouble.
27051 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27052 (acoshl): Define using libm_alias_ldouble.
27053 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27054 (acosl): Define using libm_alias_ldouble.
27055 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27056 (asinl): Define using libm_alias_ldouble.
27057 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27058 (atan2l): Define using libm_alias_ldouble.
27059 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27060 (atanhl): Define using libm_alias_ldouble.
27061 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27062 (coshl): Define using libm_alias_ldouble.
27063 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27064 (exp10l): Define using libm_alias_ldouble.
27065 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27066 (exp2l): Define using libm_alias_ldouble.
27067 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27068 (expl): Define using libm_alias_ldouble.
27069 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27070 (fmodl): Define using libm_alias_ldouble.
27071 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27072 (hypotl): Define using libm_alias_ldouble.
27073 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27074 (j0l): Define using libm_alias_ldouble.
27075 (y0l): Likewise.
27076 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27077 (j1l): Define using libm_alias_ldouble.
27078 (y1l): Likewise.
27079 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27080 (jnl): Define using libm_alias_ldouble.
27081 (ynl): Likewise.
27082 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27083 (log10l): Define using libm_alias_ldouble.
27084 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27085 (log2l): Define using libm_alias_ldouble.
27086 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27087 (logl): Define using libm_alias_ldouble.
27088 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27089 (powl): Define using libm_alias_ldouble.
27090 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27091 (remainderl): Define using libm_alias_ldouble.
27092 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27093 (sinhl): Define using libm_alias_ldouble.
27094 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27095 (sqrtl): Define using libm_alias_ldouble.
27096 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27097 (tgammal): Define using libm_alias_ldouble.
27098 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27099 (exp10l): Do not use long_double_symbol here.
27100 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27101 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27102 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27103 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27104 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27105 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27106 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27107 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27108 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27109 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27110 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27111 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27112 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27113 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27114 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27115 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27116 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27117 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27118 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27119 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27120 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27121 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27122
27123 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27124
27125 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27126 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27127
27128 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27129
27130 * io/read.c (read): Add libc_hidden_weak.
27131 * sysdeps/mach/hurd/read.c (read): Likewise.
27132 * io/write.c (write): Likewise.
27133 * sysdeps/mach/hurd/write.c (write): Likewise.
27134 * io/pread64.c (__pread64): Likewise.
27135 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27136 * posix/pread64.c (__pread64): Add libc_hidden_def.
27137
27138 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27139
27140 * benchtests/scripts/compare_strings.py: New option -g.
27141 (draw_graph): Print a message that a graph is being generated.
27142 (process_results): Generate graph only if -g is passed.
27143 (main): Process option -g.
27144
27145 * benchtests/scripts/compare_strings.py (process_results):
27146 Better spacing for output.
27147
27148 * benchtests/scripts/compare_strings.py: Use argparse.
27149 * benchtests/README: Document existence of compare_strings.py.
27150
27151 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27152
27153 * math/s_fma.c: Include <libm-alias-double.h>.
27154 (fma): Define using libm_alias_double.
27155 * math/s_nextafter.c: Include <libm-alias-double.h>.
27156 (nextafter): Define using libm_alias_double.
27157 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27158 (acos): Define using libm_alias_double.
27159 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27160 (aocsh): Define using libm_alias_double.
27161 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27162 (asin): Define using libm_alias_double.
27163 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27164 (atan2): Define using libm_alias_double.
27165 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27166 (atanh): Define using libm_alias_double.
27167 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27168 (cosh): Define using libm_alias_double.
27169 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27170 (exp10): Define using libm_alias_double.
27171 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27172 (exp2): Define using libm_alias_double.
27173 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27174 (exp): Define using libm_alias_double.
27175 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27176 (fmod): Define using libm_alias_double.
27177 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27178 (hypot): Define using libm_alias_double.
27179 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27180 (j0): Define using libm_alias_double.
27181 (y0): Likewise.
27182 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27183 (j1): Define using libm_alias_double.
27184 (y1): Likewise.
27185 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27186 (jn): Define using libm_alias_double.
27187 (yn): Likewise.
27188 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27189 (log10): Define using libm_alias_double.
27190 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27191 (log2): Define using libm_alias_double.
27192 * math/w_log_compat.c: Include <libm-alias-double.h>.
27193 (log): Define using libm_alias_double.
27194 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27195 (pow): Define using libm_alias_double.
27196 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27197 (remainder): Define using libm_alias_double.
27198 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27199 (sinh): Define using libm_alias_double.
27200 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27201 (sqrt): Define using libm_alias_double.
27202 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27203 (tgamma): Define using libm_alias_double.
27204 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27205 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27206 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27207 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27208 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27209 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27210 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27211 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27212 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27213 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27214 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27215 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27216 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27217 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27218 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27219 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27220 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27221 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27222 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27223 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27224 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27225 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27226 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27227 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27228 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27229
27230 * math/e_acoshl.c: Remove.
27231 * math/e_acosl.c: Likewise.
27232 * math/e_asinl.c: Likewise.
27233 * math/e_atan2l.c: Likewise.
27234 * math/e_atanhl.c: Likewise.
27235 * math/e_coshl.c: Likewise.
27236 * math/e_expl.c: Likewise.
27237 * math/e_fmodl.c: Likewise.
27238 * math/e_gammal_r.c: Likewise.
27239 * math/e_hypotl.c: Likewise.
27240 * math/e_j0l.c: Likewise.
27241 * math/e_j1l.c: Likewise.
27242 * math/e_jnl.c: Likewise.
27243 * math/e_lgammal_r.c: Likewise.
27244 * math/e_log10l.c: Likewise.
27245 * math/e_log2l.c: Likewise.
27246 * math/e_logl.c: Likewise.
27247 * math/e_powl.c: Likewise.
27248 * math/e_rem_pio2l.c: Likewise.
27249 * math/e_sinhl.c: Likewise.
27250 * math/e_sqrtf128.c: Likewise.
27251 * math/e_sqrtl.c: Likewise.
27252 * math/k_cosl.c: Likewise.
27253 * math/k_sinl.c: Likewise.
27254 * math/k_tanl.c: Likewise.
27255 * math/s_asinhl.c: Likewise.
27256 * math/s_atanl.c: Likewise.
27257 * math/s_cbrtl.c: Likewise.
27258 * math/s_erfl.c: Likewise.
27259 * math/s_expm1l.c: Likewise.
27260 * math/s_log1pl.c: Likewise.
27261 * math/s_tanhl.c: Likewise.
27262
27263 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27264
27265 [BZ #21745]
27266 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27267 [$(subdir) = math] (sysdep_calls): New variable. Has the
27268 previous contents of sysdep_routines, but re-sorted..
27269 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27270 sysdep_calls.
27271 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27272 defined in sysdep_calls and replace by the respective m_* names.
27273 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27274 (compat_symbol): Undefine to avoid duplicated compat symbols in
27275 libc.
27276
27277 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27278
27279 * math/s_fmaf.c: Include <libm-alias-float.h>.
27280 (fmaf): Define using libm_alias_float.
27281 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27282 (acosf): Define using libm_alias_float.
27283 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27284 (acoshf): Define using libm_alias_float.
27285 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27286 (asinf): Define using libm_alias_float.
27287 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27288 (atan2f): Define using libm_alias_float.
27289 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27290 (atanhf): Define using libm_alias_float.
27291 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27292 (coshf): Define using libm_alias_float.
27293 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27294 (exp10f): Define using libm_alias_float.
27295 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27296 (fmodf): Define using libm_alias_float.
27297 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27298 (hypotf): Define using libm_alias_float.
27299 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27300 (j0f): Define using libm_alias_float.
27301 (y0f): Likewise.
27302 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27303 (j1f): Define using libm_alias_float.
27304 (y1f): Likewise.
27305 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27306 (jnf): Define using libm_alias_float.
27307 (ynf): Likewise.
27308 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27309 (log10f): Define using libm_alias_float.
27310 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27311 (log2f): Define using libm_alias_float.
27312 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27313 (logf): Define using libm_alias_float.
27314 * math/w_powf_compat.c: Include <libm-alias-float.h>.
27315 (powf): Define using libm_alias_float.
27316 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
27317 (remainderf): Define using libm_alias_float.
27318 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
27319 (sinhf): Define using libm_alias_float.
27320 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
27321 (sqrtf): Define using libm_alias_float.
27322 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27323 (tgammaf): Define using libm_alias_float.
27324
27325 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27326
27327 * include/math.h (roundeven): Change hidden_proto call to
27328 __roundeven.
27329 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27330 alias.
27331 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27332 (y0): Rename to __y0 and define as weak alias.
27333 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27334 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27335 alias.
27336 (y0f): Rename to __y0f and define as weak alias.
27337 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27338 alias.
27339 [NO_LONG_DOUBLE] (__j1l): New strong alias.
27340 (y1): Rename to __y1 and define as weak alias.
27341 [NO_LONG_DOUBLE] (__y1l): New strong alias.
27342 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
27343 alias.
27344 (y1f): Rename to __y1f and define as weak alias.
27345 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
27346 alias.
27347 [NO_LONG_DOUBLE] (__jnl): New strong alias.
27348 (yn): Rename to __yn and define as weak alias.
27349 [NO_LONG_DOUBLE] (__ynl): New strong alias.
27350 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
27351 alias.
27352 (ynf): Rename to __ynf and define as weak alias.
27353 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
27354 (fromfp): Define as weak alias.
27355 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
27356 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
27357 (fromfpx): Define as weak alias.
27358 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
27359 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
27360 __getpayload and define as weak alias.
27361 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27362 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
27363 __roundeven and define as weak alias.
27364 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27365 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
27366 __setpayload.
27367 (setpayload): Define as weak alias.
27368 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
27369 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
27370 __setpayloadsig.
27371 (setpayloadsig): Define as weak alias.
27372 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
27373 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
27374 __totalorder and define as weak alias.
27375 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27376 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
27377 to __totalordermag and define as weak alias.
27378 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27379 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
27380 (ufromfp): Define as weak alias.
27381 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
27382 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
27383 __ufromfpx.
27384 (ufromfpx): Define as weak alias.
27385 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
27386 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
27387 Rename to __getpayload and define as weak alias.
27388 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27389 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
27390 Rename to __roundeven and define as weak alias.
27391 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27392 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
27393 Rename to __totalorder and define as weak alias.
27394 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27395 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
27396 (totalordermag): Rename to __totalordermag and define as weak
27397 alias.
27398 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27399 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
27400 macro.
27401 (__roundevenl): Likewise.
27402 (__totalorderl): Likewise.
27403 (__totalordermagl): Likewise
27404 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
27405 __fromfpf128.
27406 (fromfpf128): Define as weak alias.
27407 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
27408 __fromfpxf128.
27409 (fromfpxf128): Define as weak alias.
27410 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
27411 __setpayloadf128.
27412 (setpayloadf128): Define as weak alias.
27413 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
27414 __setpayloadsigf128.
27415 (setpayloadsigf128): Define as weak alias.
27416 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
27417 __ufromfpf128.
27418 (ufromfpf128): Define as weak alias.
27419 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
27420 __ufromfpxf128.
27421 (ufromfpxf128): Define as weak alias.
27422 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
27423 (fromfpf): Define as weak alias.
27424 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
27425 __fromfpxf.
27426 (fromfpxf): Define as weak alias.
27427 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
27428 __getpayloadf and define as weak alias.
27429 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
27430 __roundevenf and define as weak alias.
27431 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
27432 __setpayloadf.
27433 (setpayloadf): Define as weak alias.
27434 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
27435 __setpayloadsigf.
27436 (setpayloadsigf): Define as weak alias.
27437 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
27438 __totalorderf and define as weak alias.
27439 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
27440 Rename to __totalordermagf and define as weak alias.
27441 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
27442 __ufromfpf.
27443 (ufromfpf): Define as weak alias.
27444 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
27445 __ufromfpxf.
27446 (ufromfpxf): Define as weak alias.
27447 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
27448 __fromfpl.
27449 (fromfpl): Define as weak alias.
27450 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
27451 __fromfpxl.
27452 (fromfpxl): Define as weak alias.
27453 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
27454 to __getpayloadl and define as weak alias.
27455 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
27456 __roundevenl and define as weak alias.
27457 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
27458 __setpayloadl.
27459 (setpayloadl): Define as weak alias.
27460 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
27461 __setpayloadsigl.
27462 (setpayloadsigl): Define as weak alias.
27463 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
27464 to __totalorderl and define as weak alias.
27465 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
27466 Rename to __totalordermagl and define as weak alias.
27467 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
27468 __ufromfpl.
27469 (ufromfpl): Define as weak alias.
27470 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
27471 __ufromfpxl.
27472 (ufromfpxl): Define as weak alias.
27473 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
27474 __fromfpl.
27475 (fromfpl): Define as weak alias.
27476 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
27477 __fromfpxl.
27478 (fromfpxl): Define as weak alias.
27479 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
27480 Rename to __getpayloadl and define as weak alias.
27481 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
27482 to __roundevenl and define as weak alias. Call __roundeven
27483 instead of roundeven.
27484 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
27485 __setpayloadl.
27486 (setpayloadl): Define as weak alias.
27487 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
27488 __setpayloadsigl.
27489 (setpayloadsigl): Define as weak alias.
27490 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
27491 Rename to __totalorderl and define as weak alias.
27492 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
27493 Rename to __totalordermagl and define as weak alias.
27494 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
27495 __ufromfpl.
27496 (ufromfpl): Define as weak alias.
27497 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
27498 __ufromfpxl.
27499 (ufromfpxl): Define as weak alias.
27500 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
27501 __fromfpl.
27502 (fromfpl): Define as weak alias.
27503 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
27504 __fromfpxl.
27505 (fromfpxl): Define as weak alias.
27506 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
27507 __getpayloadl and define as weak alias.
27508 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
27509 __roundevenl and define as weak alias.
27510 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
27511 __setpayloadl.
27512 (setpayloadl): Define as weak alias.
27513 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
27514 __setpayloadsigl.
27515 (setpayloadsigl): Define as weak alias.
27516 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
27517 __totalorderl and define as weak alias.
27518 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
27519 Rename to __totalordermagl and define as weak alias.
27520 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
27521 __ufromfpl.
27522 (ufromfpl): Define as weak alias.
27523 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
27524 __ufromfpxl.
27525 (ufromfpxl): Define as weak alias.
27526
27527 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
27528
27529 * benchtests/bench-string.h (realloc_bufs): New function.
27530 (test_init): Call it.
27531 * benchtests/bench-memset-large.c (do_test): Likewise.
27532 * benchtests/bench-memset.c (do_test): Likewise.
27533
27534 * benchtests/bench-memset-large.c: Print output in JSON
27535 format.
27536 * benchtests/bench-memset.c: Likewise.
27537
27538 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27539
27540 [BZ #21084]
27541 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
27542 * iconvdata/Makefile: Add IBM858.
27543 * iconvdata/gconv-modules: Likewise.
27544 * iconvdata/tst-tables.sh: Likewise.
27545 * iconvdata/ibm858.c: New file.
27546 * localedata/charmaps/IBM858: Likewise.
27547
27548 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
27549
27550 [BZ #22023]
27551 * locales/niu_NZ (LC_TIME): copy "niu_NU".
27552 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
27553
27554 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27555
27556 [BZ #22112]
27557 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
27558 and add tel_int_fmt.
27559
27560 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27561
27562 * sysdeps/generic/libm-alias-float128.h: New file.
27563 * sysdeps/generic/math-type-macros-float128.h: Include
27564 <libm-alias-float128.h>.
27565 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27566
27567 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27568
27569 * sysdeps/generic/libm-alias-ldouble.h: New file.
27570 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
27571 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
27572 * sysdeps/generic/math-type-macros-ldouble.h: Include
27573 <libm-alias-ldouble.h>.
27574 [!declare_mgen_alias] (declare_mgen_alias): Define to use
27575 libm_alias_ldouble.
27576
27577 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
27578
27579 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
27580 * math/w_exp_compat.c: ... here.
27581 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
27582 * math/w_expf_compat.c: ... here.
27583 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
27584 * math/w_expl_compat.c: ... here.
27585 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
27586 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
27587 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
27588 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27589
27590 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27591
27592 * math/w_scalbln_template.c (strong_alias): Do not undefine and
27593 redefine.
27594 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
27595 macro.
27596 (ldexpl): Only define as compat symbol for libc, not libm.
27597 (scalbnl): Define as compat symbol for libc here.
27598 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
27599 define for [IS_IN (libc)].
27600 (__ldexpl_2): Remove alias.
27601 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
27602 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
27603 name in long_double_symbol call.
27604 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
27605 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
27606 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
27607 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
27608 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
27609 Remove macro.
27610 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
27611 Define as compat symbol.
27612
27613 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27614
27615 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
27616 * sysdeps/unix/sysv/linux/alpha/Makefile
27617 [$(subdir) = csu] (sysdep_routines): Remove rule.
27618
27619 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27620
27621 * sysdeps/generic/libm-alias-double.h: New file.
27622 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
27623 * sysdeps/generic/math-type-macros-double.h: Include
27624 <libm-alias-double.h>.
27625 [declare_mgen_alias] (declare_mgen_alias): Define to use
27626 libm_alias_double.
27627 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
27628 (M_LIBM_NEED_COMPAT): Remove macro.
27629 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
27630 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
27631 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
27632 code.
27633 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27634 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27635 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27636 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27637 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27638 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27639 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27640 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27641 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27642 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27643 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27644 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27645 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27646 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27647 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27648 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27649 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27650 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27651 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27652 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27653 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27654 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27655 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27656 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27657 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27658 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27659 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27660 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
27661 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
27662 macro.
27663 (declare_mgen_alias): New macro.
27664 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
27665 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
27666 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
27667 (M_LIBM_NEED_COMPAT): Remove macro.
27668 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
27669 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
27670 <first-versions.h>.
27671 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
27672 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
27673
27674 2017-09-12 Joseph Myers <joseph@codesourcery.com>
27675
27676 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
27677 (declare_mgen_alias_2): Remove.
27678 * sysdeps/generic/math-type-macros-double.h
27679 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
27680 Likewise.
27681 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
27682 alias.
27683 (ldexp): Define with declare_mgen_alias.
27684 (scalbn): Likewise.
27685
27686 2017-09-12 Steve Ellcey <sellcey@cavium.com>
27687
27688 * grp/initgroups.c: Include config.h.
27689 (DEFAULT_CONFIG): New macro.
27690 (internal_getgrouplist): Use DEFAULT_CONFIG.
27691 * nscd/initgrcache.c (addinitgroupsX): Likewise.
27692 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
27693 (DEFAULT_DEFCONFIG): New macro.
27694 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
27695 * nss/grp-lookup.c: Include config.h
27696 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
27697 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
27698 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
27699 * manual/nss.texi: Update default values section.
27700
27701 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
27702
27703 [BZ #21967]
27704 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
27705 New.
27706 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
27707 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27708 Handle MathVec_Prefer_No_AVX512.
27709 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
27710 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
27711 is set.
27712
27713 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
27714
27715 * posix/sched_primax.c (__sched_get_priority_max): Add
27716 libc_hidden_def.
27717 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
27718 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
27719 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
27720 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
27721 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
27722 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
27723 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
27724 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
27725 Add aliases.
27726
27727 2017-09-11 Joseph Myers <joseph@codesourcery.com>
27728
27729 * sysdeps/generic/libm-alias-float.h: New file.
27730 * sysdeps/generic/math-type-macros-float.h: Include
27731 <libm-alias-float.h>.
27732 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27733
27734 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
27735
27736 [BZ #22093]
27737 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
27738 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
27739 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
27740 (HWCAP_IMPORTANT): Likewise.
27741 (HWCAP_X86_64): New enum.
27742 (HWCAP_X86_AVX512_1): Updated.
27743 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
27744 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
27745 (modules-names): Add x86_64/tst-x86_64mod-1.
27746 (LDFLAGS-tst-x86_64mod-1.so): New.
27747 ($(objpfx)tst-x86_64-1): Likewise.
27748 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
27749 (tst-x86_64-1-clean): Likewise.
27750 * sysdeps/x86_64/tst-x86_64-1.c: New file.
27751 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
27752
27753 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
27754
27755 * po/sv.po: Update translations.
27756 * po/fr.po: Likewise.
27757
27758 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
27759
27760 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
27761 seconds.
27762 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
27763 seconds.
27764 * elf/rtld-Rules: Fix $(error) use.
27765
27766 2017-09-09 Mike FABIAN <mfabian@redhat.com>
27767
27768 [BZ #14925]
27769 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
27770 * locale/iso-639.def: Change “Bengali” to “Bangla”.
27771 * localedata/locales/bn_BD: “Bengali” was still used in some
27772 comments. Change it to “Bangla”.
27773
27774 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
27775
27776 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
27777
27778 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27779
27780 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
27781 thunderx2t99p1 to list of cpu names.
27782 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
27783 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
27784
27785 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27786
27787 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
27788 Use strcmp instead of tunable_is_name.
27789
27790 2017-09-08 Joseph Myers <joseph@codesourcery.com>
27791
27792 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27793 (F_GET_RW_HINT): New macro.
27794 [__USE_GNU] (F_SET_RW_HINT): Likewise.
27795 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
27796 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
27797 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
27798 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
27799 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
27800 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
27801 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
27802 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
27803
27804 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27805 (F_ADD_SEALS): New macro.
27806 [__USE_GNU] (F_GET_SEALS): Likewise.
27807 [__USE_GNU] (F_SEAL_SEAL): Likewise.
27808 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
27809 [__USE_GNU] (F_SEAL_GROW): Likewise.
27810 [__USE_GNU] (F_SEAL_WRITE): Likewise.
27811
27812 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27813
27814 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
27815 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
27816 * posix/glob_internal.h (__glob_pattern_type):
27817 * posix/glob.c (glob):
27818 * posix/glob_pattern_p.c (__glob_pattern_p):
27819 Use them.
27820
27821 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
27822 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
27823 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
27824 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
27825 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27826 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
27827 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
27828 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
27829 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27830 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
27831 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27832 * sysdeps/wordsize-64/glob.c: Likewise.
27833 * sysdeps/wordsize-64/glob64.c: Likewise.
27834 * sysdeps/wordsize-64/globfree.c: Likewise.
27835 * sysdeps/wordsize-64/globfree64.c: Likewise.
27836 * sysdeps/unix/sysv/linux/glob.c: New file.
27837 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
27838 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
27839 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
27840 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27841 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
27842 adds !GLOB_NO_OLD_VERSION as an extra condition.
27843 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
27844 using relative path instead of absolute one.
27845 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
27846 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
27847 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
27848 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
27849 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
27850 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
27851
27852 [BZ #1062]
27853 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
27854 (glob): Use the same scratch buffer for both getlogin_r and
27855 getpwnam_r. Don’t require preallocation of the login name. This
27856 simplifies storage allocation, and corrects the handling of
27857 long login names.
27858
27859 [BZ #1062]
27860 * posix/glob.c (glob): Port recent patches to platforms
27861 lacking getpwnam_r.
27862 (glob): Fix longstanding misuse of errno after getpwnam_r, which
27863 returns an error number rather than setting errno.
27864
27865 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
27866 instead of GCC extension.
27867 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
27868 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
27869 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
27870
27871 [BZ #866]
27872 [BZ #1062]
27873 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
27874 * posix/bug-glob1.c: Remove file.
27875 * posix/tst-glob_symlinks.c: New file.
27876 * posix/glob.c (__lstat64): New macro.
27877 (is_dir): New function.
27878 (glob, glob_in_dir): Match symlinks even if they are dangling.
27879 (link_stat, link_exists_p): Remove. All uses removed.
27880
27881 [BZ #1062]
27882 [BZ #19971]
27883 * posix/glob.c (struct readdir_result): Remove skip_entry member.
27884 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
27885 All uses removed.
27886
27887 [BZ #1062]
27888 CVE-2017-15671
27889 * posix/Makefile (routines): Add globfree, globfree64, and
27890 glob_pattern_p.
27891 * posix/flexmember.h: New file.
27892 * posix/glob_internal.h: Likewise.
27893 * posix/glob_pattern_p.c: Likewise.
27894 * posix/globfree.c: Likewise.
27895 * posix/globfree64.c: Likewise.
27896 * sysdeps/gnu/globfree64.c: Likewise.
27897 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
27898 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27899 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
27900 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27901 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27902 * sysdeps/wordsize-64/globfree.c: Likewise.
27903 * sysdeps/wordsize-64/globfree64.c: Likewise.
27904 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
27905 [NDEBUG): Remove comments.
27906 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
27907 (dirent_type): New type. Use uint_fast8_t not
27908 uint8_t, as C99 does not require uint8_t.
27909 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
27910 (struct readdir_result): Use dirent_type. Do not define skip_entry
27911 unless it is needed; this saves a byte on platforms lacking d_ino.
27912 (readdir_result_type, readdir_result_skip_entry):
27913 New functions, replacing ...
27914 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
27915 these functions, which were removed. This makes the callers
27916 easier to read. All callers changed.
27917 (D_INO_TO_RESULT): Now empty if there is no d_ino.
27918 (size_add_wrapv, glob_use_alloca): New static functions.
27919 (glob, glob_in_dir): Check for size_t overflow in several places,
27920 and fix some size_t checks that were not quite right.
27921 Remove old code using SHELL since Bash no longer
27922 uses this.
27923 (glob, prefix_array): Separate MS code better.
27924 (glob_in_dir): Remove old Amiga and VMS code.
27925 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
27926 separate files.
27927 (glob_in_dir): Do not rely on undefined behavior in accessing
27928 struct members beyond their bounds. Use a flexible array member
27929 instead
27930 (link_stat): Rename from link_exists2_p and return -1/0 instead of
27931 0/1. Caller changed.
27932 (glob): Fix memory leaks.
27933 * posix/glob64 (globfree64): Move to separate file.
27934 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
27935 (globfree64): Remove hidden alias.
27936 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
27937 oldglob.
27938 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
27939 separate file.
27940 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
27941 define.
27942 Move compat code to separate file.
27943 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
27944 separate file.
27945
27946 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
27947
27948 * resolv/tst-resolv-qtypes.c (domain): Changed to
27949 "const char domain[] =".
27950
27951 2017-09-07 Joseph Myers <joseph@codesourcery.com>
27952
27953 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
27954 version to 3.1.6.
27955
27956 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
27957 (TCP_MD5SIG_EXT): Likewise.
27958 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
27959 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
27960 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
27961
27962 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
27963
27964 2017-09-07 Mike FABIAN <mfabian@redhat.com>
27965
27966 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
27967
27968 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
27969
27970 [BZ #22100]
27971 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
27972
27973 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
27974
27975 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
27976 before assuming that the file is empty. Avoid testing buffer content
27977 when nread == 0.
27978
27979 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27980
27981 [BZ #18858]
27982 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
27983 Remove define.
27984 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
27985 Likewise.
27986 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
27987 Likewise.
27988 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
27989 Likewise.
27990 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
27991 Likewise.
27992 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
27993 Likewise.
27994 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
27995 Likewise.
27996
27997 2017-09-06 Florian Weimer <fweimer@redhat.com>
27998
27999 * malloc/dynarray_emplace_enlarge.c
28000 (__libc_dynarray_emplace_enlarge): Add missing else.
28001
28002 2017-09-06 Florian Weimer <fweimer@redhat.com>
28003
28004 [BZ #22096]
28005 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28006 case of failure to obtain the global conf object.
28007
28008 2017-09-06 Florian Weimer <fweimer@redhat.com>
28009
28010 [BZ #22095]
28011 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28012 dynarray allocation failure.
28013
28014 2017-09-06 Florian Weimer <fweimer@redhat.com>
28015
28016 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28017 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28018 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28019 New functions.
28020 (response): Call them. Add 'p', '6' flag processing.
28021 (test_reverse): New function.
28022 (test_get2_any): Call it.
28023 (test_no_inet6): Add 'p' test.
28024 (test_inet6): Likewise.
28025
28026 2017-09-06 Florian Weimer <fweimer@redhat.com>
28027
28028 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28029 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28030 the QNAME.
28031 (test_gai): Adjust query names. Add additional tests.
28032 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28033 test_get2. Adjust query names. Add additional tests.
28034 (test_no_inet6): New function, extracted from threadfunc.
28035 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28036 Add additional tests.
28037
28038 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28039
28040 [BZ #22070]
28041 * localedata/unicode-gen/utf8_gen.py: Set the width for
28042 characters with Prepended_Concatenation_Mark property to 1
28043 * localedata/charmaps/UTF-8: Updated using the improved script.
28044
28045 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28046
28047 [BZ #21750]
28048 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28049 use the range notation for all ranges of neighbouring characters
28050 with the same width.
28051
28052 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28053
28054 * sysdeps/generic/math-type-macros-double.h: Include
28055 <math-svid-compat.h>.
28056 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28057 * sysdeps/generic/math-type-macros-float.h: Include
28058 <math-svid-compat.h>.
28059 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28060 * sysdeps/generic/math-type-macros-ldouble.h: Include
28061 <math-svid-compat.h>.
28062 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28063 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28064 condition.
28065 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28066 * math/w_acosf_compat.c: Likewise.
28067 * math/w_acosh_compat.c: Likewise.
28068 * math/w_acoshf_compat.c: Likewise.
28069 * math/w_acoshl_compat.c: Likewise.
28070 * math/w_acosl_compat.c: Likewise.
28071 * math/w_asin_compat.c: Likewise.
28072 * math/w_asinf_compat.c: Likewise.
28073 * math/w_asinl_compat.c: Likewise.
28074 * math/w_atan2_compat.c: Likewise.
28075 * math/w_atan2f_compat.c: Likewise.
28076 * math/w_atan2l_compat.c: Likewise.
28077 * math/w_atanh_compat.c: Likewise.
28078 * math/w_atanhf_compat.c: Likewise.
28079 * math/w_atanhl_compat.c: Likewise.
28080 * math/w_cosh_compat.c: Likewise.
28081 * math/w_coshf_compat.c: Likewise.
28082 * math/w_coshl_compat.c: Likewise.
28083 * math/w_exp10_compat.c: Likewise.
28084 * math/w_exp10f_compat.c: Likewise.
28085 * math/w_exp10l_compat.c: Likewise.
28086 * math/w_exp2_compat.c: Likewise.
28087 * math/w_exp2f_compat.c: Likewise.
28088 * math/w_exp2l_compat.c: Likewise.
28089 * math/w_fmod_compat.c: Likewise.
28090 * math/w_fmodf_compat.c: Likewise.
28091 * math/w_fmodl_compat.c: Likewise.
28092 * math/w_hypot_compat.c: Likewise.
28093 * math/w_hypotf_compat.c: Likewise.
28094 * math/w_hypotl_compat.c: Likewise.
28095 * math/w_j0_compat.c: Likewise.
28096 * math/w_j0f_compat.c: Likewise.
28097 * math/w_j0l_compat.c: Likewise.
28098 * math/w_j1_compat.c: Likewise.
28099 * math/w_j1f_compat.c: Likewise.
28100 * math/w_j1l_compat.c: Likewise.
28101 * math/w_jn_compat.c: Likewise.
28102 * math/w_jnf_compat.c: Likewise.
28103 * math/w_jnl_compat.c: Likewise.
28104 * math/w_lgamma_r_compat.c: Likewise.
28105 * math/w_lgammaf_r_compat.c: Likewise.
28106 * math/w_lgammal_r_compat.c: Likewise.
28107 * math/w_log10_compat.c: Likewise.
28108 * math/w_log10f_compat.c: Likewise.
28109 * math/w_log10l_compat.c: Likewise.
28110 * math/w_log2_compat.c: Likewise.
28111 * math/w_log2f_compat.c: Likewise.
28112 * math/w_log2l_compat.c: Likewise.
28113 * math/w_log_compat.c: Likewise.
28114 * math/w_logf_compat.c: Likewise.
28115 * math/w_logl_compat.c: Likewise.
28116 * math/w_pow_compat.c: Likewise.
28117 * math/w_powf_compat.c: Likewise.
28118 * math/w_powl_compat.c: Likewise.
28119 * math/w_remainder_compat.c: Likewise.
28120 * math/w_remainderf_compat.c: Likewise.
28121 * math/w_remainderl_compat.c: Likewise.
28122 * math/w_sinh_compat.c: Likewise.
28123 * math/w_sinhf_compat.c: Likewise.
28124 * math/w_sinhl_compat.c: Likewise.
28125 * math/w_sqrt_compat.c: Likewise.
28126 * math/w_sqrtf_compat.c: Likewise.
28127 * math/w_sqrtl_compat.c: Likewise.
28128 * math/w_tgamma_compat.c: Likewise.
28129 * math/w_tgammaf_compat.c: Likewise.
28130 * math/w_tgammal_compat.c: Likewise.
28131 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28132 [LIBM_SVID_COMPAT].
28133 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28134 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28135 [LIBM_SVID_COMPAT].
28136 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28137 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28138 [LIBM_SVID_COMPAT].
28139 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28140 * sysdeps/i386/fpu/w_sqrt.c: New file.
28141 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28142 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28143 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28144 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28145 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28146 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28147 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28148 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28149 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28150 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28151 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28152 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28153 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28154 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28155 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28156 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28157 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28158 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28159 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28160 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28161 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28162 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28163 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28164 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28165 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28166 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28167 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28168 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28169 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28170 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28171 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28172 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28173 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28174 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28175 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28176 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28177 * sysdeps/ia64/fpu/w_log.c: Likewise.
28178 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28179 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28180 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28181 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28182 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28183 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28184 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28185 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28186 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28187 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28188 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28189 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28190 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28191 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28192 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28193 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28194 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28195 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28196 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28197 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28198 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28199 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28200 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28201 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28202 [LIBM_SVID_COMPAT].
28203 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28204 * sysdeps/ieee754/k_standard.c: Likewise.
28205 * sysdeps/ieee754/k_standardf.c: Likewise.
28206 * sysdeps/ieee754/k_standardl.c: Likewise.
28207 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28208 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28209 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28210 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28211 long_double_symbol call on [LIBM_SVID_COMPAT].
28212 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28213 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28214 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28215 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28216 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28217 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28218 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28219 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28220 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28221 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28222 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28223 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28224 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28225 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28226 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28227 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28228 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28229 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28230 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28231 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28232 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28233 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28234
28235 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28236
28237 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28238 * malloc/tst-mallocstate.c: Convert from test-skeleton
28239 to test-driver. Ifdef code using TEST_COMPAT macro.
28240 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28241 * math/test-matherr.c: Likewise.
28242
28243 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28244
28245 [BZ #22086]
28246 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28247 comparing word with byte-swapped constant.
28248
28249 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28250
28251 [BZ #20498]
28252 * locale/iso-639.def: add Miskito.
28253 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28254 * localedata/locales/miq_NI: New file.
28255
28256 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28257
28258 [BZ #18822]
28259 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28260 (__mkdir): Likewise.
28261 * io/chmod.c (__chmod): Add libc_hidden_def.
28262 * io/mkdir.c (__mkdir): Likewise.
28263 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28264 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28265 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28266 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28267
28268 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28269
28270 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28271 version to 4.13.
28272
28273 [BZ #22082]
28274 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28275 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28276
28277 2017-09-04 Florian Weimer <fweimer@redhat.com>
28278
28279 * math/math.h: Issue warning if log is defined.
28280
28281 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28282
28283 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28284 kernel version to 4.13.
28285
28286 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28287
28288 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28289 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28290 parameter.
28291 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28292 just <bits/types.h>.
28293 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28294 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28295 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28296 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28297 * misc/preadv2.c: Include <errno.h>.
28298 * misc/preadv64v2.c: Include <errno.h>.
28299 * misc/pwritev2.c: Include <errno.h>.
28300 * misc/pwritev64v2.c: Include <errno.h>.
28301 * sysdeps/posix/preadv2.c: Include <errno.h>.
28302 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28303 Fix <unistd.h> inclusion.
28304 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28305 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28306 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28307 __strtoul_internal): New functions.
28308 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28309 * sysdeps/posix/system.c: Include <sigsetops.h>.
28310 * sysdeps/mach/hurd/i386/Makefile
28311 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28312 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28313 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28314 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
28315 __feraiseexcept_renamed to feraiseexcept instead of
28316 __GI_feraiseexcept.
28317 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
28318 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
28319 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
28320 RWF_NOWAIT): Define to 0 if undefined already.
28321 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
28322 boils down to 0.
28323 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28324 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28325
28326 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28327
28328 * manual/math.texi (pow10): Do not document.
28329 (pow10f): Likewise.
28330 (pow10l): Likewise.
28331 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28332 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28333 * math/libm-test-exp10.inc (pow10_test): Remove.
28334 (do_test): Do not call pow10.
28335 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28336 [NO_LONG_DOUBLE] (pow10l): Likewise.
28337 * math/w_exp10f_compat.c (pow10f): Likewise.
28338 * math/w_exp10l_compat.c (pow10l): Likewise.
28339 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
28340 (pow10): Make into compat symbol.
28341 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
28342 (pow10f): Make into compat symbol.
28343 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
28344 (pow10l): Make into compat symbol.
28345 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
28346 pow10.
28347 (CFLAGS-nldbl-pow10.c): Remove variable..
28348 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
28349 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
28350 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
28351 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
28352 Undefine and redefine.
28353 (pow10l): Make into compat symbol.
28354 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
28355 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
28356 * sysdeps/arm/libm-test-ulps: Likewise.
28357 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
28358 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
28359 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28360 * sysdeps/microblaze/libm-test-ulps: Likewise.
28361 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
28362 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28363 * sysdeps/nios2/libm-test-ulps: Likewise.
28364 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28365 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
28366 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
28367 * sysdeps/sh/libm-test-ulps: Likewise.
28368 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
28369 * sysdeps/tile/libm-test-ulps: Likewise.
28370 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28371
28372 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28373
28374 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
28375
28376 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28377
28378 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
28379 "../ChangeLog.old/ChangeLog.8".
28380 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
28381 "../ChangeLog.old/ChangeLog.14".
28382
28383 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28384
28385 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
28386 Threads Library.
28387
28388 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28389
28390 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
28391
28392 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28393
28394 * csu/version.c (banner): Remove "by Roland McGrath et al.".
28395 * nptl/Banner: Remove "by Ulrich Drepper et al.".
28396
28397 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28398
28399 * stdlib/tst-atexit-common.c (do_test): Test support for at least
28400 32 atexit handlers.
28401
28402 2017-09-01 Zack Weinberg <zackw@panix.com>
28403
28404 * math/math.h (HUGE_VAL): Improve commentary.
28405
28406 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28407 Andreas Schwab <schwab@suse.de>
28408
28409 [BZ #21530]
28410 * include/stdio.h (__gen_tempfd): New function.
28411 * stdio-common/Makefile (routines): Add gentempfd.
28412 * stdio-common/gentempfd.c: New file.
28413 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
28414 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
28415 unnamed file first.
28416
28417 2017-09-01 Florian Weimer <fweimer@redhat.com>
28418
28419 [BZ #21915]
28420 [BZ #21922]
28421 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
28422 result to determine success or failure, not the errno value.
28423 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
28424 (tst-nss-files-hosts-erange): Link with -ldl.
28425 * nss/tst-nss-files-hosts-erange.c: New file.
28426 * nss/tst-resolv-basic.c (response): Handle nodata.example.
28427 (do_test): Add NO_DATA tests.
28428 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
28429 (do_test): Call it.
28430
28431 2017-09-01 Florian Weimer <fweimer@redhat.com>
28432
28433 [BZ #21922]
28434 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
28435 coming from gethostbyname2_r.
28436
28437 2017-09-01 Florian Weimer <fweimer@redhat.com>
28438
28439 * support/namespace.h (struct support_chroot_configuration): Add
28440 hosts, host_conf.
28441 (struct support_chroot): Add path_hosts, path_host_conf.
28442 * support/support_chroot.c (write_file): New function.
28443 (support_chroot_create): Call it to process /etc/resolv.conf,
28444 /etc/hosts, /etc/host.conf.
28445 (support_chroot_free): Update.
28446
28447 2017-09-01 Florian Weimer <fweimer@redhat.com>
28448
28449 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
28450 status indicates it is set.
28451
28452 2017-09-01 Florian Weimer <fweimer@redhat.com>
28453
28454 [BZ #20532]
28455 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
28456 function lookup failures more reliable.
28457
28458 2017-09-01 Florian Weimer <fweimer@redhat.com>
28459
28460 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
28461 (getcanonname): Likewise.
28462 (gaih_inet): Likewise.
28463
28464 2017-09-01 Florian Weimer <fweimer@redhat.com>
28465
28466 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
28467 (getcanonname): Likewise.
28468 (gaih_inet): Likewise.
28469
28470 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28471 Richard Henderson <rth@twiddle.net>
28472
28473 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
28474 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
28475 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
28476 (IREG_SIZE, OREG_SIZE): New macros.
28477 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
28478 (IREG_SIZE, OREG_SIZE): New macros.
28479 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
28480 (IREG_SIZE): New macro.
28481 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
28482 (IREG_SIZE): New macro.
28483 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
28484 New includes.
28485 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
28486 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28487 (__CONCATX): Handle exceptions correctly on large values that may
28488 set FE_INVALID.
28489 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
28490 Initialize if not already set.
28491 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28492
28493 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28494
28495 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
28496 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
28497 Likewise.
28498 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
28499 Likewise.
28500 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
28501 Likewise.
28502 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
28503 Likewise.
28504 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
28505 Likewise.
28506 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
28507 Likewise.
28508 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
28509 Likewise.
28510 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
28511 (NO_CANCELLATION): Likewise.
28512 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
28513 Likewise.
28514 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
28515 Likewise.
28516 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
28517 Likewise.
28518 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
28519 (NO_CANCELLATION): Likewise.
28520 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
28521 (NO_CANCELLATION): Likewise.
28522 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
28523 Likewise
28524 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
28525 Likewise.
28526 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
28527 Likewise.
28528 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
28529 Likewise.
28530 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
28531 hidden prototype.
28532 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
28533 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
28534
28535 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28536
28537 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
28538 in resolver call.
28539
28540 2017-08-31 Florian Weimer <fweimer@redhat.com>
28541
28542 * include/libc-symbols.h (internal_function): Remove.
28543
28544 2017-08-31 Florian Weimer <fweimer@redhat.com>
28545
28546 * stdlib/fmtmsg.c (internal_addseverity): Remove
28547 internal_function.
28548
28549 2017-08-31 Florian Weimer <fweimer@redhat.com>
28550
28551 * stdio-common/printf_fp.c (group_number): Remove
28552 internal_function.
28553 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
28554
28555 2017-08-31 Florian Weimer <fweimer@redhat.com>
28556
28557 * posix/fnmatch.c (internal_function): Remove definition.
28558 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
28559 * posix/regcomp.c (peek_token, init_word_char)
28560 (duplicate_node_closure, fetch_token, peek_token)
28561 (peek_token_bracket, build_range_exp, build_collating_symbol):
28562 Likewise.
28563 * posix/regex_internal.c (re_string_construct_common)
28564 (create_ci_newstate, create_cd_newstate, re_string_allocate)
28565 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
28566 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
28567 (re_string_translate_buffer, re_string_reconstruct)
28568 (re_string_peek_byte_case, re_string_fetch_byte_case)
28569 (re_string_destruct, re_string_context_at, re_node_set_alloc)
28570 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
28571 (re_node_set_add_intersect, re_node_set_init_union)
28572 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
28573 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
28574 (re_dfa_add_node, calc_state_hash, re_acquire_state)
28575 (re_acquire_state_context): Likewise.
28576 * posix/regex_internal.h (internal_function): Remove definition.
28577 (re_string_realloc_buffers, build_wcs_buffer)
28578 (build_wcs_upper_buffer, build_upper_buffer)
28579 (re_string_translate_buffer, re_string_context_at)
28580 (re_string_char_size_at, re_string_wchar_at)
28581 (re_string_elem_size_at): Likewise.
28582 * posix/regexec.c (match_ctx_init, match_ctx_clean)
28583 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
28584 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
28585 (re_search_internal, re_search_2_stub, re_search_stub)
28586 (re_copy_regs, prune_impossible_nodes, check_matching)
28587 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
28588 (free_fail_stack_return, sift_states_iter_mb)
28589 (sift_states_backward, build_sifted_states)
28590 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
28591 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
28592 (check_subexp_limits, sift_states_bkref, merge_state_array)
28593 (find_recover_state, transit_state, merge_state_with_log)
28594 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
28595 (transit_state_mb, transit_state_bkref, get_subexp)
28596 (get_subexp_sub, find_subexp_node, check_arrival)
28597 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
28598 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
28599 (check_node_accept_bytes, find_collation_sequence_value)
28600 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
28601 (acquire_init_state_context, check_halt_node_context)
28602 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
28603 (sub_epsilon_src_nodes): Likewise.
28604 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
28605 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
28606 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
28607 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
28608 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
28609 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
28610 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
28611 * sysdeps/posix/ttyname.c (getttyname): Likewise.
28612 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
28613 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
28614 (PREADV): Likewise.
28615 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
28616 (PREADV): Likewise.
28617 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
28618 (PWRITEV): Likewise.
28619 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
28620 (PWRITEV): Likewise.
28621 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
28622 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
28623
28624 2017-08-31 Florian Weimer <fweimer@redhat.com>
28625
28626 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
28627 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
28628 Remove internal_function.
28629 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
28630 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
28631 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
28632 (__deallocate_stack, __libc_pthread_init)
28633 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
28634 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
28635 (__libc_disable_asynccancel, __librt_disable_asynccancel):
28636 Likewise.
28637 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
28638 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
28639 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
28640 Likewise.
28641 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
28642 (__pthread_mutex_unlock_usercnt): Likewise.
28643
28644 2017-08-31 Florian Weimer <fweimer@redhat.com>
28645
28646 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
28647 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
28648 (fts_safe_changedir): Remove internal_function.
28649 * io/ftw.c (internal_function): Remove definition.
28650 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
28651
28652 2017-08-31 Florian Weimer <fweimer@redhat.com>
28653
28654 * inet/deadline.c (__deadline_current_time)
28655 (__deadline_from_timeval, __deadline_to_ms): Remove
28656 internal_function.
28657 * inet/getnameinfo.c (nrl_domainname): Likewise.
28658 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
28659 * inet/inet6_option.c (add_pad): Likewise.
28660 * inet/net-internal.h (__deadline_current_time)
28661 (__deadline_from_timeval, __deadline_to_ms): Likewise.
28662 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
28663 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
28664 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
28665
28666 2017-08-31 Joseph Myers <joseph@codesourcery.com>
28667
28668 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
28669 include <bits/nan.h>.
28670 * math/Makefile (headers): Remove bits/nan.h.
28671 * bits/nan.h: Remove.
28672 * sysdeps/ieee754/bits/nan.h: Likewise.
28673 * sysdeps/mips/bits/nan.h: Likewise.
28674
28675 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
28676 not include <bits/inf.h>.
28677 * math/Makefile (headers): Remove bits/inf.h.
28678 * bits/inf.h: Remove.
28679 * sysdeps/ieee754/bits/inf.h: Likewise.
28680
28681 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
28682 bits/huge_vall.h or bits/huge_val_flt128.h.
28683 (HUGE_VAL): Define directly here.
28684 [__USE_ISOC99] (HUGE_VALF): Likewise.
28685 [__USE_ISOC99] (HUGE_VALL): Likewise.
28686 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28687 (HUGE_VAL_F128): Likewise.
28688 * math/Makefile (headers): Remove bits/huge_val.h,
28689 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
28690 * bits/huge_val.h: Remove.
28691 * bits/huge_val_flt128.h: Likewise.
28692 * bits/huge_valf.h: Likewise.
28693 * bits/huge_vall.h: Likewise.
28694 * sysdeps/ia64/bits/huge_vall.h: Likewise.
28695 * sysdeps/ieee754/bits/huge_val.h: Likewise.
28696 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
28697 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
28698 * sysdeps/sh/bits/huge_val.h: Likewise.
28699 * sysdeps/sparc/bits/huge_vall.h: Likewise.
28700 * sysdeps/x86/bits/huge_vall.h: Likewise.
28701
28702 2017-08-31 Florian Weimer <fweimer@redhat.com>
28703
28704 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
28705 internal_function.
28706 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
28707 Likewise.
28708 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
28709 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
28710 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
28711 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
28712 * elf/dl-fini.c (_dl_sort_fini): Likewise.
28713 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
28714 * elf/dl-libc.c (dlerror_run): Likewise.
28715 * elf/dl-load.c (add_name_to_object, decompose_rpath)
28716 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
28717 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
28718 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
28719 Likewise.
28720 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
28721 (_dl_higher_prime_number, _dl_strtoul): Likewise.
28722 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
28723 * elf/dl-profile.c (_dl_start_profile): Likewise.
28724 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
28725 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
28726 Likewise.
28727 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
28728 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
28729 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
28730 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
28731 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
28732 (_dl_allocate_tls_storage): Likewise.
28733 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
28734 (_dl_check_all_versions): Likewise.
28735 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
28736 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
28737 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
28738 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28739 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
28740 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
28741 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
28742 internal_function from __dl_start.
28743 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
28744 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
28745 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
28746 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
28747 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
28748 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
28749 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
28750 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
28751 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
28752 (_dl_next_ld_env_entry, _dl_important_hwcaps)
28753 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
28754 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
28755 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
28756 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
28757 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
28758 Likewise.
28759 (struct rtld_global_ro): Remove internal_function from the
28760 _dl_lookup_symbol_x member.
28761 (_dl_symbol_value): Remove. No longer defined anywhere.
28762 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
28763 internal_function.
28764 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28765 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28766 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
28767 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
28768 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
28769 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
28770 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
28771 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
28772 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
28773 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
28774 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28775 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28776
28777 2017-08-31 Florian Weimer <fweimer@redhat.com>
28778
28779 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
28780 Remove internal_function.
28781 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28782 Likewise.
28783 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28784 Likewise.
28785
28786 2017-08-31 Florian Weimer <fweimer@redhat.com>
28787
28788 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
28789 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
28790 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
28791
28792 2017-08-31 Florian Weimer <fweimer@redhat.com>
28793
28794 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
28795 (__gai_enqueue_request): Remove internal_function.
28796 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
28797 (__gai_remove_request, __gai_notify, __gai_notify_only)
28798 (__gai_sigqueue): Likewise.
28799 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
28800 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
28801 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
28802 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
28803 Likewise.
28804
28805 2017-08-31 Florian Weimer <fweimer@redhat.com>
28806
28807 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
28808 * include/dirent.h (__opendirat, __getdents, __getdents64)
28809 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
28810 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
28811 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
28812 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28813 Likewise.
28814 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
28815
28816 2017-08-31 Florian Weimer <fweimer@redhat.com>
28817
28818 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
28819 internal_function.
28820 (GETCWD_RETURN_TYPE): Likewise.
28821
28822 2017-08-31 Florian Weimer <fweimer@redhat.com>
28823
28824 * include/time.h (__tz_compute, __strptime_internal): Remove
28825 internal_function.
28826 * time/strptime_l.c (__strptime_internal): Likewise.
28827 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
28828
28829 2017-08-31 Florian Weimer <fweimer@redhat.com>
28830
28831 * iconv/gconv.c (__gconv): Remove internal_function.
28832 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
28833 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
28834 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
28835 (__gconv_release_cache): Likewise.
28836 * iconv/gconv_close.c (__gconv_close): Likewise.
28837 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
28838 (read_conf_file, __gconv_get_path): Likewise.
28839 * iconv/gconv_db.c (derivation_lookup, add_derivation)
28840 (__gconv_release_step, gen_steps, increment_counter)
28841 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
28842 (__gconv_close_transform, free_modules_db): Likewise.
28843 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
28844 Likewise.
28845 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
28846 (__gconv_find_transform, __gconv_lookup_cache)
28847 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
28848 (__gconv_close_transform, __gconv_release_cache)
28849 (__gconv_loaded_object, __gconv_release_shlib)
28850 (__gconv_compare_alias): Likewise.
28851 * iconv/gconv_open.c (__gconv_open): Likewise.
28852 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
28853 * iconv/iconvconfig.c (add_module): Likewise.
28854 * intl/dcigettext.c (plural_lookup, guess_category_value)
28855 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
28856 * intl/eval-plural.h (plural_eval): Likewise.
28857 * intl/finddomain.c (_nl_find_domain): Likewise.
28858 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
28859 (_nl_load_domain, _nl_find_msg): Likewise.
28860 (internal_function): Remove definition.
28861 * intl/loadinfo.h (internal_function): Likewise.
28862 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
28863 internal_function.
28864 * intl/localealias.c (internal_function): Remove definition.
28865 (read_alias_file): Remove internal_function.
28866 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
28867 * intl/plural-exp.h (internal_function): Remove definition.
28868 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
28869 internal_function.
28870 * intl/plural.c: Regenerate.
28871 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
28872 * locale/coll-lookup.c (__collidx_table_lookup)
28873 (__collseq_table_lookup): Likewise.
28874 * locale/coll-lookup.h (__collidx_table_lookup)
28875 (__collseq_table_lookup): Likewise.
28876 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
28877 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
28878 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
28879 (_nl_unload_locale): Likewise.
28880 * locale/localeinfo.h (struct __locale_data): Remove
28881 internal_function from cleanup member.
28882 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
28883 (_nl_remove_locale, _nl_load_locale_from_archive)
28884 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
28885 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
28886 (_nl_cleanup_time): Remove internal_function.
28887 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
28888 (_nl_parse_alt_digit): Likewise.
28889 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
28890 (_nl_select_era_entry): Likewise.
28891 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
28892 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28893 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28894 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28895 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28896
28897 2017-08-31 Florian Weimer <fweimer@redhat.com>
28898
28899 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
28900 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28901 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
28902 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
28903 Likewise.
28904 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
28905 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
28906 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
28907 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
28908 Likewise.
28909 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
28910
28911 2017-08-31 Florian Weimer <fweimer@redhat.com>
28912
28913 * misc/getttyent.c (skip, value): Remove internal_function.
28914 * misc/syslog.c (openlog_internal): Likewise.
28915 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
28916
28917 2017-08-31 Florian Weimer <fweimer@redhat.com>
28918
28919 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
28920 (__nss_rewrite_field): Remove internal_function.
28921 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
28922 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
28923 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
28924 * nss/nsswitch.c (nss_parse_file, nss_getline)
28925 (nss_parse_service_list, nss_new_service): Likewise.
28926 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
28927 * nss/valid_field.c (__nss_valid_field): Likewise.
28928 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
28929
28930 2017-08-31 Florian Weimer <fweimer@redhat.com>
28931
28932 * malloc/arena.c (__malloc_fork_lock_parent)
28933 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
28934 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
28935 internal_function from defintions.
28936 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
28937 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
28938 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
28939 internal_function from declarations.
28940 * malloc/malloc.c (internal_function): Do not define.
28941 (mem2mem_check): Remove internal_function from declaration.
28942 (munmap_chunk, mremap_chunk): Remove internal_function.
28943 * malloc/mtrace.c (tr_where): Likewise.
28944
28945 2017-08-31 Florian Weimer <fweimer@redhat.com>
28946
28947 * include/rpc/pmap_clnt.h (__get_socket): Remove
28948 internal_function.
28949 * sunrpc/auth_des.c (synchronize): Likewise.
28950 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
28951 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
28952 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
28953 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
28954 (key_call): Likewise.
28955 * sunrpc/pm_getport.c (__get_socket): Likewise.
28956 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
28957 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
28958 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
28959 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
28960 (invalidate): Likewise.
28961 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
28962 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
28963 (set_input_fragment, get_input_bytes): Likewise.
28964
28965 2017-08-31 Florian Weimer <fweimer@redhat.com>
28966
28967 * malloc/malloc.c (_int_free): Remove locked variable and related
28968 asserts.
28969
28970 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
28971
28972 [BZ #22051]
28973 * Makerules (build-module-helper-objlist): Filter out
28974 $(elf-objpfx)sofini.os.
28975 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
28976 needed.
28977
28978 2017-08-31 Florian Weimer <fweimer@redhat.com>
28979
28980 * libio/fcloseall.c: Assume weak_alias is defined.
28981 * libio/feof.c: Likewise.
28982 * libio/fileno.c: Likewise.
28983 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
28984 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
28985 definitions.
28986 (_IO_file_open): Call __open directly.
28987 (_IO_new_file_sync): Assume ESPIPE is defined.
28988 (_IO_file_seekoff_maybe_mmap): Call __read directly.
28989 (_IO_new_file_write): Call __write directly.
28990 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
28991 * libio/ftello64.c (__ftello64): Assume EIO is defined.
28992 * libio/genops.c: Assume _LIBC is defined.
28993 (save_for_backup): Remove internal_function.
28994 * libio/getc.c: Assume weak_alias is defined.
28995 * libio/getwc.c: Likewise.
28996 * libio/iofclose.c: Assume _LIBC is defined.
28997 * libio/iofdopen.c: Likewise.
28998 (_IO_fcntl): Remove macro definition.
28999 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29000 Call __fcntl directly.
29001 * libio/iofflush.c: Assume weak_alias is defined.
29002 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29003 defined.
29004 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29005 * libio/iofgets.c: Likewise.
29006 * libio/iofopen.c: Assume _LIBC is defined.
29007 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29008 * libio/iofputs.c: Assume weak_alias is defined.
29009 * libio/iofread.c: Likewise.
29010 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29011 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29012 * libio/ioftell.c: Assume weak_alias is defined.
29013 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29014 * libio/iofwide.c: Assume _LIBC is defined.
29015 (_IO_fwide): Drop SHARED conditional because it is implied by
29016 SHLIB_COMPAT.
29017 * libio/iofwrite.c: Assume weak_alias is defined.
29018 * libio/iogetdelim.c: Likewise.
29019 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29020 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29021 (_IO_getwline): Call __wmemcpy directly.
29022 * libio/iopopen.c: Assume _LIBC is defined.
29023 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29024 (_IO_close): Remove macro definitions.
29025 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29026 _exit directly.
29027 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29028 directly.
29029 * libio/ioputs.c: Assume weak_alias is defined.
29030 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29031 * libio/iosetbuffer.c: Assume weak_alias is defined.
29032 * libio/iosetvbuf.c: Likewise.
29033 * libio/ioungetc.c: Likewise.
29034 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29035 libc_hidden_def, libc_hidden_weak, NULL are defined.
29036 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29037 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29038 defined.
29039 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29040 definitions.
29041 (_IO_old_file_init_internal): Drop SHARED conditional because it
29042 is implied by SHLIB_COMPAT.
29043 (_IO_old_file_fopen): Call __open directly.
29044 (_IO_old_file_sync): Assume ESPIPE is defined.
29045 (_IO_old_file_write): Call __write directly.
29046 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29047 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29048 Call __fcntl directly.
29049 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29050 (_IO_old_fgetpos): Assume EIO is defined.
29051 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29052 (_IO_old_fgetpos64): Assume EIO is defined.
29053 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29054 (_IO_old_fsetpos): Assume EIO is defined.
29055 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29056 (_IO_old_fsetpos64): Assume EIO is defined.
29057 * libio/oldiopopen.c: Assume _LIBC is defined.
29058 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29059 (_IO_close): Remove macro definitions.
29060 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29061 directly.
29062 (_IO_old_proc_close): Call __close, __waitpid directly.
29063 * libio/put.c: Assume weak_alias is defined.
29064 * libio/stdfiles.c: Assume _LIBC is defined.
29065 * libio/stdio.c: Likewise.
29066 * libio/wfileops.c: Likewise.
29067 (_IO_wfile_sync): Assume ESPIPE is defined.
29068 * libio/wgenops.c: Assume _LIBC is defined.
29069 (save_for_wbackup): Remove internal_function.
29070
29071 2017-08-31 Florian Weimer <fweimer@redhat.com>
29072
29073 * malloc/malloc.c (top_check): Change return type to void. Remove
29074 internal_function.
29075 * malloc/hooks.c (top_check): Likewise.
29076 (malloc_check, realloc_check, memalign_check): Adjust.
29077
29078 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29079
29080 [BZ #21457]
29081 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29082 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29083 sigcontext and namespace requirements.
29084 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29085 * sysdeps/m68k/sys/ucontext.h: Likewise.
29086 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29087 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29088 <bits/sigcontext.h>.
29089 (__ctx): Define earlier.
29090 (mcontext_t): Define structure contents rather than using struct
29091 sigcontext.
29092 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29093 __glibc_reserved1 instead of __reserved.
29094 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29095 <bits/sigcontext.h>.
29096 (__ctx): Define earlier.
29097 (mcontext_t): Define structure contents rather than using struct
29098 sigcontext.
29099 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29100 mcontext_t instead of struct sigcontext.
29101 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29102 <bits/sigcontext.h>.
29103 (__ctx): Define earlier.
29104 (mcontext_t): Define structure contents rather than using struct
29105 sigcontext.
29106 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29107 <bits/sigcontext.h>.
29108 (__ctx): Define earlier.
29109 (mcontext_t): Define structure contents rather than using struct
29110 sigcontext.
29111 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29112 mcontext_t instead of struct sigcontext.
29113 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29114 mcontext_t instead of struct sigcontext.
29115 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29116 <bits/sigcontext.h>.
29117 (__ctx): New macro.
29118 (struct __ia64_fpreg_mcontext): New type.
29119 (mcontext_t): Define structure contents rather than using struct
29120 sigcontext.
29121 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29122 (uc_sigmask): Define using __ctx.
29123 (uc_stack): Likewise.
29124 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29125 <bits/sigcontext.h>.
29126 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29127 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29128 <bits/sigcontext.h>.
29129 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29130 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29131 <bits/sigcontext.h>.
29132 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29133 <bits/sigcontext.h>.
29134 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29135 <bits/sigcontext.h>.
29136 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29137 <bits/sigcontext.h>.
29138 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29139 <bits/sigcontext.h>.
29140 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29141 <bits/sigcontext.h>.
29142 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29143 <bits/sigcontext.h>.
29144 (__ctx): Define earlier.
29145 (mcontext_t): Define structure contents rather than using struct
29146 sigcontext.
29147 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29148 <bits/sigcontext.h>. Include <bits/types.h>.
29149 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29150 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29151 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29152 (test-xfail-UNIX98/signal.h/conform): Likewise.
29153 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29154 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29155 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29156 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29157 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29158 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29159 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29160 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29161 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29162
29163 2017-08-30 Florian Weimer <fweimer@redhat.com>
29164
29165 * malloc/dynarray_emplace_enlarge.c
29166 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29167 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29168 * malloc/tst-dynarray.c (test_long_overflow): New function.
29169 (do_test): Call it.
29170
29171 2017-08-30 Florian Weimer <fweimer@redhat.com>
29172
29173 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29174 (set_arena_corrupt): Remove definitions.
29175 (mtrim): Do not check for corrupt arena.
29176 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29177 Likewise.
29178
29179 2017-08-30 Florian Weimer <fweimer@redhat.com>
29180
29181 [BZ #21754]
29182 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29183 check_action.
29184 (ptmalloc_init): Do not set or use check_action.
29185 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29186 call to malloc_printerr. Remove return statement.
29187 (free_check): Likewise. Remove arena unlock.
29188 (top_check): Update comment. Adjust call to malloc_printerr.
29189 Remove heap repair code.
29190 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29191 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29192 (sysmalloc): Adjust call to malloc_printerr.
29193 (munmap_chunk, __libc_realloc): Likewise. Remove return
29194 statement.
29195 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29196 Remove errout label and corresponding gotos.
29197 (_int_free): Likewise. Remove arena unlock.
29198 (do_set_mallopt_check): Do not set check_action.
29199 (malloc_printerr): Adjust parameter list. Do not mark arena as
29200 corrupt.
29201 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29202 comment.
29203 * manual/probes.texi (Memory Allocation Probes): Remove
29204 memory_mallopt_check_action.
29205
29206 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29207
29208 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29209 Use pointer to uint64_t instead of long int for sp.
29210
29211 2017-08-30 Florian Weimer <fweimer@redhat.com>
29212
29213 [BZ #21754]
29214 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29215 without printing a backtrace. Do not leak any information in the
29216 error message.
29217 * manual/memory.texi (Heap Consistency Checking): Update.
29218 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29219
29220 2017-08-30 Florian Weimer <fweimer@redhat.com>
29221
29222 Do not scale NPTL tests with available number of CPUs.
29223 * nptl/tst-cond16.c (count): Set to constant value of 8.
29224 * nptl/tst-cond18.c (count): Likewise.
29225
29226 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29227
29228 [BZ #22035]
29229 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29230 Define to take a second argument that is a macro that
29231 concatentates a suffix, not the suffix itself.
29232 (__CONCAT_d): New macro.
29233 (__CONCAT_f): Likewise.
29234 (__CONCAT_l): Likewise.
29235
29236 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29237
29238 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29239 by child.
29240
29241 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29242 Aurelien Jarno <aurelien@aurel32.net>
29243 Maciej W. Rozycki <macro@imgtec.com>
29244
29245 [BZ #21956]
29246 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29247 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29248 `mips16-syscall6' and `mips16-syscall7'.
29249 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29250 (CFLAGS-mips16-syscall7.c): Remove.
29251 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29252 Remove `__mips16_syscall5', `__mips16_syscall6' and
29253 `__mips16_syscall7'.
29254 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29255 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29256 `__mips_syscall_return'.
29257 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29258 (__mips16_syscall1): Likewise.
29259 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29260 (__mips16_syscall2): Likewise.
29261 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29262 (__mips16_syscall3): Likewise.
29263 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29264 (__mips16_syscall4): Likewise.
29265 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29266 Remove.
29267 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29268 Remove.
29269 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29270 Remove.
29271 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29272 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29273 `__mips16_syscall5'. Remove prototype.
29274 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29275 `__mips16_syscall6'. Remove prototype.
29276 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29277 `__mips16_syscall7'. Remove prototype.
29278 (__nomips16, __mips16_syscall_return): Move to...
29279 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29280 (__nomips16, __mips_syscall_return): ... here.
29281 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29282 `__mips16_syscall_return' to `__mips_syscall_return'.
29283 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29284 `internal_syscall##nr'.
29285 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29286 `internal_syscall##nr'.
29287 (FORCE_FRAME_POINTER): Remove.
29288 (__mips_syscall5): New prototype.
29289 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29290 (__mips_syscall6): New prototype.
29291 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29292 (__mips_syscall7): New prototype.
29293 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29294 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29295 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29296 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29297 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29298 (sysdep_routines): Add libc-do-syscall.
29299 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29300 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29301
29302 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29303
29304 [BZ #21672]
29305 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29306 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29307 (advise_stack_range): New function.
29308 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29309 stack non required to advise_stack_range at allocatestack.c
29310
29311 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29312
29313 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29314
29315 2017-08-29 Florian Weimer <fweimer@redhat.com>
29316
29317 [BZ #22026]
29318 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
29319 __end_fct. Mangle __end_fct after setting it to NULL.
29320 * iconv/Makefile (tests): Add tst-gconv-init-failure.
29321 (modules-names, modules-names-tests): Add
29322 tst-gconv-init-failure-mod.
29323 (gconv-modules): New target.
29324 (tst-gconv-init-failure-mod.so): Link against libsupport.
29325 (tst-gconv-init-failure): Depend on gconv-modules,
29326 tst-gconv-init-failure-mod.so.
29327 * iconv/tst-gconv-init-failure-mod.c: New file.
29328 * iconv/tst-gconv-init-failure.c: Likewise.
29329 * iconv/test-gconv-modules: Likewise.
29330
29331 2017-08-29 Florian Weimer <fweimer@redhat.com>
29332
29333 [BZ #22025]
29334 * iconv/gconv_db.c (free_derivation): Remove redundant
29335 parentheses.
29336 (gen_steps): Unconditionally mangle __btowc_fct after
29337 initialization.
29338 (increment_counter): Likewise. Do not call init_fct for internal
29339 modules.
29340
29341 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29342
29343 [BZ #22028]
29344 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29345 (_MSUF_): Remove macro.
29346 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
29347 Likewise.
29348 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29349 (__REDIRFROM_X): New macro.
29350 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
29351 Likewise.
29352 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
29353 (__REDIRTO_X): Likewise.
29354 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
29355 arguments.
29356 (__MATH_REDIRCALL_2): Likewise.
29357 (__MATH_REDIRCALL_INTERNAL): Likewise.
29358 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29359 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
29360 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
29361 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29362 * math/test-finite-macros.c: New file.
29363 * math/Makefile (tests): Add test-finite-macros.
29364 (CFLAGS-test-finite-macros.c): New variable.
29365
29366 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
29367 Jeff Law <law@redhat.com>
29368
29369 [BZ #22025]
29370 Mangle NULL pointers in iconv/gconv.
29371 * iconv/gconv_cache.c (find_module): Demangle init_fct before
29372 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
29373 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
29374 is non-NULL before demangling the end_fct. Check for NULL
29375 end_fct after demangling.
29376 (__gconv_release_step): Demangle the end_fct before checking
29377 it for NULL. Remove assert on __shlibc_handle != NULL.
29378 (gen_steps): Don't check btowc_fct for NULL before mangling.
29379 Demangle init_fct before checking for NULL.
29380 (increment_counter): Likewise.
29381 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
29382 end_fct for NULL before mangling.
29383 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
29384 for NULL.
29385
29386 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
29387
29388 [BZ #21971]
29389 * locale/iso-639.def: add Morisyen.
29390
29391 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29392
29393 [BZ #21930]
29394 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
29395 (iszero): New C++ implementation that does not use
29396 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
29397 signaling nans are enabled, since __builtin_types_compatible_p
29398 is a C-only feature.
29399 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
29400 defined, include ieee754_float128.h for access to the union and
29401 member ieee854_float128.ieee.
29402 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
29403 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
29404 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29405 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
29406 options of test-math-zero on powerpc64le.
29407
29408 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
29409
29410 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29411 Change double to float.
29412
29413 2017-08-28 Joseph Myers <joseph@codesourcery.com>
29414
29415 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
29416 unconditional.
29417 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
29418 conditional code; define contents only for [LIBM_SVID_COMPAT].
29419
29420 2017-08-28 Florian Weimer <fweimer@redhat.com>
29421
29422 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
29423 (abi-lp64_be-options): Remove.
29424 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
29425 (abi-hard-options): Likewise.
29426 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
29427 (abi-o32_hard-options, abi-o32_soft_2008-options)
29428 (abi-o32_hard_2008-options, abi-n32_soft-options)
29429 (abi-n32_hard-options, abi-n32_soft_2008-options)
29430 (abi-n32_hard_2008-options, abi-n64_soft-options)
29431 (abi-n64_hard-options, abi-n64_soft_2008-options)
29432 (abi-n64_hard_2008-options): Likewise.
29433 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
29434 (abi-64-v1-options, abi-64-v2-options): Likewise.
29435 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
29436 (abi-64-options): Likewise.
29437 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
29438 (abi-64-options): Likewise.
29439 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
29440 (abi-64-options): Likewise.
29441 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
29442 (abi-64-options, abi-x32-options): Likewise.
29443
29444 2017-08-28 Florian Weimer <fweimer@redhat.com>
29445
29446 Store supported list of SYS_* system calls in the source tree.
29447 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
29448 (bits/syscall.h): Generate from list file.
29449 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
29450 [$(subdir) = misc] (tests): Add tst-syscall-list.
29451 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
29452 [$(subdir) = misc] (tst-syscall-list-macros.list)
29453 [$(subdir) = misc] (tst-syscall-list-nr.list)
29454 (tst-syscall-list-sys.list): Helper targets for new
29455 tst-syscall-list test.
29456 [$(subdir) = misc] (tst-syscall-list.out): Run test script
29457 tst-syscall-list.sh.
29458 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
29459 target. Do not include bits/syscall.d.
29460 [$(subdir) = misc] (generated): Do not update.
29461 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
29462 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
29463 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
29464 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
29465
29466 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
29467
29468 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
29469 (tst-cxa_atexit, tst-on_exit): Likewise.
29470 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
29471 tst-cxa_atexit, and tst-on_exit.
29472 * stdlib/tst-atexit-common.c: New file.
29473 * stdlib/tst-atexit.c: New file.
29474 * stdlib/tst-at_quick_exit.c: New file.
29475 * stdlib/tst-cxa_atexit.c: New file.
29476 * stdlib/tst-on_exit.c: New file.
29477
29478 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29479
29480 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
29481 * mach/stack_chk_fail_local.c: New file.
29482 * hurd/stack_chk_fail_local.c: New file.
29483 * mach/Machrules ($(interface-library)-routines): Add
29484 stack_chk_fail_local.
29485 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
29486 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
29487 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
29488 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
29489 * hurd/Makefile (CFLAGS-hurdstartup.o,
29490 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
29491
29492 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
29493
29494 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
29495 (index_cpu_*, index_arch_*): Removed.
29496
29497 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29498
29499 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
29500 Use uint64_t instead of unsigned long.
29501
29502 2017-08-25 Joseph Myers <joseph@codesourcery.com>
29503
29504 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
29505 [__HAVE_DISTINCT_FLOAT128].
29506
29507 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
29508 of <bits/math-finite.h>.
29509 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
29510 inclusion of <bits/math-finite.h>.
29511 * math/bits/math-finite.h (__REDIRTO_X): Do not define
29512 conditionally on [__MATH_DECLARING_LDOUBLE && defined
29513 __NO_LONG_DOUBLE_MATH].
29514 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
29515 (__MATH_REDIRCALL_2): Likewise.
29516 (__MATH_REDIRCALL_INTERNAL): Likewise.
29517 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29518 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
29519 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29520
29521 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
29522 Remove file.
29523 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
29524 Likewise.
29525 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
29526 Likewise.
29527 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
29528 Likewise.
29529 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
29530 Likewise.
29531 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
29532 Likewise.
29533 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
29534 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
29535 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
29536 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
29537 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
29538 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
29539 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
29540 w_sqrtf_compat-ppc32.
29541
29542 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29543
29544 * math/math.h [defined __cplusplus] (issignaling): In the long
29545 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
29546 is not defined. Call __issignaling, otherwise.
29547
29548 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29549
29550 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
29551 syscall definitions and replace __builtin_expect with __glibc_likely.
29552 * sysdeps/unix/syscall-template.S: Update comment about cancellable
29553 syscall.
29554 (SYSCALL_CANCELLABLE): Removedefinition
29555 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
29556 definition.
29557 (PSEUDO_END): Likewise.
29558 [IS_IN (libpthread)] (CENABLE): Likewise.
29559 [IS_IN (libpthread)] (CDISABLE): Likewise.
29560 [IS_IN (libc)] (CENABLE): Likewise.
29561 [IS_IN (libc)] (CENABLE): Likewise.
29562 [IS_IN (librt)] (CDISABLE): Likewise.
29563 [IS_IN (librt)] (CDISABLE): Likewise.
29564 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29565 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
29566 definition.
29567 (PSEUDO_END): Likewise.
29568 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
29569 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
29570 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29571 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29572 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29573 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29574 (CENABLE): Likewise.
29575 (CDISABLE): Likewise.
29576 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29577 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
29578 defintion.
29579 (PSEUDO_END): Likewise.
29580 [IS_IN (libpthread)] (CENABLE): Likewise.
29581 [IS_IN (libpthread)] (CDISABLE): Likewise.
29582 [IS_IN (libc)] (CENABLE): Likewise.
29583 [IS_IN (libc)] (CENABLE): Likewise.
29584 [IS_IN (librt)] (CDISABLE): Likewise.
29585 [IS_IN (librt)] (CDISABLE): Likewise.
29586 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29587 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
29588 definition.
29589 (PSEUDO_END): Likewise.
29590 [IS_IN (libpthread)] (CENABLE): Likewise.
29591 [IS_IN (libpthread)] (CDISABLE): Likewise.
29592 [IS_IN (libc)] (CENABLE): Likewise.
29593 [IS_IN (libc)] (CENABLE): Likewise.
29594 [IS_IN (librt)] (CDISABLE): Likewise.
29595 [IS_IN (librt)] (CDISABLE): Likewise.
29596 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29597 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
29598 definition.
29599 (PSEUDO_END): Likewise.
29600 [IS_IN (libpthread)] (CENABLE): Likewise.
29601 [IS_IN (libpthread)] (CDISABLE): Likewise.
29602 [IS_IN (libc)] (CENABLE): Likewise.
29603 [IS_IN (libc)] (CENABLE): Likewise.
29604 [IS_IN (librt)] (CDISABLE): Likewise.
29605 [IS_IN (librt)] (CDISABLE): Likewise.
29606 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29607 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
29608 definition.
29609 (PSEUDO_END): Likewise.
29610 [IS_IN (libpthread)] (CENABLE): Likewise.
29611 [IS_IN (libpthread)] (CDISABLE): Likewise.
29612 [IS_IN (libc)] (CENABLE): Likewise.
29613 [IS_IN (libc)] (CENABLE): Likewise.
29614 [IS_IN (librt)] (CDISABLE): Likewise.
29615 [IS_IN (librt)] (CDISABLE): Likewise.
29616 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29617 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
29618 definition.
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/microblaze/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/mips/mips64/sysdep-cancel.h (PSEUDO):
29638 Remove 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 (SINGLE_THREAD_P): Likewise.
29647 * sysdeps/unix/sysv/linux/mips/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/nios2/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/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
29668 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
29669 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
29670 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
29671 definition.
29672 (PSEUDO_END): Likewise.
29673 [IS_IN (libpthread)] (CENABLE): Likewise.
29674 [IS_IN (libpthread)] (CDISABLE): Likewise.
29675 [IS_IN (libc)] (CENABLE): Likewise.
29676 [IS_IN (libc)] (CENABLE): Likewise.
29677 [IS_IN (librt)] (CDISABLE): Likewise.
29678 [IS_IN (librt)] (CDISABLE): Likewise.
29679 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29680 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
29681 definition.
29682 (PSEUDO_END): Likewise.
29683 [IS_IN (libpthread)] (CENABLE): Likewise.
29684 [IS_IN (libpthread)] (CDISABLE): Likewise.
29685 [IS_IN (libc)] (CENABLE): Likewise.
29686 [IS_IN (libc)] (CENABLE): Likewise.
29687 [IS_IN (librt)] (CDISABLE): Likewise.
29688 [IS_IN (librt)] (CDISABLE): Likewise.
29689 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29690 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
29691 definition.
29692 (PSEUDO_END): Likewise.
29693 [IS_IN (libpthread)] (CENABLE): Likewise.
29694 [IS_IN (libpthread)] (CDISABLE): Likewise.
29695 [IS_IN (libc)] (CENABLE): Likewise.
29696 [IS_IN (libc)] (CENABLE): Likewise.
29697 [IS_IN (librt)] (CDISABLE): Likewise.
29698 [IS_IN (librt)] (CDISABLE): Likewise.
29699 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29700 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
29701 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
29702 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
29703 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
29704 definition.
29705 (PSEUDO_END): Likewise.
29706 [IS_IN (libpthread)] (CENABLE): Likewise.
29707 [IS_IN (libpthread)] (CDISABLE): Likewise.
29708 [IS_IN (libc)] (CENABLE): Likewise.
29709 [IS_IN (libc)] (CENABLE): Likewise.
29710 [IS_IN (librt)] (CDISABLE): Likewise.
29711 [IS_IN (librt)] (CDISABLE): Likewise.
29712 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29713 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
29714 definition.
29715 (PSEUDO_END): Likewise.
29716 [IS_IN (libpthread)] (CENABLE): Likewise.
29717 [IS_IN (libpthread)] (CDISABLE): Likewise.
29718 [IS_IN (libc)] (CENABLE): Likewise.
29719 [IS_IN (libc)] (CENABLE): Likewise.
29720 [IS_IN (librt)] (CDISABLE): Likewise.
29721 [IS_IN (librt)] (CDISABLE): Likewise.
29722 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29723
29724 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
29725
29726 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
29727
29728 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29729
29730 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29731
29732 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29733
29734 [BZ #21982]
29735 * string/stratcliff.c (do_test): Declare size, nchars, inner,
29736 middle and outer with size_t instead of int. Repleace %d and
29737 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
29738 "MAX (outer, nchars - 64)" to support unsigned outer and
29739 nchars. Also exit loop when outer == 0.
29740
29741 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29742
29743 * include/fcntl.h (__fcntl_nocancel): Remove definition.
29744 * include/signal.h (__sigsuspend_nocancel): Likewise.
29745 * include/time.h (__nanosleep_nocancel): Likewise.
29746 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
29747 * login/utmp_file.c: Include non cancellable syscall header.
29748 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
29749 prototype.
29750
29751 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29752
29753 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
29754 .byte sequences with AVX512F instructions.
29755 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
29756 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
29757 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
29758 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
29759 Likewise.
29760 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29761 Likewise.
29762
29763 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
29764 Steve Ellcey <sellcey@cavium.com>
29765
29766 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
29767 Use PTR_REG macro in cmp instruction.
29768
29769 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29770
29771 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
29772 Change the return type of the ifunc resolver to match the return
29773 type of the target function.
29774
29775 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29776
29777 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
29778 (preadv64): Likewise.
29779 (pwrite64(: Likewise.
29780 (pwritev64): Likewise.
29781
29782 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
29783 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
29784 (LOAD_ARGS_0): Likewise.
29785 (LOAD_ARGS_1): Likewise.
29786 (LOAD_ARGS_2): Likewise.
29787 (LOAD_ARGS_3): Likewise.
29788 (LOAD_ARGS_4): Likewise.
29789 (LOAD_ARGS_5): Likewise.
29790 (LOAD_ARGS_6): Likewise.
29791 (LOAD_REGS_0): Likewise.
29792 (LOAD_REGS_1): Likewise.
29793 (LOAD_REGS_2): Likewise.
29794 (LOAD_REGS_3): Likewise.
29795 (LOAD_REGS_4): Likewise.
29796 (LOAD_REGS_5): Likewise.
29797 (LOAD_REGS_6): Likewise.
29798 (ASM_ARGS_0): Likewise.
29799 (ASM_ARGS_1): Likewise.
29800 (ASM_ARGS_2): Likewise.
29801 (ASM_ARGS_3): Likewise.
29802 (ASM_ARGS_4): Likewise.
29803 (ASM_ARGS_5): Likewise.
29804 (ASM_ARGS_6): Likewise.
29805 (LOAD_ARGS_TYPES_1): Likewise.
29806 (LOAD_ARGS_TYPES_2): Likewise.
29807 (LOAD_ARGS_TYPES_3): Likewise.
29808 (LOAD_ARGS_TYPES_4): Likewise.
29809 (LOAD_ARGS_TYPES_5): Likewise.
29810 (LOAD_ARGS_TYPES_6): Likewise.
29811 (LOAD_REGS_TYPES_1): Likewise.
29812 (LOAD_REGS_TYPES_2): Likewise.
29813 (LOAD_REGS_TYPES_3): Likewise.
29814 (LOAD_REGS_TYPES_4): Likewise.
29815 (LOAD_REGS_TYPES_5): Likewise.
29816 (LOAD_REGS_TYPES_6): Likewise.
29817 (TYPEFY): New define.
29818 (ARGIFY): Likewise.
29819 (internal_syscall0): Likewise.
29820 (internal_syscall1): Likewise.
29821 (internal_syscall2): Likewise.
29822 (internal_syscall3): Likewise.
29823 (internal_syscall4): Likewise.
29824 (internal_syscall5): Likewise.
29825 (internal_syscall6): Likewise.
29826 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
29827 (INTERNAL_SYSCALL_NCS): Remove define.
29828 (internal_syscall1): Add define.
29829
29830 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29831
29832 * math/w_remainder_compat.c: Remove duplicate inclusion of
29833 math-svid-compat.h.
29834 * math/w_remainderf_compat.c: Likewise.
29835 * math/w_remainderl_compat.c: Likewise.
29836
29837 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29838
29839 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29840
29841 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29842
29843 [BZ #21684]
29844 * math/tgmath.h (__floating_type): Simplify definitions.
29845 (__real_integer_type): New macro.
29846 (__complex_integer_type): Likewise.
29847 (__expr_is_real): Likewise.
29848 (__tgmath_real_type_sub): Update comment to describe handling of
29849 complex types.
29850 (__tgmath_complex_type_sub): New macro.
29851 (__tgmath_complex_type): Likewise.
29852 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29853 (__TGMATH_CF128): Use __expr_is_real.
29854 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
29855 __expr_is_real.
29856 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29857 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
29858 * math/gen-tgmath-tests.py (Type.create_type): Create complex
29859 integer types.
29860
29861 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29862
29863 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
29864 macro.
29865 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
29866 alias.
29867 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
29868 Likewise.
29869
29870 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
29871 nanosleep_not_cancel with __nanosleep_nocancel.
29872 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
29873 (__nanosleep_nocancel): New macro.
29874 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
29875 function.
29876 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
29877 macro.
29878 (__nanosleep_nocancel): New prototype.
29879
29880 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
29881 pause_not_cancel with __pause_nocancel.
29882 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
29883 (__pause_nocancel): New macro.
29884 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
29885 macro.
29886 (__pause_nocancel): New prototype.
29887 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
29888
29889 2017-08-22 Martin Sebor <msebor@redhat.com>
29890
29891 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
29892 to return a pointer to the same type as the target function.
29893
29894 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29895
29896 [BZ #18822]
29897 [BZ #21986]
29898 * include/printf.h (__printf_fphex): Add attribute_hidden.
29899 (__guess_grouping): New prototype.
29900 * stdio-common/printf_fp.c (__guess_grouping): Removed.
29901 * stdio-common/reg-printf.c (__register_printf_specifier): Add
29902 libc_hidden_proto and libc_hidden_def.
29903 * stdlib/strfmon_l.c (__guess_grouping): Removed.
29904 (__vstrfmon_l): Remove the third argument passed to
29905 __guess_grouping.
29906
29907 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29908
29909 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
29910 definition for issignaling that does not rely on __MATH_TG,
29911 since __MATH_TG uses __builtin_types_compatible_p, which is only
29912 available in C mode.
29913 (CFLAGS-test-math-issignaling.cc): New variable.
29914 * math/Makefile [CXX] (tests): Add test-math-issignaling.
29915 * math/test-math-issignaling.cc: New test for C++ implementation
29916 of type-generic issignaling.
29917 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29918 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
29919 options of test-math-issignaling on powerpc64le.
29920
29921 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29922
29923 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
29924 building libc.a.
29925 (hidden_proto): Likewise.
29926 (hidden_tls_proto): Likewise.
29927 (__hidden_proto): Likewise.
29928
29929 2017-08-22 Florian Weimer <fweimer@redhat.com>
29930
29931 math: Statically link tests of internal functionality.
29932 * math/Makefile (tests): Remove atest-exp, atest-sincos,
29933 atest-exp2.
29934 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
29935 (gmp-objs): Remove assignment.
29936 (atest-exp, atest-sincos, atest-exp2): Remove targets.
29937
29938 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29939
29940 [BZ #21987]
29941 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
29942 and copy to ...
29943 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
29944 ... here.
29945 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
29946 ... and here.
29947
29948 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
29949 variable definitions above inclusion of ../Rules.
29950
29951 2017-08-21 Joseph Myers <joseph@codesourcery.com>
29952
29953 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
29954 case calling __builtin_unreachable.
29955
29956 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29957
29958 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
29959 __waitpid_nocancel.
29960 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
29961 (__waitpid_nocancel): New macro.
29962 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
29963 macro.
29964 (__waitpid_nocancel): Replace macro with a function.
29965 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
29966 function.
29967
29968 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
29969 __fcntl_nocancel.
29970 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
29971 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
29972
29973 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
29974 __writev_nocancel_nostatus.
29975 (write_call_graph): Likewise.
29976 (write_bb_counts): Likewise.
29977 * resolv/herror.c (herror): Likewise.
29978 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
29979 macro.
29980 (__writev_nocancel_nostatus): New macro.
29981 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
29982 Remove macro.
29983 (__writev_nocancel_nostatus): New function.
29984
29985 2017-08-21 Joseph Myers <joseph@codesourcery.com>
29986
29987 Revert:
29988 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
29989
29990 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
29991 building libc.a.
29992 (hidden_proto): Likewise.
29993 (hidden_tls_proto): Likewise.
29994 (__hidden_proto): Likewise.
29995
29996 [BZ #21973]
29997 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
29998 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
29999 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30000 Likewise.
30001 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30002 Likewise.
30003 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30004 Likewise.
30005 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30006 Likewise.
30007 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30008 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30009 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30010 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30011 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30012 GLIBC_2.0 sqrtl symbol.
30013
30014 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30015 [__USE_MISC] (_LIB_VERSION): Likewise.
30016 [__USE_MISC] (struct exception): Likewise.
30017 [__USE_MISC] (matherr): Likewise.
30018 [__USE_MISC] (DOMAIN): Likewise.
30019 [__USE_MISC] (SING): Likewise.
30020 [__USE_MISC] (OVERFLOW): Likewise.
30021 [__USE_MISC] (UNDERFLOW): Likewise.
30022 [__USE_MISC] (TLOSS): Likewise.
30023 [__USE_MISC] (PLOSS): Likewise.
30024 [__USE_MISC] (HUGE): Likewise.
30025 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30026 * math/math-svid-compat.h: New file.
30027 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30028 and matherrl.
30029 * include/math.h [!_ISOMAC] (__matherr): Remove.
30030 * manual/arith.texi (FP Exceptions): Do not document matherr.
30031 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30032 (tests-internal): New variable.
30033 (install-lib): Do not add libieee.a.
30034 (non-lib.a): Likewise.
30035 (extra-objs): Do not add libieee.a and ieee-math.o.
30036 (CPPFLAGS-s_lib_version.c): Remove variable.
30037 ($(objpfx)libieee.a): Remove rule.
30038 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30039 * math/ieee-math.c: Remove.
30040 * math/libm-test-support.c (matherr): Remove.
30041 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30042 and license notices. Include <math-svid-compat.h> and
30043 <shlib-compat.h>.
30044 (matherr): Undefine as macro. Use compat_symbol_reference.
30045 (_LIB_VERSION): Likewise.
30046 * math/test-matherr-2.c: New file.
30047 * math/test-matherr-3.c: Likewise.
30048 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30049 declaration.
30050 (__kernel_standard_f): Likewise.
30051 (__kernel_standard_l): Likewise.
30052 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30053 <math_private.h>. Include <math-svid-compat.h>.
30054 (_LIB_VERSION): Undefine as macro.
30055 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30056 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30057 [LIBM_SVID_COMPAT], use compat_symbol.
30058 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30059 <math_private.h>. Include <math-svid-compat.h>.
30060 (matherr): Undefine as macro.
30061 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30062 compat_symbol.
30063 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30064 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30065 compat_symbol_reference.
30066 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30067 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30068 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30069 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30070 (MATHERR_D): Remove declaration.
30071 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30072 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30073 [LIBM_BUILD] (pmatherrf): Likewise.
30074 [LIBM_BUILD] (pmatherr): Likewise.
30075 [LIBM_BUILD] (pmatherrl): Likewise.
30076 (DOMAIN): Likewise.
30077 (SING): Likewise.
30078 (OVERFLOW): Likewise.
30079 (UNDERFLOW): Likewise.
30080 (TLOSS): Likewise.
30081 (PLOSS): Likewise.
30082 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30083 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30084 compat_symbol.
30085 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30086 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30087 compat_symbol.
30088 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30089 * math/w_acos_compat.c: Likewise.
30090 * math/w_acosf_compat.c: Likewise.
30091 * math/w_acosh_compat.c: Likewise.
30092 * math/w_acoshf_compat.c: Likewise.
30093 * math/w_acoshl_compat.c: Likewise.
30094 * math/w_acosl_compat.c: Likewise.
30095 * math/w_asin_compat.c: Likewise.
30096 * math/w_asinf_compat.c: Likewise.
30097 * math/w_asinl_compat.c: Likewise.
30098 * math/w_atan2_compat.c: Likewise.
30099 * math/w_atan2f_compat.c: Likewise.
30100 * math/w_atan2l_compat.c: Likewise.
30101 * math/w_atanh_compat.c: Likewise.
30102 * math/w_atanhf_compat.c: Likewise.
30103 * math/w_atanhl_compat.c: Likewise.
30104 * math/w_cosh_compat.c: Likewise.
30105 * math/w_coshf_compat.c: Likewise.
30106 * math/w_coshl_compat.c: Likewise.
30107 * math/w_exp10_compat.c: Likewise.
30108 * math/w_exp10f_compat.c: Likewise.
30109 * math/w_exp10l_compat.c: Likewise.
30110 * math/w_exp2_compat.c: Likewise.
30111 * math/w_exp2f_compat.c: Likewise.
30112 * math/w_exp2l_compat.c: Likewise.
30113 * math/w_fmod_compat.c: Likewise.
30114 * math/w_fmodf_compat.c: Likewise.
30115 * math/w_fmodl_compat.c: Likewise.
30116 * math/w_hypot_compat.c: Likewise.
30117 * math/w_hypotf_compat.c: Likewise.
30118 * math/w_hypotl_compat.c: Likewise.
30119 * math/w_j0_compat.c: Likewise.
30120 * math/w_j0f_compat.c: Likewise.
30121 * math/w_j0l_compat.c: Likewise.
30122 * math/w_j1_compat.c: Likewise.
30123 * math/w_j1f_compat.c: Likewise.
30124 * math/w_j1l_compat.c: Likewise.
30125 * math/w_jn_compat.c: Likewise.
30126 * math/w_jnf_compat.c: Likewise.
30127 * math/w_jnl_compat.c: Likewise.
30128 * math/w_lgamma_main.c: Likewise.
30129 * math/w_lgamma_r_compat.c: Likewise.
30130 * math/w_lgammaf_main.c: Likewise.
30131 * math/w_lgammaf_r_compat.c: Likewise.
30132 * math/w_lgammal_main.c: Likewise.
30133 * math/w_lgammal_r_compat.c: Likewise.
30134 * math/w_log10_compat.c: Likewise.
30135 * math/w_log10f_compat.c: Likewise.
30136 * math/w_log10l_compat.c: Likewise.
30137 * math/w_log2_compat.c: Likewise.
30138 * math/w_log2f_compat.c: Likewise.
30139 * math/w_log2l_compat.c: Likewise.
30140 * math/w_log_compat.c: Likewise.
30141 * math/w_logf_compat.c: Likewise.
30142 * math/w_logl_compat.c: Likewise.
30143 * math/w_pow_compat.c: Likewise.
30144 * math/w_powf_compat.c: Likewise.
30145 * math/w_powl_compat.c: Likewise.
30146 * math/w_remainder_compat.c: Likewise.
30147 * math/w_remainderf_compat.c: Likewise.
30148 * math/w_remainderl_compat.c: Likewise.
30149 * math/w_scalb_compat.c: Likewise.
30150 * math/w_scalbf_compat.c: Likewise.
30151 * math/w_scalbl_compat.c: Likewise.
30152 * math/w_sinh_compat.c: Likewise.
30153 * math/w_sinhf_compat.c: Likewise.
30154 * math/w_sinhl_compat.c: Likewise.
30155 * math/w_sqrt_compat.c: Likewise.
30156 * math/w_sqrtf_compat.c: Likewise.
30157 * math/w_sqrtl_compat.c: Likewise.
30158 * math/w_tgamma_compat.c: Likewise.
30159 * math/w_tgammaf_compat.c: Likewise.
30160 * math/w_tgammal_compat.c: Likewise.
30161 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30162 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30163 * sysdeps/ieee754/k_standard.c: Likewise.
30164 * sysdeps/ieee754/k_standardf.c: Likewise.
30165 * sysdeps/ieee754/k_standardl.c: Likewise.
30166 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30167 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30168 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30169 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30170 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30171 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30172 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30173 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30174 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30175 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30176 Likewise.
30177 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30178 Likewise.
30179 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30180 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30181 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30182 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30183
30184 2017-08-21 Florian Weimer <fweimer@redhat.com>
30185
30186 [BZ #21864]
30187 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30188 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30189 Move before inclusion of ../Rules.
30190
30191 2017-08-21 Florian Weimer <fweimer@redhat.com>
30192
30193 [BZ #21972]
30194 * assert/assert.h (assert): Use static_cast (bool) for C++.
30195 Use the ternary operator in the warning branch for GNU C.
30196 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30197 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30198 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30199 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30200 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30201
30202 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30203
30204 [BZ #18822]
30205 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30206 (__syscall_clock_gettime): Add attribute_hidden.
30207 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30208 (__start_context): Likewise.
30209
30210 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30211
30212 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30213 building libc.a.
30214 (hidden_proto): Likewise.
30215 (hidden_tls_proto): Likewise.
30216 (__hidden_proto): Likewise.
30217
30218 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30219
30220 * include/libc-symbols.h (attribute_hidden): Enable hidden
30221 visibility in libc.a compiled with PIE.
30222
30223 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30224
30225 [BZ #18822]
30226 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30227 Add attribute_hidden.
30228
30229 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30230
30231 [BZ #21864]
30232 * Makerules (all-nonlib): Add $(others-extras).
30233 * catgets/Makefile (others-extras): New.
30234 * elf/Makefile (others-extras): Likewise.
30235 * nss/Makefile (others-extras): Likewise.
30236
30237 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30238
30239 [BZ #18822]
30240 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30241 * elf/dl-open.c: Include <libc-internal.h>.
30242 (__libc_multiple_libcs): Removed.
30243 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30244 <hp-timing.h>.
30245 * include/libc-internal.h (__libc_multiple_libcs): New.
30246 * misc/sbrk.c: Include <libc-internal.h>.
30247 (__libc_multiple_libcs): Removed.
30248
30249 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30250
30251 [BZ #18822]
30252 * grp/initgroups.c (__nss_group_database): Removed.
30253 (__nss_initgroups_database): Likewise.
30254 * nscd/gai.c (__nss_hosts_database): Likewise.
30255 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30256 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30257 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30258 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30259 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30260 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30261 attribute_hidden.
30262 * nss/nsswitch.c (__nss_database_custom): Define only if
30263 USE_NSCD is defined.
30264 (__nss_configure_lookup): Use __nss_database_custom only if
30265 USE_NSCD is defined.
30266 * nss/nsswitch.h (__nss_database_custom): Declare only if
30267 USE_NSCD is defined. Add attribute_hidden.
30268 (__nss_setent): Add attribute_hidden.
30269 (__nss_endent): Likewise.
30270 (__nss_getent_r): Likewise.
30271 (__nss_getent): Likewise.
30272 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30273
30274 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30275
30276 [BZ #18822]
30277 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30278 libc_hidden_proto and libc_hidden_def.
30279
30280 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30281
30282 [BZ #18822]
30283 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30284 Add libc_hidden_proto.
30285 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30286 Add libc_hidden_def.
30287
30288 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30289
30290 [BZ #21974]
30291 * gmon/Makefile (routines): Remove bb_init_func and
30292 bb_exit_func.
30293 (elide-routines.os): Removed.
30294 * gmon/bb_exit_func.c: Likewise.
30295 * gmon/bb_init_func.c: Likewise.
30296 * include/sys/gmon.h (__bb): Likewise.
30297 (__bb_init_func): Likewise.
30298 (__bb_exit_func): Likewise.
30299 * sysdeps/alpha/bb_init_func.S: Likewise.
30300
30301 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30302
30303 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30304 * include/setjmp.h (____longjmp_chk): Here. Add
30305 attribute_hidden.
30306
30307 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30308
30309 [BZ #18822]
30310 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30311 attribute_hidden.
30312 (__strspn_sse2): Likewise.
30313
30314 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30315
30316 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
30317 (close_not_cancel_no_status): Likewise.
30318 (__close_nocancel): New macro.
30319 (__close_nocancel_nostatus): Likewise.
30320 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
30321 macro.
30322 (close_not_cancel): Likewise.
30323 (close_not_cancel_no_status): Likewise.
30324 (__close_nocancel): New prototype.
30325 (__close_nocancel_nostatus): New function.
30326 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30327 * catgets/open_catalog.c (__open_catalog): Replace
30328 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30329 * gmon/gmon.c (write_gmon): Likewise.
30330 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30331 * intl/loadmsgcat.c (close): Likewise.
30332 * io/ftw.c (open_dir_stream): Likewise.
30333 (ftw_startup): Likewise.
30334 * libio/fileops.c (_IO_file_open): Likewise.
30335 (_IO_file_close_mmap): Likewise.
30336 (_IO_file_close): Likewise.
30337 * libio/iopopen.c (_IO_dup2): Likewise.
30338 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30339 * locale/loadlocale.c (_nl_load_locale): Likewise.
30340 * login/utmp_file.c (pututline_file): Likewise.
30341 (endutent_file): Likewise.
30342 * misc/daemon.c (daemon): Likewise.
30343 * nscd/nscd_getai.c (__nscd_getai): Likewise.
30344 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30345 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30346 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30347 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30348 * nscd/nscd_helper.c (open_socket): Likewise.
30349 (__nscd_open_socket): Likewise.
30350 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
30351 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
30352 (__nscd_innetgr): Likewise.
30353 * nss/nss_db/db-open.c (internal_setent): Likewise.
30354 * resolv/res-close.c (__res_iclose): Likewise.
30355 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
30356 * sysdeps/posix/closedir.c (__closedir): Likewise.
30357 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
30358 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30359 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30360 (opendir_tail): Likewise.
30361 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30362 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
30363 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
30364 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
30365 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30366 (gethostid): Likewise.
30367 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30368 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30369 Likewise.
30370 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30371 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
30372 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30373 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30374 Likewise.
30375 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
30376 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
30377 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30378 Likewise.
30379 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
30380 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30381 Likewise.
30382 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30383 Likewise.
30384 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30385 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30386 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30387 __close_nocancel.
30388
30389 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
30390 (openat_not_cancel_3): Likewise.
30391 (openat64_not_cancel_3): Likewise).
30392 (openat_not_cancel_3): Likewise).
30393 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
30394 macro.
30395 (openat_not_cancel_3): Likewise.
30396 (openat64_not_cancel): Likewise.
30397 (openat64_not_cancel_3): Likewise.
30398 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
30399 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
30400 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
30401 __open{64}_nocancel.
30402 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30403 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30404 * sysdeps/posix/opendir.c (__opendirat): Likewise.
30405
30406 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30407
30408 [BZ #18822]
30409 * include/argz.h (__argz_create_sep): New function prototype.
30410 (__argz_append): Likewise.
30411 (__argz_add): Likewise.
30412 (__argz_add_sep): Likewise.
30413 (__argz_delete): Likewise.
30414 (__argz_insert): Likewise.
30415 (__argz_replace): Likewise.
30416 * string/argz.h (__argz_create_sep): Removed.
30417 (__argz_append): Likewise.
30418 (__argz_add): Likewise.
30419 (__argz_add_sep): Likewise.
30420 (__argz_delete): Likewise.
30421 (__argz_insert): Likewise.
30422 (__argz_replace): Likewise.
30423
30424 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30425
30426 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
30427 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
30428 (GNU_PROPERTY_STACK_SIZE): Likewie.
30429 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
30430 (GNU_PROPERTY_LOPROC): Likewise.
30431 (GNU_PROPERTY_HIPROC): Likewise.
30432 (GNU_PROPERTY_LOUSER): Likewise.
30433 (GNU_PROPERTY_HIUSER): Likewise.
30434 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
30435 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
30436 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
30437 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
30438 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
30439 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
30440 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
30441 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
30442 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
30443 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
30444 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
30445 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
30446 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
30447 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
30448 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
30449 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
30450 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
30451 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
30452 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
30453 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
30454 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
30455 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
30456 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
30457
30458 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30459
30460 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
30461 in C++ mode.
30462
30463 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30464
30465 [BZ #21930]
30466 * math/math.h (isinf): Check if in C or C++ mode before using
30467 __builtin_types_compatible_p, since this is a C mode feature.
30468
30469 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30470
30471 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
30472 (__write_nocancel): New macro.
30473 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
30474 Rewrite as a function prototype.
30475 (write_not_cancel): Remove macro.
30476 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
30477 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
30478 (write_gmon): Likewise.
30479 * libio/fileops.c (_IO_new_file_write): Likewise.
30480 * login/utmp_file.c (pututline_file): Likewise.
30481 (updwtmp_file): Likewise.
30482 * stdio-common/psiginfo.c (psiginfo): Likewise.
30483 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30484 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30485 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30486 Likewise.
30487 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30488 Likewise.
30489
30490 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
30491 (__read_nocancel): New macro.
30492 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30493 __read_nocancel.
30494 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
30495 macro.
30496 (__read_nocancel): New prototype.
30497 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
30498 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
30499 with __read_nocancel.
30500 * intl/loadmsgcat.c (read): Likewise.
30501 * libio/fileops.c (_IO_file_read): Likewise.
30502 * locale/loadlocale.c (_nl_load_locale): Likewise.
30503 * login/utmp_file.c (getutent_r_file): Likewise.
30504 (internal_getut_r): Likewise.
30505 (getutline_r_file): Likewise.
30506 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30507 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
30508 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30509 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30510 Likewise.
30511 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
30512 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30513 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30514 Likewise.
30515 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30516 Likewise.
30517 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30518 Likewise.
30519 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30520 Likewise.
30521 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30522
30523 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30524
30525 [BZ #21966]
30526 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
30527 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
30528 usable.
30529
30530 2017-08-17 DJ Delorie <dj@redhat.com>
30531
30532 * bug17079.c: Update to new test harness.
30533 * test-digits-dots.c: Likewise.
30534 * test-netdb.c: Likewise.
30535 * tst-field.c: Likewise.
30536 * tst-nss-getpwent.c: Likewise.
30537 * tst-nss-static.c: Likewise.
30538 * tst-nss-test1.c: Likewise.
30539 * tst-nss-test2.c: Likewise.
30540 * tst-nss-test3.c: Likewise.
30541 * tst-nss-test4.c: Likewise.
30542 * tst-nss-test5.c: Likewise.
30543
30544 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30545
30546 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
30547 (open_not_cancel_2): Likewise.
30548 (open_nocancel): New macro.
30549 (open64_nocancel): Likewise.
30550 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
30551 (open_not_cancel_2): Likewise.
30552 (__open_nocancel): New prototype.
30553 (__open64_nocancel): Likewise.
30554 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30555 __open_nocancel.
30556 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
30557 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
30558 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
30559 with __open_nocancel.
30560 * csu/check_fds.c (check_one_fd): Likewise.
30561 * gmon/gmon.c (write_gmon): Likewise.
30562 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
30563 * intl/loadmsgcat.c (open): Likewise.
30564 * libio/fileops.c (_IO_file_open): Likewise.
30565 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30566 * locale/loadlocale.c (_nl_load_locale): Likewise.
30567 * login/utmp_file.c (setutent_file): Likewise.
30568 * misc/daemon.c (daemon): Likewise.
30569 * nss/nss_db/db-open.c (internal_setent): Likewise.
30570 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30571 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
30572 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30573 (__opendir): Likewise.
30574 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30575 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30576 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30577 (gethostid): Likewise.
30578 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30579 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30580 Likewise.
30581 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30582 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
30583 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30584 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30585 Likewise.
30586 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30587 Likewise.
30588 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30589 Likewise.
30590 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
30591 Likewise.
30592 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30593 Likewise.
30594 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30595 Likewise.
30596 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30597 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30598
30599 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
30600
30601 * benchtests/bench-skeleton.c (main): Add support for
30602 latency benchmarking.
30603 * benchtests/scripts/bench.py: Add support for latency benchmarking.
30604
30605 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
30606
30607 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
30608 the startup object.
30609
30610 2017-08-17 Florian Weimer <fweimer@redhat.com>
30611
30612 * include/sys/socket.h (__opensock): Remove internal_function.
30613 * socket/opensock.c (__opensock): Likewise.
30614 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
30615
30616 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30617
30618 [BZ #21944]
30619 * signal/bits/types/__sigval_t.h: New file.
30620 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
30621 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
30622 and define sigval_t using __sigval_t.
30623 * include/bits/types/__sigval_t.h: New file.
30624 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
30625 instead of <bits/types/__sigval_t.h>.
30626 (struct sigevent): Use __sigval_t instead of sigval_t.
30627 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
30628 instead of <bits/types/__sigval_t.h>.
30629 (siginfo_t): Use __sigval_t instead of sigval_t.
30630 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
30631 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30632 (struct sigevent): Use __sigval_t instead of sigval_t.
30633 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
30634 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30635 (siginfo_t): Use __sigval_t instead of sigval_t.
30636 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
30637
30638 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30639
30640 * NEWS: Remove "[Add new features here]" for 2.27.
30641
30642 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30643
30644 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
30645 libc.so.
30646
30647 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30648
30649 * NEWS: Mention x86-64 FMA optimization.
30650
30651 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30652
30653 [BZ #21912]
30654 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30655 Add e_expf-fma.
30656 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
30657 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
30658 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
30659
30660 2017-08-16 Andreas Schwab <schwab@suse.de>
30661
30662 [BZ #16750]
30663 CVE-2009-5064
30664 * elf/ldd.bash.in: Never run file directly.
30665
30666 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
30667
30668 [BZ #21955]
30669 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
30670 (L(SP_INF_0)): Likewise.
30671
30672 2017-08-15 Florian Weimer <fweimer@redhat.com>
30673
30674 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
30675 run-built-tests.
30676
30677 2017-08-15 Florian Weimer <fweimer@redhat.com>
30678
30679 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
30680 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
30681 BROKEN_THREAD_SIGNALS code.
30682 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
30683 request_list): Remove caller_pid member used for
30684 BROKEN_THREAD_SIGNALS.
30685 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
30686 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30687 Remove BROKEN_THREAD_SIGNALS support.
30688 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
30689 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
30690
30691 2017-08-15 Florian Weimer <fweimer@redhat.com>
30692
30693 * gmon/Makefile (tests): Add tst-gmon.
30694 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
30695 Set.
30696 (tests-special): Add tst-gmon-prof.out.
30697 (tst-gmon.out): Depend on clean-tst-gmon-data.
30698 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
30699 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
30700 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
30701 startup object.
30702 * aclocal.m4 (GPROF): Set and substitute.
30703 * config.amke.in (GPROF): Set.
30704 * configure: Regenerate.
30705
30706 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
30707
30708 * elf/elf.h A (NT_PPC_TAR): New macro.
30709 (NT_PPC_PPR): Likewise.
30710 (NT_PPC_DSCR): Likewise.
30711 (NT_PPC_EBB): Likewise.
30712 (NT_PPC_PMU): Likewise.
30713 (NT_PPC_TM_CGPR): Likewise.
30714 (NT_PPC_TM_CFPR): Likewise.
30715 (NT_PPC_TM_CVMX): Likewise.
30716 (NT_PPC_TM_CVSX): Likewise.
30717 (NT_PPC_TM_SPR): Likewise.
30718 (NT_PPC_TM_CTAR): Likewise.
30719 (NT_PPC_TM_CPPR): Likewise.
30720 (NT_PPC_TM_CDSCR): Likewise.
30721
30722 2017-08-15 Florian Weimer <fweimer@redhat.com>
30723
30724 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
30725 regparm (2) instead of internal_function.
30726 (_MCOUNT_DECL): Adjust.
30727
30728 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
30729
30730 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
30731 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
30732
30733 2017-08-14 Joseph Myers <joseph@codesourcery.com>
30734
30735 * conform/data/sys/wait.h-data (si_value): Do not expect for
30736 XPG42.
30737
30738 2017-08-14 Florian Weimer <fweimer@redhat.com>
30739
30740 [BZ #21962]
30741 NSS: Create stubs for accidentally exported lookup functions.
30742 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
30743 Remove declaration.
30744 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
30745 (ether_hostton): Call __nss_ethers_lookup2 instead.
30746 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
30747 (ether_ntohost): Call __nss_ethers_lookup2 instead.
30748 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
30749 (setup): Call __nss_netgroup_lookup2 instead.
30750 * nss/Makefile (routines): Add compat-lookup.
30751 * nss/Versions (GLIBC_2.27): Add symbol version.
30752 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
30753 (DB_COMPAT_FCT): Remove.
30754 * nss/compat-lookup.c: New file.
30755 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
30756 from databases.def.
30757 * nss/service-lookup.c (NO_COMPAT): Remove definition.
30758 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
30759 (netname2user): Call __nss_publickey_lookup2 instead.
30760 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
30761 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
30762 instead.
30763
30764 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30765 Sergei Trofimovich <slyfox@inbox.ru>
30766
30767 [BZ #21908]
30768 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
30769 Rename to MMAP2_PAGE_UNIT.
30770 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
30771 __OFF_T_MATCHES_OFF64_T is not defined.
30772 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
30773 uint64_t.
30774 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
30775 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
30776
30777 2017-08-14 Florian Weimer <fweimer@redhat.com>
30778
30779 i386: Do not set internal_function.
30780 * config.h.in (USE_REGPARMS, internal_function): Remove.
30781 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
30782 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
30783
30784 2017-08-14 Florian Weimer <fweimer@redhat.com>
30785
30786 * elf/dl-init.c (_dl_init): Remove internal_function.
30787 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
30788 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
30789
30790 2017-08-14 Florian Weimer <fweimer@redhat.com>
30791
30792 * elf/rtld.c (_dl_start): Remove internal_function.
30793 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
30794 _dl_start.
30795
30796 2017-08-14 Florian Weimer <fweimer@redhat.com>
30797
30798 * elf/dl-fini.c (_dl_fini): Remove internal_function
30799 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
30800
30801 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
30802
30803 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
30804 (bit_cpu_SHSTK): Likewise.
30805 (index_cpu_IBT): Likewise.
30806 (index_cpu_SHSTK): Likewise.
30807 (reg_IBT): Likewise.
30808 (reg_SHSTK): Likewise.
30809 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30810 Handle index_cpu_IBT and index_cpu_SHSTK.
30811
30812 2017-08-14 Mike FABIAN <mfabian@redhat.com>
30813
30814 [BZ #19982]
30815 * po/fr.po: Fix spelling mistake.
30816
30817 2017-08-13 Florian Weimer <fweimer@redhat.com>
30818
30819 * elf/dl-addr.c (_dl_addr): Remove internal_function.
30820 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
30821 (_dl_catch_error, _dl_receive_error): Likewise.
30822 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
30823 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
30824 (_dl_deallocate_tls): Likewise.
30825 * include/dlfcn.h (_dl_addr): Likewise.
30826 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
30827 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
30828 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
30829 Likewise.
30830
30831 2017-08-13 Florian Weimer <fweimer@redhat.com>
30832
30833 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
30834 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
30835 internal_function.
30836 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
30837
30838 2017-08-13 Florian Weimer <fweimer@redhat.com>
30839
30840 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
30841 internal_function.
30842 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
30843 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
30844 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
30845 internal_function from _dl_make_stack_executable_hook member.
30846 (_dl_make_stack_executable): Remove internal_function.
30847 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
30848 Likewise.
30849 * sysdeps/unix/sysv/linux/dl-execstack.c
30850 (_dl_make_stack_executable): Likewise.
30851
30852 2017-08-13 Florian Weimer <fweimer@redhat.com>
30853
30854 * sysdeps/unix/sysv/linux/netlinkaccess.h
30855 (__netlink_assert_response): Remove internal_function.
30856 * sysdeps/unix/sysv/linux/netlink_assert_response.c
30857 (__netlink_assert_response): Likewise.
30858
30859 2017-08-13 Florian Weimer <fweimer@redhat.com>
30860
30861 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
30862 internal_function.
30863 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
30864
30865 2017-08-13 Florian Weimer <fweimer@redhat.com>
30866
30867 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
30868 internal_function.
30869 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
30870 * inet/netgroup.h (__internal_setnetgrent)
30871 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30872 * inet/getnetgrent_r.c (__internal_setnetgrent)
30873 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30874 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
30875 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
30876 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
30877 * nss/nsswitch.h (db_lookup_function): Likewise.
30878
30879 2017-08-13 Florian Weimer <fweimer@redhat.com>
30880
30881 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
30882 Remove internal_function.
30883 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
30884 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
30885 message argument on the stack.
30886 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
30887 Likeweise.
30888
30889 2017-08-12 Mike FABIAN <mfabian@redhat.com>
30890
30891 Adapt test case data to the changes in the thousands
30892 separators.
30893
30894 [BZ #20756]
30895 * localedata/tst-langinfo.sh: Adapt test case data.
30896 * stdlib/tst-strfmon_l.c: Likewise.
30897 * stdlib/tst-strtod4.c: Likewise.
30898 * stdlib/tst-strtod5i.c: Likewise.
30899
30900 2017-08-11 Florian Weimer <fweimer@redhat.com>
30901
30902 [BZ #21242]
30903 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
30904 Suppress pedantic warning resulting from statement expression.
30905 (__ASSERT_FUNCTION): Add missing __extension__.
30906
30907 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30908
30909 * benchtests/bench-memmove-large.c: Print output in JSON
30910 format.
30911 * benchtests/bench-memmove.c: Likewise.
30912
30913 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
30914 * benchtests/bench-memchr.c (do_one_test): Likewise.
30915 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
30916 * benchtests/bench-memcpy.c (do_one_test): Likewise.
30917 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
30918 * benchtests/bench-memmove.c (do_one_test): Likewise.
30919 * benchtests/bench-memset-large.c (do_one_test): Likewise.
30920 * benchtests/bench-memset.c (do_one_test): Likewise.
30921 * benchtests/bench-string.h (test_init): Remove memsets.
30922
30923 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
30924
30925 * manual/lang.texi
30926 (Computing the Width of an Integer Data Type): Rename section to
30927 "Width of an Integer Type". Remove inaccurate statement regarding
30928 lack of C language facilities for determining width of integer
30929 types, and reorder content to improve flow and context of
30930 discussion.
30931
30932 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
30933
30934 * lang.texi (va_copy): Change standard from ISO to C99.
30935 (__va_copy): Add standard and header annotation.
30936 Update description for clarity of origins and current use.
30937
30938 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30939
30940 [BZ #21941]
30941 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
30942 xssqrtqp requires operands to be in Vector Registers
30943 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
30944 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
30945 (__ieee754_sqrtf128): Likewise.
30946
30947 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
30948
30949 * sysdeps/aarch64/memcmp.S (memcmp):
30950 Rewrite of optimized memcmp.
30951
30952 2017-08-10 Florian Weimer <fweimer@redhat.com>
30953
30954 Introduce ld.so exceptions.
30955 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
30956 (_dl_exception_create, _dl_exception_create_format)
30957 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
30958 (_dl_catch_exception): Declare.
30959 (_dl_catch_error): Update comment.
30960 * elf/dl-error-skeleton.c (struct catch): Replace objname,
30961 errstring, malloced members with exception member.
30962 (_dl_out_of_memory): Remove.
30963 (fatal_error): New function, extracted from _dl_signal_error.
30964 (_dl_signal_exception, _dl_signal_cexception): New functions.
30965 (_dl_signal_error): Call _dl_exception_create to allocate an
30966 exception object.
30967 (_dl_catch_exception): New function, based on _dl_catch_error.
30968 (_dl_catch_error): Implement using _dl_catch_exception.
30969 * elf/dl-exception.c: New file.
30970 * elf/Makefile (dl-routines): Add dl-exception.
30971 (elide-routines.os): Likewise.
30972 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
30973 _dl_exception_create_format, _dl_exception_free.
30974 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
30975 _dl_signal_exception.
30976 * elf/dl-lookup.c (make_string): Remove.
30977 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
30978 _dl_signal_cexception, _dl_exception_free.
30979 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
30980 _dl_signal_exception.
30981 * elf/dl-sym.c (do_sym): Likewise.
30982 * elf/dl-version.c (make_string): Remove.
30983 (match_symbol): Use _dl_exception_create_format,
30984 _dl_signal_cexception, _dl_exception_free.
30985 (_dl_check_map_versions): Likewise.
30986 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
30987 _dl_catch_exception.
30988 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
30989 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
30990 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
30991 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
30992 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
30993 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
30994 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
30995 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
30996 Likewise.
30997 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
30998 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
30999 (ld.so): Likewise.
31000 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31001 (ld.so): Likewise.
31002 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31003 Likewise.
31004 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31005 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31006 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31007 Likewise.
31008 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31009 Likewise.
31010 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31011
31012 2017-08-10 Florian Weimer <fweimer@redhat.com>
31013
31014 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31015 attribute_hidden, internal_function.
31016 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31017 internal_function.
31018
31019 2017-08-10 Florian Weimer <fweimer@redhat.com>
31020
31021 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31022 function which calls __builtin_unreachable.
31023
31024 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31025
31026 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31027 Indian monetary formatting
31028 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31029 test cases.
31030
31031 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31032
31033 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31034 Fix typo in comment.
31035
31036 [BZ #21928]
31037 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31038 PTRACE_SEIZE_DEVEL): Remove.
31039 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31040 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31041 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31042 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31043 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31044
31045 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31046
31047 * posix/bits/types.h (__qaddr_t): Remove.
31048
31049 [BZ #21457]
31050 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31051 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31052 __glibc_reserved1.
31053 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31054 (ucontext_t): Use __ctx with uc_flags.
31055 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31056 (__ctxt): Likewise.
31057 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31058 __glibc_reserved1.
31059 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31060 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31061 __glibc_reserved1.
31062 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31063 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31064 __glibc_reserved1.
31065 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31066 macro.
31067 (ucontext_t): Use __ctx with uc_flags.
31068 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31069 (ucontext_t): Use __ctx with uc_flags.
31070 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31071 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31072 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31073 (ucontext_t): Use __ctx with uc_flags.
31074 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31075 undefine further down.
31076 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31077 __glibc_reserved1.
31078 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31079 undefine further down.
31080 (ucontext_t): Use __ctx with uc_flags.
31081 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31082 undefine further down.
31083 (ucontext_t): Use __ctx with uc_flags.
31084 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31085 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31086 Rename uc_pad to __glibc_reserved1.
31087 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31088 undefine further down.
31089 (ucontext_t): Use __ctx with uc_flags.
31090 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31091 further down.
31092 (ucontext_t): Use __ctx with uc_flags.
31093 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31094 __ctx with uc_flags.
31095 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31096 (ucontext_t): Use __ctx with uc_flags.
31097 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31098 __ctx with uc_flags.
31099
31100 2017-08-09 Florian Weimer <fweimer@redhat.com>
31101
31102 [BZ #21932]
31103 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31104 before early return.
31105
31106 2017-08-09 Andreas Schwab <schwab@suse.de>
31107
31108 [BZ #21041]
31109 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31110 renamed alias.
31111
31112 [BZ #21041]
31113 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31114 tst-compat-forwarder.
31115 (modules-names): Add tst-compat-forwarder-mod.
31116 ($(objpfx)tst-compat-forwarder): Depend on
31117 $(objpfx)tst-compat-forwarder-mod.so.
31118 * nptl/tst-compat-forwarder.c: New file.
31119 * nptl/tst-compat-forwarder-mod.c: New file.
31120
31121 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31122
31123 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31124 comments.
31125
31126 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31127 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31128 memcpy_falkor.
31129 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31130 Bump.
31131 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31132 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31133 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31134 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31135 Add falkor.
31136 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31137 New macro.
31138
31139 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31140
31141 [BZ #759]
31142 * manual/setjmp.texi (getcontex): Document uc_stack value
31143 compatibility differences.
31144
31145 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31146
31147 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31148 (old_malloc_hook): Likewise.
31149 (old_memalign_hook): Likewise.
31150 (old_realloc_hook): Likewise.
31151 (struct hdr): Likewise.
31152 (flood): Likewise.
31153 (freehook): Likewise.
31154 (mallochook): Likewise.
31155 (memalignhook): Likewise.
31156 (reallochook): Likewise.
31157 (mprobe): Likewise.
31158 * malloc/mtrace.c (mallwatch): Likewise.
31159 (tr_old_free_hook): Likewise.
31160 (tr_old_malloc_hook): Likewise.
31161 (tr_old_realloc_hook): Likewise.
31162 (tr_old_memalign_hook): Likewise.
31163 (tr_where): Likewise.
31164 (lock_and_info): Likewise.
31165 (tr_freehook): Likewise.
31166 (tr_mallochook): Likewise.
31167 (tr_reallochook): Likewise.
31168 (tr_memalignhook): Likewise.
31169 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31170 * misc/mmap.c (__mmap): Likewise.
31171 * misc/mmap64.c (__mmap64): Likewise.
31172 * misc/mprotect.c (__mprotect): Likewise.
31173 * misc/msync.c (msync): Likewise.
31174 * misc/munmap.c (__munmap): Likewise.
31175 * posix/posix_madvise.c (posix_madvise): Likewise.
31176 * socket/send.c (__send): Likewise.
31177 * socket/sendto.c (__sendto): Likewise.
31178 * socket/setsockopt.c (__setsockopt): Likewise.
31179 * string/memcmp.c (__ptr_t): Remove macro.
31180 (MEMCMP): Use void * instead of ptr_t.
31181 * string/memrchr.c (__ptr_t): Remove macro.
31182 (__memrchr): Use void * instead of ptr_t.
31183 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31184 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31185 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31186 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31187 * sysdeps/mach/msync.c (msync): Likewise.
31188 * sysdeps/mach/munmap.c (__munmap): Likewise.
31189 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31190 Likewise.
31191 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31192 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31193 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31194 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31195 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31196 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31197 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31198 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31199 Likewise.
31200 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31201 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31202 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31203 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31204 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31205 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31206 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31207 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31208 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31209 Likewise.
31210 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31211 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31212 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31213 (MEMCMP): Use void * instead of ptr_t.
31214 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31215 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31216
31217 2017-08-08 Florian Weimer <fweimer@redhat.com>
31218
31219 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31220 return statement.
31221
31222 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31223
31224 [BZ #21913]
31225 * csu/libc-tls.c: Include <startup.h> first.
31226 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31227 * elf/dl-tunables.c: Include <startup.h> first.
31228 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31229 * sysdeps/generic/startup.h: New file.
31230 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31231 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31232 (I386_USE_SYSENTER): New. Defined to 0.
31233
31234 2017-08-08 Andreas Schwab <schwab@suse.de>
31235
31236 [BZ #21041]
31237 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31238 * nptl/pt-system.c (system): Likewise.
31239
31240 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31241
31242 [BZ #21780]
31243 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31244 EOPNOTSUPP.
31245 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31246 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31247 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31248 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31249 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31250 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31251 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31252
31253 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31254
31255 [BZ #21899]
31256 * bits/sigaction.h (struct sigaction): Define sa_handler and
31257 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31258 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31259 [__USE_XOPEN_EXTENDED].
31260 (SA_RESTART): Likewise.
31261 (SA_NODEFER): Likewise.
31262 (SA_RESETHAND): Likewise.
31263 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31264 (struct sigaction): Define sa_handler and sa_sigaction using union
31265 also for [__USE_XOPEN_EXTENDED].
31266 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31267 [__USE_XOPEN_EXTENDED].
31268 (SA_RESTART): Likewise.
31269 (SA_NODEFER): Likewise.
31270 (SA_RESETHAND): Likewise.
31271 * sysdeps/unix/sysv/linux/bits/sigaction.h
31272 (struct sigaction): Define sa_handler and sa_sigaction using union
31273 also for [__USE_XOPEN_EXTENDED].
31274 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31275 [__USE_XOPEN_EXTENDED].
31276 (SA_RESTART): Likewise.
31277 (SA_NODEFER): Likewise.
31278 (SA_RESETHAND): Likewise.
31279 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31280 (struct sigaction): Define sa_handler and sa_sigaction using union
31281 also for [__USE_XOPEN_EXTENDED].
31282 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31283 [__USE_XOPEN_EXTENDED].
31284 (SA_RESTART): Likewise.
31285 (SA_NODEFER): Likewise.
31286 (SA_RESETHAND): Likewise.
31287 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31288 (struct sigaction): Define sa_handler and sa_sigaction using union
31289 also for [__USE_XOPEN_EXTENDED].
31290 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31291 [__USE_XOPEN_EXTENDED].
31292 (SA_RESTART): Likewise.
31293 (SA_NODEFER): Likewise.
31294 (SA_RESETHAND): Likewise.
31295 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31296 (struct sigaction): Define sa_handler and sa_sigaction using union
31297 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/s390/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/sparc/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. Define directly rather than as alias.
31318 (SA_RESETHAND): Likewise.
31319 (SA_INTERRUPT): Define only for [__USE_MISC].
31320 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
31321 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
31322 [__USE_MISC].
31323 (SA_STACK): Define only for [__USE_MISC].
31324 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
31325 (struct sigaction): Define sa_handler and sa_sigaction using union
31326 also for [__USE_XOPEN_EXTENDED].
31327 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31328 [__USE_XOPEN_EXTENDED].
31329 (SA_RESTART): Likewise.
31330 (SA_NODEFER): Likewise.
31331 (SA_RESETHAND): Likewise.
31332 (SA_NOPTRACE): Define only for [__USE_MISC].
31333
31334 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31335 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31336 (struct catalog_info): Likewise.
31337 * inet/htontest.c (lo): Likewise.
31338 (foo): Likewise.
31339 * inet/inet_lnaof.c (inet_lnaof): Likewise.
31340 * inet/inet_net.c (inet_network): Likewise.
31341 * inet/inet_netof.c (inet_netof): Likewise.
31342 * inet/rcmd.c (__ivaliduser): Likewise.
31343 (iruserok): Likewise.
31344 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
31345 * locale/programs/locale-spec.c (locale_special): Likewise.
31346 * nis/nis_findserv.c (struct findserv_req): Likewise.
31347 (__nis_findfastest_with_timeout): Likewise.
31348 * nss/test-netdb.c (test_network): Likewise.
31349 * resolv/inet_neta.c (inet_neta): Likewise.
31350 * resolv/ns_date.c (ns_datetosecs): Likewise.
31351 (SECS_PER_DAY): Likewise.
31352 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
31353 Likewise.
31354 * resolv/res_comp.c (__putlong): Likewise.
31355 (__putshort): Likewise.
31356 (_getlong): Likewise.
31357 (_getshort): Likewise.
31358 * resolv/res_debug.c (p_time): Likewise.
31359 (precsize_ntoa): Likewise.
31360 (precsize_aton): Likewise.
31361 (latlon2ul): Likewise.
31362 (loc_aton): Likewise.
31363 (loc_ntoa): Likewise.
31364 * resolv/res_hconf.c (struct netaddr): Likewise.
31365 (_res_hconf_reorder_addrs): Likewise.
31366 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
31367 (clnttcp_control): Likewise.
31368 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31369 (clntudp_control): Likewise.
31370 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
31371 (clntunix_control): Likewise.
31372 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
31373 * sunrpc/rpc/auth.h (union des_block): Likewise.
31374 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
31375 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
31376 (xdrrec_create): Likewise.
31377 (xdrrec_endofrecord): Likewise.
31378 (flush_out): Likewise.
31379 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
31380 (xdrstdio_putlong): Likewise.
31381 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
31382 Likewise.
31383
31384 * misc/sys/cdefs.h (__long_double_t): Remove.
31385 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
31386 instead of __long_double_t,
31387 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
31388
31389 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
31390
31391 * benchtests/scripts/compare_strings.py: Avoid display error when
31392 running on a text terminal.
31393
31394 * benchtests/scripts/compare_strings.py (main): Add an
31395 optional -base option.
31396 (process_results): New argument base_func.
31397
31398 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
31399 hardcoding memcpy.
31400 * benchtests/bench-memcpy-large.c (test_name): Likewise.
31401 * benchtests/bench-memcpy-random.c (test_name): Likewise.
31402
31403 2017-08-07 Andreas Schwab <schwab@suse.de>
31404
31405 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
31406 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
31407 * intl/Makefile ($(objpfx)tst-gettext.out)
31408 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
31409 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
31410 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
31411 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
31412 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
31413 * posix/Makefile ($(objpfx)globtest.out)
31414 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
31415 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
31416 ($(objpfx)tst-printf.out): Likewise.
31417 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
31418 ($(objpfx)tst-setcontext3.out): Likewise.
31419
31420 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
31421
31422 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31423 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
31424 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
31425 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
31426 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
31427 and mptan-fma.
31428 (CFLAGS-doasin-fma.c): New.
31429 (CFLAGS-dosincos-fma.c): Likewise.
31430 (CFLAGS-e_asin-fma.c): Likewise.
31431 (CFLAGS-e_atan2-fma.c): Likewise.
31432 (CFLAGS-e_exp-fma.c): Likewise.
31433 (CFLAGS-e_log-fma.c): Likewise.
31434 (CFLAGS-e_pow-fma.c): Likewise.
31435 (CFLAGS-halfulp-fma.c): Likewise.
31436 (CFLAGS-mpa-fma.c): Likewise.
31437 (CFLAGS-mpatan-fma.c): Likewise.
31438 (CFLAGS-mpatan2-fma.c): Likewise.
31439 (CFLAGS-mpexp-fma.c): Likewise.
31440 (CFLAGS-mplog-fma.c): Likewise.
31441 (CFLAGS-mpsqrt-fma.c): Likewise.
31442 (CFLAGS-mptan-fma.c): Likewise.
31443 (CFLAGS-s_atan-fma.c): Likewise.
31444 (CFLAGS-sincos32-fma.c): Likewise.
31445 (CFLAGS-slowexp-fma.c): Likewise.
31446 (CFLAGS-slowpow-fma.c): Likewise.
31447 (CFLAGS-s_sin-fma.c): Likewise.
31448 (CFLAGS-s_tan-fma.c): Likewise.
31449 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
31450 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
31451 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
31452 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
31453 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
31454 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
31455 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
31456 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
31457 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
31458 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
31459 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
31460 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
31461 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
31462 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
31463 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
31464 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
31465 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
31466 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
31467 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
31468 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
31469 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
31470 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
31471 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
31472 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
31473 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
31474 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31475 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31476 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
31477 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31478 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31479 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31480
31481 2017-08-04 Joseph Myers <joseph@codesourcery.com>
31482
31483 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
31484 (min_of_type_f): New macro.
31485 (min_of_type_): Likewise.
31486 (min_of_type_l): Likewise.
31487 (min_of_type_f128): Likewise.
31488 (min_of_type): Define using __MATH_TG and taking an expression
31489 argument.
31490 (math_check_force_underflow): Pass expression instead of type to
31491 min_of_type.
31492 (math_check_force_underflow_nonneg): Likewise.
31493
31494 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31495
31496 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31497 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
31498 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
31499
31500 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31501
31502 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31503 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
31504 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
31505 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
31506 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
31507 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
31508 memcpy_chk-nonshared, mempcpy_chk-nonshared,
31509 memmove_chk-nonshared and memset_chk-nonshared
31510 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
31511 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
31512 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
31513 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
31514 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
31515 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
31516 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
31517 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
31518 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
31519 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
31520 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
31521 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
31522 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
31523 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
31524 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
31525 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
31526 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
31527 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
31528 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
31529 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
31530 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
31531 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
31532 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
31533 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
31534 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
31535 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
31536 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
31537 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
31538 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
31539 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
31540 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
31541 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
31542 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
31543 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31544 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31545 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
31546 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
31547 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
31548 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
31549 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
31550 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
31551 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
31552 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
31553 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
31554 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
31555 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
31556 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
31557 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
31558 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
31559 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
31560 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
31561 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
31562 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
31563 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
31564 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
31565 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
31566 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
31567 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
31568 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
31569 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
31570 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
31571 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
31572 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
31573 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
31574 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
31575 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
31576 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
31577 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
31578 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
31579 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
31580 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
31581 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
31582 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
31583 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
31584 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
31585 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
31586 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31587 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31588 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31589 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31590 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31591 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31592 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31593 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31594 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
31595 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
31596 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
31597 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
31598 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31599 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31600 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31601 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31602 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31603 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31604 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
31605 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
31606 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
31607 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
31608 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
31609 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
31610 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
31611 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
31612 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
31613 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
31614 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
31615 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
31616 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
31617 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
31618
31619 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31620
31621 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
31622 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
31623 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
31624 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
31625 svml_d_log2_core-sse2, svml_d_log4_core-sse,
31626 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
31627 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
31628 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
31629 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
31630 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
31631 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
31632 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
31633 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
31634 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
31635 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
31636 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
31637 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
31638 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
31639 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
31640 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
31641 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
31642 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
31643 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
31644 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
31645 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
31646 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
31647 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
31648 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
31649 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
31650 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
31651 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
31652 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
31653 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
31654 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
31655 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
31656 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
31657 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
31658 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
31659 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
31660 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
31661 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
31662 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
31663 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
31664 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
31665 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
31666 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
31667 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
31668 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
31669 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
31670 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
31671 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
31672 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
31673 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
31674 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
31675 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
31676 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
31677 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
31678 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
31679 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
31680 ...
31681 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
31682 Don't include <sysdep.h> nor <init-arch.h>.
31683 (_ZGVbN2v_cos): Removed.
31684 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
31685 ...
31686 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
31687 Don't include <sysdep.h> nor <init-arch.h>.
31688 (_ZGVdN4v_cos): Removed.
31689 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
31690 ...
31691 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
31692 Don't include <sysdep.h> nor <init-arch.h>.
31693 (_ZGVeN8v_cos): Removed.
31694 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
31695 ...
31696 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
31697 Don't include <sysdep.h> nor <init-arch.h>.
31698 (_ZGVbN2v_exp): Removed.
31699 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
31700 ...
31701 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
31702 Don't include <sysdep.h> nor <init-arch.h>.
31703 (_ZGVdN4v_exp): Removed.
31704 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
31705 ...
31706 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
31707 Don't include <sysdep.h> nor <init-arch.h>.
31708 (_ZGVeN8v_exp): Removed.
31709 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
31710 ...
31711 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
31712 Don't include <sysdep.h> nor <init-arch.h>.
31713 (_ZGVbN2v_log): Removed.
31714 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
31715 ...
31716 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
31717 Don't include <sysdep.h> nor <init-arch.h>.
31718 (_ZGVdN4v_log): Removed.
31719 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
31720 ...
31721 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
31722 Don't include <sysdep.h> nor <init-arch.h>.
31723 (_ZGVeN8v_log): Removed.
31724 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
31725 ...
31726 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
31727 Don't include <sysdep.h> nor <init-arch.h>.
31728 (_ZGVbN2vv_pow): Removed.
31729 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
31730 ...
31731 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
31732 Don't include <sysdep.h> nor <init-arch.h>.
31733 (_ZGVdN4vv_pow): Removed.
31734 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
31735 ...
31736 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
31737 Don't include <sysdep.h> nor <init-arch.h>.
31738 (_ZGVeN8vv_pow): Removed.
31739 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
31740 ...
31741 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
31742 Don't include <sysdep.h> nor <init-arch.h>.
31743 (_ZGVbN2v_sin): Removed.
31744 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
31745 ...
31746 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
31747 Don't include <sysdep.h> nor <init-arch.h>.
31748 (_ZGVbN4v_sin): Removed.
31749 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
31750 ...
31751 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
31752 Don't include <sysdep.h> nor <init-arch.h>.
31753 (_ZGVbN8v_sin): Removed.
31754 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
31755 ...
31756 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
31757 Don't include <sysdep.h> nor <init-arch.h>.
31758 (_ZGVbN2vvv_sincos): Removed.
31759 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
31760 ...
31761 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
31762 Don't include <sysdep.h> nor <init-arch.h>.
31763 (_ZGVdN4vvv_sincos): Removed.
31764 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
31765 ...
31766 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
31767 Don't include <sysdep.h> nor <init-arch.h>.
31768 (_ZGVeN8vvv_sincos): Removed.
31769 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
31770 ...
31771 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
31772 Don't include <sysdep.h> nor <init-arch.h>.
31773 (_ZGVeN16v_cosf): Removed.
31774 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
31775 ...
31776 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
31777 Don't include <sysdep.h> nor <init-arch.h>.
31778 (_ZGVbN4v_cosf): Removed.
31779 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
31780 ...
31781 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
31782 Don't include <sysdep.h> nor <init-arch.h>.
31783 (_ZGVdN8v_cosf): Removed.
31784 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
31785 ...
31786 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
31787 Don't include <sysdep.h> nor <init-arch.h>.
31788 (_ZGVeN16v_expf): Removed.
31789 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
31790 ...
31791 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
31792 Don't include <sysdep.h> nor <init-arch.h>.
31793 (_ZGVbN4v_expf): Removed.
31794 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
31795 ...
31796 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
31797 Don't include <sysdep.h> nor <init-arch.h>.
31798 (_ZGVdN8v_expf): Removed.
31799 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
31800 ...
31801 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
31802 Don't include <sysdep.h> nor <init-arch.h>.
31803 (_ZGVeN16v_logf): Removed.
31804 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
31805 ...
31806 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
31807 Don't include <sysdep.h> nor <init-arch.h>.
31808 (_ZGVbN4v_logf): Removed.
31809 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
31810 ...
31811 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
31812 Don't include <sysdep.h> nor <init-arch.h>.
31813 (_ZGVdN8v_logf): Removed.
31814 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
31815 ...
31816 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
31817 Don't include <sysdep.h> nor <init-arch.h>.
31818 (_ZGVeN16vv_powf): Removed.
31819 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
31820 ...
31821 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
31822 Don't include <sysdep.h> nor <init-arch.h>.
31823 (_ZGVbN4vv_powf): Removed.
31824 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
31825 ...
31826 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
31827 Don't include <sysdep.h> nor <init-arch.h>.
31828 (_ZGVdN8vv_powf): Removed.
31829 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
31830 ...
31831 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
31832 Don't include <sysdep.h> nor <init-arch.h>.
31833 (_ZGVeN16vvv_sincosf): Removed.
31834 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
31835 ...
31836 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
31837 Don't include <sysdep.h> nor <init-arch.h>.
31838 (_ZGVbN4vvv_sincosf): Removed.
31839 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
31840 ...
31841 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
31842 Don't include <sysdep.h> nor <init-arch.h>.
31843 (_ZGVdN8vvv_sincosf): Removed.
31844 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
31845 ...
31846 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
31847 Don't include <sysdep.h> nor <init-arch.h>.
31848 (_ZGVeN16v_sinf): Removed.
31849 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
31850 ...
31851 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
31852 Don't include <sysdep.h> nor <init-arch.h>.
31853 (_ZGVbN4v_sinf): Removed.
31854 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
31855 ...
31856 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
31857 Don't include <sysdep.h> nor <init-arch.h>.
31858 (_ZGVdN8v_sinf): Removed.
31859
31860 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31861
31862 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31863 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
31864 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
31865 s_rint-sse4_1 and s_rintf-sse4_1.
31866 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
31867 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
31868 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
31869 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
31870 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
31871 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
31872 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
31873 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
31874 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
31875 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
31876 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
31877 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31878 (__ceil): Removed.
31879 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
31880 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
31881 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31882 (__ceilf): Removed.
31883 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
31884 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
31885 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31886 (__floor): Removed.
31887 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
31888 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
31889 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31890 (__floorf): Removed.
31891 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
31892 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
31893 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31894 (__nearbyint): Removed.
31895 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
31896 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
31897 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31898 (__nearbyintf): Removed.
31899 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
31900 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
31901 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31902 (__rint): Removed.
31903 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
31904 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
31905 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31906 (__rintf): Removed.
31907
31908 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31909
31910 * sysdeps/i386/start.S (_start): Check Check PIC instead of
31911 SHARED. Avoid dynamic relocation against main in static PIE.
31912
31913 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31914
31915 [BZ #21815]
31916 * elf/Makefile (CFLAGS-tst-prelink.c): New.
31917 (LDFLAGS-tst-prelink): Likewise.
31918
31919 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31920
31921 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
31922 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
31923 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
31924 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
31925 (INTERNAL_SYSCALL_NCS): Likewise.
31926 (LOADARGS_1): Likewise.
31927 (LOADARGS_5): Likewise.
31928 (RESTOREARGS_1): Likewise.
31929 (RESTOREARGS_5): Likewise.
31930
31931 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31932
31933 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
31934 (MEMPCPY_SYMBOL): Likewise.
31935 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
31936 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
31937 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
31938 in libc.a.
31939 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
31940 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
31941 Likewise.
31942 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
31943 (__hidden_ver1): Don't use in libc.a.
31944 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
31945 (__mempcpy): Don't create a weak alias in libc.a.
31946 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
31947 libc.a.
31948 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
31949 (__hidden_ver1): Don't use in libc.a.
31950
31951 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31952
31953 * config.make.in (have-insert): New.
31954 * configure.ac (libc_cv_insert): New. Set to yes if linker
31955 supports INSERT in linker script.
31956 (AC_SUBST(libc_cv_insert): New.
31957 * configure: Regenerated.
31958 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
31959 if $(have-insert) == yes.
31960
31961 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31962
31963 * elf/Makefile (tests): Add vismain only if
31964 $(have-protected-data) == yes.
31965 (tests-pie): Likewise.
31966
31967 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31968
31969 [BZ #21871]
31970 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
31971 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
31972
31973 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31974
31975 [BZ #21790]
31976 * sysdeps/i386/i586/memset.S
31977 (__memset_zero_constant_len_parameter): Removed.
31978 * sysdeps/i386/i686/memset.S
31979 (__memset_zero_constant_len_parameter): Likewise.
31980 * sysdeps/i386/i686/multiarch/memset_chk.S
31981 (__memset_zero_constant_len_parameter): Likewise.
31982 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
31983 Likewise.
31984
31985 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
31986
31987 * stdlib/getentropy.c (getentropy): Change return type to int.
31988
31989 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
31990
31991 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
31992
31993 2017-08-03 Joseph Myers <joseph@codesourcery.com>
31994
31995 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
31996 u_intN_t.
31997 * math/s_nexttowardf.c (__nexttowardf): Likewise.
31998 * sysdeps/generic/math_private.h (ieee_double_shape_type):
31999 Likewise.
32000 (ieee_float_shape_type): Likewise.
32001 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32002 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32003 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32004 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32005 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32006 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32007 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32008 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32009 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32010 Likewise.
32011 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32012 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32013 (__ieee754_yn): Likewise.
32014 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32015 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32016 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32017 Likewise.
32018 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32019 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32020 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32021 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32022 (__erfc): Likewise.
32023 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32024 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32025 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32026 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32027 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32028 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32029 Likewise.
32030 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32031 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32032 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32033 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32034 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32035 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32036 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32037 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32038 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32039 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32040 (__issignaling): Likewise.
32041 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32042 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32043 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32044 Likewise.
32045 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32046 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32047 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32048 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32049 Likewise.
32050 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32051 Likewise.
32052 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32053 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32054 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32055 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32056 (__erfcf): Likewise.
32057 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32058 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32059 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32060 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32061 Likewise.
32062 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32063 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32064 Likewise.
32065 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32066 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32067 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32068 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32069 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32070 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32071 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32072 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32073 Likewise.
32074 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32075 Likewise.
32076 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32077 Likewise.
32078 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32079 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32080 Likewise.
32081 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32082 Likewise.
32083 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32084 (__ieee754_ynl): Likewise.
32085 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32086 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32087 Likewise.
32088 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32089 Likewise.
32090 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32091 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32092 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32093 Likewise.
32094 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32095 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32096 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32097 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32098 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32099 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32100 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32101 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32102 Likewise.
32103 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32104 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32105 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32106 Likewise.
32107 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32108 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32109 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32110 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32111 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32112 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32113 Likewise.
32114 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32115 Likewise.
32116 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32117 Likewise.
32118 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32119 Likewise.
32120 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32121 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32122 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32123 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32124 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32125 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32126 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32127 Likewise.
32128 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32129 Likewise.
32130 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32131 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32132 Likewise.
32133 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32134 (__ieee754_remainderl): Likewise.
32135 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32136 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32137 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32138 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32139 Likewise.
32140 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32141 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32142 Likewise.
32143 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32144 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32145 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32146 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32147 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32148 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32149 Likewise.
32150 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32151 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32152 (__ieee754_y0l): Likewise.
32153 (pzero): Likewise.
32154 (qzero): Likewise.
32155 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32156 (__ieee754_y1l): Likewise.
32157 (pone): Likewise.
32158 (qone): Likewise.
32159 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32160 (__ieee754_ynl): Likewise.
32161 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32162 (__ieee754_lgammal_r): Likewise.
32163 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32164 Likewise.
32165 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32166 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32167 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32168 (__erfcl): Likewise.
32169 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32170 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32171 Likewise.
32172 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32173 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32174 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32175 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32176 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32177 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32178 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32179 Likewise.
32180 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32181 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32182 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32183 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32184 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32185 Likewise.
32186 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32187 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32188 Likewise.
32189 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32190 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32191 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32192 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32193 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32194
32195 2017-08-03 Florian Weimer <fweimer@redhat.com>
32196
32197 [BZ #21885]
32198 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32199 on memory allocation failure.
32200
32201 2017-08-03 Alan Modra <amodra@gmail.com>
32202
32203 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32204 tst-tlsopt-powerpc.c with function name change and no test harness.
32205 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32206 Call tls_get_addr_opt_test.
32207 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32208 (modules-names): Add mod-tlsopt-powerpc.
32209 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32210 (tst-tlsopt-powerpc): Depend on .so.
32211 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32212 define. Expand use in TLS_GD and TLS_LD.
32213
32214 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32215
32216 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32217 function.
32218 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32219
32220 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32221
32222 [BZ #21686]
32223 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32224 comparing size with that of double.
32225 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32226 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32227 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32228 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32229 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32230 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32231 unsigned __int128 types.
32232
32233 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32234
32235 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32236 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32237 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32238 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32239 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32240
32241 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32242
32243 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32244
32245 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32246
32247 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32248 of SHARED.
32249 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32250 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32251 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32252 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32253 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32254 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32255 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32256
32257 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32258
32259 [BZ #21685]
32260 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32261 bit-field expressions passed to sizeof or typeof.
32262 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32263 (__TGMATH_F128): Likewise.
32264 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32265 (__TGMATH_CF128): Likewise.
32266 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32267 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32268 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32269 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32270 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32271 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32272 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32273 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32274 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32275 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32276 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32277 (__TGMATH_UNARY_IMAG): Likewise.
32278 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32279 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32280 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32281 type.
32282 (define_vars_for_type): Handle bit_field type specially.
32283 (Tests.__init__): Declare structure with bit-field element.
32284
32285 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32286
32287 [BZ #21791]
32288 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32289 (MEMCPY_CHK): Define only if SHARED is defined.
32290 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32291 Likewise.
32292 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32293 Likewise.
32294
32295 See ChangeLog.18 for earlier changes.