]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
nptl: Fix invalid Systemtap probe in pthread_join [BZ #24211]
[thirdparty/glibc.git] / ChangeLog
1 2019-02-15 Florian Weimer <fweimer@redhat.com>
2
3 [BZ #24211]
4 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
5 pd->result after the thread descriptor has been freed.
6
7 2019-02-15 Joseph Myers <joseph@codesourcery.com>
8
9 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
10 from function return type.
11
12 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
13
14 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
15
16 * scripts/test_printers_common.py: Set TERM to a known harmless
17 value.
18
19 2019-02-14 Joseph Myers <joseph@codesourcery.com>
20
21 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
22 (xdr_u_int): Likewise.
23 (xdr_enum): Likewise.
24 (xdr_bytes): Reword fall-through comment.
25 (xdr_string): Likewise.
26
27 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28
29 [BZ #2421]
30 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
31 (tests): Add tst-join8 tst-join9.
32 * nptl/lll_timedwait_tid.c: Remove file.
33 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
34 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
35 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
36 * nptl/pthread_join_common.c (timedwait_tid): New function.
37 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
38 is set.
39 * nptl/tst-join5.c (thread_join): New function.
40 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
41 check.
42 * nptl/tst-join8.c: New file.
43 * nptl/tst-join9.c: Likewise.
44 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
45 lll_futex_timed_wait_cancel): Add generic macros.
46 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
47 Remove definitions.
48 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
49 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
50 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
51 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
52 Remove function.
53 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
54 Likewise.
55 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
56 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
57 (lll_futex_timed_wait_cancel): New macro.
58
59 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
60
61 * benchtests/Makefile: Add malloc-simple benchmark.
62 * benchtests/bench-malloc-simple.c: New benchmark.
63
64 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
65
66 * benchtests/bench-memmove.c (do_one_test): Remove unused
67 ORIG_SRC.
68 (do_test): Adjust.
69 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
70 ORIG_SRC.
71 (do_test): Adjust.
72
73 2019-01-13 Jim Wilson <jimw@sifive.com>
74
75 [BZ #24040]
76 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
77 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
78 (func): New.
79 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
80 call func directly.
81 * nptl/Makefile (tests): Add tst-unwind-thread.
82 (CFLAGS-tst-unwind-thread.c): Define.
83 * nptl/tst-unwind-thread.c: New file.
84 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
85 as undefined.
86
87 2019-02-13 Joseph Myers <joseph@codesourcery.com>
88
89 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
90 comment wording.
91 * nis/nis_call.c (__do_niscall3): Likewise.
92
93 * catgets/gencat.c (normalize_line): Use braces around empty
94 'else' body.
95 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
96 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
97 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
98 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
99 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
100 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
101 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
102 definition.
103
104 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
105 execlp returns.
106
107 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
108
109 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
110 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
111 * benchtests/bench-strchr.c (stupid_strchr): Remove.
112 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
113 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
114 * benchtests/bench-strlen.c (builtin_strlen): Remove.
115 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
116 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
117 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
118 * benchtests/bench-strspn.c (stupid_strspn): Remove.
119 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
120 * benchtests/bench-bcopy.c: Delete file.
121 * benchtests/bench-bzero.c: Likewise.
122 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
123 (simple_memccpy): Remove.
124 (generic_memccpy): Add function.
125 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
126 * benchtests/bench-memmove.c (simple_bcopy): Remove.
127 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
128 (generic_mempcpy): Add new function.
129 * benchtests/bench-memset.c (simple_bzero): Remove.
130 (builtin_bzero): Remove.
131 (builtin_memset): Remove.
132 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
133 (generic_rawmemchr): Add new function.
134
135 2019-02-12 Florian Weimer <fweimer@redhat.com>
136
137 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
138
139 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
140
141 [BZ #24122]
142 * elf/Makefile (tests): Add tst-audit13.
143 (modules-names): Add tst-audit13mod1.
144 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
145 rule.
146 * elf/tst-audit13.c: New file.
147 * elf/tst-audit13mod1.c: Likewise.
148
149 2019-02-12 Florian Weimer <fweimer@redhat.com>
150
151 [BZ #24122]
152 * elf/rtld.c (unload_audit_module): New function.
153 (report_audit_module_load_error): Likewise.
154 (load_audit_module): Likewise. Extracted from dl_main. Call
155 _dl_close if the laversion symbol cannot be found. Use early
156 returns for error handling. Add malloc error check. Check for a
157 zero return value from la_version. Remove spurious comment about
158 static TLS initialization. Remove useless casts.
159 (notify_audit_modules_of_loaded_object): New function. Extracted
160 from dl_main.
161 (load_audit_module): Likewise.
162 (dl_main): Call load_audit_modules.
163
164 2019-02-12 Joseph Myers <joseph@codesourcery.com>
165
166 * elf/dl-exception.c (_dl_exception_create_format): Add
167 fall-through comments.
168 * elf/ldconfig.c (parse_conf_include): Likewise.
169 * elf/rtld.c (print_statistics): Likewise.
170 * locale/programs/charmap.c (parse_charmap): Likewise.
171 * misc/mntent_r.c (__getmntent_r): Likewise.
172 * posix/wordexp.c (parse_arith): Likewise.
173 (parse_backtick): Likewise.
174 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
175 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
176 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
177
178 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
179
180 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
181 Use float instead of double.
182
183 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
184
185 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
186
187 2019-02-08 Joseph Myers <joseph@codesourcery.com>
188
189 * sysdeps/powerpc/bits/mathinline.h: Remove.
190
191 2019-02-08 Florian Weimer <fweimer@redhat.com>
192
193 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
194 * math/bits/math-finite.h: Move to ...
195 * bits/math-finite.h: ... here.
196
197 2019-02-08 Florian Weimer <fweimer@redhat.com>
198
199 * sysdeps/generic/bits/unistd_ext.h: Move to ...
200 * bits/unistd_ext.h: here.
201
202 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
203
204 [BZ #21915]
205 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
206 * nss/tst-nss-files-hosts-long.c: New file.
207 * nss/tst-nss-files-hosts-long.root: New directory.
208 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
209 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
210
211 2019-02-08 Florian Weimer <fweimer@redhat.com>
212
213 * include/bits/unistd_ext.h: Remove file.
214 * posix/bits/unistd_ext.h: Move to ...
215 * sysdeps/generic/bits/unistd_ext.h: ... here.
216
217 2019-02-08 Florian Weimer <fweimer@redhat.com>
218
219 * include/bits/unistd_ext.h: New file.
220
221 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
222
223 * time/tst-strftime2.c: Use array_length macros instead of magic
224 numbers.
225
226 2019-02-08 Florian Weimer <fweimer@redhat.com>
227
228 [BZ #24161]
229 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
230 argument.
231 * nptl/register-atfork.c (__run_fork_handlers): Only perform
232 locking if the new do_locking argument is true.
233 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
234 __run_fork_handlers.
235
236 2019-02-08 Florian Weimer <fweimer@redhat.com>
237
238 [BZ #6399]
239 Linux: Add gettid system call wrapper.
240 * posix/Makefile (headers): Add bits/unistd_ext.h.
241 * posix/bits/unistd_ext.h: New file.
242 * posix/unistd.h: Include it.
243 * manual/process.texi (Process Identification): Document gettid.
244 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
245 tst-gettid, tst-gettid-kill.
246 (tst-gettid): Link with $(shared-thread-library).
247 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
248 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
249 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
250 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
251 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
252 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
253 Add gettid.
254 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
255 Likewise.
256 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
257 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
258 Likewise.
259 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
260 Likewise.
261 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
262 Likewise.
263 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
264 Likewise.
265 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
266 Likewise.
267 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
268 Likewise.
269 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
270 Likewise.
271 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
272 (GLIBC_2.30): Likewise.
273 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
274 (GLIBC_2.30): Likewise.
275 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
276 (GLIBC_2.30): Likewise.
277 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
278 (GLIBC_2.30): Likewise.
279 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
280 Likewise.
281 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
282 (GLIBC_2.30): Likewise.
283 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
284 (GLIBC_2.30): Likewise.
285 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
286 (GLIBC_2.30): Likewise.
287 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
288 (GLIBC_2.30): Likewise.
289 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
290 Likewise.
291 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
292 Likewise.
293 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
294 Likewise.
295 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
296 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
297 Likewise.
298 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
299 Likewise.
300 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
301 Likewise.
302 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
303 Likewise.
304 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
305
306 2019-02-07 Florian Weimer <fweimer@redhat.com>
307
308 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
309 compatibility symbols.
310
311 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
312
313 [BZ #24180]
314 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
315 Add compiler barriers and comments.
316
317 2019-02-07 Florian Weimer <fweimer@redhat.com>
318
319 * include/array_length.h (array_length): Do not use a statement
320 expression and _Static_assert, so that array_length can be used at
321 file scope and as a constant expression.
322
323 2019-02-07 Florian Weimer <fweimer@redhat.com>
324
325 * support/xdlfcn.h (xdlmopen): Declare.
326 * support/xdlmopen.c: New file.
327 * support/Makefile (libsupport-routines): Add xdlmopen.
328
329 2019-02-06 Joseph Myers <joseph@codesourcery.com>
330
331 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
332 before return type, without separate inline.
333 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
334 * elf/dl-tunables.h (tunable_is_name): Likewise.
335 * malloc/malloc.c (do_set_trim_threshold): Likewise.
336 (do_set_top_pad): Likewise.
337 (do_set_mmap_threshold): Likewise.
338 (do_set_mmaps_max): Likewise.
339 (do_set_mallopt_check): Likewise.
340 (do_set_perturb_byte): Likewise.
341 (do_set_arena_test): Likewise.
342 (do_set_arena_max): Likewise.
343 (do_set_tcache_max): Likewise.
344 (do_set_tcache_count): Likewise.
345 (do_set_tcache_unsorted_limit): Likewise.
346 * nis/nis_subr.c (count_dots): Likewise.
347 * nptl/allocatestack.c (advise_stack_range): Likewise.
348 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
349 (do_sin): Likewise.
350 (reduce_sincos): Likewise.
351 (do_sincos): Likewise.
352 * sysdeps/unix/sysv/linux/x86/elision-conf.c
353 (do_set_elision_enable): Likewise.
354 (TUNABLE_CALLBACK_FNDECL): Likewise.
355
356 2019-02-06 Florian Weimer <fweimer@redhat.com>
357
358 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
359 (xdlsym): Use dlerror to detect a NULL symbol.
360
361 2019-02-06 Florian Weimer <fweimer@redhat.com>
362
363 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
364 <stap-probe.h>.
365 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
366
367 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
368
369 * libio/tst-bz24153.c (wide): Use wide char format specifier.
370
371 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
372
373 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
374 __wmemcmp and weak alias to wmemcmp.
375
376 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
377
378 [BZ #23403]
379 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
380 TLS_TCB_AT_TP tls variant.
381 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
382 Add alignment checks.
383 * support/Makefile (libsupport-routines): Add xposix_memalign and
384 xpthread_setstack.
385 * support/support.h: Add xposix_memalign.
386 * support/xthread.h: Add xpthread_attr_setstack.
387 * support/xposix_memalign.c: New File.
388 * support/xpthread_attr_setstack.c: Likewise.
389
390 2019-02-05 Florian Weimer <fweimer@redhat.com>
391
392 [BZ #24164]
393 arm: Use "nr" constraint for Systemtap probes, to avoid the
394 compiler using memory operands for constants, due to the "o"
395 alternative in the default "nor" constraint.
396 * include/stap-probe.h [USE_STAP_PROBE]: Include
397 <stap-probe-machine.h>
398 * sysdeps/generic/stap-probe-machine.h: New file.
399 * sysdeps/arm/stap-probe-machine.h: Likewise.
400
401 2019-02-04 Joseph Myers <joseph@codesourcery.com>
402
403 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
404 with 0, not tcache->entries[tc_idx].
405
406 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
407 once.
408
409 2019-02-04 Andreas Schwab <schwab@suse.de>
410
411 [BZ #16976]
412 [BZ #17396]
413 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
414 looking up collating elements match against (wide) character
415 sequence instead of name. Correct alignment adjustment.
416 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
417 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
418 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
419 (LOCALES): Add cs_CZ.ISO-8859-2.
420 * posix/tst-fnmatch4.c: New file.
421 * posix/tst-fnmatch5.c: New file.
422 * include/wchar.h (__wmemcmp): Declare.
423 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
424 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
425 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
426 * sysdeps/s390/wmemcmp.c: Likewise.
427
428 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
429
430 [BZ #24155]
431 CVE-2019-7309
432 * NEWS: Updated for CVE-2019-7309.
433 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
434 upper 32 bits of RDX register for x32. Use unsigned Jcc
435 instructions, instead of signed.
436 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
437 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
438
439 2019-02-04 Florian Weimer <fweimer@redhat.com>
440
441 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
442 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
443 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
444 Likewise.
445 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
446 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
447 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
448 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
449 Likewise.
450 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
451 Likewise.
452 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
453 Likewise.
454 (posix_spawn_file_actions_addopen): Likewise.
455 (posix_spawn_file_actions_addclose): Likewise.
456 (posix_spawn_file_actions_adddup2): Likewise.
457 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
458 qualifiers.
459 (posix_spawn_file_actions_addfchdir_np): Likewise.
460
461 2019-02-04 David Newall <glibc@davidnewall.com>
462
463 elf: Implement --preload option for the dynamic linker.
464 * elf/rtld.c (preloadarg): New variable.
465 (handle_preload_list): Pass through “where” argument to
466 do_preload.
467 (dl_main): Handle "--preload" and add second call to
468 handle_preload_list.
469 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
470 (tst-rtld-preload-OBJS): Set variable.
471 (tst-rtld-preload.out): New target.
472 * elf/tst-rtld-preload.sh: New file.
473
474 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
475
476 * Makefile (testrun.sh): Exit in case of incorrect argument.
477
478 2019-02-04 Florian Weimer <fweimer@redhat.com>
479
480 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
481 alignment gaps.
482
483 2019-02-03 Florian Weimer <fweimer@redhat.com>
484
485 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
486 implicit overflow checks.
487
488 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
489
490 * stdlib/isomac.c: Include <unistd.h>.
491
492 2019-02-03 Florian Weimer <fweimer@redhat.com>
493
494 * include/time.h (__tzfile_default): Use int, not long int, for
495 the GMT offsets.
496 * time/tzfile.c (struct ttinfo): Change type of the offset member
497 to int.
498 (__tzfile_read): Remove useless cast.
499 (__tzfile_default): Adjust prototype.
500 * time/tzset.c (tz_rule): Change type of the offset member to int.
501 (parse_offset): Change the type of the sign variable to int.
502
503 2019-02-03 Florian Weimer <fweimer@redhat.com>
504
505 [BZ #24153]
506 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
507 * libio/getchar.c (getchar): Likewise.
508 * libio/getchar_u.c (getchar_unlocked): Likewise.
509 * libio/getwchar.c (getwchar): Likewise.
510 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
511 * libio/iogets.c (_IO_gets): Likewise.
512 * libio/vscanf.c (_IO_vscanf): Likewise.
513 * libio/vwscanf.c (__vwscanf): Likewise.
514 * libio/tst-bz24153.c: New file.
515 * libio/Makefile (tests): Add it.
516
517 2019-02-02 Florian Weimer <fweimer@redhat.com>
518
519 [BZ #14829]
520 * manual/resource.texi (Basic Scheduling Functions): Add
521 portability note. Change process to task throughout the section.
522 Remove incorrect comment about sched_yield as it affects
523 tasks/threads, not entire processes.
524 * sysdeps/unix/sysv/linux/bits/posix_opt.h
525 (_POSIX_PRIORITY_SCHEDULING): Update comment.
526
527 2019-02-01 Joseph Myers <joseph@codesourcery.com>
528
529 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
530 * configure: Regenerated.
531 * manual/install.texi (Tools for Compilation): Update minimum GCC
532 version.
533 * INSTALL: Regenerated.
534
535 2019-02-01 Florian Weimer <fweimer@redhat.com>
536
537 * support/support_test_compare_string.c
538 (support_test_compare_string): Use "string" in error message.
539 * support/tst-test_compare_string.c (do_test): Adjust.
540
541 2019-02-01 Florian Weimer <fweimer@redhat.com>
542
543 * support/support_format_address_family.c
544 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
545
546 2019-02-01 Florian Weimer <fweimer@redhat.com>
547
548 * manual/socket.texi (Internet Address Formats): Clarify the byte
549 order of struct sockaddr_in, struct sockaddr_in6. Document
550 sin6_flowinfo and sin6_scope_id.
551
552 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
553
554 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
555 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
556 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
557 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
558 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
559 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
560
561 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
562
563 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
564 [!MEMCHR](MEMCHR): Set to __memchr.
565 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
566 Add memchr_generic and memchr_nosimd.
567 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
568 (__libc_ifunc_impl_list): Add memchr ifuncs.
569 * sysdeps/aarch64/multiarch/memchr.c: New file.
570 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
571 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
572
573 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
574
575 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
576 Add memset_emag.
577 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
578 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
579 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
580 Add IS_EMAG check for ifunc dispatch.
581 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
582 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
583
584 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
585
586 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
587 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
588 Add emag.
589 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
590 New macro.
591
592 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
593
594 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
595
596 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
597
598 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
599 syscall-template file.
600
601 2019-01-31 Carlos O'Donell <carlos@redhat.com>
602 Torvald Riegel <triegel@redhat.com>
603 Rik Prohaska <prohaska7@gmail.com>
604
605 [BZ# 23844]
606 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
607 tst-rwlock-trywrlock-stall.
608 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
609 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
610 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
611 Set __wrphase_fute to 1 only if we started the write phase.
612 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
613 * nptl/tst-rwlock-trywrlock-stall.c: New file.
614 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
615 * support/xpthread_rwlock_destroy.c: New file.
616 * support/xthread.h: Declare xpthread_rwlock_destroy.
617
618 2019-02-01 Joseph Myers <joseph@codesourcery.com>
619
620 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
621 version to 4.0.2.
622
623 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
624
625 [BZ #24051]
626 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
627 * libio/fileops.c (_IO_new_file_underflow): Likewise
628 * libio/wfileops.c (_IO_wfile_underflow): Likewise
629 * libio/putchar.c (putchar): Likewise.
630 * libio/putchar_u.c (putchar_unlocked): Likewise.
631 * libio/putwchar.c (putchar): Likewise.
632 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
633 * libio/tst-bz24051.c: New test.
634 * libio/Makefile (tests): Add tst-bz24051
635
636 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
637
638 regex: fix read overrun [BZ #24114]
639 Problem found by AddressSanitizer, reported by Hongxu Chen in:
640 https://debbugs.gnu.org/34140
641 * posix/regexec.c (proceed_next_node):
642 Do not read past end of input buffer.
643
644 2019-01-31 Florian Weimer <fweimer@redhat.com>
645
646 [BZ #24059]
647 * nss/nss_files/files-alias.c (get_next_alias): Handle
648 continuation line without newline at the end.
649 * nss/tst-nss-files-alias-truncated.c: New file.
650 * nss/Makefile [$(build-shared)] (tests): Add
651 tst-nss-files-alias-truncated.
652 (tst-nss-files-alias-truncated): Link with libnss_files.so.
653 * support/namespace.h (struct support_chroot_configuration): Add
654 aliases member.
655 (struct support_chroot): Add path_aliases member.
656 * support/support_chroot.c (support_chroot_create): Handle
657 aliases.
658 (support_chroot_free): Free path_aliases.
659
660 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
661
662 * version.h (RELEASE): Set to "development".
663 (VERSION): Set to "2.29.9000".
664 * NEWS: Add section for 2.30.
665
666 * version.h (RELEASE): Set to "stable".
667 (VERSION): Set to "2.29".
668 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
669
670 * NEWS: Add the list of bugs fixed in 2.29.
671 * manual/contrib.texi: Update contributors list with some more
672 names.
673 * manual/install.texi: Update latest versions of packages
674 tested.
675 * INSTALL: Regenerated.
676
677 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
678
679 * po/be.po: Update translations.
680 * po/bg.po: Likewise.
681 * po/ca.po: Likewise.
682 * po/cs.po: Likewise.
683 * po/da.po: Likewise.
684 * po/de.po: Likewise.
685 * po/el.po: Likewise.
686 * po/eo.po: Likewise.
687 * po/es.po: Likewise.
688 * po/fi.po: Likewise.
689 * po/fr.po: Likewise.
690 * po/gl.po: Likewise.
691 * po/hr.po: Likewise.
692 * po/hu.po: Likewise.
693 * po/ia.po: Likewise.
694 * po/id.po: Likewise.
695 * po/it.po: Likewise.
696 * po/ja.po: Likewise.
697 * po/ko.po: Likewise.
698 * po/lt.po: Likewise.
699 * po/nb.po: Likewise.
700 * po/nl.po: Likewise.
701 * po/pl.po: Likewise.
702 * po/pt_BR.po: Likewise.
703 * po/ru.po: Likewise.
704 * po/rw.po: Likewise.
705 * po/sk.po: Likewise.
706 * po/sl.po: Likewise.
707 * po/sv.po: Likewise.
708 * po/tr.po: Likewise.
709 * po/uk.po: Likewise.
710 * po/vi.po: Likewise.
711 * po/zh_CN.po: Likewise.
712 * po/zh_TW.po: Likewise.
713
714 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
715
716 [BZ #24130]
717 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
718 of $f3 register on $y_is_neg path.
719
720 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
721
722 [BZ #24110]
723 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
724 sigaltstack.ss_flags.
725
726 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
727
728 [BZ #23758]
729 * manual/time.texi (strftime): Document "%Ey".
730 * time/strftime_l.c (__strftime_internal): Set the default width
731 padding with zero of "%Ey" to 2.
732
733 [BZ #24096]
734 * manual/time.texi (strftime): Document "%EC" and "%EY".
735 * time/Makefile (tests): Add tst-strftime2.
736 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
737 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
738 override padding for "%Ey".
739 If an optional flag ('_' or '-') is specified to "%EY", interpret the
740 "%Ey" in the subformat as if decorated with that flag.
741 * time/tst-strftime2.c: New file.
742
743 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
744
745 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
746 are not defined.
747
748 [BZ #24122]
749 * elf/Makefile (tests): Add tst-audit13.
750 (modules-names): Add tst-audit13mod1.
751 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
752 rule.
753 * elf/rtld.c (dl_main): Handle invalid audit module version.
754 * elf/tst-audit13.c: New file.
755 * elf/tst-audit13mod1.c: Likewise.
756
757 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
758
759 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
760 returned by __hurd_at_flags.
761 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
762 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
763 directly instead of __hurd_file_name_lookup.
764
765 2019-01-21 Joseph Myers <joseph@codesourcery.com>
766
767 * scripts/build-many-glibcs.py (Context.checkout): Default
768 binutils version to 2.32 branch.
769
770 2019-01-21 Florian Weimer <fweimer@redhat.com>
771
772 [BZ #20018]
773 CVE-2016-10739
774 resolv: Reject trailing characters in host names
775 * include/arpa/inet.h (__inet_aton_exact): Declare.
776 (inet_aton): Remove hidden prototype. No longer used internally.
777 * nscd/gai.c (__inet_aton): Do not define.
778 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
779 * nss/digits_dots.c (__inet_aton): Likewise.
780 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
781 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
782 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
783 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
784 (tst-resolv-trailing): Likewise.
785 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
786 libc.
787 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
788 Make static. Add endp parameter.
789 (__inet_aton_exact): New function.
790 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
791 (__inet_addr): Call inet_aton_end.
792 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
793 not just IPv6. Call __inet_aton_exact.
794 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
795 (tests): Make const. Add additional test cases with trailing
796 characters.
797 (do_test): Use array_length.
798 * resolv/tst-inet_aton_exact.c: New file.
799 * resolv/tst-resolv-trailing.c: Likewise.
800 * resolv/tst-resolv-nondecimal.c: Likewise.
801 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
802
803 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
804
805 [BZ# 24097]
806 CVE-2019-6488
807 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
808 Clear the upper 32 bits of RSI register.
809 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
810 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
811 and tst-size_t-wcsnlen.
812 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
813 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
814
815 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
816
817 [BZ# 24097]
818 CVE-2019-6488
819 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
820 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
821 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
822 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
823 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
824
825 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
826
827 [BZ# 24097]
828 CVE-2019-6488
829 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
830 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
831 * sysdeps/x86_64/strcmp.S: Likewise.
832 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
833 tst-size_t-strncmp and tst-size_t-wcsncmp.
834 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
835 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
836 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
837
838 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
839
840 [BZ# 24097]
841 CVE-2019-6488
842 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
843 RDX_LP for length. Clear the upper 32 bits of RDX register.
844 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
845 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
846 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
847 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
848
849 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
850
851 [BZ# 24097]
852 CVE-2019-6488
853 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
854 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
855 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
856 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
857
858 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
859
860 [BZ# 24097]
861 CVE-2019-6488
862 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
863 length. Clear the upper 32 bits of RDX register.
864 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
865 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
866 Likewise.
867 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
868 Likewise.
869 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
870 tst-size_t-wmemchr.
871 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
872
873 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
874
875 [BZ# 24097]
876 CVE-2019-6488
877 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
878 length. Clear the upper 32 bits of RDX register.
879 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
880 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
881 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
882 tst-size_t-wmemcmp.
883 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
884 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
885
886 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
887
888 [BZ# 24097]
889 CVE-2019-6488
890 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
891 upper 32 bits of RDX register.
892 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
893 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
894 tst-size_t-wmemchr.
895 * sysdeps/x86_64/x32/test-size_t.h: New file.
896 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
897 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
898
899 2019-01-18 Florian Weimer <fweimer@redhat.com>
900
901 [BZ #24112]
902 resolv: Do not send queries for non-host-names in nss_dns.
903 * resolv/nss_dns/dns-host.c (check_name): New function.
904 (_nss_dns_gethostbyname2_r): Use it.
905 (_nss_dns_gethostbyname_r): Likewise.
906 (_nss_dns_gethostbyname4_r): Likewise.
907
908 2019-01-21 Florian Weimer <fweimer@redhat.com>
909
910 * resolv/inet_addr.c: Reformat to GNU style.
911 (__inet_addr, __inet_aton): Update comment.
912
913 2019-01-18 Florian Weimer <fweimer@redhat.com>
914
915 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
916 ("malloc: Use current (C11-style) atomics for fastbin access").
917 This commit introduces a substantial performance regression on
918 POWER and Aarch64.
919 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
920 (REMOVE_FB): Define.
921 (_int_malloc): Use it and reindent.
922 (_int_free): Use CAS loop with
923 catomic_compare_and_exchange_val_rel.
924 (malloc_consolidate): Use atomic_exchange_acq.
925
926
927 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
928
929 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
930 -Wl,-z,now.
931 (LDFLAGS-tst-minsigstksz-2): Likewise.
932 (LDFLAGS-tst-minsigstksz-3): Likewise.
933 (LDFLAGS-tst-minsigstksz-3a): Likewise.
934 (LDFLAGS-tst-minsigstksz-4): Likewise.
935
936 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
937
938 * manual/time.texi (strftime): Fix the wording to "alternative" rather
939 than "alternate".
940
941 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
942
943 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
944
945 2019-01-16 Zack Weinberg <zackw@panix.com>
946
947 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
948 (xget_sigstack_location): New test support functions.
949 * support/xsigstack.c: New file, implementing them.
950 * support/tst-xsigstack.c: New test for them.
951 * support/Makefile: Update.
952
953 * signal/tst-minsigstksz-1.c
954 * signal/tst-minsigstksz-2.c
955 * signal/tst-minsigstksz-3.c
956 * signal/tst-minsigstksz-3a.c
957 * signal/tst-minsigstksz-4.c: New tests.
958 * signal/Makefile: Run them.
959
960 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
961
962 * po/libc.pot: Regenerate.
963
964 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
965
966 * math/libm-test-fma.inc (fma_test_data): Set
967 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
968
969 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
970
971 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
972 (do_test): Changed __vector __int128_t to __vector unsigned int.
973
974 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
975
976 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
977 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
978 stpcpy-avx2 and stpncpy-avx2.
979 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
980 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
981 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
982 and __stpncpy_avx2.
983 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
984 ifunc-strcpy.h}: rename header for a more generic name.
985 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
986 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
987 AVX unaligned load is fast and vzeroupper is preferred.
988 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
989 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
990 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
991 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
992 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
993 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
994
995 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
996
997 * argp/argp-help.c: Fix typo in comment.
998 * misc/sys/cdefs.h: Likewise.
999 * posix/regexec.c (sift_states_iter_mb): Likewise.
1000 * socket/sockatmark.c: Likewise.
1001 * socket/sys/socket.h: Likewise.
1002 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1003 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1004 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1005 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1006 * sysdeps/unix/sockatmark.c: Likewise.
1007 * time/strptime_l.c: Likewise.
1008
1009 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1010
1011 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1012 missing space after the cast of "_NL_CURRENT".
1013
1014 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1015
1016 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1017 ifdef to fix read of VSCR.
1018 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1019 tst-ucontext-ppc64-vscr.c to test list.
1020 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1021
1022 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1023
1024 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1025 fall-through.
1026
1027 2019-01-09 Jim Wilson <jimw@sifive.com>
1028
1029 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1030
1031 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1032
1033 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1034 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1035 __memcpy_falkor for ares.
1036 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1037 Add new define.
1038 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1039 Add ares cpu.
1040
1041 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1042
1043 [BZ #24066]
1044 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1045 4_FP_W_TYPEs are used for IEEE quad precision.
1046 * soft-fp/extendhftf2.c: Likewise.
1047 * soft-fp/extendsftf2.c: Likewise.
1048 * soft-fp/extendxftf2.c: Likewise.
1049 * soft-fp/trunctfdf2.c: Likewise.
1050 * soft-fp/trunctfhf2.c: Likewise.
1051 * soft-fp/trunctfsf2.c: Likewise.
1052 * soft-fp/trunctfxf2.c: Likewise.
1053 * sysdeps/alpha/ots_cvttx.c: Likewise.
1054 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1055 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1056 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1057 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1058 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1059 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1060 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1061 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1062 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1063 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1064 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1065 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1066 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1067 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1068 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1069 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1070 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1071
1072 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1073
1074 [BZ #24024]
1075 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1076 code with -fmath-errno.
1077 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1078 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1079 * string/test-strerror-errno.c: New file.
1080
1081 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1082
1083 [BZ #24046]
1084 * localedata/locales/en_US (date_fmt): Add, set to
1085 "%a %d %b %Y %r %Z".
1086
1087 2019-01-07 Florian Weimer <fweimer@redhat.com>
1088
1089 [BZ #24063]
1090 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1091 instead of @var{errno}.
1092 (Parsing of Integers): Likewise.
1093 (Parsing of Floats): Likewise.
1094 * manual/filesys.texi (Working with Directory Trees): Likewise.
1095 (Temporary Files): Likewise.
1096 * manual/job.texi (Terminal Access Functions): Likewise.
1097 * manual/llio.texi (Synchronizing I/O): Likewise.
1098 * manual/math.texi (SVID Random): Likewise.
1099 * manual/message.texi (The catgets Functions): Likewise.
1100 (Translation with gettext): Likewise.
1101 (Locating gettext catalog): Likewise.
1102 (Charset conversion in gettext): Likewise.
1103 * manual/nss.texi (NSS Module Function Internals): Likewise.
1104 * manual/search.texi (Hash Search Function): Likewise.
1105 * manual/setjmp.texi (System V contexts): Likewise.
1106 * manual/time.texi (Sleeping): Likewise.
1107 * manual/users.texi (Lookup User): Likewise.
1108 (Lookup Group): Likewise.
1109
1110 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1111
1112 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1113 fix typo.
1114
1115 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1116
1117 [BZ #19444]
1118 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1119 __builtin_unreachable for default case in switch.
1120 (__ieee754_yn): Likewise.
1121 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1122 (__ieee754_ynl): Likewise.
1123 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1124 (__ieee754_ynl): Likewise.
1125 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1126 (__ieee754_ynl): Likewise.
1127
1128 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1129
1130 * manual/maint.texi: Use @{ and @}.
1131
1132 2019-01-04 Florian Weimer <fweimer@redhat.com>
1133
1134 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1135 function.
1136 (do_in_chroot_1): Call it.
1137 (run_chroot_tests):
1138 Improve error reporting in case it is not possible to create a
1139 collision for the PTY name required by the test.
1140
1141 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1142
1143 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1144 lll_wait_tid with timeout.
1145 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1146 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1147 futex_reltimed_wait_cancelable for cancelabla mode.
1148 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1149 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1150 macros.
1151 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1152 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1153 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1154 SYSCALL_CANCEL_NCS): New macro.
1155 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1156 (lll_timedwait_tid): Remove macro.
1157 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1158 Likewise.
1159 (lll_timedwait_tid): Likewise.
1160 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1161 Likewise.
1162 (lll_timedwait_tid): Likewise.
1163 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1164 Likewise.
1165 (lll_timedwait_tid): Likewise.
1166 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1167 Use INTERNAL_SYSCALL_CANCEL.
1168 * sysdeps/unix/sysv/linux/futex-internal.h
1169 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1170 instead of __pthread_{enable,disable}_asynccancel.
1171 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1172 (lll_futex_wait_cancel): New macro.
1173
1174 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1175 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1176
1177 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1178 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1179
1180 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1181 in backtrace analysis.
1182 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1183 side-effects.
1184 (tf_send): Likewise.
1185
1186 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1187 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1188 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1189 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1190 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1191 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1192 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1193 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1194 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1195 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1196 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1197 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1198 Likewise.
1199 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1200 tst-cancel-wrappers.sh.
1201 (generated): Remove tst-cancel-wrappers.out.
1202 (tst-cancel-wrappers.out): Remove rule.
1203 * nptl/tst-cancel-wrappers.sh: Remove file.
1204
1205 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1206
1207 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1208 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1209 Update.
1210
1211 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1212
1213 [BZ #23640]
1214 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1215 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1216 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1217 close-on-exec reset for adddup2 file action.
1218 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1219
1220 2019-01-03 Zack Weinberg <zackw@panix.com>
1221
1222 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1223 parameter. Only use deprecated scanf when __USE_GNU is defined
1224 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1225 than 201103L, whichever is relevant for the language being compiled.
1226
1227 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1228 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1229 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1230 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1231 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1232
1233 * libio/iovsscanf.c
1234 * libio/fwscanf.c
1235 * libio/iovswscanf.c
1236 * libio/swscanf.c
1237 * libio/vscanf.c
1238 * libio/vwscanf.c
1239 * libio/wscanf.c
1240 * stdio-common/fscanf.c
1241 * stdio-common/scanf.c
1242 * stdio-common/vfscanf.c
1243 * stdio-common/vfwscanf.c
1244 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1245 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1246 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1247 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1248 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1249 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1250 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1251 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1252 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1253 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1254 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1255 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1256 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1257 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1258 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1259
1260 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1261 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1262 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1263 not sscanf.
1264 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1265 with a preprocessor macro.
1266
1267 * stdio-common/bug21.c, stdio-common/scanf14.c:
1268 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1269 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1270 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1271 to xscanf, xfscanf, xsscanf.
1272
1273 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1274 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1275 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1276 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1277 xfscanf, xsscanf.
1278 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1279 override feature selection macros or provide definitions of u_char etc.
1280 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1281 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1282 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1283 with -std=gnu89.
1284
1285 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1286
1287 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1288 bits/termios-misc.h.
1289 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1290 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1291 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1292 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1293 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1294 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1295
1296 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
1297 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1298 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
1299 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
1300 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
1301 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
1302 termios-misc.h.
1303 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
1304 (sysdep_headers): Add termios-misc.h.
1305
1306 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1307 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1308 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1309
1310 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1311 termios-tcflow.h.
1312 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1313 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1314 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1315 TCSAFLUSH): Move to termios-tcflow.h.
1316 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1317 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1318 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1319 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1320
1321 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1322 termios-c_lflag.h.
1323 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
1324 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
1325 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
1326 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
1327 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
1328 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
1329 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
1330 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
1331 Likewise.
1332 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1333 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1334 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1335 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1336
1337 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1338 termios-c_cflag.h.
1339 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
1340 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
1341 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
1342 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
1343 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
1344 termios-c_cflag.h.
1345 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1346 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1347 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1348 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1349
1350 [BZ #23783]
1351 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1352 termios-baud.h.
1353 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
1354 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
1355 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
1356 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
1357 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
1358 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
1359 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
1360 __MAX_BAUD): Move to termios-baud.h.
1361 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
1362 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
1363 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1364 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1365 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1366
1367 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
1368 termios-c_oflag.h.
1369 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
1370 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
1371 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
1372 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
1373 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
1374 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
1375 termios-c_oflag.h.
1376 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
1377 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
1378 FFR1): Likewise.
1379 [USE_MISC] (XTABS): Likewise.
1380 * sysdeps/unix/sysv/linux/alpha/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 (sysdeps_headers): Add
1386 termios-c_iflag.h.
1387 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
1388 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
1389 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
1390 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
1391 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
1392 IUTF8): Move to termios-c_iflag.h.
1393 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1394 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1395 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1396 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1397
1398 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1399 termios-cc.h.
1400 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
1401 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
1402 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
1403 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
1404 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
1405 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
1406 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
1407 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
1408 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1409 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1410 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1411 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1412
1413 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
1414 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
1415 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
1416 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
1417 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1418 termios-struct.h.
1419 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
1420 termios-struct.h.
1421 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
1422 Likewise.
1423 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
1424 Likewise.
1425 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
1426 Likewise.
1427 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
1428 Likewise.
1429 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
1430 _HAVE_C_OSPEED): Define.
1431 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
1432 _HAVE_C_OSPEED): Likewise.
1433 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
1434 _HAVE_C_OSPEED): Likewise.
1435 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
1436 (cfsetospeed): Check for define value instead of existence.
1437 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
1438 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1439 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
1440 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1441 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
1442
1443 [BZ #17783]
1444 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
1445 Define.
1446 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1447 (TIOCSER_TEMT): Likewise.
1448 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
1449 (TEOCSER_TEMT): Likewise.
1450
1451 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
1452
1453 [BZ #24011]
1454 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
1455
1456 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1457
1458 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1459
1460 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1461
1462 * sysdeps/htl/pt-barrierattr-setpshared.c
1463 (pthread_barrierattr_setpshared): Add stub warning.
1464 * sysdeps/htl/pt-condattr-setpshared.c
1465 (pthread_condattr_setpshared): Likewise.
1466 * sysdeps/htl/pt-mutexattr-setpshared.c
1467 (pthread_mutexattr_setpshared): Likewise.
1468 * sysdeps/htl/pt-rwlockattr-setpshared.c
1469 (pthread_rwlockattr_setpshared): Likewise.
1470 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
1471 (pthread_mutexattr_setpshared): Likewise.
1472
1473 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1474
1475 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
1476 constants to match with Linux 4.20.
1477
1478 * sysdeps/mips/mips32/libm-test-ulps: Update.
1479 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
1480
1481 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
1482
1483 [BZ #24034]
1484 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
1485 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
1486 than __typeof (...) for the a_ptr variable.
1487
1488 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1489
1490 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
1491 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
1492 * libio/Makefile (tests): Add tst-sprintf-ub and
1493 tst-sprintf-chk-ub.
1494 (CFLAGS-tst-sprintf-ub.c): New variable.
1495 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
1496 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
1497 destination buffer and check for overflows in fortified mode.
1498 * libio/libioP.h (PRINTF_CHK): New macro.
1499 * libio/tst-sprintf-chk-ub.c: New file.
1500 * libio/tst-sprintf-ub.c: Likewise.
1501
1502 2019-01-02 Florian Weimer <fweimer@redhat.com>
1503
1504 [BZ #24018]
1505 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
1506 failure.
1507
1508 2019-01-02 Florian Weimer <fweimer@redhat.com>
1509
1510 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
1511
1512 2019-01-01 Joseph Myers <joseph@codesourcery.com>
1513
1514 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
1515 macro.
1516
1517 * sysdeps/unix/sysv/linux/netpacket/packet.h
1518 (PACKET_IGNORE_OUTGOING): New macro.
1519
1520 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
1521 macro.
1522
1523 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1524 version to 4.20.
1525 (riscv_flush_icache): New syscall.
1526
1527 * manual/texinfo.tex: Update to version 2018-12-28.17 with
1528 trailing whitespace removed.
1529 * scripts/config.guess: Update to version 2019-01-01.
1530 * scripts/config.sub: Update to version 2019-01-01.
1531 * scripts/move-if-change: Update from gnulib.
1532
1533 * NEWS: Update copyright dates.
1534 * catgets/gencat.c (print_version): Likewise.
1535 * csu/version.c (banner): Likewise.
1536 * debug/catchsegv.sh: Likewise.
1537 * debug/pcprofiledump.c (print_version): Likewise.
1538 * debug/xtrace.sh (do_version): Likewise.
1539 * elf/ldconfig.c (print_version): Likewise.
1540 * elf/ldd.bash.in: Likewise.
1541 * elf/pldd.c (print_version): Likewise.
1542 * elf/sotruss.sh: Likewise.
1543 * elf/sprof.c (print_version): Likewise.
1544 * iconv/iconv_prog.c (print_version): Likewise.
1545 * iconv/iconvconfig.c (print_version): Likewise.
1546 * locale/programs/locale.c (print_version): Likewise.
1547 * locale/programs/localedef.c (print_version): Likewise.
1548 * login/programs/pt_chown.c (print_version): Likewise.
1549 * malloc/memusage.sh (do_version): Likewise.
1550 * malloc/memusagestat.c (print_version): Likewise.
1551 * malloc/mtrace.pl: Likewise.
1552 * manual/libc.texinfo: Likewise.
1553 * nptl/version.c (banner): Likewise.
1554 * nscd/nscd.c (print_version): Likewise.
1555 * nss/getent.c (print_version): Likewise.
1556 * nss/makedb.c (print_version): Likewise.
1557 * posix/getconf.c (main): Likewise.
1558 * scripts/test-installation.pl: Likewise.
1559 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1560
1561 * All files with FSF copyright notices: Update copyright dates
1562 using scripts/update-copyrights.
1563 * locale/programs/charmap-kw.h: Regenerated.
1564 * locale/programs/locfile-kw.h: Likewise.
1565
1566 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1567
1568 * timezone/zdump.c: Update from tzcode 2018i.
1569 * timezone/zic.c: Likewise.
1570
1571 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
1572
1573 regex: improve Gnulib port to AIX
1574 From the glibc point of view, this removes duplicate macro
1575 definitions and is obviously safe.
1576 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
1577 * posix/regex_internal.h:
1578 (__attribute__, __attribute_warn_unused_result__):
1579 Remove; already defined elsewhere.
1580
1581 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
1582
1583 [BZ #24027]
1584 * malloc/malloc.c (_int_realloc): Always call memcpy for the
1585 copying operation. (ncopies had the wrong type, resulting in an
1586 integer wraparound and too few elements being copied.)
1587
1588 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
1589
1590 [BZ #24022]
1591 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
1592 <asm/syscalls.h> exists with __has_include__ before including it.
1593
1594 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1595
1596 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1597 version to 4.20.
1598
1599 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
1600
1601 * hurd/lookup-retry: Include <unistd.h>.
1602 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
1603 Release it on return. Handle "pid" magical lookup retry.
1604
1605 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1606
1607 [BZ #10496]
1608 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
1609 (t_fmt_ampm): Likewise.
1610 * localedata/locales/aa_ER (t_fmt): Likewise.
1611 (t_fmt_ampm): Likewise.
1612 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
1613 (t_fmt_ampm): Likewise.
1614 * localedata/locales/aa_ET (t_fmt): Likewise.
1615 (t_fmt_ampm): Likewise.
1616 * localedata/locales/am_ET (t_fmt): Likewise.
1617 (t_fmt_ampm): Likewise.
1618 * localedata/locales/byn_ER (t_fmt): Likewise.
1619 (t_fmt_ampm): Likewise.
1620 * localedata/locales/om_ET (t_fmt): Likewise.
1621 (t_fmt_ampm): Likewise.
1622 * localedata/locales/sid_ET (t_fmt): Likewise.
1623 (t_fmt_ampm): Likewise.
1624 * localedata/locales/so_DJ (t_fmt): Likewise.
1625 (t_fmt_ampm): Likewise.
1626 * localedata/locales/so_ET (t_fmt): Likewise.
1627 (t_fmt_ampm): Likewise.
1628 * localedata/locales/so_SO (t_fmt): Likewise.
1629 (t_fmt_ampm): Likewise.
1630 * localedata/locales/ti_ER (t_fmt): Likewise.
1631 (t_fmt_ampm): Likewise.
1632 * localedata/locales/ti_ET (t_fmt): Likewise.
1633 (t_fmt_ampm): Likewise.
1634 * localedata/locales/tig_ER (t_fmt): Likewise.
1635 (t_fmt_ampm): Likewise.
1636 * localedata/locales/wal_ET (t_fmt): Likewise.
1637 (t_fmt_ampm): Likewise.
1638
1639 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
1640 * localedata/locales/ar_IN (t_fmt): Likewise.
1641 * localedata/locales/bhb_IN (t_fmt): Likewise.
1642 * localedata/locales/bho_IN (t_fmt): Likewise.
1643 * localedata/locales/bi_VU (t_fmt): Likewise.
1644 * localedata/locales/bn_BD (t_fmt): Likewise.
1645 * localedata/locales/bn_IN (t_fmt): Likewise.
1646 * localedata/locales/brx_IN (t_fmt): Likewise.
1647 * localedata/locales/doi_IN (t_fmt): Likewise.
1648 * localedata/locales/en_HK (t_fmt): Likewise.
1649 (t_fmt_ampm): Likewise.
1650 * localedata/locales/en_IN (t_fmt): Likewise.
1651 * localedata/locales/en_PH (t_fmt): Likewise.
1652 * localedata/locales/gu_IN (t_fmt): Likewise.
1653 * localedata/locales/hi_IN (t_fmt): Likewise.
1654 * localedata/locales/hif_FJ (t_fmt): Likewise.
1655 * localedata/locales/hne_IN (t_fmt): Likewise.
1656 * localedata/locales/kn_IN (t_fmt): Likewise.
1657 * localedata/locales/kok_IN (t_fmt): Likewise.
1658 * localedata/locales/ks_IN (t_fmt): Likewise.
1659 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
1660 * localedata/locales/mag_IN (t_fmt): Likewise.
1661 * localedata/locales/mai_IN (t_fmt): Likewise.
1662 * localedata/locales/mjw_IN (t_fmt): Likewise.
1663 * localedata/locales/ml_IN (t_fmt): Likewise.
1664 * localedata/locales/mni_IN (t_fmt): Likewise.
1665 * localedata/locales/mr_IN (t_fmt): Likewise.
1666 * localedata/locales/ms_MY (t_fmt): Likewise.
1667 * localedata/locales/pa_IN (t_fmt): Likewise.
1668 * localedata/locales/raj_IN (t_fmt): Likewise.
1669 * localedata/locales/sa_IN (t_fmt): Likewise.
1670 * localedata/locales/sat_IN (t_fmt): Likewise.
1671 * localedata/locales/sd_IN (t_fmt): Likewise.
1672 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
1673 * localedata/locales/tcy_IN (t_fmt): Likewise.
1674 * localedata/locales/the_NP (t_fmt): Likewise.
1675 * localedata/locales/to_TO (t_fmt): Likewise.
1676 * localedata/locales/ur_IN (t_fmt): Likewise.
1677
1678 * localedata/locales/hif_FJ (d_t_fmt): Set to
1679 "%A %d %b %Y %I:%M:%S %p".
1680 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
1681
1682 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
1683 * localedata/locales/ar_BH (t_fmt): Likewise.
1684 * localedata/locales/ar_DZ (t_fmt): Likewise.
1685 * localedata/locales/ar_EG (t_fmt): Likewise.
1686 * localedata/locales/ar_IQ (t_fmt): Likewise.
1687 * localedata/locales/ar_JO (t_fmt): Likewise.
1688 * localedata/locales/ar_KW (t_fmt): Likewise.
1689 * localedata/locales/ar_LB (t_fmt): Likewise.
1690 * localedata/locales/ar_LY (t_fmt): Likewise.
1691 * localedata/locales/ar_OM (t_fmt): Likewise.
1692 * localedata/locales/ar_QA (t_fmt): Likewise.
1693 * localedata/locales/ar_SD (t_fmt): Likewise.
1694 * localedata/locales/ar_SS (t_fmt): Likewise.
1695 * localedata/locales/ar_SY (t_fmt): Likewise.
1696 * localedata/locales/ar_TN (t_fmt): Likewise.
1697 * localedata/locales/ar_YE (t_fmt): Likewise.
1698
1699 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
1700 (t_fmt_ampm): Likewise.
1701 * localedata/locales/gez_ET (t_fmt): Likewise.
1702 (t_fmt_ampm): Likewise.
1703
1704 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
1705 (t_fmt_ampm): Likewise.
1706 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
1707
1708 * localedata/locales/zh_HK (t_fmt):
1709 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
1710
1711 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
1712 because this locale does not use the 12-hour clock.
1713 (t_fmt): Set to "%Z %H:%M:%S".
1714 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
1715
1716 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
1717 because this locale does not use the 12-hour clock.
1718 (t_fmt): Set to "%H:%M:%S %Z".
1719 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
1720
1721 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
1722 because this locale does not use the 12-hour clock.
1723 (t_fmt): Set to "%T".
1724 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
1725 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
1726
1727 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
1728 because this locale does not use the 12-hour clock.
1729 (t_fmt): Set to "%H:%M:%S %Z".
1730 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
1731
1732 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
1733 because this locale does not use the 12-hour clock.
1734 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
1735 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
1736
1737 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1738
1739 [BZ #10496]
1740 [BZ #23724]
1741 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
1742 (t_fmt_ampm): Likewise.
1743 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
1744 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
1745 (d_fmt): Set to "%-d.%-m.%y".
1746
1747 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1748
1749 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
1750 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
1751 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
1752 Likewise.
1753 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
1754 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
1755 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
1756 function.
1757 * support/blob_repeat.c (check_mul_overflow_size_t,
1758 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
1759
1760 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
1761
1762 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
1763
1764 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
1765
1766 regex: simplify Gnulib port
1767 This simplifies the code, by removing stuff intended for porting
1768 to Gnulib but no longer needed there.
1769 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
1770 uses of libc_hidden_def, weak_alias.
1771 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
1772 _Restrict_ except for public-facing headers.
1773 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
1774 Remove; already defined elsewhere.
1775 * posix/regex.c, posix/regex_internal.h:
1776 Use __GNUC_PREREQ instead of rolling our own.
1777 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
1778
1779 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
1780
1781 * benchtests/bench-strlen.c (generic_strlen): New function.
1782 (memchr_strlen): New function.
1783
1784 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1785
1786 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
1787 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
1788 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
1789
1790 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1791
1792 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1793
1794 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1795
1796 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
1797 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
1798 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
1799 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
1800 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
1801 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
1802 <sysdeps/ieee754/flt-32/s_sincosf.c>.
1803
1804 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1805
1806 [BZ #24023]
1807 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
1808 PLT reference in libc.so.
1809 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
1810 _Q_lltoq and _Q_qtod PLT references in libc.so.
1811
1812 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
1813
1814 * benchtests/bench-memchr.c: Cleanup defines.
1815 * benchtests/bench-memcmp.c: Likewise.
1816 * benchtests/bench-memset.c: Likewise.
1817 * benchtests/bench-memset-large.c: Likewise.
1818 * benchtests/bench-memset-walk.c: Likewise.
1819 * benchtests/bench-stpcpy.c: Likewise.
1820 * benchtests/bench-stpncpy.c: Likewise.
1821 * benchtests/bench-strcat.c: Likewise.
1822 * benchtests/bench-strchr.c: Likewise.
1823 * benchtests/bench-strcmp.c: Likewise.
1824 * benchtests/bench-strcpy.c: Likewise.
1825 * benchtests/bench-strcspn.c: Likewise.
1826 * benchtests/bench-string.h: Likewise.
1827 * benchtests/bench-strlen.c: Likewise.
1828 * benchtests/bench-strncat.c: Likewise.
1829 * benchtests/bench-strncmp.c: Likewise.
1830 * benchtests/bench-strncpy.c: Likewise.
1831 * benchtests/bench-strnlen.c: Likewise.
1832 * benchtests/bench-strpbrk.c: Likewise.
1833 * benchtests/bench-strrchr.c: Likewise.
1834 * benchtests/bench-strspn.c: Likewise.
1835
1836 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1837
1838 * stdlib/longlong.h: Update from GCC.
1839
1840 [BZ #23993]
1841 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
1842 * configure: Regenerated.
1843 * manual/install.texi (Tools for Compilation): Update minimum GCC
1844 version.
1845 * INSTALL: Regenerated.
1846
1847 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
1848
1849 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
1850
1851 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
1852
1853 * malloc/malloc.c (mremap_chunk): Additional checks.
1854
1855 2018-12-21 Mao Han <han_mao@c-sky.com>
1856
1857 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
1858 * scripts/build-many-glibcs.py: Add C-SKY targets.
1859 * sysdeps/csky/Implies: New file.
1860 * sysdeps/csky/Makefile: Likewise.
1861 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
1862 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
1863 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
1864 * sysdeps/csky/abiv2/memcmp.S: Likewise.
1865 * sysdeps/csky/abiv2/memcpy.S: Likewise.
1866 * sysdeps/csky/abiv2/memmove.S: Likewise.
1867 * sysdeps/csky/abiv2/memset.S: Likewise.
1868 * sysdeps/csky/abiv2/setjmp.S: Likewise.
1869 * sysdeps/csky/abiv2/start.S: Likewise.
1870 * sysdeps/csky/abiv2/strcmp.S: Likewise.
1871 * sysdeps/csky/abiv2/strcpy.S: Likewise.
1872 * sysdeps/csky/abiv2/strlen.S: Likewise.
1873 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
1874 * sysdeps/csky/abort-instr.h: Likewise.
1875 * sysdeps/csky/atomic-machine.h: Likewise.
1876 * sysdeps/csky/bits/endian.h: Likewise.
1877 * sysdeps/csky/bits/fenv.h: Likewise.
1878 * sysdeps/csky/bits/link.h: Likewise.
1879 * sysdeps/csky/bits/setjmp.h: Likewise.
1880 * sysdeps/csky/bsd-_setjmp.S: Likewise.
1881 * sysdeps/csky/bsd-setjmp.S: Likewise.
1882 * sysdeps/csky/configure: Likewise.
1883 * sysdeps/csky/configure.ac: Likewise.
1884 * sysdeps/csky/dl-machine.h: Likewise.
1885 * sysdeps/csky/dl-procinfo.c: Likewise.
1886 * sysdeps/csky/dl-procinfo.h: Likewise.
1887 * sysdeps/csky/dl-sysdep.h: Likewise.
1888 * sysdeps/csky/dl-tls.h: Likewise.
1889 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
1890 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
1891 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
1892 * sysdeps/csky/fpu/fegetenv.c: Likewise.
1893 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
1894 * sysdeps/csky/fpu/fegetmode.c: Likewise.
1895 * sysdeps/csky/fpu/fegetround.c: Likewise.
1896 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
1897 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
1898 * sysdeps/csky/fpu/fenv_private.h: Likewise.
1899 * sysdeps/csky/fpu/fesetenv.c: Likewise.
1900 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
1901 * sysdeps/csky/fpu/fesetmode.c: Likewise.
1902 * sysdeps/csky/fpu/fesetround.c: Likewise.
1903 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
1904 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
1905 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
1906 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
1907 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
1908 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
1909 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
1910 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
1911 * sysdeps/csky/fpu_control.h: Likewise.
1912 * sysdeps/csky/gccframe.h: Likewise.
1913 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
1914 * sysdeps/csky/ldsodefs.h: Likewise.
1915 * sysdeps/csky/libc-tls.c: Likewise.
1916 * sysdeps/csky/linkmap.h: Likewise.
1917 * sysdeps/csky/machine-gmon.h: Likewise.
1918 * sysdeps/csky/memusage.h: Likewise.
1919 * sysdeps/csky/nofpu/Implies: Likewise.
1920 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
1921 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
1922 * sysdeps/csky/nptl/Makefile: Likewise.
1923 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
1924 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
1925 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
1926 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
1927 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
1928 * sysdeps/csky/nptl/tls.h: Likewise.
1929 * sysdeps/csky/preconfigure: Likewise.
1930 * sysdeps/csky/sfp-machine.h: Likewise.
1931 * sysdeps/csky/sotruss-lib.c: Likewise.
1932 * sysdeps/csky/stackinfo.h: Likewise.
1933 * sysdeps/csky/sysdep.h: Likewise.
1934 * sysdeps/csky/tininess.h: Likewise.
1935 * sysdeps/csky/tst-audit.h: Likewise.
1936 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
1937 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
1938 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
1939 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
1940 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
1941 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
1942 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
1943 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
1944 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
1945 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
1946 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
1947 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
1948 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
1949 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
1950 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
1951 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
1952 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
1953 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
1954 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
1955 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
1956 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
1957 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
1958 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
1959 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
1960 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
1961 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
1962 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
1963 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
1964 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
1965 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
1966 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
1967 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
1968 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
1969 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
1970 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
1971 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
1972 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
1973 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
1974 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
1975 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
1976 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
1977 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
1978 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
1979 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
1980
1981 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
1982
1983 * include/time.h (__difftime64): Add.
1984 * time/difftime.c (subtract): convert to 64-bit time.
1985 * time/difftime.c (__difftime64): Add.
1986 * time/difftime.c (__difftime): Wrap around __difftime64.
1987
1988 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
1989
1990 * manual/examples/add.c: Remove redundant "if not".
1991 * manual/examples/argp-ex1.c: Likewise.
1992 * manual/examples/argp-ex2.c: Likewise.
1993 * manual/examples/argp-ex3.c: Likewise.
1994 * manual/examples/argp-ex4.c: Likewise.
1995 * manual/examples/atexit.c: Likewise.
1996 * manual/examples/db.c: Likewise.
1997 * manual/examples/dir.c: Likewise.
1998 * manual/examples/dir2.c: Likewise.
1999 * manual/examples/execinfo.c: Likewise.
2000 * manual/examples/filecli.c: Likewise.
2001 * manual/examples/filesrv.c: Likewise.
2002 * manual/examples/fmtmsgexpl.c: Likewise.
2003 * manual/examples/genpass.c: Likewise.
2004 * manual/examples/inetcli.c: Likewise.
2005 * manual/examples/inetsrv.c: Likewise.
2006 * manual/examples/isockad.c: Likewise.
2007 * manual/examples/longopt.c: Likewise.
2008 * manual/examples/memopen.c: Likewise.
2009 * manual/examples/memstrm.c: Likewise.
2010 * manual/examples/mkdirent.c: Likewise.
2011 * manual/examples/mkfsock.c: Likewise.
2012 * manual/examples/mkisock.c: Likewise.
2013 * manual/examples/mygetpass.c: Likewise.
2014 * manual/examples/pipe.c: Likewise.
2015 * manual/examples/popen.c: Likewise.
2016 * manual/examples/rprintf.c: Likewise.
2017 * manual/examples/search.c: Likewise.
2018 * manual/examples/select.c: Likewise.
2019 * manual/examples/setjmp.c: Likewise.
2020 * manual/examples/sigh1.c: Likewise.
2021 * manual/examples/sigusr.c: Likewise.
2022 * manual/examples/stpcpy.c: Likewise.
2023 * manual/examples/strdupa.c: Likewise.
2024 * manual/examples/strftim.c: Likewise.
2025 * manual/examples/subopt.c: Likewise.
2026 * manual/examples/swapcontext.c: Likewise.
2027 * manual/examples/termios.c: Likewise.
2028 * manual/examples/testopt.c: Likewise.
2029 * manual/examples/testpass.c: Likewise.
2030 * manual/examples/timeval_subtract.c: Likewise.
2031
2032 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2033
2034 * sysdeps/x86/fpu/math_private.h: New file.
2035 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2036
2037 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2038 definition.
2039 (cosh): Likewise.
2040 (tanh): Likewise.
2041
2042 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2043
2044 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2045 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2046 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2047 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2048 fields.
2049 (_dl_show_auxv): Give a special treatment to
2050 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2051 and AT_L3_CACHEGEOMETRY.
2052 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2053 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2054 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2055 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2056
2057 2018-12-19 Andreas Schwab <schwab@suse.de>
2058
2059 * nscd/connections.c (check_use): Don't abort on invalid len.
2060
2061 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2062
2063 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2064 values in the 64bit value cases.
2065
2066 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2067
2068 * include/time.h
2069 (__ctime64_r): Add.
2070 * time/ctime_r.c
2071 (__ctime64_r): Add.
2072 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2073
2074 * include/time.h
2075 (__ctime64): Add.
2076 * time/gmtime.c
2077 (__ctime64): Add.
2078 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2079
2080 * include/time.h
2081 (__gmtime64_r): Add.
2082 * time/gmtime.c
2083 (__gmtime64_r): Add.
2084 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2085
2086 * include/time.h
2087 (__gmtime64): Add.
2088 * time/gmtime.c
2089 (__gmtime64): Add.
2090 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2091
2092 * include/time.h
2093 (__localtime64_r): Add.
2094 * time/localtime.c
2095 (__localtime64_r): Add.
2096 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2097
2098 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2099
2100 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2101 kernel_sigction definition.
2102
2103 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2104
2105 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2106
2107 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2108 __syscall_rt_sigaction.
2109 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2110 (kernel_sigaction): Use Linux generic defintion.
2111 (STUB): Define.
2112 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2113 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2114 (__syscall_rt_sigaction): Remove implementation.
2115 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2116 hidden.
2117 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2118 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2119 INTERNAL_SYSCALL): Remove definitions.
2120 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2121 action and signal set size.
2122 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2123 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2124
2125 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2126 James Clarke <jrtc27@jrtc27.com>
2127
2128 [BZ #23967]
2129 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2130 Define if SA_RESTORER is defined.
2131 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2132 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2133 already defined.
2134 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2135 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2136 definitions.
2137 (HAS_SA_RESTORER): Define.
2138 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2139 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2140 (HAS_SA_RESTORER): Define.
2141 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2142 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2143 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2144 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2145 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2146
2147 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2148
2149 * sysdeps/unix/sysv/linux/kernel-features.h
2150 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2151 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2152 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2153 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2154 (__ASSUME_ST_INO_64_BIT): Likewise.
2155 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2156 <kernel-features.h>.
2157 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2158 Remove conditional code.
2159 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2160 <kernel-features.h>.
2161 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2162 Remove conditional code.
2163 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2164 <kernel-features.h>.
2165 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2166 Remove conditional code.
2167 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2168 <kernel-features.h>.
2169 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2170 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2171
2172 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2173
2174 * sysdeps/s390/multiarch/ifunc-resolve.h
2175 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2176 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2177 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2178 Delete macro definition.
2179 (s390_libc_ifunc_init): Rename to
2180 s390_libc_ifunc_expr_stfle_init.
2181 * sysdeps/s390/bzero: Use
2182 s390_libc_ifunc_expr_stfle_init instead of
2183 s390_libc_ifunc_init.
2184 * sysdeps/s390/memcmp.c: Likewise.
2185 * sysdeps/s390/memcpy.c: Likewise.
2186 * sysdeps/s390/mempcpy.c: Likewise.
2187 * sysdeps/s390/memset.c: Likewise.
2188
2189 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2190
2191 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2192 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2193
2194 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2195
2196 * sysdeps/s390/multiarch/Makefile
2197 (sysdep_routines): Remove wmemcmp variants.
2198 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2199 * sysdeps/s390/multiarch/ifunc-impl-list.c
2200 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2201 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2202 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2203 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2204 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2205 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2206 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2207 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2208
2209 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2210
2211 * sysdeps/s390/multiarch/Makefile
2212 (sysdep_routines): Remove wmemset variants.
2213 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2214 * sysdeps/s390/multiarch/ifunc-impl-list.c
2215 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2216 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2217 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2218 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2219 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2220 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2221 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2222 * sysdeps/s390/ifunc-wmemset.h: New file.
2223
2224 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2225
2226 * sysdeps/s390/multiarch/Makefile
2227 (sysdep_routines): Remove wmemchr variants.
2228 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2229 * sysdeps/s390/multiarch/ifunc-impl-list.c
2230 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2231 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2232 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2233 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2234 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2235 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2236 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2237 * sysdeps/s390/ifunc-wmemchr.h: New file.
2238
2239 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2240
2241 * sysdeps/s390/multiarch/Makefile
2242 (sysdep_routines): Remove wcscspn variants.
2243 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2244 * sysdeps/s390/multiarch/ifunc-impl-list.c
2245 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2246 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2247 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2248 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2249 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2250 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2251 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2252 * sysdeps/s390/ifunc-wcscspn.h: New file.
2253
2254 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2255
2256 * sysdeps/s390/multiarch/Makefile
2257 (sysdep_routines): Remove wcspbrk variants.
2258 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2259 * sysdeps/s390/multiarch/ifunc-impl-list.c
2260 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2261 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2262 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2263 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2264 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2265 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2266 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2267 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2268
2269 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2270
2271 * sysdeps/s390/multiarch/Makefile
2272 (sysdep_routines): Remove wcsspn variants.
2273 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2274 * sysdeps/s390/multiarch/ifunc-impl-list.c
2275 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2276 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2277 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2278 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2279 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2280 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2281 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2282 * sysdeps/s390/ifunc-wcsspn.h: New file.
2283
2284 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2285
2286 * sysdeps/s390/multiarch/Makefile
2287 (sysdep_routines): Remove wcsrchr variants.
2288 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2289 * sysdeps/s390/multiarch/ifunc-impl-list.c
2290 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2291 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2292 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2293 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2294 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2295 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2296 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
2297 * sysdeps/s390/ifunc-wcsrchr.h: New file.
2298
2299 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2300
2301 * sysdeps/s390/multiarch/Makefile
2302 (sysdep_routines): Remove wcschrnul variants.
2303 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
2304 * sysdeps/s390/multiarch/ifunc-impl-list.c
2305 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2306 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2307 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2308 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2309 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2310 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2311 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2312 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2313
2314 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2315
2316 * sysdeps/s390/multiarch/Makefile
2317 (sysdep_routines): Remove wcschr variants.
2318 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2319 * sysdeps/s390/multiarch/ifunc-impl-list.c
2320 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
2321 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
2322 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
2323 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
2324 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
2325 * sysdeps/s390/multiarch/wcschr.c: Move to ...
2326 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
2327 * sysdeps/s390/ifunc-wcschr.h: New file.
2328
2329 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2330
2331 * sysdeps/s390/multiarch/Makefile
2332 (sysdep_routines): Remove wcsncmp variants.
2333 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
2334 * sysdeps/s390/multiarch/ifunc-impl-list.c
2335 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
2336 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
2337 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
2338 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
2339 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
2340 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
2341 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
2342 * sysdeps/s390/ifunc-wcsncmp.h: New file.
2343
2344 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2345
2346 * sysdeps/s390/multiarch/Makefile
2347 (sysdep_routines): Remove wcscmp variants.
2348 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
2349 * sysdeps/s390/multiarch/ifunc-impl-list.c
2350 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
2351 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
2352 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
2353 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
2354 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
2355 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
2356 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
2357 * sysdeps/s390/ifunc-wcscmp.h: New file.
2358
2359 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2360
2361 * sysdeps/s390/multiarch/Makefile
2362 (sysdep_routines): Remove wcsncat variants.
2363 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
2364 * sysdeps/s390/multiarch/ifunc-impl-list.c
2365 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
2366 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
2367 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
2368 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
2369 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
2370 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
2371 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
2372 * sysdeps/s390/ifunc-wcsncat.h: New file.
2373
2374 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2375
2376 * sysdeps/s390/multiarch/Makefile
2377 (sysdep_routines): Remove wcscat variants.
2378 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
2379 * sysdeps/s390/multiarch/ifunc-impl-list.c
2380 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
2381 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
2382 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
2383 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
2384 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
2385 * sysdeps/s390/multiarch/wcscat.c: Move to ...
2386 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
2387 * sysdeps/s390/ifunc-wcscat.h: New file.
2388
2389 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2390
2391 * sysdeps/s390/multiarch/Makefile
2392 (sysdep_routines): Remove wcpncpy variants.
2393 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
2394 * sysdeps/s390/multiarch/ifunc-impl-list.c
2395 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
2396 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
2397 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
2398 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
2399 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
2400 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
2401 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
2402 * sysdeps/s390/ifunc-wcpncpy.h: New file.
2403
2404 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2405
2406 * sysdeps/s390/multiarch/Makefile
2407 (sysdep_routines): Remove wcsncpy variants.
2408 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
2409 * sysdeps/s390/multiarch/ifunc-impl-list.c
2410 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
2411 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
2412 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
2413 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
2414 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
2415 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
2416 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
2417 * sysdeps/s390/ifunc-wcsncpy.h: New file.
2418
2419 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2420
2421 * sysdeps/s390/multiarch/Makefile
2422 (sysdep_routines): Remove wcpcpy variants.
2423 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
2424 * sysdeps/s390/multiarch/ifunc-impl-list.c
2425 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
2426 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
2427 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
2428 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
2429 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
2430 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
2431 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
2432 * sysdeps/s390/ifunc-wcpcpy.h: New file.
2433
2434 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2435
2436 * sysdeps/s390/multiarch/Makefile
2437 (sysdep_routines): Remove wcscpy variants.
2438 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
2439 * sysdeps/s390/multiarch/ifunc-impl-list.c
2440 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
2441 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
2442 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
2443 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
2444 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
2445 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
2446 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
2447 * sysdeps/s390/ifunc-wcscpy.h: New file.
2448
2449 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2450
2451 * sysdeps/s390/multiarch/Makefile
2452 (sysdep_routines): Remove wcsnlen variants.
2453 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
2454 * sysdeps/s390/multiarch/ifunc-impl-list.c
2455 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
2456 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
2457 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
2458 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
2459 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
2460 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
2461 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
2462 * sysdeps/s390/ifunc-wcsnlen.h: New file.
2463
2464 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2465
2466 * sysdeps/s390/multiarch/Makefile
2467 (sysdep_routines): Remove wcslen variants.
2468 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
2469 * sysdeps/s390/multiarch/ifunc-impl-list.c
2470 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
2471 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
2472 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
2473 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
2474 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
2475 * sysdeps/s390/multiarch/wcslen.c: Move to ...
2476 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
2477 * sysdeps/s390/ifunc-wcslen.h: New file.
2478
2479 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2480
2481 * sysdeps/s390/multiarch/Makefile
2482 (sysdep_routines): Remove memrchr variants.
2483 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
2484 * sysdeps/s390/multiarch/ifunc-impl-list.c
2485 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
2486 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
2487 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
2488 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
2489 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
2490 * sysdeps/s390/multiarch/memrchr.c: Move to ...
2491 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
2492 * sysdeps/s390/ifunc-memrchr.h: New file.
2493
2494 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2495
2496 * sysdeps/s390/multiarch/Makefile
2497 (sysdep_routines): Remove memccpy variants.
2498 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
2499 * sysdeps/s390/multiarch/ifunc-impl-list.c
2500 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
2501 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
2502 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
2503 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
2504 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
2505 * sysdeps/s390/multiarch/memccpy.c: Move to ...
2506 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
2507 * sysdeps/s390/ifunc-memccpy.h: New file.
2508
2509 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2510
2511 * sysdeps/s390/multiarch/Makefile
2512 (sysdep_routines): Remove rawmemchr variants.
2513 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
2514 * sysdeps/s390/multiarch/ifunc-impl-list.c
2515 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
2516 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
2517 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
2518 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
2519 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
2520 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
2521 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
2522 * sysdeps/s390/ifunc-rawmemchr.h: New file.
2523
2524 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2525
2526 * sysdeps/s390/multiarch/Makefile
2527 (sysdep_routines): Remove memchr variants.
2528 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
2529 * sysdeps/s390/multiarch/ifunc-impl-list.c
2530 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
2531 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
2532 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
2533 * sysdeps/s390/multiarch/memchr.c: Move to ...
2534 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
2535 * sysdeps/s390/ifunc-memchr.h: New file.
2536 * sysdeps/s390/s390-64/memchr.S: Move to ...
2537 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
2538 for 31/64bit and ifunc handling.
2539 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
2540 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
2541 * sysdeps/s390/s390-32/memchr.S: Likewise.
2542
2543 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2544
2545 * sysdeps/s390/multiarch/Makefile
2546 (sysdep_routines): Remove strcspn variants.
2547 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
2548 * sysdeps/s390/multiarch/ifunc-impl-list.c
2549 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
2550 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
2551 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
2552 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
2553 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
2554 * sysdeps/s390/multiarch/strcspn.c: Move to ...
2555 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
2556 * sysdeps/s390/ifunc-strcspn.h: New file.
2557
2558 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2559
2560 * sysdeps/s390/multiarch/Makefile
2561 (sysdep_routines): Remove strpbrk variants.
2562 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
2563 * sysdeps/s390/multiarch/ifunc-impl-list.c
2564 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
2565 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
2566 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
2567 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
2568 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
2569 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
2570 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
2571 * sysdeps/s390/ifunc-strpbrk.h: New file.
2572
2573 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2574
2575 * sysdeps/s390/multiarch/Makefile
2576 (sysdep_routines): Remove strspn variants.
2577 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
2578 * sysdeps/s390/multiarch/ifunc-impl-list.c
2579 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
2580 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
2581 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
2582 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
2583 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
2584 * sysdeps/s390/multiarch/strspn.c: Move to ...
2585 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
2586 * sysdeps/s390/ifunc-strspn.h: New file.
2587
2588 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2589
2590 * sysdeps/s390/multiarch/Makefile
2591 (sysdep_routines): Remove strrchr variants.
2592 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
2593 * sysdeps/s390/multiarch/ifunc-impl-list.c
2594 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
2595 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
2596 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
2597 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
2598 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
2599 * sysdeps/s390/multiarch/strrchr.c: Move to ...
2600 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
2601 * sysdeps/s390/ifunc-strrchr.h: New file.
2602
2603 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2604
2605 * sysdeps/s390/multiarch/Makefile
2606 (sysdep_routines): Remove strchrnul variants.
2607 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
2608 * sysdeps/s390/multiarch/ifunc-impl-list.c
2609 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
2610 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
2611 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
2612 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
2613 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
2614 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
2615 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
2616 * sysdeps/s390/ifunc-strchrnul.h: New file.
2617
2618 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2619
2620 * sysdeps/s390/multiarch/Makefile
2621 (sysdep_routines): Remove strchr variants.
2622 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
2623 * sysdeps/s390/multiarch/ifunc-impl-list.c
2624 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
2625 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
2626 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
2627 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
2628 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
2629 * sysdeps/s390/multiarch/strchr.c: Move to ...
2630 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
2631 * sysdeps/s390/ifunc-strchr.h: New file.
2632
2633 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2634
2635 * sysdeps/s390/multiarch/Makefile
2636 (sysdep_routines): Remove strncmp variants.
2637 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
2638 * sysdeps/s390/multiarch/ifunc-impl-list.c
2639 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
2640 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
2641 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
2642 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
2643 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
2644 * sysdeps/s390/multiarch/strncmp.c: Move to ...
2645 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
2646 * sysdeps/s390/ifunc-strncmp.h: New file.
2647
2648 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2649
2650 * sysdeps/s390/multiarch/Makefile
2651 (sysdep_routines): Remove strcmp variants.
2652 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
2653 * sysdeps/s390/multiarch/ifunc-impl-list.c
2654 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
2655 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
2656 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
2657 * sysdeps/s390/multiarch/strcmp.c: Move to ...
2658 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
2659 * sysdeps/s390/ifunc-strcmp.h: New file.
2660 * sysdeps/s390/s390-64/strcmp.S: Move to ...
2661 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
2662 for 31/64bit and ifunc handling.
2663 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
2664 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
2665 * sysdeps/s390/s390-32/strcmp.S: Likewise.
2666
2667 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2668
2669 * sysdeps/s390/multiarch/Makefile
2670 (sysdep_routines): Remove strncat variants.
2671 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
2672 * sysdeps/s390/multiarch/ifunc-impl-list.c
2673 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
2674 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
2675 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
2676 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
2677 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
2678 * sysdeps/s390/multiarch/strncat.c: Move to ...
2679 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
2680 * sysdeps/s390/ifunc-strncat.h: New file.
2681
2682 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2683
2684 * sysdeps/s390/multiarch/Makefile
2685 (sysdep_routines): Remove strcat variants.
2686 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
2687 * sysdeps/s390/multiarch/ifunc-impl-list.c
2688 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
2689 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
2690 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
2691 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
2692 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
2693 * sysdeps/s390/multiarch/strcat.c: Move to ...
2694 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
2695 * sysdeps/s390/ifunc-strcat.h: New file.
2696
2697 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2698
2699 * sysdeps/s390/multiarch/Makefile
2700 (sysdep_routines): Remove stpncpy variants.
2701 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
2702 * sysdeps/s390/multiarch/ifunc-impl-list.c
2703 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
2704 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
2705 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
2706 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
2707 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
2708 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
2709 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
2710 * sysdeps/s390/ifunc-stpncpy.h: New file.
2711
2712 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2713
2714 * sysdeps/s390/multiarch/Makefile
2715 (sysdep_routines): Remove strncpy variants.
2716 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
2717 * sysdeps/s390/multiarch/ifunc-impl-list.c
2718 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
2719 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
2720 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
2721 * sysdeps/s390/multiarch/strncpy.c: Move to ...
2722 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
2723 * sysdeps/s390/ifunc-strncpy.h: New file.
2724 * sysdeps/s390/s390-64/strncpy.S: Move to ...
2725 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
2726 and adjust ifunc handling.
2727 * sysdeps/s390/s390-32/strncpy.S: Move to ...
2728 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
2729 and adjust ifunc handling.
2730 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
2731 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
2732
2733 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2734
2735 * sysdeps/s390/multiarch/Makefile
2736 (sysdep_routines): Remove stpcpy variants.
2737 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
2738 * sysdeps/s390/multiarch/ifunc-impl-list.c
2739 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
2740 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
2741 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
2742 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
2743 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
2744 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
2745 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
2746 * sysdeps/s390/ifunc-stpcpy.h: New file.
2747
2748 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2749
2750 * sysdeps/s390/multiarch/Makefile
2751 (sysdep_routines): Remove strcpy variants.
2752 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
2753 * sysdeps/s390/multiarch/ifunc-impl-list.c
2754 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
2755 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
2756 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
2757 * sysdeps/s390/multiarch/strcpy.c: Move to ...
2758 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
2759 * sysdeps/s390/ifunc-strcpy.h: New file.
2760 * sysdeps/s390/s390-64/strcpy.S: Move to ...
2761 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
2762 for 31/64bit and ifunc handling.
2763 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
2764 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
2765 * sysdeps/s390/s390-32/strcpy.S: Likewise.
2766
2767 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2768
2769 * sysdeps/s390/multiarch/Makefile
2770 (sysdep_routines): Remove strnlen variants.
2771 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
2772 * sysdeps/s390/multiarch/ifunc-impl-list.c
2773 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
2774 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
2775 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
2776 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
2777 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
2778 * sysdeps/s390/multiarch/strnlen.c: Move to ...
2779 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
2780 * sysdeps/s390/ifunc-strnlen.h: New file.
2781
2782 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2783
2784 * sysdeps/s390/multiarch/Makefile
2785 (sysdep_routines): Remove strlen variants.
2786 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
2787 * sysdeps/s390/multiarch/ifunc-impl-list.c
2788 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
2789 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
2790 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
2791 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
2792 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
2793 * sysdeps/s390/multiarch/strlen.c: Move to ...
2794 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
2795 * sysdeps/s390/ifunc-strlen.h: New file.
2796
2797 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2798
2799 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
2800 * sysdeps/s390/multiarch/ifunc-impl-list.c
2801 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
2802 * sysdeps/s390/ifunc-memmem.h: New file.
2803 * sysdeps/s390/memmem.c: Likewise.
2804 * sysdeps/s390/memmem-c.c: Likewise.
2805 * sysdeps/s390/memmem-vx.c: Likewise.
2806
2807 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2808
2809 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
2810 * sysdeps/s390/multiarch/ifunc-impl-list.c
2811 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
2812 * sysdeps/s390/ifunc-strstr.h: New file.
2813 * sysdeps/s390/strstr.c: Likewise.
2814 * sysdeps/s390/strstr-c.c: Likewise.
2815 * sysdeps/s390/strstr-vx.c: Likewise.
2816
2817 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2818
2819 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
2820 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
2821 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
2822 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
2823 New defines.
2824 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
2825 * sysdeps/s390/memmove-c.c: New file.
2826 * sysdeps/s390/memmove.c: Likewise.
2827 * sysdeps/s390/multiarch/ifunc-impl-list.c
2828 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
2829
2830 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2831
2832 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
2833 * sysdeps/s390/configure.ac: Add check for z13 support.
2834 * sysdeps/s390/configure: Regenerated.
2835
2836 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2837
2838 * sysdeps/s390/memcopy.h: New file.
2839
2840 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2841
2842 * sysdeps/s390/s390-32/bcopy.S: Remove.
2843 * sysdeps/s390/s390-64/bcopy.S: Likewise.
2844
2845 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2846
2847 * sysdeps/s390/ifunc-memcpy.h: New File.
2848 * sysdeps/s390/memcpy.S: Move to ...
2849 * sysdeps/s390/memcpy-z900.S ... here.
2850 Move implementations from memcpy-s390x.s to here.
2851 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
2852 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2853 Remove memcpy/mempcpy variants.
2854 * sysdeps/s390/Makefile (sysdep_routines):
2855 Add memcpy/mempcpy variants.
2856 * sysdeps/s390/multiarch/ifunc-impl-list.c
2857 (__libc_ifunc_impl_list): Adjust ifunc variants for
2858 memcpy and mempcpy.
2859 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
2860 to ...
2861 * sysdeps/s390/memcpy.c: ... here.
2862 Adjust ifunc variants for memcpy.
2863 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
2864 * sysdeps/s390/mempcpy.c: ... here.
2865 Adjust ifunc variants for mempcpy.
2866 * sysdeps/s390/mempcpy.S: Delete file.
2867
2868 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2869
2870 * sysdeps/s390/s390-64/memcpy.S: Move to ...
2871 * sysdeps/s390/memcpy.S: ... here.
2872 Adjust to be usable for 31/64bit.
2873 * sysdeps/s390/s390-32/memcpy.S: Delete File.
2874 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
2875 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
2876 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2877 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
2878 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
2879 Adjust to be usable for 31/64bit.
2880 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
2881 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
2882 * sysdeps/s390/multiarch/memcpy.c: ... here.
2883 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
2884
2885 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2886
2887 * sysdeps/s390/ifunc-memcmp.h: New File.
2888 * sysdeps/s390/memcmp.S: Move to ...
2889 * sysdeps/s390/memcmp-z900.S ... here.
2890 Move implementations from memcmp-s390x.s to here.
2891 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
2892 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2893 Remove memcmp variants.
2894 * sysdeps/s390/Makefile (sysdep_routines):
2895 Add memcmp variants.
2896 * sysdeps/s390/multiarch/ifunc-impl-list.c
2897 (__libc_ifunc_impl_list): Adjust ifunc variants for
2898 memcmp.
2899 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
2900 to ...
2901 * sysdeps/s390/memcmp.c: ... here.
2902 Adjust ifunc variants for memcmp.
2903
2904 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2905
2906 * sysdeps/s390/s390-64/memcmp.S: Move to ...
2907 * sysdeps/s390/memcmp.S: ... here.
2908 Adjust to be usable for 31/64bit.
2909 * sysdeps/s390/s390-32/memcmp.S: Delete File.
2910 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
2911 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
2912 Remove memcmp.
2913 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2914 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
2915 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
2916 Adjust to be usable for 31/64bit.
2917 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
2918 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
2919 * sysdeps/s390/multiarch/memcmp.c: ... here.
2920 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
2921
2922 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2923
2924 * sysdeps/s390/s390-32/bzero.S: Delete file.
2925 * sysdeps/s390/s390-64/bzero.S: Likewise.
2926 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
2927 * sysdeps/s390/bzero.c: New file.
2928 * sysdeps/s390/memset-z900.S: Add bzero entry points.
2929 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
2930 * sysdeps/s390/multiarch/ifunc-impl-list.c
2931 (__libc_ifunc_impl_list): Add bzero ifunc variants.
2932
2933 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2934
2935 * sysdeps/s390/ifunc-memset.h: New File.
2936 * sysdeps/s390/memset.S: Move to ...
2937 * sysdeps/s390/memset-z900.S ... here.
2938 Move implementations from memset-s390x.s to here.
2939 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
2940 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2941 Remove memset variants.
2942 * sysdeps/s390/Makefile (sysdep_routines):
2943 Add memset variants.
2944 * sysdeps/s390/multiarch/ifunc-impl-list.c
2945 (__libc_ifunc_impl_list): Adjust ifunc variants for
2946 memset.
2947 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
2948 to ...
2949 * sysdeps/s390/memset.c: ... here.
2950 Adjust ifunc variants for memset.
2951
2952 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2953
2954 * sysdeps/s390/s390-64/memset.S: Move to ...
2955 * sysdeps/s390/memset.S: ... here.
2956 Adjust to be usable for 31/64bit.
2957 * sysdeps/s390/s390-32/memset.S: Delete File.
2958 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
2959 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
2960 Remove memset.
2961 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2962 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
2963 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
2964 Adjust to be usable for 31/64bit.
2965 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
2966 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
2967 * sysdeps/s390/multiarch/memset.c: ... here.
2968 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
2969
2970 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2971
2972 * sysdeps/s390/multiarch/ifunc-resolve.h
2973 (s390_libc_ifunc_init, s390_libc_ifunc,
2974 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
2975
2976 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2977
2978 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
2979 * sysdeps/s390/configure.ac: Add check for z10 support.
2980 * sysdeps/s390/configure: Regenerated.
2981
2982 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
2983
2984 * sysdeps/i386/atomic-machine.h: Merged with ...
2985 * sysdeps/x86_64/atomic-machine.h: To ...
2986 * sysdeps/x86/atomic-machine.h: This. New file.
2987
2988 2018-12-18 Florian Weimer <fweimer@redhat.com>
2989
2990 Rewrite locale/gen-translit.pl in Python.
2991 * locale/Makefile (generated): Add C-translit.h.
2992 (before-compile): Add $(objpfx)C-translit.h.
2993 (C-translit.h): Move to $(objpfx). Create target directory.
2994 Build using Python script.
2995 * locale/gen-translit.py: New file.
2996 * locale/gen-translit.pl: Remove file.
2997 * locale/C-translit.h.in: Change comment character to '#' for
2998 easier parsing without a C preprocessor.
2999 * locale/C-translit.h: Remove generated file.
3000 * manual/install.texi (Tools for Compilation): Do not mention
3001 C-translit.h.
3002 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3003 Remove locale/C-translit.h.
3004 * scripts/update-copyrights: Likewise.
3005 * INSTALL: Regenerate.
3006
3007 2018-12-18 Florian Weimer <fweimer@redhat.com>
3008
3009 [BZ #23995]
3010 * localedata/locales/bi_VU: Remove executable bit from file.
3011
3012 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3013
3014 * include/time.h
3015 (__localtime64): Add.
3016 * manual/maint.texi: Document Y2038 symbol handling.
3017 * time/localtime.c
3018 (__localtime64): Add.
3019 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3020
3021 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3022
3023 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3024 Do not clobber r12.
3025
3026 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3027 to allow extra macros from first or second sources.
3028 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3029 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3030 (tests-special): Add $(objpfx)tst-mman-consts.out.
3031 ($(objpfx)tst-mman-consts.out): New makefile target.
3032
3033 2018-12-17 Mao Han <han_mao@c-sky.com>
3034
3035 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3036 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3037 without stat64 system call support.
3038 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3039 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3040 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3041 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3042 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3043 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3044 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3045 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3046 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3047 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3048 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3049
3050 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3051
3052 regex: fix storage-exhaustion error
3053 [BZ #18040]
3054 * posix/regexec.c (get_subexp):
3055 Do not continue if storage is exhausted.
3056
3057 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3058
3059 regex: fix heap-use-after-free error
3060 [BZ #18040]
3061 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3062 https://debbugs.gnu.org/32592
3063 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3064 call extend_buffers which reallocates the re_string_t internal buffer.
3065 Local variable 'buf' was not updated in such case, resulting in
3066 use-after-free.
3067 * posix/regexec.c (get_subexp): Update 'buf' after call to
3068 get_subexp_sub.
3069
3070 2018-12-15 Florian Weimer <fweimer@redhat.com>
3071
3072 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3073 (minimum_stride_size): Use it.
3074 (support_blob_repeat_allocate): Likewise.
3075
3076 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3077
3078 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3079 definition.
3080 (acosh): Likewise.
3081 (atanh): Likewise.
3082
3083 2018-12-14 Florian Weimer <fweimer@redhat.com>
3084
3085 * manual/process.texi (Process Creation Concepts): Remove
3086 documentation of process (ID) lifetime. List more process
3087 creation functions. Reference Process Identification section.
3088 (Process Identification): Add information about process ID
3089 lifetime. Describe Linux thread/task IDs.
3090 * manual/signal.texi (Signaling Another Process): Mention that the
3091 signal is always sent to the process.
3092
3093 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3094
3095 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3096 and tst-ldbl-efgcvt.
3097 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3098 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3099 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3100 (fcvt_tests, output_error, output_r_error, do_test): Use the
3101 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3102 select the type of floating-point variables and arguments; to
3103 produce extra tests for double and conversion specifiers for
3104 printf; and to set the names of called functions.
3105 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3106 in tst-efgcvt-template.c.
3107 * misc/tst-ldbl-efgcvt.c: Likewise.
3108
3109 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3110
3111 * nss/Makefile (tst-nss-test3.out): New rule.
3112
3113 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3114
3115 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3116 clobber sp.
3117
3118 2018-12-13 fanjinke <fanjinke@hygon.cn>
3119
3120 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3121 "HygonGenuine".
3122
3123 2018-12-13 Andreas Schwab <schwab@suse.de>
3124
3125 [BZ #23861]
3126 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3127 (__pthread_rwlock_rdlock_full): Update expected value for
3128 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3129 * nptl/tst-rwlock-pwn.c: New file.
3130 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3131
3132 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3133
3134 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3135 definition.
3136
3137 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3138
3139 * benchtests/scripts/compare_bench.py (do_compare): write to
3140 stderr in casestat is not present.
3141 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3142 stderr in case timings field is not present. Also string showing
3143 the output filename goes into the stderr.
3144
3145 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3146
3147 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3148 and ZeroDivisorError exceptions.
3149 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3150 argument to loop through user provided statistics.
3151 * benchtests/scripts/compare_bench.py (main): Include the --stats
3152 argument.
3153
3154 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3155
3156 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3157 instead of return.
3158
3159 2018-12-12 Florian Weimer <fweimer@redhat.com>
3160
3161 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3162 clause to copyright header.
3163
3164 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3165
3166 [BZ #23614]
3167 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3168 registers saved in the stack frame.
3169 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3170 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3171
3172 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3173
3174 * include/bits/monetary-ldbl.h: New file.
3175 * include/bits/printf-ldbl.h: Likewise.
3176 * include/bits/stdio-ldbl.h: Likewise.
3177 * include/bits/stdlib-ldbl.h: Likewise.
3178 * include/bits/syslog-ldbl.h: Likewise.
3179 * include/bits/wchar-ldbl.h: Likewise.
3180
3181 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3182
3183 * libio/libio.h: Remove redirection for _IO_vfprintf.
3184
3185 2018-12-11 Andreas Schwab <schwab@suse.de>
3186
3187 * Makerules: Remove all references to abilist-pattern.
3188 (update-all-abi): Simplify find expression.
3189
3190 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3191
3192 [BZ #23961]
3193 * math/auto-libm-test-in: Add new test case.
3194 * math/auto-libm-test-out-pow: Regenerated.
3195 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3196
3197 2018-12-10 DJ Delorie <dj@redhat.com>
3198
3199 [BZ #23948]
3200 * support/test-container.c: Move postclean step to before we
3201 change namespaces.
3202
3203 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3204
3205 * scripts/gen-as-const.py (main): Handle --python option.
3206 * scripts/gen-py-const.awk: Remove.
3207 * Makerules (py-const-script): Use gen-as-const.py.
3208 ($(py-const)): Likewise.
3209 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3210 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3211 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3212 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3213 ~PTHREAD_MUTEX_NO_ELISION_NP.
3214 * manual/README.pretty-printers: Update reference to
3215 gen-py-const.awk.
3216
3217 * scripts/glibcextract.py: New file.
3218 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3219 or tempfile. Import glibcexctract.
3220 (compute_c_consts): Remove. Moved to glibcextract.py.
3221 (gen_test): Update reference to compute_c_consts.
3222 (main): Likewise.
3223 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3224 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3225 * sysdeps/unix/sysv/linux/Makefile
3226 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3227 Redirect stderr as well as stdout.
3228
3229 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3230
3231 [BZ #19767]
3232 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3233 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3234 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3235 ALWAYS_USE_VSYSCALL.
3236 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3237 ALWAYS_USE_VSYSCALL.
3238 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3239 ALWAYS_USE_VSYSCALL.
3240
3241 2018-12-10 Florian Weimer <fweimer@redhat.com>
3242
3243 [BZ #23972]
3244 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3245 offset instead of count for clarity. Fix typo in comment.
3246 (__old_getdents64): Keep track of previous offset. Use it to call
3247 handle_overflow.
3248 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3249 that d_off is never zero.
3250
3251 2018-12-10 Andreas Schwab <schwab@suse.de>
3252
3253 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3254 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3255 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3256 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3257 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3258
3259 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3260
3261 * timezone/private.h: Update from tzcode 2018g.
3262 * timezone/tzfile.h: Likewise.
3263 * timezone/tzselect.ksh: Likewise.
3264 * timezone/zdump.c: Likewise.
3265 * timezone/zic.c: Likewise.
3266
3267 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3268
3269 [BZ #23490]
3270 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3271 (do_test): Adjust buffer size and fix format.
3272
3273 2018-12-07 DJ Delorie <dj@redhat.com>
3274
3275 [BZ #23907]
3276 * malloc/tst-tcfree3.c: New.
3277 * malloc/Makefile: Add it.
3278
3279 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3280
3281 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3282
3283 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3284
3285 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3286 used as a mask for the mode argument of __vfscanf_internal and
3287 __vfwscanf_internal.
3288 * stdio-common/vfscanf-internal.c
3289 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3290 (__strtof128_internal): Define to __wcstof128_internal.
3291 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3292 __strtof128_internal or __wcstof128_internal when the format of
3293 long double is the same as _Float128.
3294
3295 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3296
3297 * include/unistd.h (__confstr): Add prototype and hidden prototype.
3298 * posix/confstr.c (confstr): Rename to __confstr.
3299 (__confstr): Add hidden def.
3300 (confstr): Add weak alias for __confstr.
3301 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
3302 confstr.
3303
3304 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3305
3306 * NEWS: Mention getcpu.
3307 * include/sched.h (__getcpu): New libc_hidden_proto.
3308 * manual/resource.texi: Document getcpu.
3309 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3310 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3311 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3312 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3313 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3314 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3315 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3316 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3317 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3318 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3319 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3320 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3321 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3322 Likewise.
3323 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3324 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3325 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3326 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3327 Likewise.
3328 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3329 Likewise.
3330 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3331 Likewise.
3332 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3333 Likewise.
3334 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3335 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3336 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3337 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3338 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3339 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3340 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3341 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3342 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
3343 * sysdeps/unix/sysv/linux/getcpu.c: New file.
3344 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
3345 Also check getcpu.
3346
3347 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3348
3349 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
3350 functions.
3351 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
3352
3353 2018-12-07 Florian Weimer <fweimer@redhat.com>
3354
3355 [BZ #17405]
3356 * posix/Makefile (routines): Add spawn_faction_addfchdir.
3357 * posix/Versions (GLIBC_2.29): Export
3358 posix_spawn_file_actions_addfchdir_np.
3359 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
3360 * posix/spawn_faction_destroy.c
3361 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
3362 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
3363 and the field action.fchdir_action.
3364 * posix/tst-spawn-chdir.c (add_chdir): New function.
3365 (do_test): Add do_fchdir loop. Call add_chdir.
3366 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
3367 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3368 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
3369 posix_spawn_file_actions_addfchdir_np.
3370 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
3371 Likewise.
3372 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
3373 Likewise.
3374 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
3375 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
3376 Likewise.
3377 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
3378 Likewise.
3379 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
3380 Likewise.
3381 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
3382 Likewise.
3383 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
3384 Likewise.
3385 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
3386 Likewise.
3387 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3388 (GLIBC_2.29): Likewise.
3389 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3390 (GLIBC_2.29): Likewise.
3391 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3392 (GLIBC_2.29): Likewise.
3393 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3394 (GLIBC_2.29): Likewise.
3395 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
3396 Likewise.
3397 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3398 (GLIBC_2.29): Likewise.
3399 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3400 (GLIBC_2.29): Likewise.
3401 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
3402 (GLIBC_2.29): Likewise.
3403 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
3404 (GLIBC_2.29): Likewise.
3405 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
3406 Likewise.
3407 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
3408 Likewise.
3409 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
3410 Likewise.
3411 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
3412 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
3413 Likewise.
3414 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
3415 Likewise.
3416 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
3417 Likewise.
3418 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
3419 Likewise.
3420
3421 2018-12-06 Joseph Myers <joseph@codesourcery.com>
3422
3423 * manual/texinfo.tex: Update to version 2018-09-21.20 with
3424 trailing whitespace removed.
3425 * scripts/config.guess: Update to version 2018-11-28.
3426 * scripts/config.sub: Update to version 2018-11-28.
3427 * scripts/install-sh: Update to version 2018-03-11.20.
3428 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
3429 * scripts/move-if-change: Update to version 2018-03-07 03:47.
3430
3431 2018-12-07 Florian Weimer <fweimer@redhat.com>
3432
3433 [BZ #23927]
3434 CVE-2018-19591
3435 * inet/tst-if_index-long.c: New file.
3436 * inet/Makefile (tests): Add tst-if_index-long.
3437
3438 2018-12-07 Florian Weimer <fweimer@redhat.com>
3439
3440 * support/check.h (support_record_failure_is_failed): Declare.
3441 * support/descriptors.h: New file.
3442 * support/support_descriptors.c: Likewise.
3443 * support/tst-support_descriptors.c: Likewise.
3444 * support/support_record_failure.c
3445 (support_record_failure_is_failed): New function.
3446 * support/Makefile (libsupport-routines): Add support_descriptors.
3447 (tests): Add tst-support_descriptors.
3448
3449 2018-12-05 Zack Weinberg <zackw@panix.com>
3450 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3451
3452 * stdio-common/vfprintf-internal.c
3453 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
3454 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
3455 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
3456 and __no_long_double.
3457 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
3458 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
3459 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
3460 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
3461 and __nldbl_*syslog* functions.
3462 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
3463 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
3464 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
3465 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
3466 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
3467 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
3468 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
3469 (__nldbl_vwprintf, __nldbl_wprintf):
3470 Directly call the appropriate __v*printf_internal routine, passing
3471 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
3472 variable names.
3473 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
3474 (__nldbl___printf_chk, __nldbl___snprintf_chk)
3475 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
3476 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
3477 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
3478 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3479 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
3480 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
3481 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
3482 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
3483 Likewise, and also pass PRINTF_FORTIFY when appropriate.
3484 (__nldbl_syslog, __nldbl_vsyslog):
3485 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
3486 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3487 appropriate.
3488 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3489 appropriate.
3490
3491 2018-12-05 Zack Weinberg <zackw@panix.com>
3492 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3493
3494 [BZ #11319]
3495 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
3496 Moved here from debug/vsprintf_chk.c.
3497 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
3498 and completion logic for the strfile to match exactly what
3499 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
3500 _IO_str_init_static_internal instead of maxlen-1.
3501 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3502 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
3503 __vsprintf_internal.
3504
3505 * debug/vsprintf_chk.c (__vsprintf_chk)
3506 * debug/sprintf_chk.c (__sprintf_chk):
3507 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
3508 'flags' argument is positive, and slen as maxlen. No need to lock
3509 the FILE and/or construct a temporary FILE. Minimize and normalize
3510 header inclusions and variable names. Do not libc_hidden_def anything.
3511
3512 * debug/asprintf_chk.c (__asprintf_chk)
3513 * debug/dprintf_chk.c (__dprintf_chk)
3514 * debug/fprintf_chk.c (__fprintf_chk)
3515 * debug/fwprintf_chk.c (__fwprintf_chk)
3516 * debug/printf_chk.c (__printf_chk)
3517 * debug/snprintf_chk.c (__snprintf_chk)
3518 * debug/swprintf_chk.c (__swprintf_chk)
3519 * debug/vasprintf_chk.c (__vasprintf_chk)
3520 * debug/vdprintf_chk.c (__vdprintf_chk)
3521 * debug/vfprintf_chk.c (__vfprintf_chk)
3522 * debug/vfwprintf_chk.c (__vfwprintf_chk)
3523 * debug/vprintf_chk.c (__vprintf_chk)
3524 * debug/vsnprintf_chk.c (__vsnprintf_chk)
3525 * debug/vswprintf_chk.c (__vswprintf_chk)
3526 * debug/vwprintf_chk.c (__vwprintf_chk)
3527 * debug/wprintf_chk.c (__wprintf_chk):
3528 Directly call the corresponding vxxprintf_internal function, passing
3529 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
3530 the FILE and/or construct a temporary FILE. Minimize and normalize
3531 header inclusions and variable names. Do not libc_hidden_def anything.
3532
3533 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
3534 __obstack_vprintf_internal.
3535 (__obstack_vprintf_chk): Convert into a wrapper that calls
3536 __obstack_vprintf_internal (these two functions already had the
3537 same code) and move to new file...
3538 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
3539 file.
3540 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
3541 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
3542 * debug/Makefile (routines): Add vobprintf_chk.
3543
3544 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3545 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3546 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
3547 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3548 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
3549 (__nldbl___obstack_vfprintf_chk):
3550 Directly call the corresponding vxxprintf_internal function,
3551 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
3552 duplicate comparison of slen with 0 or maxlen from the corresponding
3553 non-__nldbl function.
3554
3555 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
3556 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
3557 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
3558 Remove libc_hidden_proto.
3559
3560 * stdio-common/vfprintf-internal.c
3561 (__vfprintf_internal, __vfwprintf_internal):
3562 Do not check _IO_FLAGS2_FORTIFY.
3563 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
3564 * libio/libioP.h: Update prototype of __vsprintf_internal and add
3565 a comment explaining why it has the maxlen argument.
3566 (_IO_acquire_lock_clear_flags2_fct): Remove.
3567 (_IO_acquire_lock_clear_flags2): Remove.
3568 (_IO_release_lock): Remove conditional statement which will
3569 now never execute.
3570 (_IO_acquire_lock): Remove variable which is now unused.
3571 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3572 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3573
3574 * stdio-common/Makefile (tests): Add tst-bz11319 and
3575 tst-bz11319-fortify2.
3576 (CFLAGS-tst-bz11319-fortify2.c): New macro.
3577 * stdio-common/tst-bz11319-fortify2.c: New file.
3578 * stdio-common/tst-bz11319.c: Likewise.
3579
3580 2018-12-05 Zack Weinberg <zackw@panix.com>
3581 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3582
3583 * misc/syslog.c: Include libioP.h, not iolibio.h.
3584 (__vsyslog_internal): New function with the former body of
3585 __vsyslog_chk; takes mode_flags argument same as
3586 __v*printf_internal. Call __vfprintf_internal directly.
3587
3588 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
3589 Remove libc_hidden_def.
3590 (__syslog, __syslog_chk): Use __vsyslog_internal.
3591 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
3592
3593 * include/sys/syslog.h: Add multiple inclusion guard.
3594 Add prototype for __vsyslog_internal.
3595 Remove declaration and libc_hidden_proto for __vsyslog_chk.
3596
3597 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
3598 Use __vsyslog_internal.
3599
3600 2018-12-05 Zack Weinberg <zackw@panix.com>
3601 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3602
3603 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
3604 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
3605 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
3606 New functions.
3607 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
3608 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
3609
3610 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
3611 Include wctype.h here if COMPILE_WPRINTF is defined.
3612 Define __vfprintf_internal or __vfwprintf_internal, depending
3613 on COMPILE_WPRINTF.
3614 Temporarily, on entry to this function, update mode_flags
3615 according to the environmental settings corresponding to
3616 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
3617 Throughout, check mode_flags instead of __ldbl_is_dbl and
3618 _IO_FLAGS2_FORTIFY on the destination FILE.
3619 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
3620 Include vfprintf-internal.c. Don't include wctype.h.
3621 * stdio-common/vfprintf.c: New file. Just define __vfprintf
3622 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
3623 and vfprintf.
3624 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
3625 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
3626 and vfwprintf.
3627 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
3628
3629 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
3630 and add mode_flags argument; use __vfprintf_internal.
3631 (__vdprintf): New function. Alias vdprintf to this.
3632 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
3633 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
3634 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
3635 (__obstack_printf): Use __obstack_printf_internal.
3636 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
3637 public aliases __vsnprintf and vsnprintf.
3638 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
3639 called internally.
3640 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
3641 public aliases _IO_vsprintf and vsprintf.
3642 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
3643 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
3644 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
3645 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
3646 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
3647
3648 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
3649 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
3650 * stdio-common/fprintf.c, stdio-common/fxprintf.c
3651 * stdio-common/printf.c: Use __vfprintf_internal.
3652
3653 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
3654 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
3655 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
3656
3657 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
3658 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
3659 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
3660 __vfwprintf_internal.
3661
3662 * libio/libio.h: Remove libc_hidden_proto and declaration for
3663 _IO_vfprintf.
3664 Remove declaration of _IO_vfwprintf.
3665 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
3666 _IO_vsprintf.
3667 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
3668 _IO_obstack_printf.
3669 * include/stdio.h: Add prototype for __vasprintf.
3670 (__vsnprintf): Remove declaration, because there are no more
3671 internal calls.
3672 * include/wchar.h (__vfwprintf, __vswprintf): Remove
3673 declaration, because there are no more internal calls.
3674
3675 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
3676 __vsnprintf_internal, instead of _IO_vsnprintf.
3677 * argp/argp-help.c (__argp_error, __argp_failure): Use
3678 __vasprintf_internal, instead of _IO_vasprintf.
3679 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
3680 redefine, because there are no more internal calls.
3681
3682 2018-12-05 Zack Weinberg <zackw@panix.com>
3683 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3684
3685 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
3686 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
3687 Include libio/strfile.h instead of libioP.h.
3688 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
3689 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
3690 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
3691 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
3692 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
3693 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
3694 necessary. Do not set __no_long_double. Normalize variable names.
3695 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
3696 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
3697 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
3698 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
3699 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
3700 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
3701 Call __vfscanf_internal / __vfwscanf_internal directly, passing
3702 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
3703 Do not set __no_long_double. Normalize variable names.
3704
3705 2018-12-05 Zack Weinberg <zackw@panix.com>
3706 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3707
3708 * stdio-common/isoc99_scanf.c
3709 * stdio-common/isoc99_fscanf.c
3710 * stdio-common/isoc99_sscanf.c
3711 * stdio-common/isoc99_vscanf.c
3712 * stdio-common/isoc99_vfscanf.c
3713 * stdio-common/isoc99_vsscanf.c
3714 * wcsmbs/isoc99_wscanf.c
3715 * wcsmbs/isoc99_fwscanf.c
3716 * wcsmbs/isoc99_swscanf.c
3717 * wcsmbs/isoc99_vwscanf.c
3718 * wcsmbs/isoc99_vfwscanf.c
3719 * wcsmbs/isoc99_vswscanf.c:
3720 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
3721 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
3722 No need to lock and unlock the FILE passed to that function.
3723
3724 * stdio-common/vfscanf-internal.c
3725 (__vfscanf_internal, __vfwscanf_internal):
3726 Don't look at _IO_FLAGS2_SCANF_STD.
3727 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
3728 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
3729 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
3730
3731 2018-12-05 Zack Weinberg <zackw@panix.com>
3732 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3733
3734 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
3735 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
3736 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
3737 * libio/strfile.h: Add multiple inclusion guard.
3738 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
3739
3740 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
3741 consistency with the other version of this file.
3742 (ldbl_compat_symbol): New macro.
3743 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
3744 New macro.
3745
3746 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
3747 Define __vfscanf_internal or __vfwscanf_internal, depending on
3748 COMPILE_WSCANF; don't define any other public symbols.
3749 Remove errval and code to set errp.
3750 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
3751 as the mode_flags argument.
3752 (encode_error, conv_error, input_error): Don't set errval.
3753 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
3754 Include vfscanf-internal.c.
3755 * stdio-common/vfscanf.c: New file defining the public entry
3756 point vfscanf, which calls __vfscanf_internal.
3757 * stdio-common/vfwscanf.c: New file defining the public entry
3758 point vfwscanf, which calls __vfwscanf_internal.
3759
3760 * stdio-common/iovfscanf.c: New file.
3761 * stdio-common/iovfwscanf.c: Likewise.
3762
3763 * stdio-common/Makefile (routines): Add vfscanf-internal,
3764 vfwscanf-internal, iovfscanf, iovfwscanf.
3765 * stdio-common/Versions: Mention GLIBC_2.29, so that
3766 it can be used in SHLIB_COMPAT expressions.
3767 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
3768 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
3769 Call __vfscanf_internal, instead of _IO_vfscanf.
3770 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
3771 _IO_vfscanf.
3772 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
3773 _IO_vfwscanf.
3774
3775 * libio/iovsscanf.c: Clean up includes, when possible. Use
3776 _IO_strfile_read or _IO_strfile_readw, when needed. Call
3777 __vfscanf_internal or __vfwscanf_internal directly.
3778 * libio/iovswscanf.c: Likewise.
3779 * libio/swscanf.c: Likewise.
3780 * libio/vscanf.c: Likewise.
3781 * libio/vwscanf.c: Likewise.
3782 * libio/wscanf.c: Likewise.
3783 * stdio-common/isoc99_fscanf.c: Likewise.
3784 * stdio-common/isoc99_scanf.c: Likewise.
3785 * stdio-common/isoc99_sscanf.c: Likewise.
3786 * stdio-common/isoc99_vfscanf.c: Likewise.
3787 * stdio-common/isoc99_vscanf.c: Likewise.
3788 * stdio-common/isoc99_vsscanf.c: Likewise.
3789 * stdio-common/scanf.c: Likewise.
3790 * stdio-common/sscanf.c: Likewise.
3791 * wcsmbs/isoc99_fwscanf.c: Likewise.
3792 * wcsmbs/isoc99_swscanf.c: Likewise.
3793 * wcsmbs/isoc99_vfwscanf.c: Likewise.
3794 * wcsmbs/isoc99_vswscanf.c: Likewise.
3795 * wcsmbs/isoc99_vwscanf.c: Likewise.
3796 * wcsmbs/isoc99_wscanf.c: Likewise.
3797
3798 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
3799
3800 * include/time.h
3801 (__tz_compute): Replace time_t with __time64_t.
3802 (__tz_convert): Replace time_t* with __time64_t.
3803 (__offtime): Replace time_t* with __time64_t.
3804 * time/gmtime.c
3805 (__gmtime_r): Adjust call to __tz_convert.
3806 (gmtime): Likewise.
3807 * time/localtime.c
3808 (__localtime_r): Likewise.
3809 (localtime): Likewise.
3810 * time/offtime.c: Replace time_t with __time64_t.
3811 * time/tzset.c: Likewise.
3812
3813 2018-12-04 Joseph Myers <joseph@codesourcery.com>
3814
3815 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
3816 dynamic linker unless [$(run-built-tests) = yes].
3817
3818 2018-12-03 DJ Delorie <dj@delorie.com>
3819
3820 * support/test-container.c (check_for_unshare_hints): New.
3821 (main): Call it if unshare fails. Add support for "su" scriptlet
3822 command.
3823
3824 2018-12-03 Joseph Myers <joseph@codesourcery.com>
3825
3826 * scripts/gen-as-const.py (compute_c_consts): Take an argument
3827 'START' to indicate that start text should be output.
3828 (gen_test): Likewise.
3829 (main): Generate 'START' for first symbol or '--' line, or at end
3830 of input if not previously generated.
3831
3832 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
3833
3834 [BZ #19767]
3835 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
3836 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
3837 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
3838 ALWAYS_USE_VSYSCALL.
3839
3840 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3841
3842 [BZ #23913]
3843 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
3844 new_argv by one.
3845
3846 2018-12-03 Carlos O'Donell <carlos@redhat.com>
3847
3848 [BZ #23923]
3849 * locale/programs/localedef.c: Declare boolean hard_links default true.
3850 (options): Add --no-hard-links option.
3851 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
3852 * locale/programs/localedef.h: Declare prototype for hard_links.
3853 * locale/programs/locfile.c (write_locale_data): Don't use hard
3854 links if hard_links is false.
3855
3856 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
3857
3858 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
3859 cpu_features_basic.
3860 (__cache_sysconf): Likewise.
3861 (init_cacheinfo): Likewise.
3862 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
3863 populate COMMON_CPUID_INDEX_80000007 and
3864 COMMON_CPUID_INDEX_80000008.
3865 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
3866 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
3867 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
3868 (init_cpu_features): Use _Static_assert on
3869 index_arch_Fast_Unaligned_Load.
3870 __get_cpuid_registers and __get_arch_feature. Updated for
3871 cpu_features_basic. Set stepping in cpu_features.
3872 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
3873 (FEATURE_INDEX_2): New.
3874 (FEATURE_INDEX_MAX): Changed to enum.
3875 (COMMON_CPUID_INDEX_D_ECX_1): New.
3876 (COMMON_CPUID_INDEX_80000007): Likewise.
3877 (COMMON_CPUID_INDEX_80000008): Likewise.
3878 (cpuid_registers): Likewise.
3879 (cpu_features_basic): Likewise.
3880 (CPU_FEATURE_USABLE): Likewise.
3881 (bit_arch_XXX_Usable): Likewise.
3882 (cpu_features): Use cpuid_registers and cpu_features_basic.
3883 (bit_arch_XXX): Reweritten.
3884 (bit_cpu_XXX): Likewise.
3885 (index_cpu_XXX): Likewise.
3886 (reg_XXX): Likewise.
3887 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
3888 <support/check.h>.
3889 (CHECK_CPU_FEATURE): New.
3890 (CHECK_CPU_FEATURE_USABLE): Likewise.
3891 (cpu_kinds): Likewise.
3892 (do_test): Print vendor, family, model and stepping. Check
3893 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
3894 (TEST_FUNCTION): Removed.
3895 Include <support/test-driver.c> instead of
3896 "../../test-skeleton.c".
3897 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
3898 Check POPCNT instead of POPCOUNT.
3899 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
3900
3901 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3902
3903 * scripts/gen-as-const.py (main): Avoid emitting empty line when
3904 there is no element in `consts'.
3905
3906 2018-12-01 Florian Weimer <fweimer@redhat.com>
3907
3908 * support/support_capture_subprocess.c
3909 (support_capture_subprocess): Check that pipe descriptors have
3910 expected values. Close original pipe descriptors in subprocess.
3911
3912 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3913
3914 [BZ #23032]
3915 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
3916 attr with __pthread_default_barrierattr.
3917 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
3918 attr with __pthread_default_condattr.
3919 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
3920 attr with __pthread_default_mutexattr.
3921 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
3922 attr with __pthread_default_rwlockattr.
3923
3924 2018-12-01 Kemi Wang <kemi.wang@intel.com>
3925
3926 * manual/tunables.texi (POSIX Thread Tunables): New node.
3927 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
3928 * nptl/nptl-init.c: Include pthread_mutex_conf.h
3929 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
3930 __pthread_tunables_init.
3931 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
3932 (max_adaptive_count): Define.
3933 * nptl/pthread_mutex_conf.c: New file.
3934 * nptl/pthread_mutex_conf.h: New file.
3935 * sysdeps/generic/adaptive_spin_count.h: New file.
3936 * sysdeps/nptl/dl-tunables.list: New file.
3937 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
3938 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
3939 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
3940 Likewise.
3941
3942 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3943
3944 [BZ #20544]
3945 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
3946 * stdlib/on_exit.c (__on_exit): Likewise.
3947 * stdlib/Makefile (tests): Add tst-bz20544.
3948 * stdlib/tst-bz20544.c: New test.
3949
3950 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
3951
3952 [BZ #19767]
3953 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
3954 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
3955 New.
3956
3957 2018-11-30 Florian Weimer <fweimer@redhat.com>
3958
3959 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
3960 Extend error logging.
3961 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
3962 symbol.
3963
3964 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3965
3966 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
3967 __sigismember instead of sigismember.
3968 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
3969 cancel_handler): New definitions.
3970 (do_system): Use posix_spawn instead of fork and execl and remove
3971 reentracy code.
3972 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
3973 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
3974 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
3975 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
3976 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
3977 * sysdeps/unix/sysv/linux/system.c: Likewise.
3978
3979 [BZ #22834]
3980 [BZ #17490]
3981 * NEWS: Add new semantic for atfork with popen and system.
3982 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
3983 fork and execl.
3984
3985 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3986
3987 [BZ #23690]
3988 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
3989 modification order when accessing reloc_result->addr.
3990 * include/link.h (reloc_result): Add field init.
3991 * nptl/Makefile (tests): Add tst-audit-threads.
3992 (modules-names): Add tst-audit-threads-mod1 and
3993 tst-audit-threads-mod2.
3994 Add rules to build tst-audit-threads.
3995 * nptl/tst-audit-threads-mod1.c: New file.
3996 * nptl/tst-audit-threads-mod2.c: Likewise.
3997 * nptl/tst-audit-threads.c: Likewise.
3998 * nptl/tst-audit-threads.h: Likewise.
3999
4000 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4001
4002 * scripts/gen-as-const.py: New file.
4003 * scripts/gen-as-const.awk: Remove.
4004 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4005 gen-as-const.py.
4006 ($(objpfx)test-as-const-%.c): Likewise.
4007
4008 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4009
4010 * elf/dl-exception.c: Include <_itoa.h>.
4011
4012 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4013
4014 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4015 returned by __f_setlk.
4016
4017 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4018 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4019
4020 * elf/Makefile (tests-internal): Add tst-create_format1.
4021 * elf/dl-exception.c (_dl_exception_create_format): Support
4022 %x, %lx and %zx.
4023 * elf/tst-create_format1.c: New file.
4024
4025 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4026
4027 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4028 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4029 gnulib.)
4030 * argp/argp-help.c (__argp_failure): Likewise.
4031
4032 2018-11-29 Mao Han <han_mao@c-sky.com>
4033
4034 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4035 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4036 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4037 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4038 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4039 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4040 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4041 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4042 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4043 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4044 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4045 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4046 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4047 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4048 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4049 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4050 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4051 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4052 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4053 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4054 (R_CKCORE_TLS_TPOFF32): New defines.
4055
4056 2018-11-29 Florian Weimer <fweimer@redhat.com>
4057
4058 * posix/Makefile (before-compile): Remove testcases.h and
4059 ptestcases.h.
4060 (generated): Add testcases.h and ptestcases.h.
4061 (testcases.h, ptestcases.h): Move to $(objpfx).
4062 (runtests.o): Add dependency on testcases.h.
4063 (runptests.o): Add dependency on ptestcases.h.
4064 * posix/testcases.h, posix/ptestcases.h: Remove files.
4065 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4066 not touch posix/testcases.h and posix/ptestcases.h.
4067
4068 2018-11-28 Florian Weimer <fweimer@redhat.com>
4069
4070 support: Add signal support to support_capture_subprocess_check.
4071 * support/capture_subprocess.h (support_capture_subprocess_check):
4072 Adjust comment and rename parameter.
4073 * support/support_capture_subprocess_check.c
4074 (print_actual_status): New function.
4075 (support_capture_subprocess_check): Support negative
4076 status_or_signal. Call print_actual_status.
4077 * support/tst-support_capture_subprocess.c (do_test): Call
4078 support_capture_subprocess_check.
4079 * libio/tst-vtables-common.c (termination_status)
4080 (init_termination_status): Remove.
4081 (check_for_termination): Adjust support_capture_subprocess_check
4082 call.
4083 (do_test): Remove call to init_termination_status.
4084
4085 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4086
4087 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4088 source directory instead of a copy.
4089 (CommandList.create_copy_dir): Remove.
4090
4091 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4092
4093 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4094
4095 2018-11-28 Florian Weimer <fweimer@redhat.com>
4096
4097 * support/support.h (support_quote_string): Do not use str
4098 parameter name.
4099
4100 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4101
4102 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4103 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4104
4105 2018-11-27 Florian Weimer <fweimer@redhat.com>
4106
4107 * support/support.h (support_quote_string): Declare.
4108 * support/support_quote_string.c: New file.
4109 * support/tst-support_quote_string.c: Likewise.
4110 * support/Makefile (libsupport-routines): Add
4111 support_quote_string.
4112 (tests): Add tst-support_quote_string.
4113
4114 2018-11-27 Florian Weimer <fweimer@redhat.com>
4115
4116 [BZ #23927]
4117 CVE-2018-19591
4118 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4119 descriptor leak in case of ENODEV error.
4120
4121 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4122
4123 [BZ #19767]
4124 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4125 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4126 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4127
4128 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4129
4130 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4131 Error for unknown lines.
4132
4133 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4134
4135 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4136 Touch additional files.
4137
4138 2018-11-26 Florian Weimer <fweimer@redhat.com>
4139
4140 [BZ #23907]
4141 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4142 double-frees.
4143
4144 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4145
4146 [BZ #19767]
4147 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4148 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4149 SHARED. Include sysdep.h.
4150 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4151 ALWAYS_USE_VSYSCALL.
4152 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4153 ALWAYS_USE_VSYSCALL.
4154
4155 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4156
4157 [BZ #19767]
4158 * nptl/Makefile (tests-static): Add tst-cond11-static.
4159 (tests): Likewise.
4160 * nptl/tst-cond11-static.c: New File.
4161 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4162 tst-affinity-static.
4163 (tests): Likewise.
4164 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4165 instead of SHARED.
4166 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4167 (USE_VSYSCALL): Likewise.
4168 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4169 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4170 instead of SHARED.
4171 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4172 SHARED.
4173 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4174 New.
4175
4176 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4177
4178 [BZ #23915]
4179 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4180 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4181 Undefine.
4182
4183 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4184
4185 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4186 (tst-cet-legacy-1a-ARGS): New.
4187 ($(objpfx)tst-cet-legacy-1a): New target.
4188 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4189
4190 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4191
4192 * conform/conformtest.py (CompileSubTest.__init__): Set
4193 self.run_early to False.
4194 (ExecuteSubTest.__init__): Likewise.
4195 (HeaderTests.run): Try running all non-optional, non-XFAILed
4196 compilation tests in a single execution of the compiler.
4197
4198 * conform/conformtest.py (CompileSubTest): New class.
4199 (ExecuteSubTest): Likewise.
4200 (ElementTest.run): Rename to gen_subtests. Append tests to
4201 self.subtests instead of running them.
4202 (ConstantTest.run): Likewise.
4203 (SymbolTest.run): Likewise.
4204 (TypeTest.run): Likewise.
4205 (TagTest.run): Likewise.
4206 (FunctionTest.run): Likewise.
4207 (VariableTest.run): Likewise.
4208 (MacroFunctionTest.run): Likewise.
4209 (MacroStrTest.run): Likewise.
4210 (HeaderTests.handle_test_line): Generate subtests for tests.
4211 (HeaderTests.run): Run subtests for tests.
4212
4213 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4214
4215 * math/Versions (GLIBC_2.29): Add pow.
4216 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4217 symbol.
4218 * math/w_pow.c: New file.
4219 * sysdeps/i386/fpu/w_pow.c: New file.
4220 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4221 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4222 and add necessary aliases.
4223 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4224 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4225 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4226 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4227 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4228 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4229 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4230 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4231 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4232 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4233 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4234 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4235 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4236 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4237 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4238 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4239 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4240 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4241 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4242 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4243 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4244 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4245 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4246 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4247 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4248 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4249 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4250 __pow.
4251 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4252 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4253 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4254
4255 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4256
4257 * math/Versions (GLIBC_2.29): Add log2.
4258 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4259 symbol.
4260 * math/w_log2.c: New file.
4261 * sysdeps/i386/fpu/w_log2.c: New file.
4262 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4263 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4264 and add necessary aliases.
4265 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4266 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4267 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4268 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4269 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4270 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4271 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4272 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4273 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4274 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4275 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4276 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4277 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4278 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4279 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4280 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4281 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4282 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4283 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4284 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4285 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4286 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4287 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4288 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4289 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4290 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4291
4292 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4293
4294 * math/Versions (GLIBC_2.29): Add log.
4295 * math/w_log_compat.c (__log_compat): Change to versioned compat
4296 symbol.
4297 * math/w_log.c: New file.
4298 * sysdeps/i386/fpu/w_log.c: New file.
4299 * sysdeps/ia64/fpu/e_log.S: Update.
4300 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
4301 and add necessary aliases.
4302 * sysdeps/ieee754/dbl-64/w_log.c: New file.
4303 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
4304 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4305 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4306 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4307 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4308 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4309 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4310 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4311 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4312 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4313 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4314 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4315 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4316 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4317 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4318 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4319 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4320 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4321 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4322 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4323 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4324 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4325 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4326 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4327 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4328 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
4329 __log.
4330 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
4331 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
4332 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
4333 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
4334
4335 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4336
4337 * math/Versions (GLIBC_2.29): Add exp and exp2.
4338 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
4339 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
4340 * math/w_exp_compat.c (__exp_compat): Likewise.
4341 * math/w_exp.c: New file.
4342 * math/w_exp2.c: New file.
4343 * sysdeps/i386/fpu/w_exp.c: New file.
4344 * sysdeps/i386/fpu/w_exp2.c: New file.
4345 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
4346 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4347 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
4348 and add necessary aliases.
4349 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
4350 and add necessary aliases.
4351 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
4352 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
4353 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
4354 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
4355 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4356 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4357 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4358 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4359 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4360 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4361 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4362 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4363 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4364 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4365 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4366 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4367 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4368 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4369 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4370 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4371 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4372 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4373 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4374 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4375 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4376 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4377 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4378 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4379 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
4380 (__ieee754_exp): Rename to __exp.
4381 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
4382 (__ieee754_exp): Rename to __exp.
4383 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
4384 (__ieee754_exp): Rename to __exp.
4385 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
4386 __exp.
4387 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
4388
4389 2018-11-20 DJ Delorie <dj@redhat.com>
4390
4391 * malloc/malloc.c (tcache_entry): Add key field.
4392 (tcache_put): Set it.
4393 (tcache_get): Likewise.
4394 (_int_free): Check for double free in tcache.
4395 * malloc/tst-tcfree1.c: New.
4396 * malloc/tst-tcfree2.c: New.
4397 * malloc/Makefile: Run the new tests.
4398 * manual/probes.texi: Document memory_tcache_double_free probe.
4399
4400 * dlfcn/dlerror.c (check_free): Prevent double frees.
4401
4402 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
4403
4404 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
4405
4406 2018-11-20 Joseph Myers <joseph@codesourcery.com>
4407
4408 * conform/conformtest.py (ElementTest.run): Use unique identifiers
4409 in tests. Use names for format arguments.
4410 (ConstantTest.run): Likewise.
4411 (SymbolTest.run): Likewise.
4412 (TypeTest.run): Likewise.
4413 (TagTest.run): Likewise.
4414 (FunctionTest.run): Likewise.
4415 (VariableTest.run): Likewise.
4416 (MacroFunctionTest.run): Likewise.
4417 (MacroStrTest.run): Likewise.
4418 (HeaderTests.__init__): Set self.num_tests.
4419 (HeaderTests.handle_test_line): Set test.num. Increment
4420 self.num_tests.
4421
4422 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4423
4424 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
4425 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
4426 SEEK_SET.
4427
4428 2018-11-19 Mao Han <han_mao@c-sky.com>
4429
4430 * scripts/config.guess: Update to version 2018-08-29.
4431 * scripts/config.sub: Update to version 2018-08-29.
4432
4433 2018-11-19 Florian Weimer <fweimer@redhat.com>
4434
4435 support: Print timestamps in timeout handler.
4436 * support/support_test_main.c (print_timestamp): New function.
4437 (signal_handler): Use it to print the termination time and the
4438 time of the last write to standard output.
4439
4440 2018-11-16 Zack Weinberg <zackw@panix.com>
4441 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4442
4443 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
4444 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
4445 argument.
4446 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
4447 and add flags argument. Check flags instead of __ldbl_is_dbl when
4448 deciding whether to set is_long_double.
4449 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
4450 passing zero for flags argument.
4451 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
4452
4453 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4454 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
4455 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
4456 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
4457 variable names. Remove libc_hidden_def/libc_hidden_proto from
4458 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
4459 longer called from within the library.
4460 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
4461 for __nldbl___vstrfmon_l, declare it explicitly.
4462
4463 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
4464
4465 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
4466
4467 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
4468 macros
4469 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
4470 F_SETLK64, F_SETLKW64, respectively.
4471 * sysdeps/mach/hurd/f_setlk.c: New file.
4472 * sysdeps/mach/hurd/f_setlk.h: New file.
4473 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
4474 f_setlk.
4475 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
4476 (__libc_fcntl): Move non-flock operations to...
4477 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
4478 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
4479
4480 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
4481
4482 mktime: DEBUG_MKTIME cleanup
4483 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
4484 And it’s no longer needed now that glibc and Gnulib both have
4485 their own testing mechanisms for mktime.
4486 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
4487
4488 mktime: fix non-EOVERFLOW errno handling
4489 [BZ#23789]
4490 mktime was not properly reporting failures when the underlying
4491 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
4492 them like EOVERFLOW failures, and set errno to EOVERFLOW.
4493 The problem could happen on non-glibc platforms, with Gnulib.
4494 * time/mktime.c (guess_time_tm): Remove, replacing with ...
4495 (tm_diff): ... this simpler function, which does not change errno.
4496 All callers changed to deal with errno themselves.
4497 (ranged_convert, __mktime_internal): Return failure immediately if
4498 the underlying function reports any failure other than EOVERFLOW.
4499 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
4500 gap code fails.
4501
4502 mktime: fix bug with Y2038 DST transition
4503 [BZ#23789]
4504 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
4505 mishandle a DST transition that jumps over the Y2038 boundary.
4506 No such DST transitions are known so this is only a theoretical
4507 bug, but we might as well do things right.
4508
4509 mktime: make more room for overflow
4510 [BZ#23789]
4511 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
4512 This is so that we can add tm_diff results to a previous guess,
4513 which will be useful in a later patch.
4514
4515 mktime: simplify offset guess
4516 [BZ#23789]
4517 * time/mktime.c (__mktime_internal): Omit excess precision.
4518
4519 mktime: new test for mktime failure
4520 [BZ#23789]
4521 Based on a test suggested by Albert Aribaud in:
4522 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
4523 * time/Makefile (tests): Add bug-mktime4.
4524 * time/bug-mktime4.c: New file.
4525
4526 mktime: fix EOVERFLOW bug
4527 [BZ#23789]
4528 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
4529 Include libc-config.h, not config.h, for __set_errno.
4530 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
4531
4532 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4533
4534 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
4535 __attribute_copy__ to copy attributes from name. Drop static qualifier
4536 to avoid warnings about leaf attribute not having effect on static
4537 functions.
4538
4539 2018-11-13 Florian Weimer <fweimer@redhat.com>
4540
4541 * malloc/malloc.c (fastbin_push_entry): New function.
4542 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
4543 (REMOVE_FB): Remove macro.
4544 (_int_malloc): Use fastbin_pop_entry and reindent.
4545 (_int_free): Use fastbin_push_entry.
4546 (malloc_consolidate): Use atomic_exchange_acquire.
4547
4548 2018-11-13 Joseph Myers <joseph@codesourcery.com>
4549
4550 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
4551 alias attribute, not with strong_alias.
4552
4553 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
4554 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
4555 with additional parameter thread.
4556 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
4557 in terms of __hidden_ver2.
4558 (hidden_tls_def): New macro.
4559 (libc_hidden_tls_def): Likewise.
4560 (rtld_hidden_tls_def): Likewise.
4561 (libm_hidden_tls_def): Likewise.
4562 (libmvec_hidden_tls_def): Likewise.
4563 (libresolv_hidden_tls_def): Likewise.
4564 (librt_hidden_tls_def): Likewise.
4565 (libdl_hidden_tls_def): Likewise.
4566 (libnss_files_hidden_tls_def): Likewise.
4567 (libnsl_hidden_tls_def): Likewise.
4568 (libnss_nisplus_hidden_tls_def): Likewise.
4569 (libutil_hidden_tls_def): Likewise.
4570 (libutil_hidden_tls_def): Likweise.
4571 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
4572 libc_hidden_tls_def.
4573 (__sim_disabled_exceptions_thread): Likewise.
4574 (__sim_round_mode_thread): Likewise.
4575
4576 * sysdeps/sparc/sparc-ifunc.h [SHARED]
4577 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
4578 copy attributes from name.
4579
4580 2018-11-12 Joseph Myers <joseph@codesourcery.com>
4581
4582 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
4583 Use __attribute_copy__ to copy attributes from name.
4584
4585 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
4586 with __hidden_ver1 call.
4587 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
4588 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
4589 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
4590 (__cosf): Do not declare here.
4591 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
4592 (__sincosf): Do not declare here.
4593 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
4594 (__sinf): Do not declare here.
4595
4596 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
4597 (__BIG_ENDIAN): Likewise.
4598 (__BYTE_ORDER): Likewise.
4599 (strong_alias): Likewise.
4600 (_strong_alias): Likewise.
4601
4602 2018-11-12 Florian Weimer <fweimer@redhat.com>
4603
4604 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
4605 function. Move after the definition of in_smallbin_range. Do not
4606 use __builtin_expect for paths that lead to a noreturn function.
4607 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
4608 because it is unclear whether this is in fact an unlikely
4609 condition.
4610 (_int_malloc, _int_free): Adjust.
4611 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
4612 variables.
4613 * malloc/arena.c (heap_trim): Likewise.
4614
4615 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4616
4617 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
4618 it, free it if needed.
4619 (reauthenticate): Test and use ccwdir.
4620 (child_init_port): In non-resetids case, test and use ccwdir.
4621 (child_chdir): New nested function to set ccwdir.
4622 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
4623 * hurd/hurd/port.h (_hurd_port_move): New function.
4624 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
4625 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
4626 * hurd/Versions (_hurd_port_move): Export function.
4627 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
4628 symbol.
4629 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
4630 of dtablesize for allocating dtable_cloexec.
4631
4632 2018-11-09 Martin Sebor <msebor@redhat.com>
4633
4634 * include/libc-symbols.h (__attribute_copy__): Define macro unless
4635 it's already defined.
4636 (_strong_alias): Use __attribute_copy__.
4637 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
4638 * misc/sys/cdefs.h (__attribute_copy__): New macro.
4639 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
4640 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
4641 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
4642 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
4643 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
4644 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
4645 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
4646 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
4647 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
4648 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
4649 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
4650 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
4651 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
4652 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
4653 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
4654 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
4655 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
4656
4657 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4658
4659 * misc/tst-efgcvt.c: Include support/check.h and
4660 support/test-driver.c. Do not include test-skeleton.c.
4661 (error_count): Remove.
4662 (output_error): Replace increments to error_count with calls to
4663 support_record_failure.
4664 (output_r_error): Likewise.
4665 (special): Likewise.
4666 (do_test): Unconditionally return zero.
4667 (TEST_FUNCTION): Remove.
4668
4669 2018-11-09 Joseph Myers <joseph@codesourcery.com>
4670
4671 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
4672 not $(@D)/scratch.
4673 ($(linknamespace-header-tests)): Likewise.
4674
4675 * conform/conformtest.py: New file.
4676 * conform/conformtest.pl: Remove.
4677 * conform/GlibcConform.pm: Likewise.
4678 * conform/glibcconform.py (KEYWORDS_C90): New constant.
4679 (KEYWORDS_C99): Likewise.
4680 (KEYWORDS): Likewise.
4681 * conform/Makefile ($(conformtest-header-tests)): Use
4682 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
4683 option. Use --header instead of --headers.
4684 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
4685 function entries.
4686 * conform/data/spawn.h-data: Likewise.
4687 * conform/data/fcntl.h-data (openat): Add space after function
4688 name.
4689 * conform/data/wchar.h-data (wcscasecmp): Likewise.
4690 (wcscasecmp_l): Likewise.
4691 * conform/data/termios.h-data (c_cc): Add space after element
4692 name.
4693
4694 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4695
4696 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
4697 instead of manually comparing and reporting mismatching strings.
4698 * misc/tst-ldbl-error.c (do_one_test): Likewise.
4699 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
4700
4701 2018-11-08 Joseph Myers <joseph@codesourcery.com>
4702
4703 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
4704 __ASSUME_SOCKETCALL.
4705 * sysdeps/unix/sysv/linux/i386/kernel-features.h
4706 (__ASSUME_SOCKETCALL): Remove.
4707 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4708 (__ASSUME_SOCKETCALL): Likewise.
4709 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4710 (__ASSUME_SOCKETCALL): Likewise.
4711 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4712 (__ASSUME_SOCKETCALL): Likewise.
4713 * sysdeps/unix/sysv/linux/s390/kernel-features.h
4714 (__ASSUME_SOCKETCALL): Likewise.
4715 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4716 (__ASSUME_SOCKETCALL): Likewise.
4717 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4718 (__ASSUME_SOCKETCALL): Likewise.
4719
4720 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
4721
4722 [BZ #23509]
4723 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
4724 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
4725 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
4726 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
4727 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
4728 lc_unknown.
4729
4730 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
4731
4732 [BZ #17630]
4733 * resolv/tst-resolv-network.c: Add test for getnetbyname.
4734
4735 2018-11-07 Joseph Myers <joseph@codesourcery.com>
4736
4737 [BZ #23867]
4738 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4739 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4740 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4741 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4742
4743 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4744
4745 * support/support_test_compare_string.c
4746 (support_test_compare_string): Fix printf format.
4747
4748 2018-11-07 Florian Weimer <fweimer@redhat.com>
4749
4750 Implement TEST_COMPARE_STRING.
4751 * support/check.h (TEST_COMPARE_STRING): Define.
4752 (support_test_compare_string): Declare.
4753 * support/Makefile (libsupport-routines): Add
4754 support_test_compare_string.
4755 (tests): Add tst-test_compare_string.
4756 * support/support_test_compare_string.c: New file.
4757 * support/tst-test_compare_string.c: Likewise.
4758
4759 2018-11-07 Andreas Schwab <schwab@suse.de>
4760
4761 [BZ #23864]
4762 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
4763 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
4764 Undef.
4765
4766 2018-11-06 Joseph Myers <joseph@codesourcery.com>
4767
4768 [BZ #23862]
4769 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4770 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
4771 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
4772 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
4773 Likewise.
4774
4775 2018-11-06 Florian Weimer <fweimer@redhat.com>
4776
4777 [BZ #17405]
4778 * posix/Makefile (routines): Add spawn_faction_addchdir.
4779 (tests): Add tst-spawn-chdir.
4780 * posix/Versions (GLIBC_2.29): Add
4781 posix_spawn_file_actions_addchdir_np.
4782 * posix/spawn_faction_addchdir.c: New file.
4783 * posix/spawn_faction_destroy.c
4784 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
4785 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
4786 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
4787 chdir_action.
4788 * posix/tst-spawn-chdir.c: New file.
4789 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
4790 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4791 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4792 posix_spawn_file_actions_addchdir_np.
4793 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4794 Likewise.
4795 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4796 Likewise.
4797 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4798 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4799 Likewise.
4800 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4801 Likewise.
4802 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4803 Likewise.
4804 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4805 Likewise.
4806 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4807 Likewise.
4808 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4809 Likewise.
4810 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4811 (GLIBC_2.29): Likewise.
4812 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4813 (GLIBC_2.29): Likewise.
4814 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4815 (GLIBC_2.29): Likewise.
4816 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4817 (GLIBC_2.29): Likewise.
4818 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4819 Likewise.
4820 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4821 (GLIBC_2.29): Likewise.
4822 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4823 (GLIBC_2.29): Likewise.
4824 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4825 (GLIBC_2.29): Likewise.
4826 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4827 (GLIBC_2.29): Likewise.
4828 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4829 Likewise.
4830 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4831 Likewise.
4832 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4833 Likewise.
4834 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4835 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4836 Likewise.
4837 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4838 Likewise.
4839 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4840 Likewise.
4841 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4842 Likewise.
4843
4844 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4845
4846 * misc/Makefile (tests): Add tst-ldbl-error.
4847 * misc/tst-ldbl-error.c: New file.
4848
4849 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4850
4851 * misc/Makefile (tests): Add tst-ldbl-warn.
4852 * misc/tst-ldbl-warn.c: New file.
4853
4854 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4855
4856 * argp/Makefile (tests): Add tst-ldbl-argp.
4857 * argp/tst-ldbl-argp.c: New file.
4858
4859 2018-11-05 Arjun Shankar <arjun@redhat.com>
4860
4861 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
4862 __gconv_path_elem and call __gconv_get_path unconditionally.
4863
4864 2018-11-05 Andreas Schwab <schwab@suse.de>
4865
4866 [BZ #22927]
4867 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
4868 creating the first helper thread failed.
4869
4870 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4871
4872 * sysdeps/mach/hurd/msync.c: New file.
4873
4874 2018-11-02 Florian Weimer <fweimer@redhat.com>
4875
4876 * support/shell-container.c (copy_func): Call
4877 support_copy_file_range instead of copy_file_range to support
4878 cross-device copies.
4879
4880 2018-11-02 Florian Weimer <fweimer@redhat.com>
4881
4882 * support/test-container.c: Include <libc-pointer-arith.h> for
4883 ALIGN_UP.
4884
4885 2018-11-01 Zong Li <zong@andestech.com>
4886
4887 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
4888 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
4889 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
4890 (__FP_FRAC_SET_8): Add implementation for RV32 use.
4891
4892 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
4893 variable to avoid overlap arguments.
4894
4895 2018-11-01 Joseph Myers <joseph@codesourcery.com>
4896
4897 * posix/bug-regex22.c (main): Use puts with distinct error
4898 messages for unexpected success of re_compile_pattern, not printf
4899 with NULL argument to %s.
4900
4901 * stdio-common/bug22.c: Include <libc-diag.h>.
4902 (do_test): Disable -Wformat-overflow= warnings around fprintf
4903 calls outputting more than INT_MAX characters.
4904 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
4905 around printf call with NULL %s argument.
4906
4907 [BZ #23848]
4908 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
4909 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
4910 Undefine.
4911 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4912 (__ASSUME_RECVMSG_SYSCALL): Likewise.
4913 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4914 (__ASSUME_SENDTO_SYSCALL): Likewise.
4915 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4916 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
4917 [!__arch64__].
4918 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4919 (__ASSUME_CONNECT_SYSCALL): Likewise.
4920 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4921 (__ASSUME_RECVFROM_SYSCALL): Likewise.
4922 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
4923 Define.
4924 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
4925 Likewise.
4926 [__LINUX_KERNEL_VERSION >= 0x040400]
4927 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
4928 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
4929 Remove.
4930 (listen): Likewise.
4931 (setsockopt): Likewise.
4932
4933 2018-11-01 Fredrik Noring <noring@nocrew.org>
4934
4935 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
4936 with the ISA override.
4937
4938 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
4939
4940 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
4941 #endif.
4942
4943 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
4944
4945 * manual/errno.texi (EIEIO): Document how translators should
4946 translate the error message.
4947 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
4948 printing trailing whitespaces refused by git.
4949 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
4950 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
4951 * hurd/Makefile (user-interfaces): Add pci.
4952
4953 2018-10-30 Joseph Myers <joseph@codesourcery.com>
4954
4955 * conform/linknamespace.py: New file.
4956 * conform/linknamespace.pl: Remove file.
4957 * conform/Makefile ($(linknamespace-header-tests)): Use
4958 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
4959 option.
4960
4961 2018-10-30 Florian Weimer <fweimer@redhat.com>
4962
4963 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
4964 memory leaks.
4965
4966 2018-10-30 Florian Weimer <fweimer@redhat.com>
4967
4968 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
4969
4970 2018-10-30 Florian Weimer <fweimer@redhat.com>
4971
4972 * stdlib/tst-strtod-overflow.c (do_test): Switch to
4973 support_blob_repeat.
4974
4975 2018-10-30 Florian Weimer <fweimer@redhat.com>
4976
4977 Avoid spurious test failures in stdlib/test-bz22786.
4978 * support/Makefile (libsupport-routines): Add blob_repeat.
4979 (tests): Add tst-support_blob_repeat.
4980 * support/blob_repeat.h: New file.
4981 * support/blob_repeat.c: Likewise.
4982 * support/tst-support_blob_repeat.c: Likewise.
4983 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
4984 support_blob_repeat_allocate.
4985
4986 2018-10-30 Andreas Schwab <schwab@suse.de>
4987
4988 [BZ #23125]
4989 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
4990 Don't use tail call.
4991 * elf/tst-unwind-main.c: New file.
4992 * elf/Makefile (tests): Add tst-unwind-main.
4993 (CFLAGS-tst-unwind-main.c): Define.
4994
4995 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
4996
4997 [BZ #23791]
4998 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
4999 n_cs_precedes to 0.
5000 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5001
5002 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5003
5004 * conform/glibcconform.py: Do not import shutil.
5005 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5006 of mkdtemp.
5007
5008 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5009 critic_missing for versions before 3.4.
5010 * configure: Regenerated.
5011 * manual/install.texi (Tools for Compilation): Document
5012 requirement for Python to build glibc.
5013 * INSTALL: Regenerated.
5014 * Rules [PYTHON]: Make code unconditional.
5015 * benchtests/Makefile [PYTHON]: Likewise.
5016 * conform/Makefile [PYTHON]: Likewise.
5017 * manual/Makefile [PYTHON]: Likewise.
5018 * math/Makefile [PYTHON]: Likewise.
5019
5020 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5021
5022 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5023 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5024 answer to interrupt_operation, return EIEIO instead of EINTR.
5025 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5026 _hurd_intr_rpc_msg_about_to global point to start of controlled
5027 assembly snippet. Make it check canceled flag.
5028 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5029 the _hurd_intr_rpc_msg_about_to point.
5030 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5031 issue, remove cancel flag check.
5032
5033 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5034
5035 * scripts/build-many-glibcs.py: Remove compatibility for missing
5036 os.cpu_count and re.fullmatch.
5037
5038 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5039
5040 [BZ #23822]
5041 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5042 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5043 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5044
5045 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5046
5047 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5048 macro.
5049
5050 2018-10-25 Florian Weimer <fweimer@redhat.com>
5051
5052 [BZ #23562]
5053 [BZ #23821]
5054 XFAIL siginfo_t si_band conform test on sparc64.
5055 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5056 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5057 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5058 (conformtest-xfail-conds): Add sparc64-linux.
5059 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5060 sparc64.
5061 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5062
5063 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5064
5065 * elf/elf.h (NT_MIPS_DSP): New macro.
5066 (NT_MIPS_FP_MODE): Likewise.
5067
5068 2018-10-25 Zong Li <zong@andestech.com>
5069
5070 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5071 name by adding the file extension (.so).
5072
5073 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5074
5075 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5076 (test-xfail-ISO11/threads.h/linknamespace,
5077 test-xfail-ISO11/threads.h/conform): Add.
5078
5079 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5080
5081 * math/gen-libm-test.py: Import os.
5082 (ALL_FLOATS_MANUAL): New constant.
5083 (ALL_FLOATS_SUFFIX): Likewise.
5084 (Ulps.all_functions): New function.
5085 (real_all_ulps): Likewise.
5086 (generate_err_table_sub): Likewise.
5087 (generate_err_table): Likewise.
5088 (main): Handle -s and -m options.
5089 * manual/libm-err-tab.pl: Remove.
5090 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5091 instead of libm-err-tab.pl.
5092 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5093 != no].
5094 * manual/install.texi (Tools for Compilation): Document
5095 requirement for Python to build manual.
5096 * INSTALL: Regenerated.
5097
5098 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5099
5100 * bits/time64.h: New file.
5101 * include/time.h: Replace internal_time_t with __time64_t.
5102 * posix/bits/types (__time64_t): Add.
5103 * stdlib/Makefile: Add bits/time64.h to includes.
5104 * time/tzfile.c: Replace internal_time_t with __time64_t.
5105
5106 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5107
5108 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5109 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5110 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5111 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5112 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5113 prototype.
5114 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5115 * posix/spawn_faction_addclose.c
5116 (__posix_spawn_file_actions_addclose): Add hidden definition.
5117 * posix/spawn_faction_adddup2.c
5118 (__posix_spawn_file_actions_adddup2): Likewise.
5119 * posix/spawn_faction_destroy.c
5120 (__posix_spawn_file_actions_destroy): Likewise.
5121 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5122 Likewise.
5123 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5124 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5125 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5126 Likewise.
5127 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5128 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5129 Likewise.
5130
5131 2018-10-24 Andreas Schwab <schwab@suse.de>
5132
5133 [BZ #18093]
5134 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5135 format cache.
5136 * elf/cache.c (print_cache): Likewise.
5137
5138 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5139
5140 * bits/timesize.h: New file.
5141 * stdlib/Makefile (headers): Add bits/timesize.h.
5142 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5143 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5144 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5145 (__SEM_PAD_AFTER_TIME): Likewise.
5146 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5147 (__SHM_PAD_AFTER_TIME): Likewise.
5148 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5149 (__MSQ_PAD_BEFORE_TIME): Likewise.
5150 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5151 (__SEM_PAD_BEFORE_TIME): Likewise.
5152 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5153 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5154 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5155 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5156 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5157 (__MSQ_PAD_BEFORE_TIME): Likewise.
5158 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5159 (__SEM_PAD_BEFORE_TIME): Likewise.
5160 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5161 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5162 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5163 (__MSQ_PAD_BEFORE_TIME): Likewise.
5164 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5165 (__SEM_PAD_BEFORE_TIME): Likewise.
5166 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5167 (__SHM_PAD_BEFORE_TIME): Likewise.
5168 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5169 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5170 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5171
5172 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5173
5174 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5175 USE_RDTSCP is defined.
5176 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5177 USE_RDTSCP is defined.
5178
5179 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5180
5181 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5182 defined.
5183
5184 [BZ #23709]
5185 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5186 independently of other flags.
5187
5188 2018-10-23 Florian Weimer <fweimer@redhat.com>
5189
5190 * time/tst-mktime2.c (N_STRINGS): Remove.
5191 (set_timezone): New function.
5192 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5193 (mktime_test1): Report localtime failure and check errno value.
5194 Use TEST_COMPARE.
5195 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5196 (do_test): Remove alarm call. Use set_timezone and array_length.
5197
5198 2018-10-23 Andreas Schwab <schwab@suse.de>
5199
5200 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5201 (__start_context): Use END instead of PSEUDO_END.
5202
5203 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5204
5205 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5206 version to 4.19.
5207
5208 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5209 version to 4.19.
5210
5211 [BZ #23793]
5212 * wcsmbs/c32rtomb.c: New file.
5213 * wcsmbs/mbrtoc32.c: Likewise.
5214 * wcsmbs/tst-c32-state.c: Likewise.
5215 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5216 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5217 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5218 (tests): Add tst-c32-state.
5219 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5220 $(gen-locales).
5221
5222 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5223
5224 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5225 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5226
5227 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5228
5229 [BZ #23794]
5230 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5231 pair and return 0 in that case, and use saved character to
5232 interpret following character.
5233 * wcsmbs/tst-c16-surrogate.c: New file.
5234 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5235 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5236 Depend on $(gen-locales)
5237
5238 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5239
5240 [BZ #23562]
5241 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5242 (struct siginfo_t): Use correct type for si_band.
5243
5244 2018-10-19 Florian Weimer <fweimer@redhat.com>
5245
5246 [BZ #23689]
5247 * resource/bits/types/struct_rusage.h (struct rusage): Update
5248 comment on struct. Remove extraneous field comment.
5249
5250 2018-10-18 David S. Miller <davem@davemloft.net>
5251
5252 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5253 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5254 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5255 sysdep_routines in subdir elf.
5256 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5257 version for __vdso_clock_gettime.
5258 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5259 Define.
5260 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5261 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5262
5263 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5264
5265 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5266
5267 * sysdeps/i386/init-arch.h: Removed.
5268 * sysdeps/i386/i586/init-arch.h: Likewise.
5269 * sysdeps/i386/i686/init-arch.h: Likewise.
5270 * sysdeps/i386/i686/hp-timing.h: Likewise.
5271 * sysdeps/x86_64/hp-timing.h: Likewise.
5272 * sysdeps/i386/isa.h: New file.
5273 * sysdeps/i386/i586/isa.h: Likewise.
5274 * sysdeps/i386/i686/isa.h: Likewise.
5275 * sysdeps/x86_64/isa.h: Likewise.
5276 * sysdeps/x86/hp-timing.h: New file.
5277 * sysdeps/x86/init-arch.h: Include <isa.h>.
5278
5279 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5280
5281 * math/libm-test-pow.inc (pow_test_data): Do not allow
5282 divide-by-zero exception for pow(+/- 0, -Inf).
5283
5284 2018-10-17 Zack Weinberg <zackw@panix.com>
5285
5286 * manual/job.texi (Job Control is Optional): Remove node, as
5287 job control has not been optional in quite some time.
5288 (Job Control): Mention briefly that systems older than
5289 POSIX.1-2001 might not support job control.
5290 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5291 defined on systems conforming to POSIX.1-2001.
5292
5293 2018-10-17 Arjun Shankar <arjun@redhat.com>
5294
5295 [BZ #22062]
5296 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
5297 indentation.
5298 * (__gconv_read_conf): Mark function static.
5299 * (once): New static variable.
5300 * (__gconv_load_conf): New function.
5301 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
5302 * iconv/gconv_db.c (once): Remove static variable.
5303 * (__gconv_compare_alias): Use __gconv_load_conf instead of
5304 __gconv_read_conf.
5305 * (__gconv_find_transform): Likewise.
5306 * iconv/tst-iconv-mt.c: New test.
5307 * iconv/Makefile: Add tst-iconv_mt.
5308
5309 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5310
5311 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5312 bits/shm-pad.h.
5313 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5314 (shmatt_t): Define as __syscall_ulong_t.
5315 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5316 and [__SHM_PAD_AFTER_TIME].
5317 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5318 Define shm_segsz and associated padding based on
5319 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5320 Use __syscall_ulong_t instead of unsigned long int.
5321 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
5322 unsigned long int.
5323 [__USE_MISC] (struct shm_info): Likewise.
5324 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
5325 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
5326 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
5327 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
5328 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
5329 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5330 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
5331 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5332 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5333 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5334 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
5335
5336 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5337 bits/shmlba.h.
5338 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
5339 (SHMLBA): Remove macro.
5340 (__getpagesize): Remove function declaration.
5341 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
5342 <bits/shmlba.h>.
5343 (SHMLBA): Remove macro.
5344 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
5345 <bits/shmlba.h>.
5346 (SHMLBA): Remove macro.
5347 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
5348 <bits/shmlba.h>.
5349 (SHMLBA): Remove macro.
5350 (__getpagesize): Remove function declaration.
5351 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
5352 <bits/shmlba.h>.
5353 (SHMLBA): Remove macro.
5354 (__getshmlba): Remove function declaration.
5355 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
5356 (SHMLBA): Remove macro.
5357 (__getpagesize): Remove function declaration.
5358 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
5359 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5360 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5361 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
5362 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
5363 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
5364 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
5365 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
5366 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
5367 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
5368
5369 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
5370
5371 [BZ #23275]
5372 * nptl/tst-mutex10.c: New File.
5373 * nptl/Makefile (tests): Add tst-mutex10.
5374 (tst-mutex10-ENV): New variable.
5375 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
5376 Ensure that elision path is used if elision is available.
5377 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
5378 Likewise.
5379 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
5380 Likewise.
5381 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
5382 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
5383 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
5384 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
5385 Likewise.
5386 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
5387 (__pthread_mutex_cond_lock_adjust): Likewise.
5388 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
5389 Likewise.
5390 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
5391 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
5392 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5393 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
5394 Add comments.
5395 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
5396 Use atomic_load_relaxed and atomic_store_relaxed.
5397 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
5398 Use atomic_store_relaxed.
5399
5400 2018-10-17 Andreas Schwab <schwab@suse.de>
5401
5402 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
5403 * crypt/badsalttest.c (TIMEOUT): Likewise.
5404 * crypt/sha256c-test.c (TIMEOUT): Likewise.
5405 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
5406 * io/test-lfs.c (TIMEOUT): Likewise.
5407 * libio/tst-atime.c (TIMEOUT): Likewise.
5408 * localedata/tst-leaks.c (TIMEOUT): Likewise.
5409 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
5410 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
5411 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
5412 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
5413 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
5414 * nptl/tst-cond11.c (TIMEOUT): Likewise.
5415 * nptl/tst-cond14.c (TIMEOUT): Likewise.
5416 * nptl/tst-cond15.c (TIMEOUT): Likewise.
5417 * nptl/tst-cond24.c (TIMEOUT): Likewise.
5418 * nptl/tst-cond25.c (TIMEOUT): Likewise.
5419 * nptl/tst-kill2.c (TIMEOUT): Likewise.
5420 * nptl/tst-kill3.c (TIMEOUT): Likewise.
5421 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
5422 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
5423 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
5424 * nptl/tst-once2.c (TIMEOUT): Likewise.
5425 * nptl/tst-once3.c (TIMEOUT): Likewise.
5426 * nptl/tst-once4.c (TIMEOUT): Likewise.
5427 * nptl/tst-robust8.c (TIMEOUT): Likewise.
5428 * nptl/tst-robust9.c (TIMEOUT): Likewise.
5429 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
5430 * nptl/tst-sem14.c (TIMEOUT): Likewise.
5431 * nptl/tst-sem6.c (TIMEOUT): Likewise.
5432 * nptl/tst-signal3.c (TIMEOUT): Likewise.
5433 * nptl/tst-spin4.c (TIMEOUT): Likewise.
5434 * nptl/tst-tls3.c (TIMEOUT): Likewise.
5435 * nptl/tst-tls4.c (TIMEOUT): Likewise.
5436 * posix/tst-chmod.c (TIMEOUT): Likewise.
5437 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
5438 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
5439 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
5440 * posix/tst-regex2.c (TIMEOUT): Likewise.
5441 * posix/tst-waitid.c (TIMEOUT): Likewise.
5442 * rt/tst-aio.c (TIMEOUT): Likewise.
5443 * rt/tst-aio10.c (TIMEOUT): Likewise.
5444 * rt/tst-aio4.c (TIMEOUT): Likewise.
5445 * rt/tst-aio5.c (TIMEOUT): Likewise.
5446 * rt/tst-aio6.c (TIMEOUT): Likewise.
5447 * rt/tst-aio64.c (TIMEOUT): Likewise.
5448 * rt/tst-aio7.c (TIMEOUT): Likewise.
5449 * rt/tst-aio9.c (TIMEOUT): Likewise.
5450 * rt/tst-clock.c (TIMEOUT): Likewise.
5451 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
5452 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
5453 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
5454 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
5455 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
5456 * rt/tst-timer4.c (TIMEOUT): Likewise.
5457 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
5458 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
5459 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
5460 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
5461 * time/tst-ftime.c (TIMEOUT): Likewise.
5462 * timezone/tst-tzset.c (TIMEOUT): Likewise.
5463
5464 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5465
5466 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
5467 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
5468 for thunderX2.
5469
5470 2018-10-15 Joseph Myers <joseph@codesourcery.com>
5471
5472 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5473 bits/sem-pad.h.
5474 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
5475 instead of <bits/wordsize.h>.
5476 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
5477 and [__SEM_PAD_AFTER_TIME].
5478 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
5479 __syscall_ulong_t instead of unsigned long int.
5480 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
5481 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
5482 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
5483 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
5484 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
5485 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
5486 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
5487 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
5488 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
5489 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
5490 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
5491
5492 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
5493
5494 regex: simplify by using intprops.h
5495 [BZ#23744]
5496 * posix/regex_internal.h [_LIBC]: Include intprops.h.
5497 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
5498 intprops.h defines them.
5499
5500 regex: __builtin_expect → __glibc_unlikely
5501 [BZ#23744]
5502 This refactoring was prompted by a problem when the regex code is
5503 used as part of Gnulib and when the builder’s compiler does not grok
5504 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
5505 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
5506 Although this refactoring does not fix the problem directly,
5507 we might as well have Gawk use the now-preferred glibc style for when
5508 __builtin_expect is unavailable.
5509 * posix/regex_internal.h (BE): Remove.
5510 All uses replaced by __glibc_unlikely or __glibc_likely.
5511
5512 2018-10-11 Joseph Myers <joseph@codesourcery.com>
5513
5514 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5515 bits/msq-pad.h.
5516 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
5517 instead of <bits/wordsize.h>.
5518 (msgqnum_t): Define as __syscall_ulong_t.
5519 (msglen_t): Likewise.
5520 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
5521 and [__MSQ_PAD_AFTER_TIME].
5522 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
5523 __syscall_ulong_t instead of unsigned long int.
5524 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
5525 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
5526 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
5527 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
5528 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
5529 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
5530 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
5531 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
5532 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
5533 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
5534 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
5535
5536 2018-10-10 Joseph Myers <joseph@codesourcery.com>
5537
5538 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
5539 (struct shmid_ds): Condition padding after time fields on
5540 [__WORDSIZE == 32].
5541 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
5542 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
5543 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5544
5545 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
5546 (struct semid_ds): Condition padding after time fields on
5547 [__WORDSIZE == 32].
5548 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
5549 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
5550 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
5551 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
5552
5553 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
5554 (struct msqid_ds): Condition padding after time fields on
5555 [__WORDSIZE == 32].
5556 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
5557 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
5558 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
5559 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
5560
5561 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5562
5563 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
5564
5565 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5566
5567 * libio/tst-readline.c (TIMEOUT): Define.
5568
5569 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
5570
5571 mktime fix for Gnulib + coreutils
5572 [BZ#23745]
5573 This fix affects only Gnulib. Problem discovered when
5574 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
5575 * time/mktime.c:
5576 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
5577 Do not define since it is not used. Defining an unused static
5578 function prompts a warning from GCC when Coreutils is configured
5579 with --enable-gcc-warnings.
5580
5581 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5582
5583 * benchtests/scripts/compare_bench.py (main): set float type on
5584 threshold argument.
5585
5586 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
5587
5588 [BZ #23740]
5589 * localedata/locales/kl_GL (mon): Update, the relative case.
5590 (alt_mon): Add, fill with month names in the nominative case.
5591 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
5592 (d_fmt): Set to "%b %d %Y".
5593
5594 2018-10-04 Joseph Myers <joseph@codesourcery.com>
5595
5596 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
5597 <bits/mman-linux.h>.
5598 (PROT_READ): Don't define here.
5599 (PROT_WRITE): Likewise.
5600 (PROT_EXEC): Likewise.
5601 (PROT_NONE): Likewise.
5602 (PROT_GROWSDOWN): Likewise.
5603 (PROT_GROWSUP): Likewise.
5604 (MAP_SHARED): Likewise.
5605 (MAP_PRIVATE): Likewise.
5606 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
5607 [__USE_MISC] (MAP_FILE): Likewise.
5608 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
5609 [__USE_MISC] (MAP_ANON): Likewise.
5610 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
5611 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
5612 (MCL_CURRENT): Likewise.
5613 (MCL_FUTURE): Likewise.
5614 (MCL_ONFAULT): Likewise.
5615 [__USE_MISC] (MADV_NORMAL): Likewise.
5616 [__USE_MISC] (MADV_RANDOM): Likewise.
5617 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
5618 [__USE_MISC] (MADV_WILLNEED): Likewise.
5619 [__USE_MISC] (MADV_DONTNEED): Likewise.
5620 [__USE_MISC] (MADV_FREE): Likewise.
5621 [__USE_MISC] (MADV_REMOVE): Likewise.
5622 [__USE_MISC] (MADV_DONTFORK): Likewise.
5623 [__USE_MISC] (MADV_DOFORK): Likewise.
5624 [__USE_MISC] (MADV_HWPOISON): Likewise.
5625 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
5626 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
5627 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
5628 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
5629 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
5630 (__MAP_ANONYMOUS): New macro.
5631 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
5632 <bits/mman-linux.h> inclusion.
5633 (MAP_FIXED): Likewise.
5634 (MS_SYNC): Likewise.
5635 (MS_ASYNC): Likewise.
5636 (MS_INVALIDATE): Likewise.
5637 [__USE_MISC] (MADV_MERGEABLE): Likewise.
5638 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
5639 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
5640 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
5641 [__USE_MISC] (MADV_DONTDUMP): Likewise.
5642 [__USE_MISC] (MADV_DODUMP): Likewise.
5643 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
5644 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
5645
5646 [BZ #23735]
5647 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
5648 Define.
5649 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
5650 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
5651 Add test-nldbl-redirect.
5652 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
5653 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
5654 $(objpfx)libnldbl_nonshared.a.
5655
5656 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
5657
5658 * support/support.h (support_objdir_elf_ldso): New variable.
5659 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
5660 * support/Makefile (CFLAGS-support_paths.c): Add definition
5661 for OBJDIR_ELF_LDSO_PATH.
5662 * support/test-container.c (main): Search for the ld.so
5663 which is also used by the testsuite.
5664
5665 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
5666
5667 [BZ #20209]
5668 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
5669 should be "sap" rather than "sab".
5670 (day): Fix spelling of Sunday, should be "sapaat" rather than
5671 "sabaat".
5672
5673 2018-10-02 Joseph Myers <joseph@codesourcery.com>
5674
5675 * math/libm-test-fma.inc (fma_test_data): Add more tests.
5676
5677 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
5678
5679 [BZ #19444]
5680 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
5681 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
5682 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
5683
5684 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5685
5686 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
5687
5688 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
5689
5690 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
5691 Add -mrtm.
5692 (CFLAGS-elision-unlock.c): Likewise.
5693 (CFLAGS-elision-timed.c): Likewise.
5694 (CFLAGS-elision-trylock.c): Likewise.
5695 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
5696
5697 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5698
5699 [BZ #21037]
5700 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
5701 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
5702 new fd_to_filename interface.
5703 * libio/freopen64.c (freopen64): Likewise.
5704 * libio/tst-memstream.h: New file.
5705 * libio/tst-memstream4.c: Likewise.
5706 * libio/tst-wmemstream4.c: Likewise.
5707 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
5708 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
5709 and remove internal dynamic allocation.
5710
5711 2018-10-01 Joseph Myers <joseph@codesourcery.com>
5712
5713 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
5714 (MREMAP_MAYMOVE): Do not define here.
5715 [__USE_GNU] (MREMAP_FIXED): Likewise.
5716 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
5717 (MREMAP_MAYMOVE): Define here instead.
5718 [__USE_GNU] (MREMAP_FIXED): Likewise.
5719 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
5720 (MREMAP_MAYMOVE): Remove.
5721 [__USE_GNU] (MREMAP_FIXED): Likewise.
5722
5723 2018-09-28 Joseph Myers <joseph@codesourcery.com>
5724
5725 * math/fromfp.h: Do not include <math_private.h>.
5726 * math/s_cacosh_template.c: Likewise.
5727 * math/s_casin_template.c: Likewise.
5728 * math/s_casinh_template.c: Likewise.
5729 * math/s_ccos_template.c: Likewise.
5730 * math/s_cproj_template.c: Likewise.
5731 * math/s_fdim_template.c: Likewise.
5732 * math/s_fmaxmag_template.c: Likewise.
5733 * math/s_fminmag_template.c: Likewise.
5734 * math/s_iseqsig_template.c: Likewise.
5735 * math/s_ldexp_template.c: Likewise.
5736 * math/s_nextdown_template.c: Likewise.
5737 * math/w_log1p_template.c: Likewise.
5738 * math/w_scalbln_template.c: Likewise.
5739 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
5740 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
5741 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
5742 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
5743 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
5744 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
5745 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
5746 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
5747 * sysdeps/i386/fpu/s_atanl.c: Likewise.
5748 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
5749 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
5750 * sysdeps/i386/fpu/s_fdim.c: Likewise.
5751 * sysdeps/i386/fpu/s_logbl.c: Likewise.
5752 * sysdeps/i386/fpu/s_rintl.c: Likewise.
5753 * sysdeps/i386/fpu/s_significandl.c: Likewise.
5754 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
5755 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
5756 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5757 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5758 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
5759 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
5760 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5761 * sysdeps/ieee754/k_standardf.c: Likewise.
5762 * sysdeps/ieee754/k_standardl.c: Likewise.
5763 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5764 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
5765 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
5766 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
5767 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
5768 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
5769 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5770 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
5771 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
5772 * sysdeps/ieee754/s_signgam.c: Likewise.
5773 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
5774 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
5775 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
5776 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
5777 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
5778 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
5779 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5780 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
5781 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
5782 * sysdeps/riscv/rvd/s_finite.c: Likewise.
5783 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
5784 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
5785 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
5786 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
5787 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
5788 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
5789 * sysdeps/riscv/rvf/fegetround.c: Likewise.
5790 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
5791 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
5792 * sysdeps/riscv/rvf/fesetround.c: Likewise.
5793 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
5794 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
5795 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
5796 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
5797 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
5798 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
5799 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
5800 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
5801 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
5802 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
5803 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
5804 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
5805 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
5806 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
5807 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5808 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
5809 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
5810 <math_private.h>.
5811 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
5812
5813 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
5814
5815 [BZ #23716]
5816 * sysdeps/i386/dl-cet.c: Removed.
5817 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
5818 prototype.
5819 (_dl_runtime_profile_shstk): Likewise.
5820 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
5821 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
5822
5823 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5824
5825 [BZ #23579]
5826 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
5827 do_test_with_invalid_iov): New tests.
5828 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
5829 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
5830 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
5831 errno is ENOSYS.
5832 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
5833 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
5834 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
5835
5836 2018-09-27 Joseph Myers <joseph@codesourcery.com>
5837
5838 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5839 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
5840 (MATH_REDIRECT_BINARY_ARGS): New macro.
5841 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
5842 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
5843 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
5844 header inclusion.
5845 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
5846 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5847 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
5848 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5849 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5850 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5851 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5852 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
5853 Likewise.
5854 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
5855 Likewise.
5856 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
5857 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
5858 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
5859 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
5860 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
5861 Likewise.
5862 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
5863 Likewise.
5864 * sysdeps/generic/math_private_calls.h
5865 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
5866 Do not declare and define as an inline function.
5867 * math/divtc3.c (__divtc3): Use copysign functions instead of
5868 __copysign variants.
5869 * math/multc3.c (__multc3): Likewise.
5870 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
5871 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
5872 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
5873 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
5874 Likewise.
5875 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
5876 (__ieee754_yn): Likewise.
5877 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
5878 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
5879 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
5880 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
5881 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
5882 (__sin): Likewise.
5883 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
5884 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5885 Likewise.
5886 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
5887 Likewise.
5888 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
5889 Likewise.
5890 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
5891 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
5892 Likewise.
5893 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
5894 (__ieee754_ynf): Likewise.
5895 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
5896 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
5897 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
5898 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
5899 Likewise.
5900 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
5901 (__ieee754_ynl): Likewise.
5902 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
5903 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
5904 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
5905 Likewise.
5906 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
5907 (__ieee754_ynl): Likewise.
5908 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
5909 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
5910 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
5911 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
5912 Likewise.
5913 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
5914 (__ieee754_ynl)
5915 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
5916 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
5917 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
5918 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
5919 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
5920
5921 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5922 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
5923 using MATH_REDIRECT.
5924 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
5925 header inclusion.
5926 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
5927 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5928 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5929 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
5930 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5931 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
5932 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
5933 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
5934 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
5935 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
5936 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
5937 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5938 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5939 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
5940 (round): Redirect to __round.
5941 (__roundl): Call round instead of __round.
5942 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
5943 Remove macro.
5944 [_ARCH_PWR5X] (__roundf): Likewise.
5945 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
5946 functions instead of __round variants.
5947 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
5948 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
5949 Likewise.
5950 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
5951 Likewise.
5952 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
5953 Likewise.
5954 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
5955 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
5956 __lroundl.
5957 (__ieee754_expl): Call roundl instead of __roundl.
5958
5959 2018-09-27 Andreas Schwab <schwab@suse.de>
5960
5961 [BZ #23717]
5962 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
5963 (do_test): Make st1 static.
5964
5965 2018-09-26 Andreas Schwab <schwab@suse.de>
5966
5967 [BZ #23707]
5968 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
5969 * elf/Makefile (tests): Add tst-unwind-ctor.
5970 (modules-names): Add tst-unwind-ctor-lib.
5971 ($(objpfx)tst-unwind-ctor): Depend on
5972 $(objpfx)tst-unwind-ctor-lib.so.
5973
5974 2018-09-26 Joseph Myers <joseph@codesourcery.com>
5975
5976 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
5977 file. Most contents moved from ....
5978 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
5979 and include <bits/mman-map-flags-generic.h>.
5980 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5981 (sysdep_headers): Add bits/mman-map-flags-generic.h.
5982 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
5983 <bits/mman-map-flags-generic.h>.
5984 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
5985 macros defined in <bits/mman-map-flags-generic.h>.
5986 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
5987 <bits/mman-map-flags-generic.h>.
5988 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
5989 defined in <bits/mman-map-flags-generic.h>.
5990
5991 2018-09-26 Andreas Schwab <schwab@suse.de>
5992
5993 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
5994 output.
5995
5996 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
5997 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5998 Fangrui Song <maskray@google.com>
5999
6000 [BZ #20480]
6001 * config.make.in (have-textrel_ifunc): New define.
6002 * configure.ac: Add check if linker supports textrel relocation with
6003 ifunc.
6004 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6005 tst-ifunc-textrel.
6006 (CFLAGS-tst-ifunc-textrel.c): New rule.
6007 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6008 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6009 * elf/tst-ifunc-textrel.c: New file.
6010
6011 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6012
6013 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6014 <bits/procfs-prregset.h>.
6015 (prgregset_t): Define using __prgregset_t.
6016 (prfpregset_t): Define using __prfpregset_t.
6017 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6018 (sysdep_headers): Add bits/procfs-prregset.h.
6019 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6020 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6021 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6022 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6023
6024 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6025 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6026 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6027 pr_uid and pr_gid.
6028 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6029 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6030 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6031 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6032 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6033 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6034 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6035 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6036 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6037 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6038 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6039 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6040 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6041 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6042 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6043 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6044 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6045 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6046 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6047 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6048 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6049 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6050 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6051 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6052
6053 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6054 AArch64 version. Include <bits/procfs.h>.
6055 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6056 (sysdep_headers): Add bits/procfs.h.
6057 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6058 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6059 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6060 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6061 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6062 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6063 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6064 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6065 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6066 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6067 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6068 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6069 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6070 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6071 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6072 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6073 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6074
6075 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6076
6077 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6078 Use libsupport.
6079
6080 2018-09-25 Arjun Shankar <arjun@redhat.com>
6081
6082 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6083 (__gconv_max_path_elem_len): Likewise.
6084 (__gconv_nmodules): Likewise.
6085 (__gconv_get_path): Likewise.
6086 (path_elem): Move to ...
6087 * iconv/gconv_conf.c: ... here.
6088 (__gconv_get_path): Mark function static.
6089 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6090 * iconv/gconv_open.c: ... here.
6091
6092 2018-09-24 Andreas Schwab <schwab@suse.de>
6093
6094 * scripts/haveversions.awk: New file.
6095 * Makerules ($(common-objpfx)Versions.def)
6096 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6097 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6098 Move rules ...
6099 * Makeconfig ($(common-objpfx)Versions.def)
6100 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6101 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6102 ... here.
6103 ($(common-objpfx)Versions.mk): New rule. Include it.
6104 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6105 Emit error if build-obsolete-nsl = yes.
6106 * manual/install.texi (Configuring and compiling): Describe
6107 --enable-obsolete-nsl as unavaiable after version 2.28.
6108 * INSTALL: Regenerate.
6109
6110 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6111
6112 * NEWS: Add note about new TLE support on powerpc64le.
6113 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6114 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6115 __ununsed1.
6116 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6117 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6118 * sysdeps/powerpc/powerpc32/sysdep.h,
6119 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6120 ABORT_TRANSACTION): Remove macros.
6121 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6122 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6123 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6124 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6125 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6126 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6127 usage.
6128 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6129
6130 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6131
6132 [BZ #10425]
6133 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6134 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6135 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6136 which is the same as in it_IT.
6137 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6138 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6139
6140 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6141
6142 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6143 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6144 using MATH_REDIRECT.
6145 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6146 header inclusion.
6147 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6148 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6149 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6150 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6151 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6152 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6153 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6154 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6155 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6156 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6157 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6158 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6159 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6160 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6161 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6162 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6163 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6164 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6165 (ceil): Redirect to __ceil.
6166 (floor): Redirect to __floor.
6167 (trunc): Redirect to __trunc.
6168 (__truncl): Call trunc instead of __trunc.
6169 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6170 Remove macro.
6171 [_ARCH_PWR5X] (__truncf): Likewise.
6172 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6173 trunc functions instead of __trunc variants.
6174 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6175 Likewise.
6176 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6177 Likewise.
6178 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6179 Likewise.
6180 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6181 Likewise.
6182
6183 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6184 [__i586__ || __pentium__].
6185 [__i486__]: Handle explicitly.
6186 (HAS_CPUID): Define to 1 if above macros are undefined.
6187 (HAS_I586): Likewise.
6188 (HAS_I686): Likewise.
6189
6190 2018-09-20 Florian Weimer <fweimer@redhat.com>
6191
6192 * misc/tst-gethostid.c: New file.
6193 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6194 (tst-gethostid): Link with -ldl.
6195
6196 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6197
6198 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6199 value from gethostbyname_r.
6200
6201 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6202
6203 * stdlib/tst-setcontext9.c (f1): Rename to...
6204 (f1a): ... this.
6205 (f1b): New function implementing lower half of f1 in alternate stack.
6206
6207 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6208
6209 Fix mktime localtime offset confusion
6210 [BZ #23603]
6211 * include/time.h (__mktime_internal): The localtime offset is now
6212 of type long int instead of time_t. This is the longstanding type
6213 in glibc, and it is more than enough to represent difference
6214 between localtime and gmtime even if it is 32 bits and time_t is
6215 64. Changing it now will let us avoid an unnecessary change when
6216 time_t is widened to 64 bits on 32-bit platforms.
6217 * time/mktime-internal.h (mktime_offset_t): Now long int.
6218
6219 Merge mktime, timegm from upstream Gnulib
6220 [BZ #23603][BZ #16346]
6221 This fixes some obscure problems with integer overflow.
6222 Although it looks scary, it is almost all a byte-for-byte copy
6223 from Gnulib, and the Gnulib code has been tested reasonably well.
6224 * include/intprops.h: New file, copied from Gnulib.
6225 * include/verify.h, time/mktime-internal.h:
6226 New tiny files, simplified from Gnulib.
6227 * time/mktime.c: Copy from Gnulib. This has the following changes:
6228 Do not include config.h if DEBUG_MKTIME is nonzero.
6229 Include stdbool.h, intprops.h, verify.h.
6230 Include string.h only if needed.
6231 Include stdlib.h on MS-Windows.
6232 Include mktime-internal.h.
6233 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6234 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6235 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6236 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6237 simplify later conditionals; default the others to zero. Use
6238 these conditionals to express only the code needed on the current
6239 platform. In uses of these conditionals, explicitly spell out how
6240 _LIBC affects things, so it’s easier to review from a glibc
6241 viewpoint.
6242 (WRAPV): Remove; no longer needed now that we have
6243 systematic overflow checking.
6244 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6245 compartmentalize tzset issues. Move system-dependent tzsettish
6246 code here from mktime.
6247 (verify): Remove; now done by verify.h. All uses changed.
6248 (long_int): Use a more-conservative definition, to avoid
6249 integer overflow.
6250 (SHR): Remove, replacing with ...
6251 (shr): New function, which means we needn’t worry about side
6252 effects in args, and conversion analysis is simpler.
6253 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6254 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6255 (time_t_avg, time_t_add_ok): Remove.
6256 (mktime_min, mktime_max): New constants.
6257 (leapyear, isdst_differ): Use bool for booleans.
6258 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6259 Use long_int, not time_t, for mktime differences.
6260 (long_int_avg): New function, replacing time_t_avg.
6261 INT_ADD_WRAPV replaces time_t_add_ok.
6262 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6263 All uses changed.
6264 (convert_time): New function.
6265 (ranged_convert): Use it.
6266 (__mktime_internal): Last arg now points to mktime_offset_t, not
6267 time_t. All uses changed. This is a no-op on glibc, where
6268 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6269 offset guess. Directly check for integer overflow instead of
6270 using a heuristic that works only 99.9...% of the time.
6271 Access *OFFSET only once, to avoid an unlikely race if the
6272 compiler delays a load and if this cascades into a signed integer
6273 overflow.
6274 (mktime): Move tzsettish code to my_tzset, and move
6275 localtime_offset to within mktime so that it doesn’t
6276 need a separate ifdef.
6277 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6278 instead of localtime.
6279 * time/timegm.c: Copy from Gnulib. This has the following changes:
6280 Include mktime-internal.h.
6281 [!_LIBC]: Include config.h and time.h. Do not include
6282 timegm.h or time_r.h. Make __mktime_internal a macro,
6283 and include mktime-internal.h to get its declaration.
6284 (timegm): Temporary is now mktime_offset_t, not time_t.
6285 This affects only Gnulib.
6286
6287 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6288
6289 [BZ #23637]
6290 * string/test-strstr.c (pr23637): New function.
6291 (test_main): Add tests with longer needles.
6292 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6293 * string/strstr.c (AVAILABLE): Likewise.
6294
6295 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6296
6297 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
6298
6299 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6300
6301 * NEWS: Mention pow improvements.
6302 * math/Makefile (type-double-routines): Add e_pow_log_data.
6303 * sysdeps/generic/math_private.h (__exp1): Remove.
6304 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6305 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6306 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6307 contraction.
6308 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6309 (exp_inline): Remove.
6310 (__ieee754_exp): Only single double input is handled.
6311 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6312 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6313 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6314 (__pow_log_data): Define.
6315 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6316 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6317 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6318 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6319 contraction.
6320 (CFLAGS-e_pow-fma4.c): Likewise.
6321
6322 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
6323
6324 Simplify tzfile fstat failure code
6325 [BZ #21716]
6326 * time/tzfile.c (__tzfile_read): Simplify slightly.
6327
6328 Fix tzfile low-memory assertion failure
6329 [BZ #21716]
6330 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
6331 when registering time zone abbreviations.
6332
6333 2018-09-18 Joseph Myers <joseph@codesourcery.com>
6334
6335 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
6336 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
6337 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6338 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6339 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
6340 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
6341 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
6342 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6343 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6344
6345 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
6346 __ceil.
6347 (__ceill): Call ceil instead of __ceil.
6348 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
6349 __floor.
6350 (__floorl): Call floor instead of __floor.
6351
6352 2018-09-17 Joseph Myers <joseph@codesourcery.com>
6353
6354 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6355 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
6356 using MATH_REDIRECT.
6357 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
6358 header inclusion.
6359 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
6360 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6361 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6362 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
6363 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6364 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6365 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6366 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6367 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
6368 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
6369 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
6370 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
6371 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6372 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6373 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6374 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6375 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6376 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6377 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
6378 Remove macro.
6379 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
6380 functions instead of __ceil variants.
6381 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6382 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6383 Likewise.
6384 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6385 Likewise.
6386 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6387 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6388 Likewise.
6389 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6390 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6391
6392 [BZ #21286]
6393 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
6394 constant.
6395 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
6396 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
6397 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
6398 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
6399 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
6400 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
6401 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
6402 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
6403 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
6404 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
6405 (ILL_BADIADDR): Remove constant.
6406 (TRAP_BRANCH): Likewise.
6407 (TRAP_HWBKPT): Likewise.
6408
6409 2018-09-14 Joseph Myers <joseph@codesourcery.com>
6410
6411 [BZ #23656]
6412 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
6413 Remove [_MIPS_SIM = _ABIN32] conditional case.
6414 (struct elf_prpsinfo): Likewise.
6415
6416 [BZ #23649]
6417 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
6418 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
6419 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
6420 Likewise.
6421 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
6422 elf_prpsinfo): Likewise.
6423 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
6424 elf_prpsinfo): Likewise.
6425 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
6426 Likewise.
6427
6428 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6429 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
6430 using MATH_REDIRECT.
6431 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
6432 header inclusion.
6433 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
6434 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6435 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6436 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6437 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6438 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6439 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
6440 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6441 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6442 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6443 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
6444 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
6445 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
6446 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
6447 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
6448 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
6449 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6450 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
6451 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6452 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
6453 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
6454 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
6455 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
6456 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
6457 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
6458 * sysdeps/x86_64/fpu/math_private.h: Remove file.
6459 * math/e_scalb.c (invalid_fn): Use rint functions instead of
6460 __rint variants.
6461 * math/e_scalbf.c (invalid_fn): Likewise.
6462 * math/e_scalbl.c (invalid_fn): Likewise.
6463 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6464 Likewise.
6465 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6466 Likewise.
6467 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6468 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
6469 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6470 Likewise.
6471 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6472 Likewise.
6473 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6474 Likewise.
6475 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
6476 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
6477
6478 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6479 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
6480 New macro.
6481 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6482 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
6483 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6484 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
6485 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6486 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
6487 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6488 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
6489 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6490 && !NO_MATH_REDIRECT] (floor): Likewise.
6491 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
6492 header inclusion.
6493 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
6494 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6495 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6496 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
6497 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6498 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6499 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6500 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
6501 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
6502 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
6503 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
6504 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
6505 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6506 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6507 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
6508 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
6509 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
6510 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
6511 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
6512 Remove macro.
6513 [_ARCH_PWR5X] (__floorf): Likewise.
6514 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
6515 inline function.
6516 [__SSE4_1__] (__floorf): Likewise.
6517 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
6518 instead of __floor variants.
6519 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
6520 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
6521 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
6522 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
6523 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
6524 * math/w_tgamma_compat.c (__tgamma): Likewise.
6525 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
6526 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
6527 * math/w_tgammal_compat.c (__tgammal): Likewise.
6528 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
6529 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
6530 Likewise.
6531 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
6532 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
6533 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
6534 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6535 Likewise.
6536 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
6537 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
6538 Likewise.
6539 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
6540 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
6541 Likewise.
6542 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
6543 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
6544 Likewise.
6545 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
6546 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6547 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
6548 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
6549 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6550 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6551
6552 2018-09-12 Joseph Myers <joseph@codesourcery.com>
6553
6554 * elf/Makefile (modules-names-tests): New variable.
6555
6556 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6557
6558 * NEWS: Mention log2 improvements.
6559 * math/Makefile (type-double-routines): Add e_log2_data.
6560 * sysdeps/i386/fpu/e_log2_data.c: New file.
6561 * sysdeps/ia64/fpu/e_log2_data.c: New file.
6562 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
6563 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
6564 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
6565 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
6566 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
6567
6568 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6569
6570 * NEWS: Mention log improvement.
6571 * math/Makefile (type-double-routines): Add e_log_data.
6572 * sysdeps/i386/fpu/e_log_data.c: New file.
6573 * sysdeps/ia64/fpu/e_log_data.c: New file.
6574 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
6575 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
6576 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
6577 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
6578 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
6579 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
6580
6581 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
6582 Xuepeng Guo <xuepeng.guo@intel.com>
6583
6584 [BZ #23606]
6585 * sysdeps/i386/start.S: Include <sysdep.h>
6586 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
6587 enabled. Add cfi_undefined (eip).
6588
6589 2018-09-11 Joseph Myers <joseph@codesourcery.com>
6590
6591 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
6592 (MOVQ): Likewise.
6593 (EXTRACT_WORDS64): Likewise.
6594 (INSERT_WORDS64): Likewise.
6595 (GET_FLOAT_WORD): Likewise.
6596 (SET_FLOAT_WORD): Likewise.
6597
6598 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
6599 argument.
6600 (Config.build_gcc): Use --disable-libsanitizer for first GCC
6601 build, but not for second build if --full-gcc. Use
6602 --enable-languages=all for second build if --full-gcc.
6603 (get_parser): Add --full-gcc option.
6604 (main): Update call to Context.
6605
6606 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
6607
6608 [BZ #10797]
6609 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
6610 Single Quotation Mark).
6611 (thousands_sep): Likewise.
6612 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
6613 * localedata/locales/it_IT (thousands_sep): Use ".".
6614 (grouping): Use "3;3".
6615
6616 2018-09-10 Joseph Myers <joseph@codesourcery.com>
6617
6618 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
6619 x86_64 and i686 configs using --enable-obsolete-rpc
6620 --enable-obsolete-nsl.
6621
6622 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6623
6624 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6625
6626 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6627
6628 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
6629 Increment size of new_argv by one.
6630
6631 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
6632
6633 [BZ #17426]
6634 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
6635 * localedata/locales/ar_IN (d_fmt): Likewise.
6636 * localedata/locales/bhb_IN (d_fmt): Likewise.
6637 * localedata/locales/bho_IN (d_fmt): Likewise.
6638 * localedata/locales/bn_BD (d_fmt): Likewise.
6639 * localedata/locales/bn_IN (d_fmt): Likewise.
6640 * localedata/locales/doi_IN (d_fmt): Likewise.
6641 * localedata/locales/gu_IN (d_fmt): Likewise.
6642 * localedata/locales/hi_IN (d_fmt): Likewise.
6643 * localedata/locales/hne_IN (d_fmt): Likewise.
6644 * localedata/locales/kn_IN (d_fmt): Likewise.
6645 * localedata/locales/mag_IN (d_fmt): Likewise.
6646 * localedata/locales/mai_IN (d_fmt): Likewise.
6647 * localedata/locales/mjw_IN (d_fmt): Likewise.
6648 * localedata/locales/ml_IN (d_fmt): Likewise.
6649 * localedata/locales/mni_IN (d_fmt): Likewise.
6650 * localedata/locales/mr_IN (d_fmt): Likewise.
6651 * localedata/locales/pa_IN (d_fmt): Likewise.
6652 * localedata/locales/raj_IN (d_fmt): Likewise.
6653 * localedata/locales/sat_IN (d_fmt): Likewise.
6654 * localedata/locales/sd_IN (d_fmt): Likewise.
6655 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
6656 * localedata/locales/ta_IN (d_fmt): Likewise.
6657 * localedata/locales/ta_LK (d_fmt): Likewise.
6658 * localedata/locales/tcy_IN (d_fmt): Likewise.
6659 * localedata/locales/ur_IN (d_fmt): Likewise.
6660
6661 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
6662 * localedata/locales/ks_IN (d_fmt): Likewise.
6663 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
6664
6665 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
6666 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
6667 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
6668 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
6669
6670 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
6671
6672 * NEWS: Mention exp and exp2 improvements.
6673 * math/Makefile (libm-support): Remove t_exp.
6674 (type-double-routines): Add math_err and e_exp_data.
6675 * sysdeps/aarch64/libm-test-ulps: Update.
6676 * sysdeps/arm/libm-test-ulps: Update.
6677 * sysdeps/i386/fpu/e_exp_data.c: New file.
6678 * sysdeps/i386/fpu/math_err.c: New file.
6679 * sysdeps/i386/fpu/t_exp.c: Remove.
6680 * sysdeps/ia64/fpu/e_exp_data.c: New file.
6681 * sysdeps/ia64/fpu/math_err.c: New file.
6682 * sysdeps/ia64/fpu/t_exp.c: Remove.
6683 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
6684 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
6685 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
6686 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
6687 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
6688 * sysdeps/ieee754/dbl-64/math_config.h: New file.
6689 * sysdeps/ieee754/dbl-64/math_err.c: New file.
6690 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
6691 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
6692 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
6693 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
6694 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
6695 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
6696 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
6697 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6698 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6699
6700 2018-09-05 Joseph Myers <joseph@codesourcery.com>
6701
6702 * sysdeps/alpha/fpu/math_private.h: Remove.
6703
6704 * sysdeps/generic/math_private.h
6705 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
6706 Move this inline function ....
6707 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
6708 * include/math.h [!_ISOMAC]: To here....
6709
6710 2018-09-04 Joseph Myers <joseph@codesourcery.com>
6711
6712 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
6713 code ....
6714 [!FE_HAVE_ROUNDING_MODES]: And this code ....
6715 * include/fenv.h [!_ISOMAC]: ... to here.
6716 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
6717 (feraiseexcept): Likewise.
6718 * math/fromfp.h: Do not include <fenv_private.h>.
6719 * math/s_cexp_template.c: Likewise.
6720 * math/s_csin_template.c: Likewise.
6721 * math/s_csinh_template.c: Likewise.
6722 * math/s_ctan_template.c: Likewise.
6723 * math/s_ctanh_template.c: Likewise.
6724 * math/s_iseqsig_template.c: Likewise.
6725 * math/w_acos_compat.c: Likewise.
6726 * math/w_acosf_compat.c: Likewise.
6727 * math/w_acosl_compat.c: Likewise.
6728 * math/w_asin_compat.c: Likewise.
6729 * math/w_asinf_compat.c: Likewise.
6730 * math/w_asinl_compat.c: Likewise.
6731 * math/w_j0_compat.c: Likewise.
6732 * math/w_j0f_compat.c: Likewise.
6733 * math/w_j0l_compat.c: Likewise.
6734 * math/w_j1_compat.c: Likewise.
6735 * math/w_j1f_compat.c: Likewise.
6736 * math/w_j1l_compat.c: Likewise.
6737 * math/w_jn_compat.c: Likewise.
6738 * math/w_jnf_compat.c: Likewise.
6739 * math/w_log10_compat.c: Likewise.
6740 * math/w_log10f_compat.c: Likewise.
6741 * math/w_log10l_compat.c: Likewise.
6742 * math/w_log2_compat.c: Likewise.
6743 * math/w_log2f_compat.c: Likewise.
6744 * math/w_log2l_compat.c: Likewise.
6745 * math/w_log_compat.c: Likewise.
6746 * math/w_logf_compat.c: Likewise.
6747 * math/w_logl_compat.c: Likewise.
6748 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6749 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6750 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6751 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6752 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6753 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6754 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6755 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6756 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6757 * sysdeps/ieee754/k_standardl.c: Likewise.
6758 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6759 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6760 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6761 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6762 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6763 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6764 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6765 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6766 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6767 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6768 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6769 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6770 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6771 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6772 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6773 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6774 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6775 * math/w_ilogb_template.c: Include <fenv.h> instead of
6776 <fenv_private.h>.
6777 * math/w_llogb_template.c: Likewise.
6778 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6779 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6780
6781 2018-09-03 Joseph Myers <joseph@codesourcery.com>
6782
6783 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
6784 * math/fromfp.h: Include <fenv_private.h>.
6785 * math/math-narrow.h: Likewise.
6786 * math/s_cexp_template.c: Likewise.
6787 * math/s_csin_template.c: Likewise.
6788 * math/s_csinh_template.c: Likewise.
6789 * math/s_ctan_template.c: Likewise.
6790 * math/s_ctanh_template.c: Likewise.
6791 * math/s_iseqsig_template.c: Likewise.
6792 * math/w_acos_compat.c: Likewise.
6793 * math/w_acosf_compat.c: Likewise.
6794 * math/w_acosl_compat.c: Likewise.
6795 * math/w_asin_compat.c: Likewise.
6796 * math/w_asinf_compat.c: Likewise.
6797 * math/w_asinl_compat.c: Likewise.
6798 * math/w_ilogb_template.c: Likewise.
6799 * math/w_j0_compat.c: Likewise.
6800 * math/w_j0f_compat.c: Likewise.
6801 * math/w_j0l_compat.c: Likewise.
6802 * math/w_j1_compat.c: Likewise.
6803 * math/w_j1f_compat.c: Likewise.
6804 * math/w_j1l_compat.c: Likewise.
6805 * math/w_jn_compat.c: Likewise.
6806 * math/w_jnf_compat.c: Likewise.
6807 * math/w_llogb_template.c: Likewise.
6808 * math/w_log10_compat.c: Likewise.
6809 * math/w_log10f_compat.c: Likewise.
6810 * math/w_log10l_compat.c: Likewise.
6811 * math/w_log2_compat.c: Likewise.
6812 * math/w_log2f_compat.c: Likewise.
6813 * math/w_log2l_compat.c: Likewise.
6814 * math/w_log_compat.c: Likewise.
6815 * math/w_logf_compat.c: Likewise.
6816 * math/w_logl_compat.c: Likewise.
6817 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6818 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6819 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6820 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6821 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6822 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6823 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6824 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6825 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6826 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6827 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6828 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6829 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
6830 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
6831 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6832 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6833 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6834 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6835 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6836 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6837 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6838 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
6839 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6840 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
6841 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6842 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6843 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
6844 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
6845 * sysdeps/ieee754/float128/float128_private.h: Likewise.
6846 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6847 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6848 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6849 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
6850 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6851 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6852 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6853 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6854 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6855 * sysdeps/ieee754/k_standardl.c: Likewise.
6856 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6857 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6858 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6859 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6860 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
6861 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
6862 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6863 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6864 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6865 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6866 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6867 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6868 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
6869 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6870 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6871 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
6872 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
6873 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
6874 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
6875 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6876 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6877 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6878 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6879 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6880 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
6881 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
6882 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6883 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
6884 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
6885 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6886 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6887 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6888 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6889 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6890 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6891 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
6892 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6893 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6894 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6895 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6896 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6897 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6898 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6899 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6900 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6901 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6902 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6903 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6904 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6905 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6906 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6907 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6908 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6909 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6910 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6911 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6912 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6913 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6914 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6915 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6916 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6917 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6918 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6919 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6920 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6921 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6922 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6923 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6924 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6925 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6926 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6927
6928 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6929
6930 [BZ #20271]
6931 * include/stdio.h (__libc_fatal): Mention newline in comment.
6932 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
6933 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
6934 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6935 * nss/nsswitch.c (__nss_next2): Likewise.
6936 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
6937 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
6938 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
6939 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
6940 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
6941 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
6942 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
6943 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
6944 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
6945 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
6946 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
6947 * sysdeps/unix/sysv/linux/netlink_assert_response.c
6948 (__netlink_assert_response): Likewise.
6949
6950 2018-08-31 Joseph Myers <joseph@codesourcery.com>
6951
6952 * conform/glibcconform.py: New file.
6953 * conform/list-header-symbols.py: Likewise.
6954 * conform/list-header-symbols.pl: Remove.
6955 * conform/Makefile (tests-special): Only add linknamespace tests
6956 if [PYTHON].
6957 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
6958
6959 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
6960
6961 [BZ #23597]
6962 * support/Makefile (libsupport-routines): Add
6963 support_copy_file_range and xcopy_file_range.
6964 * support/support.h: Include <sys/types.h>.
6965 (support_copy_file_range): New prototype.
6966 * support/support_copy_file_range.c: New file. Copied and
6967 modified from io/copy_file_range-compat.c.
6968 * support/test-container.c (copy_one_file): Call xcopy_file_rang
6969 instead of copy_file_range.
6970 * support/xcopy_file_range.c: New file.
6971 * support/xunistd.h (xcopy_file_range): New prototype.
6972
6973 2018-08-30 Carlos O'Donell <carlos@redhat.com>
6974
6975 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
6976 xpthread_create and xpthread_join.
6977
6978 2018-08-30 Florian Weimer <fweimer@redhat.com>
6979
6980 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
6981
6982 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
6983
6984 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
6985 if malloc fails.
6986
6987 2018-08-29 Joseph Myers <joseph@codesourcery.com>
6988
6989 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
6990 and minus_oflow as non-finite.
6991
6992 2018-08-28 Joseph Myers <joseph@codesourcery.com>
6993
6994 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
6995 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
6996 moved to fenv_private.h except for ...
6997 (TOINT_INTRINSICS): Kept in math_private.h.
6998 (roundtoint): Likewise.
6999 (converttoint): Likewise.
7000 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7001 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7002 * sysdeps/arm/math_private.h: Remove.
7003 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7004 ....
7005 * sysdeps/generic/math_private.h: ... this file. Include
7006 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7007 Include <fenv_private.h>. Remove functions and macros moved to
7008 fenv_private.h.
7009 * sysdeps/i386/fpu/math_private.h: Remove.
7010 * sysdeps/mips/math_private.h: Move to ....
7011 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7012 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7013 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7014 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7015 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7016 * sysdeps/powerpc/fpu/math_private.h: Do not include
7017 <fenv_private.h>.
7018 * sysdeps/riscv/rvf/math_private.h: Move to ....
7019 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7020 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7021 <fenv_private.h>.
7022 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7023 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7024 * sysdeps/sparc/fpu/math_private.h: Remove.
7025 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7026 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7027 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7028 <fenv_private.h>.
7029 * sysdeps/x86_64/fpu/math_private.h: Do not include
7030 <sysdeps/i386/fpu/fenv_private.h>.
7031
7032 2018-08-28 Florian Weimer <fweimer@redhat.com>
7033
7034 [BZ #23578]
7035 * posix/tst-regcomp-truncated.c: New file.
7036 * posix/Makefile (tests): Add it.
7037 (tst-regcomp-truncated.out): Depend on generated locales.
7038
7039 2018-08-28 Florian Weimer <fweimer@redhat.com>
7040
7041 * support/test-container.c (main): Treat unshare failure with
7042 EPERM as an unsupported test.
7043
7044 2018-08-28 Florian Weimer <fweimer@redhat.com>
7045
7046 [BZ #23520]
7047 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7048 * nscd/netgroupcache.c
7049 (addgetnetgrentX): Add tofreep parameter. Do not free
7050 heap-allocated buffer.
7051 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7052 (addgetnetgrentX_ignore): New function.
7053 (addgetnetgrent): Call it.
7054 (readdgetnetgrent): Likewise.
7055
7056 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7057
7058 * string/memmem.c: Use memcmp for first match.
7059
7060 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7061
7062 [BZ #17426]
7063 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7064
7065 2018-08-27 DJ Delorie <dj@redhat.com>
7066
7067 * support/Makefile (others): Don't list programs explicitly as a
7068 dependency of "others".
7069
7070 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7071
7072 * sysdeps/generic/math-tests-trap-force.h: New file.
7073 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7074 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7075 * sysdeps/powerpc/math-tests.h: Remove file.
7076 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7077
7078 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7079 Torvald Riegel <triegel@redhat.com>
7080
7081 [BZ #23538]
7082 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7083 Update r to include the set wake-request flag if waiters are
7084 remaining after spinning.
7085
7086 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7087
7088 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7089
7090 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7091
7092 [BZ #23578]
7093 regex: fix uninitialized memory access
7094 I introduced this bug into gnulib in commit
7095 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7096 eventually it was merged into glibc. The bug was found by
7097 project-repo <bugs@feusi.co> and reported here:
7098 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7099 Diagnosis and draft fix reported by Assaf Gordon here:
7100 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7101 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7102 * posix/regex_internal.c (build_wcs_upper_buffer):
7103 Fix bug when mbrtowc returns 0.
7104
7105 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7106
7107 * po/be.po: Update translation.
7108
7109 2018-08-24 DJ Delorie <dj@delorie.com>
7110
7111 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7112 $(libunwind).
7113
7114 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7115
7116 [BZ #23400]
7117 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7118 create temporary files in source tree.
7119
7120 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7121
7122 * sysdeps/generic/math-tests-trap.h: New file.
7123 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7124 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7125 * sysdeps/aarch64/math-tests.h: Remove file.
7126 * sysdeps/arm/math-tests.h: Likewise.
7127 * sysdeps/riscv/math-tests.h: Likewise.
7128 * sysdeps/aarch64/math-tests-trap.h: New file.
7129 * sysdeps/arm/math-tests-trap.h: Likewise.
7130 * sysdeps/riscv/math-tests-trap.h: Likewise.
7131
7132 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7133
7134 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7135 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7136 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7137 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7138 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7139 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7140 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7141 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7142 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7143 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7144 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7145 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7146 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7147 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7148 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7149 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7150 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7151 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7152
7153 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7154
7155 * sysdeps/generic/math-tests-exceptions.h: New file.
7156 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7157 (EXCEPTION_TESTS_float): Do not define here.
7158 (EXCEPTION_TESTS_double): Likewise.
7159 (EXCEPTION_TESTS_long_double): Likewise.
7160 (EXCEPTION_TESTS_float128): Likewise.
7161 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7162 Likewise.
7163 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7164 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7165 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7166 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7167 * sysdeps/mips/math-tests.h: Likewise.
7168 * sysdeps/nios2/math-tests.h: Likewise.
7169 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7170 (EXCEPTION_TESTS_float): Do not define here.
7171 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7172 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7173 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7174
7175 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7176
7177 * NEWS: Move optimized sinf entry to 2.29.
7178
7179 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7180
7181 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7182
7183 2018-08-22 DJ Delorie <dj@redhat.com>
7184
7185 * Makefile (testroot.pristine): New rules to initialize the
7186 test-in-container "testroot".
7187 * Makerules (all-testsuite): Add tests-container.
7188 * Rules (tests-expected): Add tests-container.
7189 (binaries-all-tests): Likewise.
7190 (tests-container): New, run these tests in the testroot container.
7191 * support/Makefile (others): Add *-container, support_paths.c,
7192 xmkdirp, and links-dso-program.
7193 * support/links-dso-program-c.c: New.
7194 * support/links-dso-program.cc: New.
7195 * support/test-container.c: New.
7196 * support/shell-container.c: New.
7197 * support/echo-container.c: New.
7198 * support/true-container.c: New.
7199 * support/xmkdirp.c: New.
7200 * support/xsymlink.c: New.
7201 * support/support_paths.c: New.
7202 * support/support.h: Add support paths prototypes.
7203 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7204
7205 * nss/tst-nss-test3.c: Convert to test-in-container.
7206 * nss/tst-nss-test3.root/: New.
7207
7208 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7209
7210 regex: port Gnulib code to z/OS POSIX environment
7211 Problem reported by Arnold Robbins in:
7212 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7213 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7214 Undef.
7215
7216 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7217
7218 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7219 (ROUNDING_TESTS_double): Remove.
7220 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7221 (ROUNDING_TESTS_double): Remove.
7222 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7223 (ROUNDING_TESTS_double): Remove.
7224 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7225 (ROUNDING_TESTS_float): Remove.
7226 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7227 (ROUNDING_TESTS_float): Remove.
7228 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7229 (ROUNDING_TESTS_float): Remove.
7230 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7231 !TEST_MATHVEC here.
7232 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7233 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7234
7235 * sysdeps/generic/math-tests-rounding.h: New file.
7236 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7237 (ROUNDING_TESTS_float): Do not define here.
7238 (ROUNDING_TESTS_double): Likewise.
7239 (ROUNDING_TESTS_long_double): Likewise.
7240 (ROUNDING_TESTS_float128): Likewise.
7241 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7242 (ROUNDING_TESTS_double): Undefine before defining.
7243 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7244 (ROUNDING_TESTS_double): Undefine before defining.
7245 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7246 (ROUNDING_TESTS_double): Undefine before defining.
7247 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7248 (ROUNDING_TESTS_float): Undefine before defining.
7249 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7250 (ROUNDING_TESTS_float): Undefine before defining.
7251 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7252 (ROUNDING_TESTS_float): Undefine before defining.
7253 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7254 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7255 not define here.
7256 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7257 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7258 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7259 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7260 (ROUNDING_TESTS_float): Do not define here.
7261 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7262 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7263 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7264 (ROUNDING_TESTS_float): Likewise.
7265 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7266 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7267 * sysdeps/mips/math-tests.h [__mips_soft_float]
7268 (ROUNDING_TESTS_float): Likewise.
7269 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7270 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7271 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7272 (ROUNDING_TESTS_double): Likewise.
7273 (ROUNDING_TESTS_long_double): Likewise.
7274
7275 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7276
7277 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7278 (PF_XDP): New macro.
7279 (AF_XDP): New macro.
7280 (SOL_XDP): New macro.
7281
7282 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7283
7284 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7285 (TCP_INQ): Likewise.
7286 (TCP_CM_INQ): Likewise.
7287 (TCP_REPAIR_ON): Likewise.
7288 (TCP_REPAIR_OFF): Likewise.
7289 (TCP_REPAIR_OFF_NO_WP): Likewise.
7290 (struct tcp_zerocopy_receive): New type.
7291
7292 2018-08-21 Florian Weimer <fweimer@redhat.com>
7293
7294 * support/support.h (support_descriptor_supports_holes): Declare.
7295 * support/Makefile (libsupport-routines): Add
7296 support_descriptor_supports_holes.
7297 * support/support_descriptor_supports_holes.c: New file.
7298 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
7299 and stop testing if holes are not supported.
7300 * io/test-lfs.c (do_prepare): Likewise.
7301 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
7302 Likewise.
7303 * timezone/tst-tzset.c (create_tz_file): Likewise.
7304 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7305 variable.
7306 (do_prepare): Set it.
7307 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7308
7309 2018-08-21 Florian Weimer <fweimer@redhat.com>
7310
7311 [BZ #17248]
7312 * Makeconfig (+cflags): Do not sort (and deduplicate).
7313
7314 2018-08-21 Florian Weimer <fweimer@redhat.com>
7315
7316 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7317 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7318
7319 2018-08-20 Florian Weimer <fweimer@redhat.com>
7320
7321 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
7322 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
7323
7324 2018-08-20 Joseph Myers <joseph@codesourcery.com>
7325
7326 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7327 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
7328 and ssi_arch members.
7329
7330 * elf/elf.c (NT_VMCOREDD): New macro.
7331 (AT_MINSIGSTKSZ): Likewise.
7332
7333 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7334
7335 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7336 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
7337 s_cosf-ppc64 and s_cosf-power8.
7338 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
7339 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7340 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7341 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7342 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7343 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7344 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
7345 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7346 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7347 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7348 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
7349 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7350
7351 2018-08-17 Florian Weimer <fweimer@redhat.com>
7352
7353 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7354
7355 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
7356
7357 * malloc/malloc.c (_int_malloc): Additional binning code checks.
7358
7359 2018-08-16 Florian Weimer <fweimer@redhat.com>
7360
7361 * configure.ac: Add --with-nonshared-cflags option.
7362 * config.make.in (extra-nonshared-cflags): Set variable.
7363 * Makeconfig (CFLAGS-.oS): Use it.
7364 * manual/install.texi (Configuring and compiling): Document
7365 --with-nonshared-cflags.
7366 * configure: Regenerate.
7367 * INSTALL: Likewise.
7368
7369 2018-08-16 Florian Weimer <fweimer@redhat.com>
7370
7371 * Makeconfig (ASFLAGS): Always append required assembler flags.
7372
7373 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
7374
7375 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
7376 (malloc_consolidate): Likewise.
7377
7378 2018-08-16 Pochang Chen <johnchen902@gmail.com>
7379
7380 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
7381
7382 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7383
7384 * benchtests/bench-strlen.c (do_test): Allocate buffers before
7385 every strlen call.
7386
7387 * benchtests/bench-strlen.c: Print performance numbers in json.
7388
7389 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7390
7391 * sysdeps/powerpc/powerpc64/multiarch/Makefile
7392 (sysdep_routines): Build strcmp-power9 and strncmp-power9
7393 only for little endian.
7394 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7395 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
7396 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
7397 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
7398 Add check for little endian.
7399 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7400 (__strcmp_power9): Add check for little endian.
7401 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
7402 Add check for little endian.
7403 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7404 (__strncmp_power9): Add check for little endian.
7405 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
7406 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
7407 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
7408 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
7409 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
7410
7411 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
7412
7413 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
7414 [!STRLEN](STRLEN): Set to __strlen.
7415 * sysdeps/aarch64/multiarch/strlen.c: New file.
7416 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
7417 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
7418 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7419 (__libc_ifunc_impl_list): Add strlen.
7420 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7421 strlen_generic and strlen_asimd.
7422
7423 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7424
7425 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
7426 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
7427 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
7428
7429 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7430
7431 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
7432
7433 2018-08-14 Florian Weimer <fweimer@redhat.com>
7434
7435 [BZ #23519]
7436 * include/stdio.h (__vfxprintf): Declare.
7437 * stdio-common/fxprintf.c (__vfxprintf): New function.
7438 (__fxprintf): Call it.
7439 * misc/err.c (convert_and_print): Remove function.
7440 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
7441 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
7442 * misc/Makefile (tests): Add tst-warn-wide.
7443 * misc/tst-warn-wide.c: New file.
7444
7445 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
7446 Szabolcs Nagy <szabolcs.nagy@arm.com>
7447
7448 * NEWS: Mention sinf, cosf, sincosf.
7449 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
7450 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
7451 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
7452 constants rather than including generic sincosf.h.
7453 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
7454 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
7455 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
7456 (reduced_cos): Remove.
7457 (sinf_poly): New function.
7458 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
7459
7460 2018-08-14 Florian Weimer <fweimer@redhat.com>
7461
7462 [BZ #23521]
7463 [BZ #23522]
7464 * nss/nss_files/files-alias.c (get_next_alias): During :include:
7465 processing, bail out if no room, and close the stream before
7466 returning ERANGE.
7467 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
7468 (tst-nss-files-alias-leak): Link with libdl.
7469 (tst-nss-files-alias-leak.out): Depend on nss_files.
7470
7471 * nss/tst-nss-files-alias-leak.c: New file.
7472
7473 2018-08-14 Florian Weimer <fweimer@redhat.com>
7474
7475 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
7476 server_user, stat_user.
7477
7478 2018-08-13 Joseph Myers <joseph@codesourcery.com>
7479
7480 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7481 version to 4.18.
7482 (io_pgetevents): New syscall.
7483 (rseq): Likewise.
7484
7485 * manual/install.texi (Configuring and compiling): Do not list
7486 tools used for testing pretty printers here.
7487 (Tools for Compilation): List Python, PExpect and GDB here.
7488 Update descriptions of uses of Perl and Python.
7489 * INSTALL: Regenerate.
7490
7491 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7492 version to 4.18.
7493
7494 2018-08-13 Florian Weimer <fweimer@redhat.com>
7495
7496 * misc/error.c (error): Add missing va_end call.
7497 (error_at_line): Likewise.
7498
7499 2018-08-13 Florian Weimer <fweimer@redhat.com>
7500
7501 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
7502
7503 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
7504
7505 * benchtests/scripts/benchout.schema.json (properties): Add
7506 new properties.
7507
7508 * benchtests/bench-skeleton.c (main): Add duration and
7509 iterations attributes.
7510
7511 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
7512
7513 regex: Gnulib unibyte RRI uses bytes not chars
7514 Adjust the non-glibc code to agree with what Gawk needs for
7515 rational range interpretation (RRI) for regular expression ranges.
7516 In unibyte locales, Gawk wants ranges to use the underlying byte
7517 rather than the character code point. This change does not affect
7518 glibc proper.
7519 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
7520 In unibyte locales, use the byte value rather than
7521 running it through btowc.
7522
7523 2018-08-10 Joseph Myers <joseph@codesourcery.com>
7524
7525 * sysdeps/generic/math-tests-snan.h: New file.
7526 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
7527 (SNAN_TESTS_float): Do not define here.
7528 (SNAN_TESTS_double): Likewise.
7529 (SNAN_TESTS_long_double): Likewise.
7530 (SNAN_TESTS_float128): Likewise.
7531 * sysdeps/i386/fpu/math-tests-snan.h: New file.
7532 * sysdeps/i386/fpu/math-tests.h: Remove file.
7533 * sysdeps/ia64/math-tests-snan.h: New file.
7534 * sysdeps/ia64/math-tests.h: Remove file.
7535 * sysdeps/x86/math-tests.h: Likewise.
7536 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
7537
7538 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7539 Szabolcs Nagy <szabolcs.nagy@arm.com>
7540
7541 * math/Makefile: Add s_sincosf_data.c.
7542 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
7543 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
7544 (sincosf_poly): Likewise.
7545 (reduce_small): Likewise.
7546 (reduce_large): Likewise.
7547 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
7548 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
7549 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
7550 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
7551
7552 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7553 Szabolcs Nagy <szabolcs.nagy@arm.com>
7554
7555 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
7556 (converttoint): Use lround.
7557 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
7558 document the semantics when TOINT_INTRINSICS is set.
7559 (converttoint): Likewise.
7560 (TOINT_RINT): Remove.
7561 (TOINT_SHIFT): Remove.
7562 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
7563 path.
7564
7565 2018-08-10 Florian Weimer <fweimer@redhat.com>
7566
7567 [BZ #23497]
7568 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
7569 function.
7570 (__old_getdents64): Use getdents64. Convert entries without
7571 moving them.
7572 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
7573 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
7574 tst-readdir64-compat.
7575
7576 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7577
7578 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
7579 Fix unwind.
7580
7581 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7582
7583 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
7584 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
7585 code to s390x-mcount.h and #include it.
7586 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
7587 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
7588 (__fentry__): Add.
7589
7590 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7591
7592 * stdlib/Versions: Remove __fentry__.
7593 * sysdeps/i386/Versions: Add __fentry__.
7594 * sysdeps/x86_64/Versions: Add __fentry__.
7595
7596 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7597
7598 * sysdeps/s390/Makefile: Register the new tests.
7599 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
7600 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
7601 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
7602 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
7603 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
7604 * sysdeps/s390/tst-dl-runtime.c: New file.
7605
7606 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7607
7608 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7609 Do not clobber R0.
7610
7611 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7612
7613 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7614 Do not clobber R0.
7615
7616 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7617
7618 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7619 Do not clobber R0.
7620
7621 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7622
7623 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7624 Do not clobber R0.
7625
7626 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7627
7628 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7629 Use symbolic offsets for stack variables.
7630
7631 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7632
7633 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7634 Use symbolic offsets for stack variables.
7635
7636 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7637
7638 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7639 Use symbolic offsets for stack variables.
7640
7641 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7642
7643 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7644 Use symbolic offsets for stack variables.
7645
7646 2018-08-09 Joseph Myers <joseph@codesourcery.com>
7647
7648 * math/gen-libm-test.py: New file.
7649 * math/gen-libm-test.pl: Remove.
7650 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
7651 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
7652 gen-libm-test.pl.
7653 ($(libm-test-c-noauto-obj)): Likewise.
7654 ($(libm-test-c-auto-obj)): Likewise.
7655 ($(libm-test-c-narrow-obj)): Likewise.
7656 (regen-ulps): Likewise.
7657 * math/README.libm-test: Update references to gen-libm-test.pl.
7658 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
7659 referencing gen-libm-test.pl.
7660 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
7661 * math/libm-test-support.c: Likewise.
7662 * math/libm-test-support.h: Likewise.
7663 * sysdeps/generic/libm-test-ulps: Likewise.
7664
7665 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
7666
7667 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
7668 Fix value.
7669
7670 2018-08-08 Joseph Myers <joseph@codesourcery.com>
7671
7672 * math/libm-test-nextdown.inc (do_test): Move comment to ....
7673 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
7674
7675 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
7676
7677 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
7678 symbols.
7679 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
7680 __pthread_setspecific): Add hidden proto.
7681 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
7682 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
7683
7684 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
7685
7686 * benchtests/bench-string.h (buf1_size, buf2_size): New
7687 variables.
7688 (init_sizes): New function.
7689 (test_init): Use it.
7690 (alloc_buf, exit_error): New functions.
7691 (alloc_bufs): Use ALLOC_BUF.
7692 (realloc_bufs): Remove.
7693 * benchtests/bench-memcmp.c (do_test): Adjust.
7694 * benchtests/bench-memset-large.c (do_test): Likewise.
7695 * benchtests/bench-memset-walk.c (do_test): Likewise.
7696 * benchtests/bench-memset.c (do_test): Likewise.
7697 * benchtests/bench-strncmp.c (do_test): Likewise.
7698
7699 2018-08-06 Andreas Schwab <schwab@suse.de>
7700
7701 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
7702 of CONST_THREAD_AREA.
7703
7704 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
7705
7706 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
7707 (STATE_SAVE_MASK): Likewise.
7708 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
7709 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
7710 (STATE_SAVE_MASK): Likewise.
7711 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
7712 instead of <cpu-features.h>.
7713
7714 2018-08-03 DJ Delorie <dj@redhat.com>
7715
7716 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
7717 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
7718
7719 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7720
7721 2018-08-03 Joseph Myers <joseph@codesourcery.com>
7722
7723 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
7724 after TEST_* calls.
7725 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
7726 * math/libm-test-logb.inc (logb_test_data): Likewise.
7727
7728 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
7729
7730 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
7731 * string/strstr.c (AVAILABLE): Likewise.
7732
7733 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7734
7735 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
7736 <init-arch.h>.
7737 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
7738 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
7739 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
7740
7741 2018-08-03 Carlos O'Donell <carlos@redhat.com>
7742
7743 * po/be.po: Update translation.
7744
7745 * po/be.po: Update translation.
7746
7747 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7748
7749 * sysdeps/x86/cpu-features-offsets.sym
7750 (rtld_global_ro_offsetof): Removed.
7751 (CPU_FEATURES_SIZE): Likewise.
7752 (CPUID_OFFSET): Likewise.
7753 (CPUID_SIZE): Likewise.
7754 (CPUID_EAX_OFFSET): Likewise.
7755 (CPUID_EBX_OFFSET): Likewise.
7756 (CPUID_ECX_OFFSET): Likewise.
7757 (CPUID_EDX_OFFSET): Likewise.
7758 (FAMILY_OFFSET): Likewise.
7759 (MODEL_OFFSET): Likewise.
7760 (FEATURE_OFFSET): Likewise.
7761 (FEATURE_SIZ): Likewise.
7762 (COMMON_CPUID_INDEX_1): Likewise.
7763 (COMMON_CPUID_INDEX_7): Likewise.
7764 (FEATURE_INDEX_1): Likewise.
7765 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
7766
7767 2018-08-02 Carlos O'Donell <carlos@redhat.com>
7768
7769 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
7770 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
7771 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
7772 (install-locales): Depend on install-locale-archive.
7773 (install-locale-archive): Define.
7774 (install-locale-files): Define.
7775 (build-one-locale): Define macro.
7776 * manual/install.texi (Running make install): Document.
7777 * manual/INSTALL: Regenerate.
7778
7779 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
7780
7781 * benchtests/scripts/compare_strings.py: Import traceback.
7782 (parse_file): Pretty-print error.
7783
7784 * NEWS: Mention the change.
7785 * elf/dl-tunables.list: Rename tune namespace to cpu.
7786 * sysdeps/powerpc/dl-tunables.list: Likewise.
7787 * sysdeps/x86/dl-tunables.list: Likewise.
7788 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
7789 cpu.name.
7790 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
7791 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
7792 * manual/README.tunables: Likewise.
7793 * manual/tunables.texi: Likewise.
7794 * sysdeps/powerpc/cpu-features.c: Likewise.
7795 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
7796 (init_cpu_features): Likewise.
7797 * sysdeps/x86/cpu-features.c: Likewise.
7798 * sysdeps/x86/cpu-features.h: Likewise.
7799 * sysdeps/x86/cpu-tunables.c: Likewise.
7800 * sysdeps/x86_64/Makefile: Likewise.
7801 * sysdeps/x86/dl-cet.c: Likewise.
7802
7803 2018-08-02 Joseph Myers <joseph@codesourcery.com>
7804
7805 [BZ #23479]
7806 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
7807 [__mips_hard_float].
7808 (FE_UNDERFLOW): Likewise.
7809 (FE_OVERFLOW): Likewise.
7810 (FE_DIVBYZERO): Likewise.
7811 (FE_INVALID): Likewise.
7812 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
7813 (FE_TOWARDZERO): Define only if [__mips_hard_float].
7814 (FE_UPWARD): Likewise.
7815 (FE_DOWNWARD): Likewise.
7816 (__FE_UNDEFINED): Define if [!__mips_hard_float]
7817 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
7818 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
7819 [__mips_hard_float].
7820 (FP_ROUNDMODE): Likewise.
7821 (FP_RND_NEAREST): Likewise.
7822 (FP_RND_ZERO): Likewise.
7823 (FP_RND_PINF): Likewise.
7824 (FP_RND_MINF): Likewise.
7825 (FP_EX_INVALID): Likewise.
7826 (FP_EX_OVERFLOW): Likewise.
7827 (FP_EX_UNDERFLOW): Likewise.
7828 (FP_EX_DIVZERO): Likewise.
7829 (FP_EX_INEXACT): Likewise.
7830 (FP_INIT_ROUNDMODE): Likewise.
7831 * sysdeps/mips/nofpu/fesetenv.c: New file.
7832 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
7833
7834 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7835
7836 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
7837 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
7838 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
7839 conditional on [FE_UPWARD].
7840
7841 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
7842
7843 regex: fix memory leak in Gnulib
7844 Problem and fix reported by Assaf Gordon in:
7845 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
7846 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
7847 range_ends members too, as they are defined in 'struct
7848 re_charset_t' even if not _LIBC. This affects only Gnulib.
7849
7850 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
7851
7852 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
7853 ...
7854 (get_common_indices): This.
7855 (init_cpu_features): Updated.
7856
7857 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7858
7859 * sysdeps/generic/math-tests-snan-payload.h: New file.
7860 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
7861 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
7862 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
7863 * sysdeps/generic/math-tests.h: Include
7864 <math-tests-snan-payload.h>.
7865 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7866 * sysdeps/hppa/math-tests.h: Remove file.
7867 * sysdeps/mips/math-tests.h [!__mips_nan2008]
7868 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7869 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
7870 Likewise.
7871
7872 * sysdeps/generic/math-tests-snan-cast.h: New file.
7873 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
7874 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
7875 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
7876 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
7877
7878 2018-08-01 Carlos O'Donel <carlos@redhat.com>
7879
7880 * version.h (RELEASE): Set to "development".
7881 (VERSION): Set to "2.28.9000".
7882 * NEWS (2.29): New section.
7883
7884 * version.h (RELEASE): Set to "stable".
7885 (VERSION): Set to "2.28".
7886 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
7887 * NEWS: Add the list of bugs fixed in 2.28.
7888
7889 * po/ca.po: Update to latest version.
7890 * po/cs.po: Likewise
7891 * po/da.po: Likewise
7892 * po/el.po: Likewise
7893 * po/eo.po: Likewise
7894 * po/es.po: Likewise
7895 * po/fi.po: Likewise
7896 * po/fr.po: Likewise
7897 * po/gl.po: Likewise
7898 * po/hu.po: Likewise
7899 * po/ia.po: Likewise
7900 * po/id.po: Likewise
7901 * po/it.po: Likewise
7902 * po/ja.po: Likewise
7903 * po/ko.po: Likewise
7904 * po/lt.po: Likewise
7905 * po/nb.po: Likewise
7906 * po/nl.po: Likewise
7907 * po/pt_BR.po: Likewise
7908 * po/ru.po: Likewise
7909 * po/rw.po: Likewise
7910 * po/sk.po: Likewise
7911 * po/sl.po: Likewise
7912 * po/tr.po: Likewise
7913 * po/zh_CN.po: Likewise
7914 * po/zh_TW.po: Likewise
7915
7916 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
7917
7918 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
7919 initialization...
7920 (init): ... before initializing libpthread.
7921
7922 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
7923 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
7924 (__mach_setup_tls): ... new function.
7925 (mach_setup_tls): New alias.
7926 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
7927 __mach_setup_thread.
7928 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
7929 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
7930 * mach/Versions [libc] (mach_setup_tls): Add symbol.
7931 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
7932
7933 2018-07-31 Carlos O'Donell <carlos@redhat.com>
7934
7935 * manual/install.texi: Update versions.
7936 * INSTALL: Regenerate.
7937
7938 * manual/contrib.texi (Contributors): Update contributions.
7939
7940 2018-07-31 Carlos O'Donell <carlos@redhat.com>
7941
7942 * po/be.po: Update translations.
7943
7944 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7945
7946 * sysdeps/sh/libm-test-ulps: Update.
7947
7948 2018-07-30 Carlos O'Donell <carlos@redhat.com>
7949
7950 * po/bg.po: Update translations.
7951 * po/de.po: Likewise.
7952 * po/hr.po: Likewise.
7953 * po/pt_BR.po: Likewise.
7954 * po/sv.po: Likewise.
7955 * po/vi.po: Likewise.
7956
7957 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
7958
7959 [BZ #23467]
7960 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
7961 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
7962 (CFLAGS-tst-cet-property-1.o): New.
7963 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
7964 ($(objpfx)tst-cet-property-2): Likewise.
7965 ($(objpfx)tst-cet-property-2.out): Likewise.
7966 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
7967 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
7968 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
7969 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
7970 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
7971
7972 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
7973
7974 [BZ #23458]
7975 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
7976
7977 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
7978
7979 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
7980 __sbrk): Do not set attribute_hidden.
7981 * sysdeps/mach/hurd/not-errno.h: New file.
7982 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
7983 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
7984
7985 2018-07-27 Carlos O'Donell <carlos@redhat.com>
7986
7987 * po/uk.po: Update translations.
7988 * po/cs.po: Likewise.
7989 * po/pl.po: Likewise.
7990
7991 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
7992
7993 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
7994 parse beyond the note end.
7995
7996 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7997
7998 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
7999 kernel does not support OFD locks.
8000 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8001
8002 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8003
8004 * sysdeps/mach/hurd/Versions (libc): Make __access and
8005 __access_noerrno external so they can override the ld symbols.
8006 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8007 __writev, __open64, __access_noerrno extern so they can be overrided.
8008 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8009 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8010
8011 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8012
8013 * po/libc.pot: Regenerate.
8014
8015 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8016
8017 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8018
8019 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8020
8021 [BZ #23459]
8022 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8023 function.
8024 (init_cpu_features): Call get_extended_indices for both Intel
8025 and AMD CPUs.
8026 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8027 Remove "for AMD" comment.
8028
8029 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8030
8031 [BZ # 23456]
8032 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8033 COMMON_CPUID_INDEX_80000001.
8034
8035 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8036
8037 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8038 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8039
8040 2018-07-26 Florian Weimer <fweimer@redhat.com>
8041
8042 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8043 aliases for symbols not in the implementation namespace.
8044
8045 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8046
8047 [BZ #23393]
8048 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8049 lowercase in LATIN script.
8050 * localedata/Makefile (test-input): Add en_US.UTF-8.
8051 * localedata/en_US.UTF-8.in: New file.
8052 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8053 and restore old tests.
8054 * posix/tst-regexloc.c (do_test): Add back range expression test.
8055
8056 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8057
8058 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8059
8060 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8061
8062 * nptl/threads.h: Move to ...
8063 * sysdeps/nptl/threads.h: ... here.
8064 * sysdeps/hurd/stdc-predef.h: New file.
8065
8066 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8067
8068 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8069 tst-cet-setcontext-1 if CET is enabled.
8070 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8071 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8072
8073 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8074
8075 * include/threads.h: Move to ...
8076 * sysdeps/nptl/threads.h: ... here.
8077 * sysdeps/htl/threads.h: New file.
8078 * conform/Makefile (linknamespace-libs-ISO11): Use
8079 static-thread-library instead of linking libpthread.
8080 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8081
8082 2018-07-25 Florian Weimer <fweimer@redhat.com>
8083
8084 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8085 nanoseconds into seconds.
8086 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8087 (do_test): Likewise.
8088 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8089 (do_test): Likewise. Avoid nanosecond overflow and spurious
8090 timeouts due to system load.
8091 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8092 (child_wait): Increment it.
8093 (do_test): Wait as long as necessary until all expected threads
8094 have arrived.
8095
8096 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8097 H.J. Lu <hongjiu.lu@intel.com>
8098
8099 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8100 __ssp.
8101 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8102 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8103 (__push___start_context): New.
8104 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8105 <asm/prctl.h>.
8106 (__getcontext): Record the current shadow stack base. Save the
8107 caller's shadow stack pointer and base.
8108 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8109 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8110 (__push___start_context): New prototype.
8111 (__makecontext): Call __push___start_context to allocate a new
8112 shadow stack, push __start_context onto the new stack as well
8113 as the new shadow stack.
8114 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8115 <asm/prctl.h>.
8116 (__setcontext): Restore the target shadow stack.
8117 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8118 <asm/prctl.h>.
8119 (__swapcontext): Record the current shadow stack base. Save
8120 the caller's shadow stack pointer and base. Restore the target
8121 shadow stack.
8122 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8123 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8124 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8125
8126 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8127
8128 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8129 tst-setcontext8 and tst-setcontext9.
8130 * stdlib/tst-setcontext6.c: New file.
8131 * stdlib/tst-setcontext7.c: Likewise.
8132 * stdlib/tst-setcontext8.c: Likewise.
8133 * stdlib/tst-setcontext9.c: Likewise.
8134
8135 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8136
8137 * stdlib/Makefile ((tests): Add tst-setcontext5.
8138 * stdlib/tst-setcontext5.c: New file.
8139
8140 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8141
8142 * stdlib/Makefile (tests): Add tst-setcontext4.
8143 * stdlib/tst-setcontext4.c: New file.
8144
8145 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8146
8147 * stdlib/Makefile (tests): Add tst-swapcontext1.
8148 * stdlib/tst-swapcontext1.c: New test.
8149
8150 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8151
8152 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8153 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8154 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8155 and tst-cet-legacy-4c.
8156 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8157 and tst-cet-legacy-mod-4.
8158 (CFLAGS-tst-cet-legacy-2.c): New.
8159 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8160 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8161 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8162 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8163 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8164 ($(objpfx)tst-cet-legacy-1): Likewise.
8165 ($(objpfx)tst-cet-legacy-2): Likewise.
8166 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8167 ($(objpfx)tst-cet-legacy-2a): Likewise.
8168 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8169 ($(objpfx)tst-cet-legacy-4): Likewise.
8170 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8171 ($(objpfx)tst-cet-legacy-4a): Likewise.
8172 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8173 (tst-cet-legacy-4a-ENV): Likewise.
8174 ($(objpfx)tst-cet-legacy-4b): Likewise.
8175 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8176 (tst-cet-legacy-4b-ENV): Likewise.
8177 ($(objpfx)tst-cet-legacy-4c): Likewise.
8178 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8179 (tst-cet-legacy-4c-ENV): Likewise.
8180 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8181 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8182 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8183 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8184 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8185 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8186 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8187 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8188 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8189 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8190 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8191
8192 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8193
8194 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8195 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8196 with ssp_base.
8197 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8198 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8199 with ssp_base.
8200
8201 2018-07-25 Andreas Schwab <schwab@suse.de>
8202
8203 [BZ #23442]
8204 * locale/weightwc.h (findidx): Handle the case where usrc is a
8205 prefix of cp but one character too short.
8206
8207 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8208
8209 * NEWS: Add ISO C threads addition.
8210
8211 2018-07-24 Florian Weimer <fweimer@redhat.com>
8212
8213 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8214 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8215 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8216 4.13.
8217
8218 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8219
8220 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8221 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8222 <sys/prctl.h> and <asm/prctl.h>.
8223 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8224 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8225 and <asm/prctl.h>.
8226 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8227 ARCH_CET_LEGACY_BITMAP.
8228 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8229 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8230 * sysdeps/x86/libc-start.c: Include <startup.h>.
8231
8232 2018-07-24 Florian Weimer <fweimer@redhat.com>
8233
8234 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8235 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8236
8237 2018-07-24 Rical Jasan <rj@2c3t.io>
8238 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8239 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8240
8241 [BZ #14092]
8242 * manual/debug.texi: Update adjacent chapter name.
8243 * manual/probes.texi: Likewise.
8244 * manual/threads.texi (ISO C Threads): New section.
8245 (POSIX Threads): Convert to a section.
8246
8247 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8248 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8249
8250 [BZ# 14092]
8251 * nptl/Makefile (tests): Add new test files.
8252 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8253 * nptl/tst-cnd-basic.c: Likewise.
8254 * nptl/tst-cnd-broadcast.c: Likewise.
8255 * nptl/tst-cnd-timedwait.c: Likewise.
8256 * nptl/tst-mtx-basic.c: Likewise.
8257 * nptl/tst-mtx-recursive.c: Likewise.
8258 * nptl/tst-mtx-timedlock.c: Likewise.
8259 * nptl/tst-mtx-trylock.c: Likewise.
8260 * nptl/tst-thrd-basic.c: Likewise.
8261 * nptl/tst-thrd-detach.c: Likewise.
8262 * nptl/tst-thrd-sleep.c: Likewise.
8263 * nptl/tst-tss-basic.c: Likewise.
8264
8265 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8266
8267 [BZ #14092]
8268 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8269 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8270 symbols.
8271 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8272 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8273 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8274 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8275 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8276 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8277 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8278 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8279 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8280 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8281 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8282 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8283 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8284 Likewise.
8285 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8286 Likewise.
8287 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8288 Likewise.
8289 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8290 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8291 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8292 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8293 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8294 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8295 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8296 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8297 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8298 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
8299 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
8300 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
8301 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
8302 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
8303 Likewise.
8304 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8305 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8306 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8307 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8308 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8309 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8310 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8311 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8312 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8313 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8314 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8315 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8316 ikewise.
8317 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8318 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8319 Likewise.
8320 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8321 Likewise.
8322 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8323 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8324 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8325 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8326 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8327 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8328 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8329 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8330
8331 [BZ #14092]
8332 * conform/data/threads.h-data (thread_local): New macro.
8333 (TSS_DTOR_ITERATIONS): Likewise.
8334 (tss_t): New type.
8335 (tss_dtor_t): Likewise.
8336 (tss_create): New function.
8337 (tss_get): Likewise.
8338 (tss_set): Likewise.
8339 (tss_delete): Likewise.
8340 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
8341 tss_get, and tss_set objects.
8342 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8343 * nptl/tss_create.c: New file.
8344 * nptl/tss_delete.c: Likewise.
8345 * nptl/tss_get.c: Likewise.
8346 * nptl/tss_set.c: Likewise.
8347 * sysdeps/nptl/threads.h (thread_local): New define.
8348 (TSS_DTOR_ITERATIONS): Likewise.
8349 (tss_t): New typedef.
8350 (tss_dtor_t): Likewise.
8351 (tss_create): New prototype.
8352 (tss_get): Likewise.
8353 (tss_set): Likewise.
8354 (tss_delete): Likewise.
8355
8356 [BZ #14092]
8357 * conform/data/threads.h-data (cnd_t): New type.
8358 (cnd_init): New function.
8359 (cnd_signal): Likewise.
8360 (cnd_broadcast): Likewise.
8361 (cnd_wait): Likewise.
8362 (cnd_timedwait): Likewise.
8363 (cnd_destroy): Likewise.
8364 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
8365 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
8366 object.
8367 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8368 * nptl/cnd_broadcast.c: New file.
8369 * nptl/cnd_destroy.c: Likewise.
8370 * nptl/cnd_init.c: Likewise.
8371 * nptl/cnd_signal.c: Likewise.
8372 * nptl/cnd_timedwait.c: Likewise.
8373 * nptl/cnd_wait.c: Likewise.
8374 * sysdeps/nptl/threads.h (cnd_t): New type.
8375 (cnd_init): New prototype.
8376 (cnd_signa): Likewise.
8377 (cnd_broadcast): Likewise.
8378 (cnd_wait): Likewise.
8379 (cnd_timedwait): Likewise.
8380 (cnd_destroy): Likewise.
8381
8382 [BZ #14092]
8383 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
8384 (once_flag): New type.
8385 (call_once): New function.
8386 * nptl/Makefile (libpthread-routines): Add call_once object.
8387 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
8388 * nptl/call_once.c: New file.
8389 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
8390 (once_flag): New type.
8391 (call_once): New prototype.
8392
8393 [BZ #14092]
8394 * conform/data/threads.h-data (mtx_plain): New constant.
8395 (mtx_recursive): Likewise.
8396 (mtx_timed): Likewise.
8397 (mtx_t): New type.
8398 (mtx_init): New function.
8399 (mtx_lock): Likewise.
8400 (mtx_timedlock): Likewise.
8401 (mtx_trylock): Likewise.
8402 (mtx_unlock): Likewise.
8403 (mtx_destroy): Likewise.
8404 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
8405 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
8406 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
8407 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
8408 * nptl/mtx_destroy.c: New file.
8409 * nptl/mtx_init.c: Likewise.
8410 * nptl/mtx_lock.c: Likewise.
8411 * nptl/mtx_timedlock.c: Likewise.
8412 * nptl/mtx_trylock.c: Likewise.
8413 * nptl/mtx_unlock.c: Likewise.
8414 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
8415 (mtx_recursive): Likewise.
8416 (mtx_timed): Likewise.
8417 (mtx_t): New type.
8418 (mtx_init): New prototype.
8419 (mtx_lock): Likewise.
8420 (mtx_timedlock): Likewise.
8421 (mtx_trylock): Likewise.
8422 (mtx_unlock): Likewise.
8423 (mtx_destroy): Likewise.
8424
8425 [BZ #14092]
8426 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
8427 (linknamespace-libs-ISO11): Add libpthread.a.
8428 * conform/data/threads.h-data: New file: add C11 thrd_* types and
8429 functions.
8430 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
8431 * nptl/Makefile (headers): Add threads.h.
8432 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
8433 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
8434 thrd_yield.
8435 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
8436 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
8437 thrd_join, thrd_sleep, and thrd_yield symbols.
8438 * nptl/descr.h (struct pthread): Add c11 field.
8439 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
8440 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
8441 routine with expected function prototype.
8442 (__pthread_create_2_1): Add C11 threads check based on attribute
8443 value.
8444 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
8445 * nptl/thrd_create.c: New file.
8446 * nptl/thrd_current.c: Likewise.
8447 * nptl/thrd_detach.c: Likewise.
8448 * nptl/thrd_equal.c: Likewise.
8449 * nptl/thrd_exit.c: Likewise.
8450 * nptl/thrd_join.c: Likewise.
8451 * nptl/thrd_priv.h: Likewise.
8452 * nptl/thrd_sleep.c: Likewise.
8453 * nptl/thrd_yield.c: Likewise.
8454 * include/threads.h: Likewise.
8455
8456 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8457
8458 * bits/indirect-return.h: New file.
8459 * misc/sys/cdefs.h (__glibc_has_attribute): New.
8460 * sysdeps/x86/bits/indirect-return.h: Likewise.
8461 * stdlib/Makefile (headers): Add bits/indirect-return.h.
8462 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
8463 (swapcontext): Add __INDIRECT_RETURN.
8464 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
8465 (prepare_test_buffer): Use it.
8466
8467 2018-07-24 Andreas Schwab <schwab@suse.de>
8468
8469 [BZ #23448]
8470 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
8471 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
8472
8473 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8474
8475 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
8476 Redefine if shadow stack is enabled.
8477 (SYSCALL_ERROR_LABEL): Likewise.
8478 (__vfork): Pop shadow stack and jump back to to caller directly
8479 when shadow stack is in use.
8480 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
8481 Redefine if shadow stack is enabled.
8482 (SYSCALL_ERROR_LABEL): Likewise.
8483 (__vfork): Pop shadow stack and jump back to to caller directly
8484 when shadow stack is in use.
8485
8486 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8487
8488 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
8489 enabled.
8490 (foo): Likewise.
8491 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
8492 (foo): Likewise.
8493
8494 2018-07-20 Joseph Myers <joseph@codesourcery.com>
8495
8496 * scripts/build-many-glibcs.py (Context.checkout): Default
8497 binutils version to 2.31 branch.
8498
8499 2018-07-20 Zong Li <zong@andestech.com>
8500
8501 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
8502 URL of gcc's tarball.
8503
8504 2018-07-20 Florian Weimer <fweimer@redhat.com>
8505
8506 [BZ #23396]
8507 * posix/regcomp.c (build_equiv_class): When comparing weights, do
8508 not compare an extra byte after the end of the weights.
8509
8510 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
8511
8512 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
8513 to 1.
8514 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
8515 hidden prototypes.
8516 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
8517 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
8518 * scripts/check-execstack.awk: Consider `xfail' variable containing a
8519 list of libraries whose stack executability is expected.
8520 * elf/Makefile ($(objpfx)check-execstack.out): Pass
8521 $(check-execstack-xfail) to check-execstack.awk through `xfail'
8522 variable.
8523 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
8524 libc.so libpthread.so.
8525
8526 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
8527
8528 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
8529 SOCK_NONBLOCK.
8530 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
8531 and SOCK_NONBLOCK.
8532 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
8533 implement __pipe2.
8534 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
8535
8536 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8537
8538 * benchtests/scripts/compare_bench.py (__main__): use the argparse
8539 library to improve command line parsing.
8540 (__main__): make schema file as optional parameter (--schema),
8541 defaulting to benchtests/scripts/benchout.schema.json.
8542 (main): move out of the parsing stuff to __main_  and leave it
8543 only as caller of main comparison functions.
8544
8545 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
8546
8547 * NEWS: Add a note for Intel CET status.
8548 * manual/install.texi: Likewise.
8549 * INSTALL: Regenerated.
8550
8551 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
8552
8553 [BZ #23140]
8554 * localedata/locales/oc_FR (mon): Rename to...
8555 (alt_mon): This, then update October (typo fix).
8556 (mon): New content (genitive case, month names preceded by
8557 "de" or "d’").
8558
8559 [BZ #23422]
8560 * localedata/locales/oc_FR (abday): Update all items.
8561 (day): Update Wednesday and Saturday (typo fixes).
8562 (abmon): Update all items, except May.
8563 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
8564 (LC_IDENTIFICATION): Bump the revision number and date.
8565 Keep the "category" entries in alphabetic order.
8566 (LC_ADDRESS): Remove no longer needed comment.
8567 (LC_COLLATE): Use “copy "ca_ES"”.
8568 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
8569 "name_mrs".
8570
8571 2018-07-18 Joseph Myers <joseph@codesourcery.com>
8572
8573 * grp/tst_fgetgrent.c: Include <unistd.h>.
8574 (main): Use mkstemp instead of tmpnam.
8575 * io/test-utime.c (main): Likewise.
8576 * posix/annexc.c (macrofile): Change to modifiable array.
8577 (main): Remove macrofile here.
8578 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8579 macrofile here.
8580 (check_header): Do not remove macrofile here.
8581 * posix/bug-getopt1.c: Include <stdlib.h>.
8582 (do_test): Use mkstemp instead of tmpnam.
8583 * posix/bug-getopt2.c: Include <stdlib.h>.
8584 (do_test): Use mkstemp instead of tmpnam.
8585 * posix/bug-getopt3.c: Include <stdlib.h>.
8586 (do_test): Use mkstemp instead of tmpnam.
8587 * posix/bug-getopt4.c: Include <stdlib.h>.
8588 (do_test): Use mkstemp instead of tmpnam.
8589 * posix/bug-getopt5.c: Include <stdlib.h>.
8590 (do_test): Use mkstemp instead of tmpnam.
8591 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
8592 (main): Use mkstemp instead of tmpnam.
8593 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
8594 (main): Use mkstemp instead of tmpnam.
8595 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
8596 (main): use mkstemp instead of tmpnam.
8597 * stdlib/isomac.c (macrofile): Change to modifiable array.
8598 (main): Remove macrofile here.
8599 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8600 macrofile here.
8601 (check_header): Do not remove macrofile here.
8602
8603 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8604
8605 * manual/tunables.texi: Document glibc.tune.x86_ibt and
8606 glibc.tune.x86_shstk.
8607
8608 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8609
8610 * NEWS: Mention --enable-cet.
8611 * manual/install.texi: Document --enable-cet.
8612 * INSTALL: Regenerated.
8613
8614 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8615
8616 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
8617 Add _CET_NOTRACK before indirect jump to jump table.
8618
8619 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8620
8621 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
8622 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8623 to jump table.
8624
8625 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8626
8627 * sysdeps/i386/i686/multiarch/strcat-sse2.S
8628 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8629 to jump table.
8630
8631 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8632
8633 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
8634 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8635 to jump table.
8636
8637 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8638
8639 * sysdeps/i386/i686/multiarch/memcpy-ssse3.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/memcpy-ssse3-rep.S
8646 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8647 to jump table.
8648 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
8649
8650 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8651
8652 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
8653 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8654 to jump table.
8655
8656 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8657
8658 * sysdeps/i386/i686/multiarch/memset-sse2.S
8659 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8660 to jump table.
8661
8662 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8663
8664 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
8665 indirect jump to jump table.
8666
8667 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8668
8669 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
8670 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8671 to jump table.
8672 (MEMCPY): Likewise.
8673
8674 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8675
8676 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
8677 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8678 to jump table.
8679 (MEMCPY): Likewise.
8680
8681 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8682
8683 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8684 _CET_NOTRACK before indirect jump to jump table.
8685
8686 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8687
8688 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
8689 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8690 to jump table.
8691
8692 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8693
8694 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
8695 indirect jump to jump table.
8696
8697 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
8698
8699 [BZ #22241]
8700 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
8701 (LOCALES): Likewise.
8702 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
8703 * localedata/locales/sah_RU: New file.
8704 * localedata/sah_RU.UTF-8.in: New file.
8705
8706 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8707
8708 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
8709 "sysdep.h".
8710 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8711 _CET_ENDBR to indirect jump targets and adjust jump destination
8712 for _CET_ENDBR.
8713 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
8714 "sysdep.h".
8715 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8716 _CET_ENDBR to indirect jump targets and adjust jump destination
8717 for _CET_ENDBR.
8718 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
8719 "sysdep.h".
8720 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
8721 _CET_ENDBR to indirect jump targets and adjust jump destination
8722 for _CET_ENDBR.
8723
8724 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8725
8726 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8727 _CET_ENDBR.
8728
8729 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8730
8731 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
8732 _CET_ENDBR.
8733 (_dl_tlsdesc_undefweak): Likewise.
8734 (_dl_tlsdesc_dynamic): Likewise.
8735 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
8736 (_dl_tlsdesc_resolve_rel): Likewise.
8737 (_dl_tlsdesc_resolve_rela): Likewise.
8738 (_dl_tlsdesc_resolve_hold): Likewise.
8739 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
8740 (_dl_tlsdesc_undefweak): Likewise.
8741 (_dl_tlsdesc_dynamic): Likewise.
8742 (_dl_tlsdesc_resolve_rela): Likewise.
8743 (_dl_tlsdesc_resolve_hold): Likewise.
8744
8745 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8746
8747 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
8748 (_fini): Likewise.
8749 * sysdeps/x86_64/crti.S (_init): Likewise.
8750 (_fini): Likewise.
8751
8752 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
8753
8754 [BZ #23140]
8755 * localedata/locales/os_RU (mon): Rename to...
8756 (alt_mon): This.
8757 (mon): Import from CLDR (genitive case).
8758
8759 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8760
8761 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
8762 cet-tunables.h> when CET is enabled.
8763
8764 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
8765
8766 [BZ #21598]
8767 * configure.ac: Add --enable-cet.
8768 * configure: Regenerated.
8769 * elf/Makefille (all-built-dso): Add a comment.
8770 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
8771 Include <dl-prop.h>.
8772 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
8773 segment.
8774 * elf/dl-open.c: Include <dl-prop.h>.
8775 (dl_open_worker): Call _dl_open_check.
8776 * elf/rtld.c: Include <dl-prop.h>.
8777 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
8778 _rtld_main_check.
8779 * sysdeps/generic/dl-prop.h: New file.
8780 * sysdeps/i386/dl-cet.c: Likewise.
8781 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
8782 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
8783 * sysdeps/x86/cet-tunables.h: Likewise.
8784 * sysdeps/x86/check-cet.awk: Likewise.
8785 * sysdeps/x86/configure: Likewise.
8786 * sysdeps/x86/configure.ac: Likewise.
8787 * sysdeps/x86/dl-cet.c: Likewise.
8788 * sysdeps/x86/dl-procruntime.c: Likewise.
8789 * sysdeps/x86/dl-prop.h: Likewise.
8790 * sysdeps/x86/libc-start.h: Likewise.
8791 * sysdeps/x86/link_map.h: Likewise.
8792 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
8793 _CET_ENDBR.
8794 (_dl_runtime_profile): Likewise.
8795 (_dl_runtime_resolve_shstk): New.
8796 (_dl_runtime_profile_shstk): Likewise.
8797 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
8798 if CET is enabled.
8799 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
8800 (CFLAGS-.os): Likewise.
8801 (CFLAGS-.op): Likewise.
8802 (CFLAGS-.oS): Likewise.
8803 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
8804 is enabled.
8805 (tests-special): Add $(objpfx)check-cet.out.
8806 (cet-built-dso): New.
8807 (+$(cet-built-dso:=.note)): Likewise.
8808 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
8809 ($(objpfx)check-cet.out): New.
8810 (generated): Add check-cet.out.
8811 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
8812 <cet-tunables.h>.
8813 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
8814 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8815 (init_cpu_features): Call get_cet_status to check CET status
8816 and update dl_x86_feature_1 with CET status. Call
8817 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
8818 (set_x86_shstk). Disable and lock CET in libc.a.
8819 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
8820 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
8821 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8822 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
8823 (_CET_ENDBR): Define if not defined.
8824 (ENTRY): Add _CET_ENDBR.
8825 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
8826 x86_shstk.
8827 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
8828 _CET_ENDBR.
8829 (_dl_runtime_profile): Likewise.
8830
8831 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
8832
8833 [BZ #21895]
8834 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
8835 restore r2 on longjmp.
8836 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
8837 test list.
8838 Added rules to build test tst-setjmp-bug21895-static.
8839 Added module setjmp-bug21895 and rules to build a shared object from it.
8840 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
8841 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
8842
8843 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
8844
8845 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
8846 * benchtests/bench-strstr.c: Likewise.
8847 * string/memmem.c (FASTSEARCH): Define.
8848 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
8849 Add support for FASTSEARCH.
8850 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
8851 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
8852 (FASTSEARCH): Define.
8853 * string/test-strcasestr.c: Rename __strnlen to strnlen.
8854 * string/test-strstr.c: Likewise.
8855
8856 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
8857
8858 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
8859 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
8860
8861 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
8862 H.J. Lu <hongjiu.lu@intel.com>
8863
8864 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
8865 (__longjmp): Restore shadow stack pointer if shadow stack is
8866 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8867 isn't defined for __longjmp_cancel.
8868 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
8869 (_setjmp): Save shadow stack pointer if shadow stack is enabled
8870 and SHADOW_STACK_POINTER_OFFSET is defined.
8871 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
8872 (setjmp): Save shadow stack pointer if shadow stack is enabled
8873 and SHADOW_STACK_POINTER_OFFSET is defined.
8874 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
8875 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8876 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8877 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
8878 <jmp_buf-ssp.h>.
8879 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8880 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8881 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
8882 Remove jmp_buf-ssp.sym.
8883 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8884 <jmp_buf-ssp.h>.
8885 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8886 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8887 * sysdeps/x86/Makefile (gen-as-const-headers): Add
8888 jmp_buf-ssp.sym.
8889 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
8890 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
8891 (__longjmp): Restore shadow stack pointer if shadow stack is
8892 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8893 isn't defined for __longjmp_cancel.
8894 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
8895 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8896 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8897
8898 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
8899
8900 [BZ #22563]
8901 * nptl/pthread_create.c: Include <tls-setup.h>.
8902 (__pthread_create_2_1): Call tls_setup_tcbhead.
8903 * sysdeps/generic/tls-setup.h: New file.
8904 * sysdeps/x86/nptl/tls-setup.h: Likewise.
8905 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
8906 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
8907 Likewise.
8908 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
8909 to feature_1.
8910 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
8911 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
8912 (X86_FEATURE_1_SHSTK): Likewise.
8913 (CET_ENABLED): Likewise.
8914 (IBT_ENABLED): Likewise.
8915 (SHSTK_ENABLED): Likewise.
8916
8917 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
8918
8919 [BZ #23208]
8920 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
8921 (LOCALES): Likewise.
8922 * localedata/dsb_DE.UTF-8.in: New file.
8923 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
8924
8925 2018-07-12 Florian Weimer <fweimer@redhat.com>
8926
8927 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
8928 __mprotect, not mprotect.
8929
8930 2018-07-11 Florian Weimer <fweimer@redhat.com>
8931
8932 * io/Makefile (headers): Add bits/statx.h.
8933
8934 2018-07-10 Mike FABIAN <mfabian@redhat.com>
8935
8936 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
8937 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
8938 and headers.
8939 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
8940 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
8941 for utf8_gen.py
8942
8943 2018-07-10 Florian Weimer <fweimer@redhat.com>
8944
8945 * io/Makefile (routines): Add statx.
8946 (tests-internal): Add tst-statx.
8947 * io/Versions (GLIBC_2.28): Export statx.
8948 * io/bits/statx.h: New file.
8949 * io/sys/stat.h [__USE_GNU]: Include it.
8950 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
8951 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
8952 Define.
8953 * io/statx.c: New file.
8954 * io/statx_generic.: Likewise.
8955 * io/tst-statx.: Likewise.
8956 * include/bits/statx.h: Likewise.
8957 * sysdeps/unix/sysv/linux/kernel-features.h
8958 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
8959 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8960 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
8961 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
8962 Undefine.
8963 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8964 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
8965 * sysdeps/unix/sysv/linux/statx.c: New file.
8966 * manual/filesys.texi: Note that statx is undocumented.
8967 * sysdeps/**/libc*.abilist: Update.
8968
8969 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8970
8971 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
8972 a kernel issue which lead to test failure in some cases.
8973
8974 2018-07-10 Florian Weimer <fweimer@redhat.com>
8975
8976 [BZ #23036]
8977 * posix/regexec.c (check_node_accept_bytes): When comparing
8978 weights, do not compare an extra byte after the end of the
8979 weights.
8980
8981 2018-07-10 Florian Weimer <fweimer@redhat.com>
8982
8983 * libio/readline.c: Fix copyright year.
8984 * libio/tst-readline.c Likewise.
8985 * nss/tst-nss-files-hosts-getent.c: Likewise.
8986
8987 2018-07-06 Florian Weimer <fweimer@redhat.com>
8988
8989 [BZ #18991]
8990 * nss/nss_files/files-XXX.c (internal_getent): Use
8991 __libc_readline_unlocked. Seek back to the start of the line if
8992 parsing failes with ERANGE.
8993 (get_contents_ret, get_contents): Remove.
8994 * nss/tst-nss-files-hosts-getent.c: New file.
8995 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
8996 (tst-nss-files-hosts-getent): Link with -ldl.
8997
8998 2018-07-06 Florian Weimer <fweimer@redhat.com>
8999
9000 * include/stdio.h (__libc_readline_unlocked): Declare.
9001 (__ftello64, __fseeko64): Declare aliases.
9002 * libio/readline.c: New file.
9003 * libio/tst-readline.c: Likewise.
9004 (routines): Add readline.
9005 (tests-internal): Add tst-readlime.
9006 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9007 __libc_readline_unlocked.
9008 * libio/fseeko.c (__fseeko): Rename from fseeko.
9009 (fseeko): Add alias.
9010 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9011 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9012 (fseeko64): Add alias.
9013 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9014 * libio/ftello64.c (__ftello64): Rename from ftello64.
9015 (ftello64): Add alias.
9016
9017 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9018
9019 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9020 HWCAP_ATOMICS.
9021
9022 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9023
9024 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9025 Use dl_hwcap without masking.
9026 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9027 Remove HWCAP_CPUID.
9028
9029 2018-07-06 Florian Weimer <fweimer@redhat.com>
9030
9031 * conform/conformtest.pl (checknamespace): Escape literal braces
9032 in regular expressions.
9033
9034 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9035
9036 * sysdeps/x86/cpu-features.c (get_common_indeces):
9037 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9038 * sysdeps/x86/cpu-features.c (init_cpu_features):
9039 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9040
9041 2018-07-05 Florian Weimer <fweimer@redhat.com>
9042
9043 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9044 protector.
9045 (CFLAGS-elf-init.oS): Likewise.
9046
9047 2018-07-05 Florian Weimer <fweimer@redhat.com>
9048 Carlos O'Donell <carlos@redhat.com>
9049
9050 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9051 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9052 with stack protector enabled because there is no risk of infinite
9053 recursion.
9054
9055 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9056
9057 [BZ #19818]
9058 [BZ #23307]
9059 * libc-abis (ABSOLUTE): New ABI.
9060 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9061 * NEWS: Mention the new ABI.
9062
9063 2018-07-05 Florian Weimer <fweimer@redhat.com>
9064
9065 [BZ # 17662]
9066 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9067 (RENAME_WHITEOUT): Define.
9068 [__USE_GNU] (renameat2): Declare.
9069 * stdio-common/Makefile (routines): Add renameat2.
9070 (tests): Add tst-renameat2.
9071 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9072 * stdio-common/renameat2.c: New file.
9073 * stdio-common/tst-renameat2.c: Likewise.
9074 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9075 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9076 undocumented.
9077 * sysdeps/unix/sysv/linux/kernel-features.h
9078 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9079 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9080 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9081 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9082 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9083 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9084 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9085 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9086 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9087 * include/stdio.h (__renameat): Add alias for renameat.
9088 * stdio-common/renameat.c (__renameat): Rename from renameat.
9089 Add hidden definition and alias.
9090 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9091 * sysdeps/mach/hurd/renameat.c: Likewise.
9092 * sysdeps/**/libc*.abilist: Add renameat2.
9093
9094 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9095
9096 * posix/bug-regex33.c: Fix build after regex sync.
9097
9098 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9099
9100 [BZ #23164]
9101 * localedata/tst-langinfo-setlocale.c: New file.
9102 * localedata/tst-langinfo-setlocale-static.c: New file.
9103 * localedata/tst-langinfo-newlocale.c: New file.
9104 * localedata/tst-langinfo-newlocale-static.c: New file.
9105 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9106 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9107 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9108 (tests-static): Remove tst-langinfo-static. Add
9109 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9110 (tests-special): Remove $(objpfx)tst-langinfo.out,
9111 $(objpfx)tst-langinfo-static.out. Add
9112 $(objpfx)tst-langinfo-setlocale.out,
9113 $(objpfx)tst-langinfo-newlocale.out,
9114 $(objpfx)tst-langinfo-setlocale-static.out,
9115 $(objpfx)tst-langinfo-newlocale-static.out.
9116 ($(objpfx)tst-langinfo.out): Remove.
9117 ($(objpfx)tst-langinfo-static.out): Remove.
9118 ($(objpfx)tst-langinfo-newlocale.out): New target.
9119 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9120 (test-xfail-tst-langinfo-newlocale-static): Add.
9121 ($(objpfx)tst-langinfo-setlocale.out): New target.
9122 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9123 * localedata/tst-langinfo.c: Call test_locale.
9124 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9125 data.
9126
9127 2018-07-04 Florian Weimer <fweimer@redhat.com>
9128
9129 testrun.sh: Implement --tool=strace, --tool=valgrind
9130 * Makefile (testrun-script): Define variable.
9131 (testrun.sh): Use variable.
9132 * manual/install.texi (Tools for Compilation): make 4.0 or later
9133 is required.
9134 * configure.ac: Check for make 4.0 or later.
9135 * INSTALL: Regenerate.
9136 * configure: Likewise.
9137
9138 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9139
9140 [BZ #23233]
9141 [BZ #21163]
9142 [BZ #18986]
9143 [BZ #13762]
9144 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9145 * posix/PCRE.tests: Remove invalid test.
9146 * posix/bug-regex28.c: Fix expected values for used syntax.
9147 * posix/bug-regex37.c: New file.
9148 * posix/bug-regex38.c: Likewise.
9149 * posix/regcomp.c: Sync with gnulib.
9150 * posix/regex.c: Likewise.
9151 * posix/regex.h: Likewise.
9152 * posix/regex_internal.c: Likewise.
9153 * posix/regex_internal.h: Likewise.
9154 * posix/regexec.c: Likewise.
9155
9156 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9157
9158 [BZ #23308]
9159 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9160 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9161 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9162 * localedata/unicode-gen/PropList.txt: likewise.
9163 * localedata/unicode-gen/UnicodeData.txt: likewise.
9164 * localedata/charmaps/UTF-8: Regenerate.
9165 * localedata/locales/i18n_ctype: likewise.
9166 * localedata/locales/tr_TR: likewise.
9167 * localedata/locales/translit_circle: likewise.
9168 * localedata/locales/translit_cjk_compat: likewise.
9169 * localedata/locales/translit_combining: likewise.
9170 * localedata/locales/translit_compat: likewise.
9171 * localedata/locales/translit_font: likewise.
9172 * localedata/locales/translit_fraction: likewise.
9173
9174 2018-07-03 Florian Weimer <fweimer@redhat.com>
9175
9176 [BZ #23363]
9177 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9178 * stdio-common/tst-printf.sh: Adjust expected output.
9179 * LICENSES: Update.
9180
9181 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9182
9183 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9184 symbol.
9185
9186 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9187
9188 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9189 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9190 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9191 * stdio-common/tst-printfsz-islongdouble.c: New file.
9192 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9193 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9194 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9195 [subdir == stdio-common] (tests-internal): Add
9196 test-printf-size-ieee128, and test-printf-size-ibm128.
9197 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9198 (CFLAGS-test-printf-size-ibm128.c): New variables.
9199 [subdir == stdio-common] (tests-special): Add
9200 $(objpfx)test-printf-size-ieee128.out and
9201 $(objpfx)test-printf-size-ibm128.out.
9202 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9203 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9204 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9205 __printf_sizeieee128.
9206 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9207 New file.
9208 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9209 Likewise.
9210 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9211 Likewise.
9212
9213 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9214
9215 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9216 (exp2f_inline): Likewise.
9217 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9218 (__math_uflowf): Likewise.
9219 (__math_may_uflowf): Likewise.
9220 (__math_divzerof): Likewise.
9221 (__math_invalidf): Likewise.
9222 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9223 (__math_oflowf): Likewise.
9224 (__math_uflowf): Likewise.
9225 (__math_may_uflowf): Likewise.
9226 (__math_divzerof): Likewise.
9227 (__math_invalidf): Likewise.
9228
9229 2018-06-29 DJ Delorie <dj@redhat.com>
9230 Carlos O'Donell <carlos@redhat.com>
9231
9232 [BZ #23329]
9233 * include/libc-symbols.h: Comment the freeres framework.
9234 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9235 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9236 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9237 * dlfcn/dlerror.c: Include libc-symbols.h
9238 (__dlerror_main_freeres): New function.
9239 * dlfcn/dlfreeres.c: New file.
9240 * dlfcn/sdlfreeres.c: New file.
9241 * include/dlfcn.h: Declare __dlerror_main_freeres.
9242 * malloc/set-freeres.c: Declare __libdl_freeres, and
9243 __libpthread_freeres.
9244 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9245 the releavant libraries are loaded.
9246 * malloc/thread-freeres.c: Add comments.
9247 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9248 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9249 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9250 (__free_stacks): Rename to...
9251 (free_stacks): ...this. Mark static.
9252 (queue_stack): Call free_stacks.
9253 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9254 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9255 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9256 ptr_freeres element from struct.
9257 (pthread_functions): Remove .ptr_freeres from struct initializer.
9258 [SHARED] (nptl_freeres): Remove.
9259 * nptl/nptlfreeres.c: New file.
9260 * nptl/pthreadP.h
9261 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9262 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9263 attribute_hidden.
9264 (__free_stacks): Rename to...
9265 (__nptl_stacks_freeres): ...this.
9266 (__shm_directory_freeres): Declare.
9267 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9268 (__nptl_unwind_freeres): ...this.
9269 * resolv/res-close.c: Add comment.
9270 * resolv/resolv_conf.c: Include libc-symbols.h.
9271 * string/strerror_l.c: Include libc-symbols.h.
9272 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9273 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9274 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9275 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9276
9277 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9278
9279 * stdlib/tst-strfmon_l.c: Add tests for long double.
9280
9281 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9282
9283 [BZ #23208]
9284 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9285 * localedata/locales/dsb_DE: New file.
9286
9287 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9288
9289 [BZ #23140]
9290 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9291 genitive case).
9292 (alt_mon): New entry, import from CLDR (nominative case).
9293
9294 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9295
9296 [BZ #22996]
9297 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
9298
9299 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
9300
9301 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
9302 Use vector registers.
9303
9304 * sysdeps/aarch64/multiarch/memmove_falkor.S
9305 (__memcpy_falkor): Use vector registers.
9306
9307 2018-06-29 Martin Sebor <msebor@redhat.com>
9308
9309 * manual/stdio.texi (Customizing Printf): Mention interaction
9310 with GCC built-ins.
9311
9312 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9313
9314 [BZ #23307]
9315 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9316 `st_value' is 0 if `st_shndx' is SHN_ABS.
9317 * elf/tst-absolute-zero.c: New file.
9318 * elf/tst-absolute-zero-lib.c: New file.
9319 * elf/tst-absolute-zero-lib.lds: New file.
9320 * elf/Makefile (tests): Add `tst-absolute-zero'.
9321 (modules-names): Add `tst-absolute-zero-lib'.
9322 (LDLIBS-tst-absolute-zero-lib.so): New variable.
9323 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
9324 ($(objpfx)tst-absolute-zero: New dependency.
9325
9326 2018-06-29 Zack Weinberg <zackw@panix.com>
9327
9328 * configure.ac: New command-line option --disable-crypt.
9329 Force --disable-nss-crypt when --disable-crypt is given, with a
9330 warning if it was explicitly enabled.
9331 * configure: Regenerate.
9332 * config.make.in: New boolean substitution variable $(build-crypt).
9333 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
9334 when $(build-crypt).
9335 * manual/install.texi: Document --disable-crypt.
9336 * INSTALL: Regenerate.
9337
9338 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
9339 which is never set.
9340 * conform/Makefile: Only include libcrypt.a in
9341 linknamespace-libs-xsi and linknamespace-libs-XPG4
9342 when $(build-crypt).
9343 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
9344 USE_CRYPT to 1 when $(build-crypt).
9345 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
9346 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
9347 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
9348
9349 2018-06-29 Zack Weinberg <zackw@panix.com>
9350
9351 * crypt/crypt.h, posix/unistd.h: Update comments and
9352 prototypes for crypt and crypt_r.
9353
9354 * manual/crypt.texi (Cryptographic Functions): New initial
9355 exposition.
9356 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
9357 (Unpredictable Bytes): Improve initial exposition. Clarify error
9358 behavior of getentropy and getrandom.
9359 * manual/examples/genpass.c: Generate a salt using getentropy
9360 instead of the current time. Use hash $5$ (SHA-2-256).
9361 * manual/examples/testpass.c: Demonstrate validation against
9362 hashes generated with three different one-way functions.
9363
9364 * manual/intro.texi: crypt.texi does not need an overview
9365 anymore.
9366
9367 * manual/nss.texi, manual/memory.texi, manual/socket.texi
9368 * manual/terminal.texi: Consistently refer to "passphrases"
9369 * instead of "passwords", and to the "user database" instead
9370 * of the "password database".
9371 * manual/users.texi: Similarly. Add notes about how actual
9372 passphrase hashes are now stored in the shadow database.
9373 Remove 20-year-old junk todo note.
9374
9375 2018-06-29 Zack Weinberg <zackw@panix.com>
9376
9377 * manual/crypt.texi: Use a normal top-level @node declaration.
9378 Move most of the introductory text to the 'crypt' section.
9379 Move the example programs below the @deftypefun for 'crypt_r'.
9380 Move the 'getpass' section...
9381 * manual/terminal.texi: ...here.
9382
9383 2018-06-29 Zack Weinberg <zackw@panix.com>
9384 Florian Weimer <fweimer@redhat.com>
9385
9386 * posix/unistd.h: Do not declare encrypt.
9387 (_XOPEN_CRYPT): Remove macro definition.
9388 (crypt): Declare only for _USE_MISC.
9389 * stdlib/stdlib.h: Do not declare setkey.
9390 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
9391 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
9392
9393 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
9394 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
9395 into compat symbols. Don't define initial_perm if it's not
9396 going to be used.
9397 * crypt/cert.c: Link explicitly with the expected versions for
9398 setkey and encrypt. If they are not available at all, mark
9399 the test as unsupported.
9400
9401 * sunrpc/des_crypt.c: Unconditionally block linkage with
9402 cbc_crypt and ecb_crypt for new binaries.
9403 * sunrpc/des_soft.c: Unconditionally block linkage with
9404 des_setparity for new binaries.
9405
9406 * manual/crypt.texi: Remove the entire "DES Encryption"
9407 section. Also remove the paragraph talking about FIPS 140-2
9408 from the introduction.
9409 * manual/string.texi (strfry, memfrob): Revise. Recommend use
9410 of libgcrypt for "real" encryption, not DES.
9411 * manual/conf.texi (Constants for Sysconf): Mention that
9412 _XOPEN_CRYPT is no longer impelemented.
9413
9414 * conform/data/unistd.h-data: Remove crypt function declaration.
9415
9416 2018-06-29 Florian Weimer <fweimer@redhat.com>
9417
9418 [BZ #23351]
9419 * malloc/hooks.c: Update comments on restoring of dumped heaps.
9420 (disallow_malloc_check): Remove variable.
9421 (__malloc_check_init): Adjust.
9422 (malloc_set_state): Update comment.
9423 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
9424 declarations.
9425
9426 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9427
9428 [BZ #23140]
9429 * localedata/locales/ast_ES (mon): Rename to...
9430 (alt_mon): This.
9431 (mon): Import from CLDR (genitive case).
9432
9433 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
9434 Jakub Sitnicki <jkbs@redhat.com>
9435
9436 [BZ #21812]
9437 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
9438 on NLM_F_DUMP_INTR.
9439
9440 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
9441
9442 * manual/llio.texi: Remove spurious space.
9443
9444 2018-06-28 Florian Weimer <fweimer@redhat.com>
9445
9446 [BZ #23349]
9447 * time/bits/types/struct_timespec.h: Change header inclusion guard to
9448 _STRUCT_TIMESPEC.
9449
9450 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9451
9452 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
9453 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
9454 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
9455 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
9456 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
9457 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
9458 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
9459
9460 2018-06-27 Maciej W. Rozycki <macro@mips.com>
9461
9462 [BZ #23266]
9463 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
9464 Copy and null-terminate entries that are not terminated, in
9465 addition to empty ones.
9466
9467 2018-06-27 Florian Weimer <fweimer@redhat.com>
9468
9469 [BZ #18023]
9470 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
9471 (extend_alloca_account): Remove.
9472 * manual/stdio.texi (Variable Arguments Output): Update comment.
9473
9474 2018-06-27 Joseph Myers <joseph@codesourcery.com>
9475
9476 * nptl/sockperf.c: Remove file.
9477
9478 2018-06-27 Florian Weimer <fweimer@redhat.com>
9479
9480 [BZ #18023]
9481 * elf/dl-deps.c (_dl_map_object_deps): Use struct
9482 scratch_buffer instead of extend_alloca.
9483
9484 2018-06-27 Florian Weimer <fweimer@redhat.com>
9485
9486 [BZ #18023]
9487 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
9488 scratch_buffer instead of extend_alloca. Update comments.
9489
9490 2018-06-27 Florian Weimer <fweimer@redhat.com>
9491
9492 [BZ #18023]
9493 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
9494 instead of extend_alloca.
9495
9496 2018-06-26 Joseph Myers <joseph@codesourcery.com>
9497
9498 [BZ #13888]
9499 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
9500 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
9501 /tmp.
9502 * scripts/test-installation.pl: Put temporary files in build
9503 directory, not /tmp.
9504 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
9505 (CFLAGS-bug4.c): Likewise.
9506 (CFLAGS-bug5.c): Likewise.
9507 (CFLAGS-test-fseek.c): Likewise.
9508 (CFLAGS-test-popen.c): Likewise.
9509 (CFLAGS-test_rdwr.c): Likewise.
9510 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
9511 /tmp.
9512 * stdio-common/bug4.c (main): Likewise.
9513 * stdio-common/bug5.c (main): Likewise.
9514 * stdio-common/test-fseek.c (TESTFILE): Likewise.
9515 * stdio-common/test-popen.c (do_test): Likewise.
9516 * stdio-common/test_rdwr.c (main): Likewise.
9517
9518 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
9519
9520 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
9521 (sem_open): Set sem.newsem.pad to zero for valgrind.
9522
9523 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9524
9525 [BZ #20251]
9526 * NEWS: Mention fcntl64 addition.
9527 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
9528 * login/utmp_file.c: Likewise.
9529 * sysdeps/posix/fdopendir.c: Likewise.
9530 * sysdeps/posix/opendir.c: Likewise.
9531 * sysdeps/unix/pt-fcntl.c: Likewise.
9532 * include/fcntl.h (__libc_fcntl64, __fcntl64,
9533 __fcntl64_nocancel_adjusted): New prototype.
9534 (__fcntl_nocancel_adjusted): Remove prototype.
9535 * io/Makefile (routines): Add fcntl64.
9536 (CFLAGS-fcntl64.c): New rule.
9537 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
9538 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
9539 * io/fcntl.h (fcntl64): Add prototype and redirect if
9540 __USE_FILE_OFFSET64 is defined.
9541 * io/fcntl64.c: New file.
9542 * manual/llio.text: Add a note for which commands fcntl acts a
9543 cancellation point.
9544 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
9545 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
9546 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
9547 New symbols.
9548 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
9549 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
9550 non-LFS case.
9551 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
9552 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
9553 to __fcntl64_nocancel.
9554 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
9555 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
9556 to __fcntl64_nocancel.
9557 * sysdeps/generic/not-cancel.h: Likewise.
9558 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
9559 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
9560 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9561 (fcntl64): New symbol.
9562 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9563 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9564 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9565 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9566 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9567 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9568 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9569 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9570 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9571 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9572 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
9573 fcntl64): Likewise.
9574 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9575 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
9576 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9577 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9578 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9579 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9580 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9581 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9582 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9583 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9584 Likewise.
9585 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9586 Likewise.
9587 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9588 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9589 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9590
9591 2018-06-26 Florian Weimer <fweimer@redhat.com>
9592
9593 Run thread shutdown functions in an explicit order.
9594 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
9595 definition.
9596 (__libc_thread_freeres): Call thread shutdown functions
9597 explicitly.
9598 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
9599 * include/string.h (__strerror_thread_freeres): Declare.
9600 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
9601 arena_thread_freeres. No longer static. Remove thread shutdown
9602 hook registration.
9603 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
9604 Declare.
9605 * resolv/res-close.c (__res_thread_freeres): Renamed from
9606 res_thread_freeres. No longer static. Remove thread shutdown
9607 hook registration.
9608 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
9609 * resolv/resolv_conf.c (freeres): Remove incorrect section
9610 attribute and use libc_freeres_fn.
9611 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
9612 strerror_thread_freeres. No longer static. Remove thread
9613 shutdown hook registration.
9614 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
9615 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
9616 shutdown hook registration.
9617 * Makerules (shlib.lds): Do not provide section boundary symbols
9618 for __libc_thread_subfreeres.
9619 * manual/memory.texi (Basic Allocation): Update comment.
9620
9621 2018-06-26 Florian Weimer <fweimer@redhat.com>
9622
9623 Remove always-defined _RPC_THREAD_SAFE_ macro.
9624 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
9625 Do not define _RPC_THREAD_SAFE_.
9626 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
9627 conditional.
9628 * sunrpc/clnt_perr.c: Likewise.
9629 * sunrpc/clnt_raw.c: Likewise.
9630 * sunrpc/clnt_simp.c: Likewise.
9631 * sunrpc/key_call.c: Likewise.
9632 * sunrpc/rpc_common.c: Likewise.
9633 * sunrpc/rpc_main.c: Likewise.
9634 * sunrpc/rpc_thread.c: Likewise.
9635 * sunrpc/svc.c: Likewise.
9636 * sunrpc/svc_raw.c: Likewise.
9637 * sunrpc/svc_simple.c: Likewise.
9638 * sumrpc/svcauth_des.c: Likewise.
9639
9640 2018-06-26 Florian Weimer <fweimer@redhat.com>
9641
9642 * libio/Makefile (tests-internal): Add tst-vtables,
9643 tst-vtables-interposed.
9644 * libio/tst-vtables.c: New file.
9645 * libio/tst-vtables-common.c: Likewise.
9646 * libio/tst-vtables-interposed.c: Likewise.
9647
9648 2018-06-26 Florian Weimer <fweimer@redhat.com>
9649
9650 * support/support_test_main.c (support_test_main): Only call
9651 setvbuf if not disables.
9652 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
9653 * support/test-driver.h (struct test_config): Add no_setvbuf member.
9654
9655 2018-06-26 Florian Weimer <fweimer@redhat.com>
9656
9657 [BZ #23313]
9658 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
9659
9660 2018-06-25 Florian Weimer <fweimer@redhat.com>
9661
9662 [BZ #18023]
9663 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
9664 Use struct scratch_buffer instead of extend_alloca.
9665
9666 2018-06-25 Florian Weimer <fweimer@redhat.com>
9667
9668 [BZ #18023]
9669 * nss/getent.c (initgroups_keys): Use dynarray instead of
9670 extend_alloca.
9671
9672 2018-06-25 Florian Weimer <fweimer@redhat.com>
9673
9674 [BZ #18023]
9675 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
9676 Use struct scratch_buffer instead of extend_alloca.
9677
9678 2018-06-25 Florian Weimer <fweimer@redhat.com>
9679
9680 [BZ #18023]
9681 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
9682 back to malloc directly, without stack allocations.
9683
9684 2018-06-25 Florian Weimer <fweimer@redhat.com>
9685
9686 [BZ #18023]
9687 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
9688 of extend_alloca.
9689
9690 2018-06-25 Florian Weimer <fweimer@redhat.com>
9691
9692 [BZ #18023]
9693 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
9694 of extend_alloca.
9695 * nscd/hstcache.c (addhstbyX): Likewise.
9696 * nscd/pwdcache.c (addpwbyX): Likewise.
9697 * nscd/servicescache.c (addservbyX): Likewise.
9698
9699 2018-06-25 Florian Weimer <fweimer@redhat.com>
9700
9701 [BZ #18023]
9702 * nscd/connections.c (read_cmdline): New function.
9703 (restart): Use it. Update comment.
9704
9705 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9706
9707 [BZ #23140]
9708 * localedata/locales/csb_PL (mon): Rename to...
9709 (alt_mon): This.
9710 (abmon): Rename to...
9711 (ab_alt_mon): This.
9712 (mon): Add with proper genitive forms, copy from Wikipedia.
9713 (abmon): Likewise.
9714
9715 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9716
9717 [BZ #19485]
9718 * localedata/locales/csb_PL (mon): Fix typos:
9719 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
9720 (yesstr): Add, value is "jo".
9721 (nostr): Add, value is "nié".
9722
9723 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9724
9725 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
9726 all log1p and significand functions on m680x0.
9727 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
9728 of s_significand.c..
9729 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
9730 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
9731 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
9732 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
9733 s_log1p.c and include it..
9734
9735 2018-06-21 Vincent Chen <vincentc@andestech.com>
9736
9737 * elf/elf.h (R_NDS32_NONE): New define.
9738 (R_NDS32_32_RELA): Likewise.
9739 (R_NDS32_COPY): Likewise.
9740 (R_NDS32_GLOB_DAT): Likewise.
9741 (R_NDS32_JUMP_SLOT): Likewise.
9742 (R_NDS32_RELATIVE): Likewise.
9743 (R_NDS32_TLS_TPOFF): Likewise.
9744 (R_NDS32_TLS_DESC): Likewise.
9745
9746 2018-06-21 Mark Wielaard <mark@klomp.org>
9747
9748 * elf/elf.h (R_BPF_MAP_FD): Removed.
9749 (R_BPF_64_64, R_BPF_64_32): New.
9750
9751 2018-06-21 Florian Weimer <fweimer@redhat.com>
9752
9753 [BZ #23253]
9754 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
9755 Renamed from libc_feholdsetround_ctx.
9756 (default_libc_feresetround_ctx): Renamed from
9757 libc_feresetround_ctx.
9758 (default_libc_feholdsetround_noex_ctx): Renamed from
9759 libc_feholdsetround_noex_ctx.
9760 (default_libc_feresetround_noex_ctx): Renamed from
9761 libc_feresetround_noex_ctx.
9762 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
9763 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
9764 forwardning to the old implementations under the new names.
9765 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
9766 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
9767 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
9768 (libc_feresetround_ctx): Forward to default implements for i386
9769 and MATH_SET_BOTH_ROUNDING_MODES.
9770 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
9771 Add -DMATH_SET_BOTH_ROUNDING_MODES.
9772
9773 2018-06-20 Joseph Myers <joseph@codesourcery.com>
9774
9775 * string/tst-cmp.c: Include <libc-diag.h>.
9776 (strncmp_max): Disable -Wstringop-overflow= around call to
9777 strncmp.
9778 (strncasecmp_max): Disable -Wstringop-overflow= around call to
9779 strncasecmp.
9780
9781 * string/bug-strpbrk1.c: Include <libc-diag.h>.
9782 (main): Disable -Wunused-value around call to strpbrk.
9783 * string/bug-strspn1.c: Include <libc-diag.h>.
9784 (main): Disable -Wunused-value around call to strspn.
9785
9786 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9787 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9788
9789 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
9790 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
9791
9792 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9793
9794 * math/Makefile (libm-calls): Move s_significandF to...
9795 (gen-libm-calls): ... here.
9796 * math/s_significand_template.c: New file.
9797 * math/s_significand.c: Removed.
9798 * math/s_significandf.c: Removed.
9799 * math/s_significandl.c: Removed.
9800 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
9801 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
9802
9803 * math/e_exp2_template.c (declare_mgen_finite_alias,
9804 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
9805 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
9806 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
9807
9808 2018-06-20 Florian Weimer <fweimer@redhat.com>
9809
9810 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
9811
9812 2018-06-19 Joseph Myers <joseph@codesourcery.com>
9813
9814 [BZ #23280]
9815 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
9816 floating-point number to strtod functions rather than possibly
9817 negating result of those functions.
9818 * stdio-common/tst-scanf-round.c: New file.
9819 * stdio-common/Makefile (tests): Add tst-scanf-round.
9820 ($(objpfx)tst-scanf-round): Depend on $(libm).
9821
9822 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
9823
9824 * sysdeps/mach/hurd/localplt.data: Move to...
9825 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
9826 R_386_GLOB_DAT like on Linux i386.
9827
9828 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9829
9830 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
9831 (SHM_STAT_ANY): New macro.
9832 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
9833 (SHM_STAT_ANY): Likewise.
9834 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
9835 (SHM_STAT_ANY): Likewise.
9836 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
9837 (SHM_STAT_ANY): Likewise.
9838 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
9839 (SHM_STAT_ANY): Likewise.
9840 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
9841 (SHM_STAT_ANY): Likewise.
9842 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
9843 (SHM_STAT_ANY): Likewise.
9844 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
9845 (SHM_STAT_ANY): Likewise.
9846 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
9847 (SHM_STAT_ANY): Likewise.
9848 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
9849 (SHM_STAT_ANY): Likewise.
9850 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
9851 (SHM_STAT_ANY): Likewise.
9852 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
9853 (SHM_STAT_ANY): Likewise.
9854
9855 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
9856 (SEM_STAT_ANY): New macro.
9857 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
9858 (SEM_STAT_ANY): Likewise.
9859 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
9860 (SEM_STAT_ANY): Likewise.
9861 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
9862 (SEM_STAT_ANY): Likewise.
9863 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
9864 (SEM_STAT_ANY): Likewise.
9865 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
9866 (SEM_STAT_ANY): Likewise.
9867 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
9868 (SEM_STAT_ANY): Likewise.
9869 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
9870 (SEM_STAT_ANY): Likewise.
9871 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
9872 (SEM_STAT_ANY): Likewise.
9873 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
9874 (SEM_STAT_ANY): Likewise.
9875
9876 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
9877 (MSG_STAT_ANY): New macro.
9878 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
9879 (MSG_STAT_ANY): Likewise.
9880 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
9881 (MSG_STAT_ANY): Likewise.
9882 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
9883 (MSG_STAT_ANY): Likewise.
9884 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
9885 (MSG_STAT_ANY): Likewise.
9886 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
9887 (MSG_STAT_ANY): Likewise.
9888 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
9889 (MSG_STAT_ANY): Likewise.
9890 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
9891 (MSG_STAT_ANY): Likewise.
9892 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
9893 (MSG_STAT_ANY): Likewise.
9894 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
9895 (MSG_STAT_ANY): Likewise.
9896
9897 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
9898 (MAP_TYPE): Change value to 0x2b.
9899
9900 2018-06-18 Florian Weimer <fweimer@redhat.com>
9901
9902 [BZ #15722]
9903 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
9904 socket with SOCK_CLOEXEC.
9905
9906 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9907
9908 [BZ #23303]
9909 * sysdeps/powerpc/powerpc64/le/Makefile
9910 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
9911 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
9912 (gnulib-tests): Also add $(f128-loader-link) for
9913 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
9914
9915 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
9916
9917 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
9918 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
9919 of sendfile.
9920 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
9921 (sendfile64): New strong alias.
9922 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
9923 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
9924 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
9925 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
9926 attribute.
9927 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
9928 ___pthread_get_cleanup_stack.
9929 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
9930 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
9931 * mach/shortcut.awk: Make syscall stubs include
9932 <mach-shortcuts-hidden.h> and add hidden definition.
9933 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
9934 (__mach_msg): Add hidden prototype.
9935 * mach/msg.c: Include <mach.h>.
9936 (__mach_msg): Add hidden definition.
9937 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
9938 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
9939 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
9940 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
9941 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
9942 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
9943 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
9944 prototype and definition.
9945 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
9946 hidden target for _hurd_self_sigstate.
9947
9948 2018-06-15 Joseph Myers <joseph@codesourcery.com>
9949
9950 [BZ #23007]
9951 * stdlib/tst-strtod-nan-sign-main.c: New file.
9952 * stdlib/tst-strtod-nan-sign.c: Likewise.
9953 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
9954 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
9955 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
9956 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
9957 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
9958
9959 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
9960
9961 [BZ #23007]
9962 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
9963 appropriate sign.
9964
9965 2018-06-14 Florian Weimer <fweimer@redhat.com>
9966
9967 [BZ #23290]
9968 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
9969 that the result stays within the ISO-8859-1 range.
9970 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
9971 characters are defined in IBM273.
9972
9973 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
9974
9975 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
9976 __mach_task_self): Remove attribute_hidden.
9977
9978 2018-06-14 Joseph Myers <joseph@codesourcery.com>
9979
9980 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
9981 ignore -Wrestrict for one test.
9982
9983 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
9984 Szabolcs Nagy <szabolcs.nagy@arm.com>
9985
9986 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
9987
9988 2018-06-14 Florian Weimer <fweimer@redhat.com>
9989
9990 * scripts/update-abilist.sh: Accept empty list of files to patch.
9991
9992 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
9993
9994 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
9995 test-xfail-check-abi-libmachuser): Add.
9996 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
9997 __libc_read and __libc_write to __read and __write.
9998 * sysdeps/hurd/include/hurd/port.h: New file.
9999 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10000 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10001 __thread_switch, __evc_wait): Move declarations to...
10002 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10003 attribute_hidden.
10004 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10005 use PLT to call _hurd_self_sigstate.
10006
10007 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10008
10009 [BZ #23279]
10010 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10011 MAX_EXP as overflowing.
10012 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10013 overflow flag.
10014 (round_str): Output also whether result overflows in each rounding
10015 mode.
10016 * stdlib/tst-strtod-round-data: Add more tests.
10017 * stdlib/tst-strtod-round-data.h: Regenerated.
10018 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10019 (TEST): Handle extra arguments for overflow flags.
10020 (struct test_overflow): New type.
10021 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10022 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10023 (test_in_one_mode): Take argument with overflow information.
10024 (do_test): Update calls to test_in_one_mode.
10025
10026 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10027
10028 * elf/dl-load (_dl_dst_substitute): Correct comment.
10029 (_dl_dst_count): Likewise.
10030
10031 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10032 lll_futex_timed_wait.
10033
10034 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10035
10036 [BZ #23277]
10037 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10038 attribute.
10039 * math/test-nan-const.c: New file.
10040 * math/Makefile (tests): Add test-nan-const.
10041 (CFLAGS-test-nan-const.c): New variable.
10042
10043 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10044
10045 * benchtests/scripts/compare_strings.py (process_results): Add
10046 funcs argument. Compare only functions which are selected.
10047 (main): Check if base function is among selected functions.
10048 Pass selected functions to process_results.
10049 (__main__): Add -f/--functions argument.
10050
10051 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10052 Hongbo Zhang <hongbo.zhang@linaro.org>
10053
10054 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10055 __memcpy_falkor for phecda core.
10056 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10057 __memmove_falkor for phecda core.
10058 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10059 __memset_falkor for phecda core.
10060 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10061 for phecda core.
10062 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10063 macro to identify phecda core.
10064
10065 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10066 Andreas Schwab <schwab@suse.de>
10067 Dmitry V. Levin <ldv@altlinux.org>
10068 Florian Weimer <fweimer@redhat.com>
10069
10070 [BZ #23102]
10071 [BZ #21942]
10072 [BZ #18018]
10073 [BZ #23259]
10074 CVE-2011-0536
10075 * elf/dl-dst.h: Remove DL_DST_COUNT.
10076 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10077 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10078 (is_dst): Comment. Support ELF gABI.
10079 (_dl_dst_count): Comment. Simplify and count DSTs.
10080 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10081 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10082 locals.
10083
10084 2018-06-12 Zack Weinberg <zackw@panix.com>
10085
10086 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10087 * sysdeps/unix/sysv/linux/dl-sysdep.c
10088 Include not-cancel.h. Use __close_nocancel instead of __close,
10089 __open64_nocancel instead of __open, __read_nocancel instead of
10090 __libc_read, and __write_nocancel instead of __libc_write.
10091
10092 * csu/check_fds.c (check_one_fd)
10093 * sysdeps/posix/fdopendir.c (__fdopendir)
10094 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10095 instead of __fcntl and/or __libc_fcntl.
10096
10097 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10098 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10099 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10100 Use __open64_nocancel instead of __open_nocancel.
10101
10102 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10103 hidden_proto declarations to the end and issue them if either
10104 IS_IN(libc) or IS_IN(rtld).
10105 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10106 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10107 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10108 read_nocancel, waitpid_nocancel, write_nocancel.
10109
10110 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10111 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10112 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10113
10114 * nptl/pt-fcntl.c: New file.
10115 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10116 (libpthread-routines): Add pt-fcntl.
10117 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10118 (__libc_fcntl): Remove attribute_hidden.
10119 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10120 __fcntl_nocancel_adjusted, not fcntl_common.
10121 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10122 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10123 to fcntl_nocancel.c.
10124 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10125 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10126 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10127 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10128
10129 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10130 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10131 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10132 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10133 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10134 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10135 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10136 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10137 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10138 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10139 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10140 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10141 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10142 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10143 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10144 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10145 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10146 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10147 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10148 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10149
10150 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10151 libpthread-routines.
10152 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10153 defines nothing.
10154
10155 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10156 __libc_read, and __write instead of __libc_write. Define
10157 __open64 in addition to __open.
10158
10159 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10160
10161 [BZ #23250]
10162 [BZ #10686]
10163 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10164 to _private_tm[3] and add __glibc_reserved2.
10165 Add _Static_assert of offset of __private_ss == 0x30.
10166 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10167 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10168
10169 2018-06-12 Florian Weimer <fweimer@redhat.com>
10170
10171 x86: Make strncmp usable from rtld.
10172 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10173 __strncmp_ia32 if in libc (and not in rtld).
10174 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10175 strncmp if not in libc (and not to __strncmp_sse2).
10176
10177 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10178
10179 [BZ #23140]
10180 * localedata/locales/gd_GB (mon): Rename to...
10181 (alt_mon): This.
10182 (mon): Import from CLDR (genitive case).
10183 * localedata/locales/hsb_DE (mon): Rename to...
10184 (alt_mon): This.
10185 (mon): Import from CLDR (genitive case).
10186 * localedata/locales/wa_BE (mon): Rename to...
10187 (alt_mon): This.
10188 (mon): Add, fill with the proper genitive forms, but CLDR data
10189 is incomplete; completed according to the comments in this file.
10190 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10191
10192 * localedata/locales/wa_BE (country_name): Reword
10193 "Beljike" -> "Beldjike".
10194
10195 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10196
10197 [BZ #23272]
10198 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10199 cases of non-finite arguments.
10200 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10201
10202 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10203
10204 [BZ #23174]
10205 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10206
10207 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10208
10209 [BZ #23264]
10210 * include/unistd.h (__execvpex): New prototype.
10211 * posix/Makefile (tests): Add tst-spawn4.
10212 (tests-internal): Add tst-spawn4-compat.
10213 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10214 * posix/tst-spawn4-compat.c: New file.
10215 * posix/tst-spawn4.c: Likewise.
10216 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10217 binaries as shell scripts.
10218 * sysdeps/posix/spawni.c (__spawni): Likewise.
10219
10220 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10221
10222 [BZ #23145]
10223 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10224 ($(all-built-dso:=.dynsym): New target.
10225 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10226 ($(objpfx)check-initfini.out): New target.
10227 (generated): Add check-initfini.out.
10228 * scripts/check-initfini.awk: New file.
10229 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10230 (_fini): Likewise.
10231 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10232 (_fini): Likewise.
10233 * sysdeps/arm/crti.S (_init): Mark as hidden.
10234 (_fini): Likewise.
10235 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10236 (_fini): Likewise.
10237 * sysdeps/i386/crti.S (_init): Mark as hidden.
10238 (_fini): Likewise.
10239 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10240 (_fini): Likewise.
10241 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10242 (_fini): Likewise.
10243 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10244 (_fini): Likewise.
10245 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10246 (_fini): Likewise.
10247 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10248 (_fini): Likewise.
10249 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10250 (_fini): Likewise.
10251 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10252 (_fini): Likewise.
10253 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10254 (_fini): Likewise.
10255 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10256 (_fini): Likewise.
10257 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10258 (_fini): Likewise.
10259 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10260 (_fini): Likewise.
10261 * sysdeps/sh/crti.S (_init): Mark as hidden.
10262 (_fini): Likewise.
10263 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10264 (_fini): Likewise.
10265 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10266 (_fini): Likewise.
10267
10268 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10269
10270 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10271 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10272 and TF redirection to KFtype and KF only when the default
10273 long double type is not the IEEE 128-bit floating point type.
10274
10275 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10276
10277 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10278 macro.
10279 (HWCAP_USCAT): Likewise.
10280 (HWCAP_ILRCPC): Likewise.
10281 (HWCAP_FLAGM): Likewise.
10282 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10283 Increase to 28.
10284 (_dl_aarch64_cap_flags): Add new flag names.
10285
10286 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10287 (MAP_FIXED_NOREPLACE): New macro.
10288 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10289 (MAP_FIXED_NOREPLACE): Likewise.
10290 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10291 (MAP_FIXED_NOREPLACE): Likewise.
10292 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10293 (MAP_FIXED_NOREPLACE): Likewise.
10294 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10295 (MAP_FIXED_NOREPLACE): Likewise.
10296 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
10297 (MAP_FIXED_NOREPLACE): Likewise.
10298 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
10299 (MAP_FIXED_NOREPLACE): Likewise.
10300 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
10301 (MAP_FIXED_NOREPLACE): Likewise.
10302 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
10303 (MAP_FIXED_NOREPLACE): Likewise.
10304 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10305 (MAP_FIXED_NOREPLACE): Likewise.
10306 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10307 (MAP_FIXED_NOREPLACE): Likewise.
10308 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10309 (MAP_FIXED_NOREPLACE): Likewise.
10310 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10311 (MAP_FIXED_NOREPLACE): Likewise.
10312 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10313 (MAP_FIXED_NOREPLACE): Likewise.
10314 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10315 (MAP_FIXED_NOREPLACE): Likewise.
10316
10317 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10318 version to 4.17.
10319
10320 2018-06-04 Joseph Myers <joseph@codesourcery.com>
10321
10322 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10323 version to 4.17
10324
10325 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10326
10327 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
10328 int.
10329 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
10330
10331 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10332
10333 * benchtests/scripts/compare_string.py: (process_results) Catch
10334 exception in non-existent base_func and catch exception in
10335 non-existent attribute.
10336 (parse_file) Catch exception if input file does not exist.
10337
10338 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10339
10340 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
10341 options to avoid diff calculation and omit header, respectively.
10342 (main): process --no-diff and --no-header
10343
10344 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10345 H.J. Lu <hongjiu.lu@intel.com>
10346
10347 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10348 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
10349 wcsncmp-sse2.
10350 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10351 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
10352 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
10353 and __wcsncmp_sse2.
10354 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
10355 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
10356 AVX unaligned load is fast and vzeroupper is preferred.
10357 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
10358 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
10359 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
10360 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
10361 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
10362 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
10363 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
10364 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
10365 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
10366 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
10367 is undefined.
10368
10369 2018-06-01 Florian Weimer <fweimer@redhat.com>
10370
10371 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
10372 configuring with --disable-multi-arch, building with
10373 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
10374 Haswell-era CPU.
10375
10376 2018-06-01 Florian Weimer <fweimer@redhat.com>
10377
10378 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
10379 results from building with “-march=x86-64 -mtune=generic
10380 -mfpmath=sse” and running on a Haswell-era CPU.
10381
10382 2018-06-01 Joseph Myers <joseph@codesourcery.com>
10383
10384 [BZ #18473]
10385 * soft-fp/sqrttf2.c: Remove file.
10386 * soft-fp/sqrtdf2.c: Move to ....
10387 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
10388 <shlib-compat.h>.
10389 (__sqrtdf2): Make conditional on
10390 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10391 symbol.
10392 * soft-fp/sqrtsf2.c: Move to ....
10393 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
10394 <shlib-compat.h>.
10395 (__sqrtsf2): Make conditional on
10396 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10397 symbol.
10398 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
10399 (gcc-double-routines): Remove sqrtdf2.
10400 (gcc-quad-routines): Remove sqrttf2.
10401 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10402 Do not filter out sqrtsf2 and sqrtdf2.
10403 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10404 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
10405
10406 2018-06-01 Florian Weimer <fweimer@redhat.com>
10407
10408 * sysdeps/generic/libcidn.abilist: Remove file.
10409
10410 2018-06-01 Florian Weimer <fweimer@redhat.com>
10411
10412 [BZ #23236]
10413 * libio/strfile.h (struct _IO_str_fields): Rename members to
10414 discourage their use and add comment.
10415 (_IO_STR_DYNAMIC): Remove unused macro.
10416 * libio/strops.c (_IO_str_init_static_internal): Do not use
10417 callback pointers. Call malloc and free.
10418 (_IO_str_overflow): Do not use callback pointers. Call malloc
10419 and free.
10420 (enlarge_userbuf): Likewise.
10421 (_IO_str_finish): Call free.
10422 * libio/wstrops.c (_IO_wstr_init_static): Initialize
10423 _allocate_buffer_unused.
10424 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
10425 and free.
10426 (enlarge_userbuf): Likewise.
10427 (_IO_wstr_finish): Call free.
10428 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
10429 _allocate_buffer_unused, _free_buffer_unused.
10430 * libio/memstream.c (__open_memstream): Likewise.
10431 * libio/vasprintf.c (_IO_vasprintf): Likewise.
10432 * libio/wmemstream.c (open_wmemstream): Likewise.
10433
10434 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
10435
10436 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
10437 AMD Ryzen 7 1800X.
10438
10439 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10440
10441 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
10442 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
10443 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
10444 New file.
10445 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
10446 Likewise.
10447 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
10448
10449 2018-05-29 Florian Weimer <fweimer@redhat.com>
10450
10451 * support/Makefile (libsupport-routines): Add
10452 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
10453 xpthread_barrierattr_setpshared.
10454 * support/xpthread_barrierattr_destroy.c: New file.
10455 * support/xpthread_barrierattr_init.c: Likewise.
10456 * support/xpthread_barrierattr_setpshared.c: Likewise.
10457
10458 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
10459
10460 [BZ #23206]
10461 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
10462 _r_debug and update DT_DEBUG for debugger.
10463
10464 2018-05-29 Florian Weimer <fweimer@redhat.com>
10465
10466 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
10467 (tst-strtod5i.out): Likewise.
10468
10469 2018-05-25 Joseph Myers <joseph@codesourcery.com>
10470
10471 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
10472 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
10473 (sparc64-quad-routines): New variable. Moved from ....
10474 [$(subdir) = soft-fp] (sysdep_routines): Add
10475 $(sparc64-quad-routines). Moved from ....
10476 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
10477 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
10478 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
10479 moved from ....
10480 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
10481 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
10482 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
10483 * sysdeps/sparc/sparc64/qp_add.c: ... here.
10484 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
10485 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
10486 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
10487 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
10488 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
10489 * sysdeps/sparc/sparc64/qp_div.c: ... here.
10490 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
10491 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
10492 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
10493 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
10494 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
10495 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
10496 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
10497 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
10498 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
10499 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
10500 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
10501 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
10502 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
10503 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
10504 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
10505 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
10506 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
10507 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
10508 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
10509 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
10510 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
10511 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
10512 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
10513 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
10514 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
10515 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
10516 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
10517 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
10518 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
10519 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
10520 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
10521 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
10522 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
10523 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
10524 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
10525 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
10526 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
10527 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
10528 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
10529 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
10530 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
10531 * sysdeps/sparc/sparc64/qp_util.c: ... here.
10532 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
10533 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
10534 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
10535 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
10536 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
10537 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
10538
10539 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
10540 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
10541 (sparc32-quad-routines): New variable. Moved from ....
10542 [$(subdir) = soft-fp] (sysdep_routines): Add
10543 $(sparc32-quad-routines). Moved from ....
10544 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
10545 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
10546 moved from ....
10547 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
10548 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
10549 * sysdeps/sparc/sparc32/q_add.c: ... here.
10550 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
10551 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
10552 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
10553 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
10554 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
10555 * sysdeps/sparc/sparc32/q_div.c: ... here.
10556 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
10557 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
10558 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
10559 * sysdeps/sparc/sparc32/q_feq.c: ... here.
10560 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
10561 * sysdeps/sparc/sparc32/q_fge.c: ... here.
10562 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
10563 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
10564 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
10565 * sysdeps/sparc/sparc32/q_fle.c: ... here.
10566 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
10567 * sysdeps/sparc/sparc32/q_flt.c: ... here.
10568 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
10569 * sysdeps/sparc/sparc32/q_fne.c: ... here.
10570 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
10571 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
10572 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
10573 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
10574 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
10575 * sysdeps/sparc/sparc32/q_mul.c: ... here.
10576 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
10577 * sysdeps/sparc/sparc32/q_neg.c: ... here.
10578 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
10579 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
10580 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
10581 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
10582 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
10583 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
10584 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
10585 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
10586 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
10587 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
10588 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
10589 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
10590 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
10591 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
10592 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
10593 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
10594 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
10595 * sysdeps/sparc/sparc32/q_sub.c: ... here.
10596 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
10597 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
10598 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
10599 * sysdeps/sparc/sparc32/q_util.c: ... here.
10600 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
10601 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
10602 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
10603 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
10604
10605 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10606 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10607
10608 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
10609 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
10610 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
10611 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
10612
10613 2018-05-24 Joseph Myers <joseph@codesourcery.com>
10614
10615 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
10616 powerpc/soft-fp.
10617 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
10618 Likewise.
10619 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
10620 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
10621
10622 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10623
10624 [BZ #23171]
10625 * math/math.h [C++] (iseqsig): Fix parameter type for the long
10626 double version.
10627
10628 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10629
10630 * sysdeps/sh/Implies: Remove sh/soft-fp.
10631 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
10632 * sysdeps/sh/sfp-machine.h: ... here.
10633
10634 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10635
10636 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10637 (__mempcpy_erms): Skip zero length.
10638 (__memmove_erms): Likewise.
10639 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
10640 (__memset_erms): Likewise.
10641
10642 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10643
10644 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
10645 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10646 Add functions moved from ....
10647 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
10648 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
10649 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
10650 from ....
10651 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
10652 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
10653 * sysdeps/alpha/e_sqrtl.c: ... here.
10654 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
10655 * sysdeps/alpha/local-soft-fp.h: ... here.
10656 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
10657 * sysdeps/alpha/ots_add.c: ... here.
10658 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
10659 * sysdeps/alpha/ots_cmp.c: ... here.
10660 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
10661 * sysdeps/alpha/ots_cmpe.c: ... here.
10662 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
10663 * sysdeps/alpha/ots_cvtqux.c: ... here.
10664 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
10665 * sysdeps/alpha/ots_cvtqx.c: ... here.
10666 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
10667 * sysdeps/alpha/ots_cvttx.c: ... here.
10668 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
10669 * sysdeps/alpha/ots_cvtxq.c: ... here.
10670 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
10671 * sysdeps/alpha/ots_cvtxt.c: ... here.
10672 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
10673 * sysdeps/alpha/ots_div.c: ... here.
10674 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
10675 * sysdeps/alpha/ots_mul.c: ... here.
10676 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
10677 * sysdeps/alpha/ots_nintxq.c: ... here.
10678 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
10679 * sysdeps/alpha/ots_sub.c: ... here.
10680 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
10681 * sysdeps/alpha/sfp-machine.h: ... here.
10682
10683 2018-05-23 Florian Weimer <fweimer@redhat.com>
10684
10685 [BZ #19728]
10686 [BZ #19729]
10687 [BZ #22247]
10688 CVE-2016-6261
10689 CVE-2016-6263
10690 CVE-2017-14062
10691 Switch to extern IDNA implementation (libidn2).
10692 * libidn: Remove subdirectory.
10693 * LICENSES: Do not mention licensing conditions for the removed
10694 libidn code.
10695 * config.h.in (HAVE_LIBIDN): Remove.
10696 * include/dlfcn.h (__libc_dlopen): Update comment.
10697 * include/idna.h: Remove file.
10698 * inet/Makefile (routines): Add idna.
10699 (tests-static, tests-internal): Add tst-idna_name_classify.
10700 (LOCALES): Generate locales for tests.
10701 (tst-idna_name_classify.out): Depend on generated locales.
10702 * inet/idna_name_classify.c: New file.
10703 * inet/tst-idna_name_classify.c: Likewise.
10704 * inet/net-internal.h (__idna_to_dns_encoding)
10705 (__idna_from_dns_encoding): Declare.
10706 * inet/net-internal.h (enum idna_name_classification): Define.
10707 (__idna_name_classify): Declare.
10708 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
10709 __idna_from_dns_encoding.
10710 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
10711 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
10712 name as a fallback in case of encoding errors.
10713 (getnameinfo): Use DEPRECATED_NI_IDN.
10714 * inet/idna.c: New file.
10715 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
10716 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
10717 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
10718 (modules-names): Add tst-no-libidn2.
10719 (extra-test-objs): Add tst-no-libidn2.os.
10720 (LDFLAGS-tst-no-libidn2.so): Set soname.
10721 (LOCALES): Set, and generate locales.
10722 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
10723 (tst-resolv-ai_idn-latin1): Likewise.
10724 (tst-resolv-ai_idn-nolibidn2): Likewise.
10725 (tst-resolv-ai_idn.out): Depend on locales.
10726 (tst-resolv-ai_idn-latin1.out): Depend on locales.
10727 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
10728 tst-no-libidn2.so.
10729 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
10730 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
10731 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
10732 * resolv/tst-resolv-ai_idn.c: New file.
10733 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
10734 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
10735 * resolv/tst-no-libidn2.c: Likewise.
10736 * support/support_format_addrinfo.c (format_ai_flags): Do not
10737 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
10738 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
10739 (gaih_inet): Call __idna_to_dns_encoding and
10740 __idna_from_dns_encoding, and use the original (punycode) name if
10741 __idna_from_dns_encoding fails due to an encoding error.
10742 (getaddrinfo): Use DEPRECATED_AI_IDN.
10743 * sysdeps/unix/inet/Subdirs (libidn): Remove.
10744 * sysdeps/unix/inet/configure: Remove file.
10745 * sysdeps/unix/inet/configure.ac: Likewise.
10746
10747 2018-05-23 Florian Weimer <fweimer@redhat.com>
10748
10749 Implement allocate_once.
10750 * include/allocate_once.h: New file.
10751 * misc/allocate_once.c: Likewise.
10752 * misc/tst-allocate_once.c: Likewise.
10753 * misc/Makefile (routines): Add allocate_once.
10754 (tests-internal): Add tst-allocate_once.
10755 (generated): Add tst-allocate_once.mtrace,
10756 tst-allocate_once-mem.out.
10757 (tests-special): Add tst-allocate_once-mem.out.
10758 (tst-allocate_once-ENV): Set MALLOC_TRACE.
10759 (tst-allocate_once-mem.out): Call mtrace.
10760 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
10761
10762 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10763
10764 [BZ #23196]
10765 * string/test-memcpy.c (do_test1): New function.
10766 (test_main): Call it.
10767
10768 2018-05-23 Andreas Schwab <schwab@suse.de>
10769
10770 [BZ #23196]
10771 CVE-2018-11237
10772 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
10773 (L(preloop_large)): Save initial destination pointer in %r11 and
10774 use it instead of %rax after the loop.
10775 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
10776
10777 2018-05-22 Joseph Myers <joseph@codesourcery.com>
10778
10779 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
10780 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
10781 -I../soft-fp. Moved from ....
10782 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
10783 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
10784 * sysdeps/aarch64/e_sqrtl.c: ... here.
10785 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
10786 * sysdeps/aarch64/sfp-machine.h: ... here.
10787
10788 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
10789 -Wmaybe-uninitialized around access to fq[0].
10790 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
10791 Likewise.
10792
10793 [BZ #18471]
10794 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
10795 aliases for non-libc case of versioned symbols.
10796 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
10797 (llseek): Define as compat symbol if
10798 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
10799 with link warning.
10800 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
10801 Make into a compat symbol, disabled for minimum symbol version
10802 GLIBC_2.28 and later.
10803 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
10804
10805 2018-05-22 Florian Weimer <fweimer@redhat.com>
10806
10807 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
10808 not add -mpreferred-stack-boundary=4.
10809 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
10810 (stack-align-test-flags): Likewise.
10811 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
10812 Likewise.
10813 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
10814 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
10815 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
10816 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
10817 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
10818 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
10819 (CFLAGS-tst-align2.c): Likewise.
10820
10821 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10822
10823 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
10824 (index_arch_Prefer_FSRM): Likewise.
10825 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
10826 Also check Prefer_FSRM.
10827 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
10828 Also return OPTIMIZE (erms) for Prefer_FSRM.
10829
10830 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10831
10832 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
10833 (index_cpu_FSRM): Likewise.
10834 (reg_FSRM): Likewise.
10835
10836 2018-05-18 Joseph Myers <joseph@codesourcery.com>
10837
10838 * math/gen-tgmath-tests.py: Import sys.
10839 (Tests.__init__): Initialize macros_seen.
10840 (Tests.add_tests): Add macro to macros_seen. Only generate tests
10841 if requested to do so for this macro.
10842 (Tests.add_all_tests): Take argument for macro for which to
10843 generate tests.
10844 (Tests.check_macro_list): New function.
10845 (main): Handle check-list argument and argument specifying macro
10846 for which to generate tests.
10847 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
10848 [PYTHON] (tgmath3-macro-tests): Likewise.
10849 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
10850 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
10851 not test-tgmath3.c.
10852 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
10853 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
10854 to CFLAGS.
10855 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
10856 [PYTHON] ($(foreach
10857 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
10858 rule.
10859 [PYTHON] (tests-special): Add
10860 $(objpfx)test-tgmath3-macro-list.out.
10861 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
10862
10863 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
10864 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
10865 later.
10866
10867 [BZ #22639]
10868 * time/tzset.c (SECSPERDAY): Cast to time_t.
10869 * time/tst-y2039.c: New file.
10870 * time/Makefile (tests): Add tst-y2039.
10871
10872 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10873
10874 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10875 (PREFETCH_ONE_SET): Remove duplicate line.
10876
10877 2018-05-17 Florian Weimer <fweimer@redhat.com>
10878
10879 * sysdeps/generic/math-type-macros-double.h: Include
10880 <math-nan-payload-double.h> after <libm-alias-double.h>.
10881 * sysdeps/generic/math-type-macros-float.h: Include
10882 <math-nan-payload-float.h> after <libm-alias-float.h>.
10883 * sysdeps/generic/math-type-macros-float128.h: Include
10884 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
10885 * sysdeps/generic/math-type-macros-ldouble.h: Include
10886 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
10887
10888 2018-05-17 Andreas Schwab <schwab@suse.de>
10889
10890 * resolv/res_send.c (__res_context_send): Don't set errno when
10891 returing error after malloc failure.
10892
10893 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
10894
10895 * nptl/allocatestack.c (allocate_stack): Remove the
10896 !__ASSUME_PRIVATE_FUTEX paths.
10897 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
10898 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
10899 Likewise.
10900 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
10901 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10902 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10903 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10904 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
10905 !__ASSUME_PRIVATE_FUTEX path.
10906 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
10907 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
10908 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
10909 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
10910 !__ASSUME_PRIVATE_FUTEX macros.
10911 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
10912 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
10913 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
10914 * sysdeps/unix/sysv/linux/kernel-features.h
10915 (__ASSUME_PRIVATE_FUTEX): Removed.
10916
10917 2018-05-17 Joseph Myers <joseph@codesourcery.com>
10918
10919 * math/Makefile (libm-narrow-fns): Add div.
10920 (libm-test-funcs-narrow): Likewise.
10921 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
10922 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
10923 * math/gen-auto-libm-tests.c (test_functions): Add div.
10924 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
10925 (NARROW_DIV_ROUND_TO_ODD): Likewise.
10926 (NARROW_DIV_TRIVIAL): Likewise.
10927 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
10928 macro.
10929 (__ddivl): Likewise.
10930 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
10931 ddiv.
10932 (CFLAGS-nldbl-ddiv.c): New variable.
10933 (CFLAGS-nldbl-fdiv.c): Likewise.
10934 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
10935 __nldbl_ddivl.
10936 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
10937 prototype.
10938 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
10939 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
10940 * math/auto-libm-test-in: Add tests of div.
10941 * math/auto-libm-test-out-narrow-div: New generated file.
10942 * math/libm-test-narrow-div.inc: New file.
10943 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
10944 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
10945 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
10946 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
10947 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
10948 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
10949 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
10950 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
10951 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
10952 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
10953 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
10954 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
10955 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
10956 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
10957 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
10958 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
10959 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
10960 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
10961 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10962 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
10963 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10964 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10965 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10966 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10967 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10968 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10969 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10970 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10971 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10972 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10973 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10974 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10975 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
10976 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
10977 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
10978 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
10979 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
10980 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10981 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10982 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10983 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10984 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10985 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10986 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10987
10988 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10989
10990 [BZ #23178]
10991 * nscd/nscd-client.h (sendfileall): Remove prototype.
10992 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
10993 (handle_request): Use writeall instead of sendfileall.
10994 * nscd/aicache.c (addhstaiX): Likewise.
10995 * nscd/grpcache.c (cache_addgr): Likewise.
10996 * nscd/hstcache.c (cache_addhst): Likewise.
10997 * nscd/initgrcache.c (addinitgroupsX): Likewise.
10998 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
10999 * nscd/pwdcache.c (cache_addpw): Likewise.
11000 * nscd/servicescache.c (cache_addserv): Likewise.
11001 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11002 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11003 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11004 Remove define.
11005
11006 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11007
11008 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11009 Include <string/strncat.c>.
11010 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11011 alias.
11012 (__GI___strncat): New hidden alias.
11013
11014 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11015
11016 * sysdeps/mips/mips32/libm-test-ulps: Update.
11017 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11018
11019 2018-05-16 Florian Weimer <fweimer@redhat.com>
11020
11021 * support/Makefile (libsupport-routines): Add support_quote_blob,
11022 support_test_compare_blob.
11023 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11024 * support/check.h (TEST_COMPARE_BLOB): Define.
11025 (support_test_compare_blob): Declare.
11026 * support/support.h (support_quote_blob): Declare.
11027 * support/support_quote_blob.c: New file.
11028 * support/support_test_compare_blob.c: Likewise.
11029 * support/tst-support_quote_blob.c: Likewise.
11030 * support/tst-test_compare_blob.c: Likewise.
11031
11032 2018-05-16 Florian Weimer <fweimer@redhat.com>
11033
11034 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11035 of <strtod_nan_double.h>.
11036 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11037 instead of SET_MANTISSA.
11038 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11039 of include <strtod_nan_float.h>.
11040 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11041 instead of <strtod_nan_ldouble.h>.
11042 * stdlib/strtod_nan_double.h: Move to ...
11043 * sysdeps/generic/math-nan-payload-double.h: ... here.
11044 (FLOAT): Remove definition.
11045 (SET_MANTISSA): Rename to ...
11046 (SET_NAN_PAYLOAD): ... this.
11047 * stdlib/strtod_nan_float.h: Move to ...
11048 * sysdeps/generic/math-nan-payload-float.h: ... here.
11049 (FLOAT): Remove definition.
11050 (SET_MANTISSA): Rename to ...
11051 (SET_NAN_PAYLOAD): ... this.
11052 * sysdeps/generic/math-type-macros-double.h: Include
11053 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11054 instead of <math-svid-compat.h>.
11055 * sysdeps/generic/math-type-macros-float.h: Include
11056 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11057 instead of <math-svid-compat.h>.
11058 * sysdeps/generic/math-type-macros-float128.h: Include
11059 <math-nan-payload-float128.h>.
11060 * sysdeps/generic/math-type-macros-ldouble.h: Include
11061 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11062 instead of <math-svid-compat.h>.
11063 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11064 check for definition.
11065 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11066 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11067 Include <ieee754_float128.h>.
11068 (FLOAT): Remove definition.
11069 (SET_MANTISSA): Rename to ...
11070 (SET_NAN_PAYLOAD): ... this.
11071 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11072 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11073 Do not include <float128_private.h>.
11074 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11075 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11076 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11077 (FLOAT): Remove definition.
11078 (SET_MANTISSA): Rename to ...
11079 (SET_NAN_PAYLOAD): ... this.
11080 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11081 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11082 (FLOAT): Remove definition.
11083 (SET_MANTISSA): Rename to ...
11084 (SET_NAN_PAYLOAD): ... this.
11085 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11086 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11087 (FLOAT): Remove definition.
11088 (SET_MANTISSA): Rename to ...
11089 (SET_NAN_PAYLOAD): ... this.
11090 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11091 of "../stdlib/strtod_nan_double.h".
11092 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11093 of "../stdlib/strtod_nan_float.h".
11094 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11095 instead of "../stdlib/strtod_nan_ldouble.h".
11096 * manual/arith.texi (Parsing of Floats): Adjust comment.
11097
11098 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11099
11100 * math/Makefile (libm-narrow-fns): Add mul.
11101 (libm-test-funcs-narrow): Likewise.
11102 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11103 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11104 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11105 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11106 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11107 (NARROW_MUL_TRIVIAL): Likewise.
11108 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11109 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11110 macro.
11111 (__dmull): Likewise.
11112 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11113 dmul.
11114 (CFLAGS-nldbl-dmul.c): New variable.
11115 (CFLAGS-nldbl-fmul.c): Likewise.
11116 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11117 __nldbl_dmull.
11118 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11119 prototype.
11120 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11121 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11122 * math/auto-libm-test-in: Add tests of mul.
11123 * math/auto-libm-test-out-narrow-mul: New generated file.
11124 * math/libm-test-narrow-mul.inc: New file.
11125 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11126 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11127 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11128 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11129 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11130 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11131 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11132 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11133 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11134 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11135 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11136 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11137 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11138 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11139 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11140 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11141 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11142 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11143 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11144 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11145 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11146 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11147 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11148 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11149 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11150 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11151 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11152 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11153 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11154 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11155 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11156 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11157 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11158 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11159 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11160 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11161 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11162 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11163 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11164 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11165 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11166 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11167 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11168 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11169
11170 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11171
11172 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11173 with *%eax in call.
11174
11175 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11176
11177 * sysdeps/i386/ldsodefs.h: Removed.
11178 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11179 * sysdeps/x86/ldsodefs.h: This.
11180 (La_i86_regs): New.
11181 (La_i86_retval): Likewise.
11182 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11183 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11184
11185 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11186
11187 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11188 unnecessary testl.
11189
11190 2018-05-13 Alan Modra <amodra@gmail.com>
11191
11192 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11193 R_PARISC_TLS_DTPOFF32 reloc addend.
11194
11195 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11196
11197 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11198 * math/math.h: Restrict the prototype definition for the functions
11199 issignaling(_Float128) and iszero(_Float128); and template
11200 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11201 __HAVE_FLOAT128_UNLIKE_LDBL.
11202 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11203 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11204 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11205 __f128() constants; define the type _Float128 as long double;
11206 and reuse long double in __CFLOAT128.
11207
11208 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11209
11210 * sysdeps/generic/math_private.h: Do not include
11211 <math-barriers.h>.
11212 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11213 <math_private.h>.
11214 * math/fromfp.h: Include <math-barriers.h>.
11215 * math/math-narrow.h: Likewise.
11216 * math/s_nextafter.c: Likewise.
11217 * math/s_nexttowardf.c: Likewise.
11218 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11219 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11220 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11221 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11222 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11223 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11224 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11225 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11226 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11227 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11228 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11229 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11230 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11231 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11232 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11233 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11234 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11235 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11236 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11237 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11238 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11239 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11240 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11241 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11242 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11243 * sysdeps/ieee754/k_standardl.c: Likewise.
11244 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11245 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11246 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11247 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11248 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11249 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11250 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11251 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11252 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11253 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11254 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11255 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11256 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11257 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11258 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11259 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11260 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11261 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11262 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11263 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11264 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11265 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11266
11267 2018-05-11 Florian Weimer <fweimer@redhat.com>
11268
11269 Use 64-bit epoch values in the time zone file parser.
11270 * include/time.h (internal_time_t): Define.
11271 (__tzfile_compute): Use it.
11272 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11273 member.
11274 (transitions): Switch to internal_time_t.
11275 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11276 types.
11277 (__tzfile_compute): Use internal_time_t for timer argument. Check
11278 for truncation before calling __offtime.
11279
11280 2018-05-11 Florian Weimer <fweimer@redhat.com>
11281
11282 [BZ #23166]
11283 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11284 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11285 Likewise.
11286 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11287 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11288 export without --enable-obsolete-rpc.
11289 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11290 symbol. This should not have been exported, ever.
11291
11292 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11293
11294 [BZ #23152]
11295 * localedata/locales/gd_GB (abmon): Fix typo in May:
11296 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
11297
11298 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11299
11300 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11301 Use multiple registers to copy data in loop tail.
11302
11303 * sysdeps/aarch64/multiarch/memmove_falkor.S
11304 (__memmove_falkor): Use multiple registers to move data in
11305 loop tail.
11306
11307 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11308
11309 * math/math-underflow.h: New file.
11310 * sysdeps/generic/math_private.h: Do not include <float.h>.
11311 (fabs_tg): Remove macro. Moved to math-underflow.h.
11312 (min_of_type_f): Likewise.
11313 (min_of_type_): Likewise.
11314 (min_of_type_l): Likewise.
11315 (min_of_type_f128): Likewise.
11316 (min_of_type): Likewise.
11317 (math_check_force_underflow): Likewise.
11318 (math_check_force_underflow_nonneg): Likewise.
11319 (math_check_force_underflow_complex): Likewise.
11320 * math/e_exp2_template.c: Include <math-underflow.h>.
11321 * math/k_casinh_template.c: Likewise.
11322 * math/s_catan_template.c: Likewise.
11323 * math/s_catanh_template.c: Likewise.
11324 * math/s_ccosh_template.c: Likewise.
11325 * math/s_cexp_template.c: Likewise.
11326 * math/s_clog10_template.c: Likewise.
11327 * math/s_clog_template.c: Likewise.
11328 * math/s_csin_template.c: Likewise.
11329 * math/s_csinh_template.c: Likewise.
11330 * math/s_csqrt_template.c: Likewise.
11331 * math/s_ctan_template.c: Likewise.
11332 * math/s_ctanh_template.c: Likewise.
11333 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11334 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11335 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11336 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11337 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11338 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11339 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11340 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11341 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11342 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11343 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11344 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11345 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11346 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11347 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11348 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11349 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11350 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11351 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11352 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11353 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11354 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11355 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11356 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11357 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11358 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11359 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11360 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11361 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11362 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11363 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11364 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11365 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11366 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11367 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11368 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11369 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11370 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11371 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11372 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11373 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11374 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11375 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11376 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11377 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11378 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11379 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11380 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11381 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11382 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11383 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11384 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11385 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11386 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11387 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11388 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11389 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11390 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11391 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11392 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11393 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11394 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11395 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11396 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11397 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11398 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11399 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11400 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11401 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11402 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11403 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11404 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11405 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11406 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
11407 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11408 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11409 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11410 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11411 * sysdeps/x86/fpu/powl_helper.c: Likewise.
11412 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
11413 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
11414 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11415 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
11416 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
11417
11418 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11419
11420 * sysdeps/generic/math-barriers.h: New file.
11421 * sysdeps/generic/math_private.h [!math_opt_barrier]
11422 (math_opt_barrier): Move to math-barriers.h.
11423 [!math_opt_barrier] (math_force_eval): Likewise.
11424 * sysdeps/aarch64/fpu/math-barriers.h: New file.
11425 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
11426 math-barriers.h.
11427 (math_force_eval): Likewise.
11428 * sysdeps/alpha/fpu/math-barriers.h: New file.
11429 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
11430 math-barriers.h.
11431 (math_force_eval): Likewise.
11432 * sysdeps/x86/fpu/math-barriers.h: New file.
11433 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
11434 math-barriers.h.
11435 (math_force_eval): Likewise.
11436 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
11437 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
11438 multiple-include guard for rename.
11439 * sysdeps/powerpc/fpu/math-barriers.h: New file.
11440 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
11441 math-barriers.h.
11442 (math_force_eval): Likewise.
11443
11444 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
11445
11446 [BZ #22786]
11447 CVE-2018-11236
11448 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
11449 computation.
11450 * stdlib/Makefile (test-bz22786): New test.
11451 * stdlib/test-bz22786.c: New test.
11452
11453 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11454
11455 * include/math-narrow-eval.h: New file. Contents moved from ....
11456 * sysdeps/generic/math_private.h: ... here.
11457 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
11458 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11459 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
11460 * stdlib/strtod_l.c: Likewise.
11461 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11462 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11463 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11464 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11465 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11466 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11467 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11468 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11469 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11470 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
11471 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11472 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
11473 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11474 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11475 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11476 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11477 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11478 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11479 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11480 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11481 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11482 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11483 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11484 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11485 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11486 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11487 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11488 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11489 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
11490
11491 2018-05-08 Andreas Schwab <schwab@suse.de>
11492
11493 * sysdeps/nptl/internaltypes.h: Fix comment.
11494
11495 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
11496
11497 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11498 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
11499 hidden.
11500
11501 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
11502
11503 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
11504 of I into loop header.
11505 * benchtests/bench-memmove-walk.c
11506 (test_main): Likewise.
11507
11508 2018-05-07 Alexandre Oliva <oliva@gnu.org>
11509
11510 Revert:
11511 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11512 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11513
11514 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
11515
11516 [BZ #20419]
11517 * elf/dl-load.c (open_verify): Fix stack overflow.
11518 * elf/Makefile (tst-big-note): New test.
11519 * elf/tst-big-note-lib.S: New.
11520 * elf/tst-big-note.c: New.
11521
11522 2018-05-04 Joseph Myers <joseph@codesourcery.com>
11523
11524 * scripts/abilist.awk: Ignore absolute symbols.
11525 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
11526 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
11527 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
11528 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
11529 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
11530 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
11531 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11532 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
11533 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
11534 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
11535 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
11536 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
11537 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
11538 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
11539 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
11540 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
11541 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
11542 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
11543 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11544 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
11545 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11546 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
11547 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
11548 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
11549 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
11550 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
11551 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
11552 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
11553 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11554 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
11555 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
11556 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11557 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
11558 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11559 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
11560 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
11561 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
11562 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
11563 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
11564 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
11565 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
11566 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11567 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
11568 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
11569 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11570 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
11571 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11572 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
11573 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
11574 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
11575 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
11576 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
11577 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
11578 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
11579 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11580 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
11581 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
11582 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11583 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
11584 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11585 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
11586 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
11587 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
11588 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
11589 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
11590 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
11591 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
11592 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11593 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
11594 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
11595 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11596 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
11597 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11598 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
11599 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
11600 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
11601 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
11602 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
11603 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
11604 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
11605 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11606 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
11607 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
11608 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11609 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
11610 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11611 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
11612 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
11613 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
11614 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
11615 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
11616 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
11617 Likewise.
11618 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
11619 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11620 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
11621 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
11622 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11623 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
11624 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11625 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
11626 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
11627 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
11628 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
11629 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
11630 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
11631 Likewise.
11632 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
11633 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11634 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
11635 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
11636 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11637 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
11638 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11639 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
11640 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
11641 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
11642 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
11643 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
11644 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
11645 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
11646 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11647 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
11648 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
11649 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11650 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
11651 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11652 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
11653 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
11654 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
11655 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
11656 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11657 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
11658 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
11659 Likewise.
11660 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
11661 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
11662 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
11663 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
11664 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11665 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
11666 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
11667 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
11668 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
11669 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
11670 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
11671 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
11672 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
11673 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11674 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
11675 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
11676 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
11677 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
11678 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
11679 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
11680 Likewise.
11681 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
11682 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
11683 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
11684 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11685 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
11686 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11687 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
11688 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
11689 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
11690 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
11691 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11692 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
11693 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
11694 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11695 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
11696 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
11697 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
11698 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
11699 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11700 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
11701 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
11702 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11703 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
11704 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11705 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
11706 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
11707 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
11708 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
11709 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
11710 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11711 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
11712 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
11713 Likewise.
11714 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
11715 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
11716 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
11717 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
11718 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11719 Likewise.
11720 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
11721 Likewise.
11722 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
11723 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
11724 Likewise.
11725 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
11726 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11727 Likewise.
11728 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11729 Likewise.
11730 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
11731 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
11732 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
11733 Likewise.
11734 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
11735 Likewise.
11736 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
11737 Likewise.
11738 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
11739 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
11740 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11741 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
11742 Likewise.
11743 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
11744 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
11745 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
11746 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11747 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11748 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
11749 Likewise.
11750 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
11751 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11752 Likewise.
11753 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11754 Likewise.
11755 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
11756 Likewise.
11757 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
11758 Likewise.
11759 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
11760 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
11761 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
11762 Likewise.
11763 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
11764 Likewise.
11765 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
11766 Likewise.
11767 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
11768 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
11769 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
11770 Likewise.
11771 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
11772 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11773 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
11774 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
11775 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11776 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
11777 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11778 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
11779 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
11780 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
11781 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
11782 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
11783 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
11784 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
11785 Likewise.
11786 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11787 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
11788 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
11789 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11790 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
11791 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11792 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
11793 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
11794 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
11795 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
11796 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
11797 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
11798 Likewise.
11799 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11800 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
11801 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
11802 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11803 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
11804 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11805 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
11806 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
11807 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
11808 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
11809 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
11810 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
11811 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
11812 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11813 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
11814 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
11815 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11816 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
11817 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11818 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
11819 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
11820 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
11821 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
11822 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
11823 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
11824 Likewise.
11825 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
11826 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11827 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
11828 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
11829 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11830 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
11831 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11832 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
11833 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
11834 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
11835 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
11836 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
11837 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
11838 Likewise.
11839 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
11840 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11841 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
11842 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
11843 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11844 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
11845 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11846 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
11847 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
11848 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
11849 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
11850 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
11851 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
11852 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
11853 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11854 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
11855 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
11856 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11857 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
11858 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11859 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
11860 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
11861 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
11862 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
11863 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
11864 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
11865 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
11866 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
11867 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11868 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
11869 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
11870 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11871 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
11872 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11873 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
11874 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
11875 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
11876 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
11877
11878 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
11879
11880 [BZ #23137]
11881 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
11882 Use atomic_load_acquire to load __tid.
11883
11884 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11885
11886 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
11887 Restore the pointer into %rdx, after syscall and use %rdx,
11888 instead of %rsi, to restore context.
11889
11890 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11891
11892 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
11893 Pop the pointer into %rdx after syscall and use %rdx, instead
11894 of %rsi, to restore context.
11895
11896 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11897
11898 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
11899 handlers after setjmp.
11900 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
11901 defined.
11902 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
11903 <libc-pointer-arith.h>.
11904 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
11905 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
11906 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
11907 _JUMP_BUF_SIGSET_BITS_PER_WORD.
11908 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
11909 * sysdeps/x86/__longjmp_cancel.S: New file.
11910 * sysdeps/x86/longjmp.c: Likewise.
11911 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
11912
11913 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11914
11915 * NEWS: Add ustat.h deprecation entry.
11916 * bits/ustat.h: Remove file.
11917 * misc/sys/ustat.h: Likewise.
11918 * misc/ustat.h: Likewise.
11919 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
11920 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
11921 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
11922 compatibility mode.
11923 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
11924 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
11925 generic Linux implementation.
11926
11927 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11928
11929 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
11930 * math/w_expl_compat.c: Likewise.
11931 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
11932
11933 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11934
11935 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11936
11937 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11938
11939 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
11940 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
11941 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
11942 Remove.
11943 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
11944 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11945 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11946 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
11947 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
11948 and SYSCALL_LL64.
11949
11950 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11951
11952 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
11953
11954 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
11955 * math/w_asin_template.c: Likewise.
11956 * math/w_atanh_template.c: Likewise.
11957
11958 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11959
11960 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
11961 to powerpc/powerpc64/be for big-endian.
11962 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
11963 little-endian.
11964
11965 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
11966 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
11967 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
11968 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
11969 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
11970 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
11971 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
11972 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
11973 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
11974 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
11975 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
11976 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
11977 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
11978 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
11979 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
11980 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
11981 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
11982 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
11983 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
11984 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
11985 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
11986 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
11987 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
11988 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
11989 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
11990 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
11991 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
11992 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
11993 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
11994 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
11995 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
11996 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
11997
11998 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
11999 adjusted to imply powerpc64 and older processors on powerpc64/be.
12000 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12001 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12002 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12003 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12004 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12005 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12006 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12007 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12008 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12009 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12010 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12011 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12012 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12013 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12014 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12015 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12016 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12017 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12018 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12019 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12020 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12021 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12022 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12023 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12024 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12025 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12026 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12027 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12028 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12029 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12030 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12031
12032 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12033 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12034 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12035 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12036
12037 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12038 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12039 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12040 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12041
12042 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12043 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12044 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12045 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12046 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12047 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12048 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12049 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12050 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12051 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12052 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12053
12054 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12055 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12056 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12057 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12058 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12059 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12060 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12061 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12062 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12063 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12064 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12065
12066 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12067 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12068 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12069 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12070 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12071 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12072 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12073 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12074 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12075 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12076 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12077 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12078
12079 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12080 and adjusted to imply olders processors.
12081 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12082 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12083 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12084 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12085 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12086 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12087 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12088 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12089 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12090 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12091 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12092
12093 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12094 powerpc64/le.
12095 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12096 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12097
12098 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12099 powerpc64le.
12100 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12101 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12102
12103 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12104 powerpc64/be.
12105 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12106 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12107 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12108
12109 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12110 powerpc64 and adjusted.
12111 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12112 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12113 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12114 Likewise.
12115
12116 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12117
12118 * sysdeps/tile: Remove.
12119 * sysdeps/unix/sysv/linux/tile: Likewise.
12120 * README (tilegx-*-linux-gnu): Remove from list of supported
12121 configurations.
12122 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12123 contribution of support for generic Linux kernel syscall
12124 interface.
12125 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12126 tilegx configurations.
12127 (Config.install_linux_headers): Do not handle tile.
12128 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12129 in comment.
12130 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12131 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12132 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12133 conditional undefine and redefine.
12134 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12135 in comment.
12136 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12137 conditional undefine and redefine.
12138
12139 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12140
12141 * signal/tst-sigaction.c: New file to test BZ #23069.
12142 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12143
12144 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12145
12146 [BZ #22766]
12147 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12148 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12149 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12150 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12151
12152 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12153
12154 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12155 _DIRENT_MATCHES_DIRENT64 is not defined.
12156 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12157 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12158 is defined.
12159 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12160 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12161
12162 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12163
12164 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12165 version to GCC 8 branch.
12166
12167 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12168
12169 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12170 (check_no_hidden): Use type of original function when declaring
12171 alias.
12172
12173 * sysdeps/unix/sysv/linux/sys/ptrace.h
12174 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12175 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12176 (struct __ptrace_seccomp_metadata): New type.
12177 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12178 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12179 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12180 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12181 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12182 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12183 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12184 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12185 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12186 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12187 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12188 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12189 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12190 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12191 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12192 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12193
12194 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12195
12196 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12197 defined.
12198 * dirent/versionsort.c (versionsort): Likewise.
12199 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12200 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12201 * dirent/versionsort64.c (versionsort64): Likewise.
12202 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12203 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12204 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12205 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12206 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12207 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12208 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12209 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12210 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12211 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12212 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12213 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12214 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12215 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12216
12217 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12218
12219 * elf/elf.h (NT_PPC_PKEY): New macro.
12220
12221 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12222
12223 [BZ #23094]
12224 * localedata/locales/hr_HR: fix thousands_sep and
12225 mon_thousands_sep
12226
12227 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12228
12229 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12230 (XTABS): Define to TAB3.
12231
12232 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12233
12234 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12235
12236 * dirent/scandir-tail-common.c: New file.
12237 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12238 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12239 * dirent/scandir.c: Use scandir-tail-common.c.
12240 * dirent/scandirat.c: Likewise.
12241 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12242 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12243 if _DIRENT_MATCHES_DIRENT64 is defined.
12244 * dirent/scandirat64.c (scandirat64): Likewise.
12245 * include/dirent.h (__scandir_tail): Only define iff
12246 _DIRENT_MATCHES_DIRENT64 is not defined.
12247 (__scandir64_tail): Define regardless.
12248 (__scandirat, scandirat64): Remove libc_hidden_proto.
12249 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12250 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12251 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12252 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12253 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12254 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12255 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12256
12257 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12258
12259 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12260 New macro.
12261 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12262 Increase to 24.
12263 (_dl_aarch64_cap_flags): Add asimdfhm.
12264
12265 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12266
12267 * sysdeps/nios2/libm-test-ulps: Update.
12268
12269 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12270
12271 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12272 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12273
12274 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12275 requirements.
12276 (_DIRENT_MATCHES_DIRENT64): Undef
12277 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12278 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12279 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12280 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12281 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12282 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12283 use getdents64 syscalls as base.
12284 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12285 symbol if required.
12286 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12287 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12288 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12289 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12290 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12291 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12292 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12293 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12294 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12295 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12296 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
12297
12298 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12299
12300 * scripts/test_printers_common.py (init_test): Disable lock elision.
12301
12302 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12303
12304 * math/test-tgmath.c (count_double, count_float,
12305 count_ldouble, count_cdouble, count_cfloat,
12306 count_cldouble): Use volatile int.
12307
12308 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12309
12310 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12311 (conformtest-xfail-conds): Add i386-gnu.
12312 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12313 i386-gnu.
12314 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12315 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12316 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12317 msqid_ds.msg_lrpid): Likewise.
12318 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12319 Likewise.
12320 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
12321 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
12322 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
12323 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
12324 unsigned int.
12325 (struct statvfs64): Likewise.
12326 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
12327 Likewise.
12328 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
12329 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
12330 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
12331 instead of wait_queue.
12332 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
12333 instead of vm_area_struct.
12334 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
12335 struct sched_param definition to it.
12336 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12337 * bits/types/struct_sched_param.h: New file.
12338 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
12339 <bits/types/struct_sched_param.h> instead of <sched.h>.
12340 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
12341 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
12342 generic version but include <bits/pthreadtypes.h> to make struct
12343 sigevent's sigev_notify_attributes field a pthread_attr_t*.
12344 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
12345 non-compliant.
12346 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
12347 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
12348 [__USE_XOPEN] (OFDEL): New macro.
12349 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
12350 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
12351 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
12352 prototypes.
12353 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
12354 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
12355 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
12356 non-compliant.
12357 * sysdeps/i386/sys/ucontext.h: Likewise.
12358 * sysdeps/m68k/sys/ucontext.h: Likewise.
12359 * sysdeps/mips/sys/ucontext.h: Likewise.
12360 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
12361 * sysdeps/mach/hurd/i386/Makefile
12362 (test-xfail-POSIX/fcntl.h/conform): Add.
12363 (test-xfail-POSIX/signal.h/conform): Add.
12364 (test-xfail-POSIX/semaphore.h/conform): Add.
12365 (test-xfail-POSIX/regex.h/conform): Add.
12366 (test-xfail-POSIX/aio.h/conform): Add.
12367 (test-xfail-POSIX/mqueue.h/conform): Add.
12368 (test-xfail-POSIX/sys/types.h/conform): Add.
12369 (test-xfail-UNIX98/fcntl.h/conform): Add.
12370 (test-xfail-UNIX98/netdb.h/conform): Add.
12371 (test-xfail-UNIX98/signal.h/conform): Add.
12372 (test-xfail-UNIX98/semaphore.h/conform): Add.
12373 (test-xfail-UNIX98/regex.h/conform): Add.
12374 (test-xfail-UNIX98/aio.h/conform): Add.
12375 (test-xfail-UNIX98/ftw.h/conform): Add.
12376 (test-xfail-UNIX98/mqueue.h/conform): Add.
12377 (test-xfail-UNIX98/netinet/in.h/conform): Add.
12378 (test-xfail-UNIX98/sys/wait.h/conform): Add.
12379 (test-xfail-UNIX98/sys/sem.h/conform): Add.
12380 (test-xfail-UNIX98/sys/uio.h/conform): Add.
12381 (test-xfail-UNIX98/sys/socket.h/conform): Add.
12382 (test-xfail-UNIX98/sys/types.h/conform): Add.
12383 (test-xfail-UNIX98/stdlib.h/conform): Add.
12384 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
12385 (test-xfail-POSIX2008/fcntl.h/conform): Add.
12386 (test-xfail-POSIX2008/netdb.h/conform): Add.
12387 (test-xfail-POSIX2008/signal.h/conform): Add.
12388 (test-xfail-POSIX2008/semaphore.h/conform): Add.
12389 (test-xfail-POSIX2008/regex.h/conform): Add.
12390 (test-xfail-POSIX2008/aio.h/conform): Add.
12391 (test-xfail-POSIX2008/mqueue.h/conform): Add.
12392 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
12393 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
12394 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
12395 (test-xfail-POSIX2008/sys/types.h/conform): Add.
12396 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
12397 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
12398 (test-xfail-XOPEN2K/netdb.h/conform): Add.
12399 (test-xfail-XOPEN2K/signal.h/conform): Add.
12400 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
12401 (test-xfail-XOPEN2K/regex.h/conform): Add.
12402 (test-xfail-XOPEN2K/aio.h/conform): Add.
12403 (test-xfail-XOPEN2K/ftw.h/conform): Add.
12404 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
12405 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
12406 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
12407 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
12408 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
12409 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
12410 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
12411 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
12412 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
12413 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
12414 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
12415 (test-xfail-XOPEN2K8/signal.h/conform): Add.
12416 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
12417 (test-xfail-XOPEN2K8/regex.h/conform): Add.
12418 (test-xfail-XOPEN2K8/aio.h/conform): Add.
12419 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
12420 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
12421 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
12422 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
12423 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
12424 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
12425 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
12426 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
12427 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
12428 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
12429 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
12430 i386-gnu.
12431 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
12432 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
12433
12434 2018-04-18 Joseph Myers <joseph@codesourcery.com>
12435
12436 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
12437 --enable-obsolete for powerpc-linux-gnuspe.
12438
12439 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12440
12441 * conform/data/sys/un.h-data: Allow sun_ prefix.
12442 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
12443 prototypes.
12444 * sysdeps/mach/include/mach.h: Likewise.
12445 * sysdeps/mach/include/mach/mig_support.h: Likewise.
12446 * sysdeps/mach/include/mach_error.h: Likewise.
12447
12448 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12449
12450 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
12451 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
12452 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
12453 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
12454
12455 2018-04-16 Andreas Schwab <schwab@suse.de>
12456
12457 [BZ #19527]
12458 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
12459
12460 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
12461
12462 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
12463 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
12464
12465 2018-04-12 DJ Delorie <dj@redhat.com>
12466
12467 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12468 version to 4.16.
12469
12470 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
12471
12472 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
12473 (struct kernel_sigaction): Use the same definition on 31bit as is used
12474 on 64bit.
12475
12476 2018-04-09 Florian Weimer <fweimer@redhat.com>
12477
12478 [BZ #23037]
12479 * resolv/res_send.c (send_dg): Use designated initializers instead
12480 of assignment to zero-initialize other fields of struct mmsghdr.
12481
12482 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12483
12484 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
12485 __READDIR_ALIAS): Undefine after usage.
12486 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
12487 __READDIR_R_ALIAS): Likewise.
12488 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
12489 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
12490 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
12491 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
12492 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
12493 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
12494 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
12495 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12496 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
12497 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
12498 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
12499 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
12500 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
12501 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
12502 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
12503 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
12504 * sysdeps/unix/sysv/linux/readdir.c: New file.
12505 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
12506 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
12507 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
12508
12509 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
12510
12511 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
12512
12513 * manual/charset.texi (Converting a Character): Fix typo.
12514
12515 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12516
12517 * sysdeps/sparc/fpu/libm-test-ulps: Update.
12518
12519 * sysdeps/arm/libm-test-ulps: Update.
12520
12521 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
12522 as base implementation.
12523 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
12524 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12525 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12526 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12527 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12528 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
12529 remove unrequired definitions and update comments.
12530 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
12531 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
12532 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
12533 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
12534 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
12535 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
12536 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
12537 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
12538 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
12539 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
12540 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
12541 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
12542 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
12543 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
12544 and RESET_SA_RESTORER hooks.
12545
12546 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
12547
12548 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12549
12550 2018-04-05 Florian Weimer <fweimer@redhat.com>
12551
12552 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
12553 integer overflow, memory leak on error, and indeterminate errno
12554 value. Add a null wide character to terminate the result string.
12555 * manual/charset.texi (Converting a Character): Mention embedded
12556 null bytes in the mbrtowc input string. Explain what happens in
12557 the -2 result case. Do not claim that mbrtowc is simple or
12558 obvious to use. Adjust the description of the code example. Use
12559 @code, not @var, for concrete variables.
12560
12561 2018-04-05 Florian Weimer <fweimer@redhat.com>
12562
12563 * manual/examples/mbstouwcs.c: New file.
12564 * manual/charset.texi (Converting a Character): Include it.
12565
12566 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
12567
12568 * include/dirent.h (dirfd): Add hidden proto.
12569 * dirent/dirfd.c (dirfd): Add hidden def.
12570 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
12571 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
12572
12573 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12574
12575 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
12576 sin, cos and sincos to 1 ULP.
12577
12578 2018-04-04 Maciej W. Rozycki <macro@mips.com>
12579
12580 [BZ #19818]
12581 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
12582 symbols.
12583 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
12584 * elf/tst-absolute-sym.c: New file.
12585 * elf/tst-absolute-sym-lib.c: New file.
12586 * elf/tst-absolute-sym-lib.lds: New file.
12587 * elf/Makefile (tests): Add `tst-absolute-sym'.
12588 (modules-names): Add `tst-absolute-sym-lib'.
12589 (LDLIBS-tst-absolute-sym-lib.so): New variable.
12590 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
12591 ($(objpfx)tst-absolute-sym): New dependency.
12592
12593 [BZ #19818]
12594 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
12595 parameter.
12596 (SYMBOL_ADDRESS): New macro.
12597 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
12598 SYMBOL_ADDRESS for symbol address calculation.
12599 * elf/dl-runtime.c (_dl_fixup): Likewise.
12600 (_dl_profile_fixup): Likewise.
12601 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
12602 * elf/rtld.c (dl_main): Likewise.
12603 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
12604 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
12605 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
12606 (elf_machine_rela): Likewise.
12607 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
12608 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
12609 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
12610 (elf_machine_rela): Likewise.
12611 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
12612 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
12613 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
12614 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
12615 Likewise.
12616 (elf_machine_reloc): Likewise.
12617 (elf_machine_got_rel): Likewise.
12618 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
12619 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
12620 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
12621 Likewise.
12622 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12623 Likewise.
12624 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
12625 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
12626 Likewise.
12627 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
12628 Likewise.
12629 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12630 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
12631 Likewise.
12632 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12633 Likewise.
12634 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
12635 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
12636
12637 2018-04-04 Zack Weinberg <zackw@panix.com>
12638
12639 * sysdeps/generic/internal-signals.h: Include signal.h,
12640 sigsetops.h, and stdbool.h.
12641 (__libc_signal_block_all): Actually block all signals.
12642 (__libc_signal_block_app): Likewise.
12643 (__libc_signal_restore_set): Actually restore the signal mask.
12644
12645 2018-04-04 Florian Weimer <fweimer@redhat.com>
12646
12647 inet: Actually build and run tst-deadline.
12648 * inet/Makefile (tests-internal): Add tst-deadline and do not
12649 overwrite the variable.
12650 (tests-static-internal): Remove variable.
12651
12652 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
12653
12654 [BZ #22947]
12655 * bits/uio-ext.h (RWF_APPEND): New.
12656 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
12657 * manual/llio.texi: Document RWF_APPEND.
12658 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
12659 (RWF_SUPPORTED): Add RWF_APPEND.
12660
12661 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12662
12663 [BZ #22391]
12664 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
12665 check for internal nptl signals.
12666 * nptl/sigaction.c (__sigaction): Likewise.
12667 * signal/sigaddset.c (sigaddset): Likewise.
12668 * signal/sigdelset.c (sigdelset): Likewise.
12669 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
12670 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
12671 value.
12672 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
12673 to filter out internal nptl signals.
12674 * signal/tst-sigset.c (do_test): Check ech signal indidually and
12675 also check realtime signals using standard macros.
12676 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
12677 __is_internal_signal, __libc_signal_block_all,
12678 __libc_signal_block_app, __libc_signal_restore_set): New functions.
12679 * sysdeps/nptl/sigfillset.c: Remove file.
12680 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
12681 Change return to bool.
12682 (__clear_internal_signals): Remove SIGTIMER clean since it is
12683 equal to SIGCANEL on Linux.
12684 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
12685 signal set was constructed using standard functions.
12686
12687 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
12688
12689 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
12690 ifname is too long.
12691 * hurd/hurdsig.c (interrupted_reply_port_location): Use
12692 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
12693 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
12694 hidden def.
12695 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
12696 * signal/sigaddset.c: Include <sigsetopts.h>.
12697 * signal/sigdelset.c: Likewise.
12698
12699 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12700
12701 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
12702 (__cos): Likewise.
12703 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
12704 logic as sin and cos.
12705
12706 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12707
12708 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
12709 inputs. Return correct sign.
12710 (do_sincos): Remove small input check before do_sin, let do_sin set
12711 the sign.
12712 (__sin): Likewise.
12713 (__cos): Likewise.
12714
12715 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12716
12717 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
12718 (do_cos_slow): Likewise.
12719 (do_sin_slow): Likewise.
12720 (reduce_and_compute): Likewise.
12721 (slow): Likewise.
12722 (slow1): Likewise.
12723 (slow2): Likewise.
12724 (sloww): Likewise.
12725 (sloww1): Likewise.
12726 (sloww2): Likewise.
12727 (bslow): Likewise.
12728 (bslow1): Likewise.
12729 (bslow2): Likewise.
12730 (cslow2): Likewise.
12731
12732 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12733
12734 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
12735 (do_cos): Remove corp parameter and calculations.
12736 (do_sin): Likewise.
12737 (do_sincos): Remove cor variable.
12738 (__sin): Use do_sincos for huge inputs.
12739 (__cos): Likewise.
12740 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12741 (reduce_and_compute_sincos): Remove unused function.
12742
12743 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12744
12745 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
12746 reduce_sincos, improve accuracy to 136 bits.
12747 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
12748 (__sin): Use improved reduction and simplified do_sincos calculation.
12749 (__cos): Likewise.
12750 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12751
12752 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12753
12754 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
12755 (do_sincos_2): Likewise.
12756 (__sin): Remove middle range reduction case.
12757 (__cos): Likewise.
12758 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
12759 reduction case.
12760
12761 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12762
12763 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
12764 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
12765 inputs.
12766 (__cos): Likewise.
12767 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
12768
12769 2018-04-03 Joseph Myers <joseph@codesourcery.com>
12770
12771 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12772 version to 4.16
12773
12774 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12775
12776 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
12777 Remove definitions.
12778 (opendir_oflags): Use O_DIRECTORY regardless.
12779 (__opendir, __opendirat): Remove need_isdir_precheck usage.
12780 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
12781
12782 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12783
12784 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
12785 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
12786 macros.
12787 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
12788 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
12789 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
12790 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
12791 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
12792 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
12793
12794 * htl/Makefile: Bump licence to LGPL 2.1+.
12795 * htl/alloca_cutoff.c: Likewise.
12796 * htl/cthreads-compat.c: Likewise.
12797 * htl/lockfile.c: Likewise.
12798 * htl/pt-alloc.c: Likewise.
12799 * htl/pt-cancel.c: Likewise.
12800 * htl/pt-cleanup.c: Likewise.
12801 * htl/pt-create.c: Likewise.
12802 * htl/pt-dealloc.c: Likewise.
12803 * htl/pt-detach.c: Likewise.
12804 * htl/pt-exit.c: Likewise.
12805 * htl/pt-getattr.c: Likewise.
12806 * htl/pt-initialize.c: Likewise.
12807 * htl/pt-internal.h: Likewise.
12808 * htl/pt-join.c: Likewise.
12809 * htl/pt-self.c: Likewise.
12810 * htl/pt-setcancelstate.c: Likewise.
12811 * htl/pt-setcanceltype.c: Likewise.
12812 * htl/pt-sigmask.c: Likewise.
12813 * htl/pt-spin-inlines.c: Likewise.
12814 * htl/pt-testcancel.c: Likewise.
12815 * htl/pt-yield.c: Likewise.
12816 * htl/tests/test-1.c: Likewise.
12817 * htl/tests/test-10.c: Likewise.
12818 * htl/tests/test-11.c: Likewise.
12819 * htl/tests/test-12.c: Likewise.
12820 * htl/tests/test-13.c: Likewise.
12821 * htl/tests/test-14.c: Likewise.
12822 * htl/tests/test-15.c: Likewise.
12823 * htl/tests/test-16.c: Likewise.
12824 * htl/tests/test-17.c: Likewise.
12825 * htl/tests/test-2.c: Likewise.
12826 * htl/tests/test-3.c: Likewise.
12827 * htl/tests/test-4.c: Likewise.
12828 * htl/tests/test-5.c: Likewise.
12829 * htl/tests/test-6.c: Likewise.
12830 * htl/tests/test-7.c: Likewise.
12831 * htl/tests/test-8.c: Likewise.
12832 * htl/tests/test-9.c: Likewise.
12833 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
12834 * sysdeps/htl/bits/cancelation.h: Likewise.
12835 * sysdeps/htl/bits/pthread-np.h: Likewise.
12836 * sysdeps/htl/bits/pthread.h: Likewise.
12837 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
12838 * sysdeps/htl/bits/semaphore.h: Likewise.
12839 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
12840 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
12841 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
12842 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
12843 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
12844 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
12845 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
12846 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
12847 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
12848 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
12849 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
12850 * sysdeps/htl/old_pt-atfork.c: Likewise.
12851 * sysdeps/htl/pt-atfork.c: Likewise.
12852 * sysdeps/htl/pt-attr-destroy.c: Likewise.
12853 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
12854 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
12855 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
12856 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
12857 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
12858 * sysdeps/htl/pt-attr-getscope.c: Likewise.
12859 * sysdeps/htl/pt-attr-getstack.c: Likewise.
12860 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
12861 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
12862 * sysdeps/htl/pt-attr-init.c: Likewise.
12863 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
12864 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
12865 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
12866 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
12867 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
12868 * sysdeps/htl/pt-attr-setscope.c: Likewise.
12869 * sysdeps/htl/pt-attr-setstack.c: Likewise.
12870 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
12871 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
12872 * sysdeps/htl/pt-attr.c: Likewise.
12873 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
12874 * sysdeps/htl/pt-barrier-init.c: Likewise.
12875 * sysdeps/htl/pt-barrier-wait.c: Likewise.
12876 * sysdeps/htl/pt-barrier.c: Likewise.
12877 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
12878 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
12879 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
12880 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
12881 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
12882 * sysdeps/htl/pt-cond-destroy.c: Likewise.
12883 * sysdeps/htl/pt-cond-init.c: Likewise.
12884 * sysdeps/htl/pt-cond-signal.c: Likewise.
12885 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
12886 * sysdeps/htl/pt-cond-wait.c: Likewise.
12887 * sysdeps/htl/pt-cond.c: Likewise.
12888 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
12889 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
12890 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
12891 * sysdeps/htl/pt-condattr-init.c: Likewise.
12892 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
12893 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
12894 * sysdeps/htl/pt-destroy-specific.c: Likewise.
12895 * sysdeps/htl/pt-equal.c: Likewise.
12896 * sysdeps/htl/pt-getconcurrency.c: Likewise.
12897 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
12898 * sysdeps/htl/pt-getschedparam.c: Likewise.
12899 * sysdeps/htl/pt-getspecific.c: Likewise.
12900 * sysdeps/htl/pt-init-specific.c: Likewise.
12901 * sysdeps/htl/pt-key-create.c: Likewise.
12902 * sysdeps/htl/pt-key-delete.c: Likewise.
12903 * sysdeps/htl/pt-key.h: Likewise.
12904 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
12905 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
12906 * sysdeps/htl/pt-mutex-init.c: Likewise.
12907 * sysdeps/htl/pt-mutex-lock.c: Likewise.
12908 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
12909 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
12910 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
12911 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
12912 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
12913 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
12914 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
12915 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
12916 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
12917 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
12918 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
12919 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
12920 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
12921 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
12922 * sysdeps/htl/pt-mutexattr.c: Likewise.
12923 * sysdeps/htl/pt-once.c: Likewise.
12924 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
12925 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
12926 * sysdeps/htl/pt-rwlock-init.c: Likewise.
12927 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
12928 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
12929 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
12930 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
12931 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
12932 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
12933 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
12934 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
12935 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
12936 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
12937 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
12938 * sysdeps/htl/pt-setconcurrency.c: Likewise.
12939 * sysdeps/htl/pt-setschedparam.c: Likewise.
12940 * sysdeps/htl/pt-setschedprio.c: Likewise.
12941 * sysdeps/htl/pt-setspecific.c: Likewise.
12942 * sysdeps/htl/pt-spin.c: Likewise.
12943 * sysdeps/htl/pt-startup.c: Likewise.
12944 * sysdeps/htl/pthread.h: Likewise.
12945 * sysdeps/htl/sem-close.c: Likewise.
12946 * sysdeps/htl/sem-destroy.c: Likewise.
12947 * sysdeps/htl/sem-getvalue.c: Likewise.
12948 * sysdeps/htl/sem-init.c: Likewise.
12949 * sysdeps/htl/sem-open.c: Likewise.
12950 * sysdeps/htl/sem-post.c: Likewise.
12951 * sysdeps/htl/sem-timedwait.c: Likewise.
12952 * sysdeps/htl/sem-trywait.c: Likewise.
12953 * sysdeps/htl/sem-unlink.c: Likewise.
12954 * sysdeps/htl/sem-wait.c: Likewise.
12955 * sysdeps/hurd/htl/pt-kill.c: Likewise.
12956 * sysdeps/i386/htl/pt-machdep.h: Likewise.
12957 * sysdeps/mach/htl/pt-block.c: Likewise.
12958 * sysdeps/mach/htl/pt-spin.c: Likewise.
12959 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
12960 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
12961 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
12962 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
12963 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
12964 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
12965 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
12966 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
12967 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
12968 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
12969 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
12970 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
12971 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
12972 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
12973 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
12974 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
12975 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
12976 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
12977 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
12978 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
12979 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
12980 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
12981 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
12982 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
12983 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
12984 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
12985 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
12986 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
12987 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
12988 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
12989 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
12990 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
12991 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
12992 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
12993 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
12994 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
12995 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
12996 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
12997 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
12998 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
12999 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13000 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13001 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13002
13003 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13004 * README: Remove the mention of out-of-tree patches needed for
13005 GNU/Hurd.
13006
13007 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13008 (UTIME_NOW, UTIME_OMIT): Define macros.
13009
13010 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13011 instead of pthread_detach.
13012 (__cthread_fork): Call __pthread_create instead of pthread_create.
13013 (__cthread_keycreate): Call __pthread_key_create instead of
13014 pthread_key_create.
13015 (__cthread_getspecific): Call __pthread_getspecific instead of
13016 pthread_getspecific.
13017 (__cthread_setspecific): Call __pthread_setspecific instead of
13018 pthread_setspecific.
13019 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13020 __pthread_mutex_unlock instead of pthread_mutex_lock and
13021 pthread_mutex_unlock.
13022 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13023 ___pthread_get_cleanup_stack.
13024 (__pthread_get_cleanup_stack): New strong alias.
13025 * htl/pt-create.c: Include <pthreadP.h>.
13026 (entry_point): Call __pthread_exit instead of pthread_exit.
13027 (pthread_create): Rename to __pthread_create.
13028 (pthread_create): New strong alias.
13029 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13030 (pthread_detach): New strong alias.
13031 (__pthread_detach): Call __pthread_cond_broadcast instead of
13032 pthread_cond_broadcast.
13033 * htl/pt-exit.c: Include <pthreadP.h>.
13034 (__pthread_exit): Call __pthread_setcancelstate and
13035 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13036 __pthread_get_cleanup_stack.
13037 * htl/pt-testcancel.c: Include <pthreadP.h>.
13038 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13039 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13040 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13041 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13042 pthread_attr_getstacksize.
13043 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13044 Rename to __pthread_attr_getstackaddr.
13045 (pthread_attr_getstackaddr): New strong alias.
13046 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13047 Rename to __pthread_attr_getstacksize.
13048 (pthread_attr_getstacksize): New strong alias.
13049 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13050 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13051 (pthread_attr_setstack): New strong alias.
13052 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13053 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13054 pthread_attr_getstacksize, pthread_attr_setstacksize and
13055 pthread_attr_setstackaddr.
13056 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13057 Rename to __pthread_attr_setstackaddr.
13058 (pthread_attr_setstackaddr): New strong alias.
13059 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13060 Rename to __pthread_attr_setstacksize.
13061 (pthread_attr_setstacksize): New strong alias.
13062 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13063 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13064 pthread_exit.
13065 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13066 (__pthread_key_create): New hidden def.
13067 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13068 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13069 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13070 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13071 __pthread_setspecific, __pthread_setcancelstate,
13072 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13073 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13074 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13075 declarations.
13076 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13077 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13078 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13079 (pthread_attr_setstackaddr): New strong alias.
13080 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13081 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13082 (pthread_attr_setstacksize): New strong alias.
13083 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13084 (call_exit): Call __pthread_exit instead of pthread_exit.
13085 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13086 (_pthread_mutex_init): New hidden definition.
13087 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13088 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13089 instead of pthread_attr_init and pthread_attr_setstack.
13090
13091 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13092 __vm_deallocate instead of vm_allocate and vm_deallocate.
13093 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13094 setenv.
13095 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13096 of geteuid.
13097 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13098 strdup.
13099 * hurd/siginfo.c: Include <libioP.h>.
13100 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13101 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13102 munmap.
13103 * mach/devstream.c: Include <libioP.h>.
13104 (dealloc_ref): Call __mach_port_deallocate instead of
13105 mach_port_deallocate.
13106 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13107 Call __mach_port_deallocate instead of mach_port_deallocate.
13108 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13109 pathconf.
13110 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13111 munmap.
13112 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13113 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13114 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13115 of munmap.
13116 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13117 of close.
13118 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13119 instead of sysconf.
13120 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13121 __clock_gettime instead of clock_gettime.
13122 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13123 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13124 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13125 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13126 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13127 tcgetattr.
13128 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13129 __clock_gettime and __nanosleep instead of clock_gettime and
13130 nanosleep.
13131 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13132 __hurd_catch_signal.
13133 (hurd_catch_signal): New strong alias.
13134 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13135 __hurd_catch_signal instead of hurd_catch_signal.
13136 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13137 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13138 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13139 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13140 (_hurd_thread_sigstate): Add hidden def.
13141 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13142 mutex_unlock.
13143 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13144 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13145 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13146 __hurd_file_name_path_lookup.
13147 (hurd_file_name_path_lookup): New strong alias.
13148 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13149 hurd_file_name_path_lookup.
13150 * mach/errstring.c (mach_error_type): Add hidden def.
13151 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13152 * mach/mutex-init.c (__mutex_init): Add hidden def.
13153 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13154 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13155 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13156 * sysdeps/mach/hurd/getcwd.c
13157 (_hurd_canonicalize_directory_name_internal): Rename to
13158 __hurd_canonicalize_directory_name_internal.
13159 (_hurd_canonicalize_directory_name_internal): New strong alias.
13160 (__canonicalize_directory_name_internal, __getcwd): Call
13161 __hurd_canonicalize_directory_name_internal instead of
13162 _hurd_canonicalize_directory_name_internal.
13163 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13164 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13165 hidden defs.
13166 * sysdeps/hurd/include/hurd.h: New file.
13167 * sysdeps/hurd/include/hurd/fd.h: New file.
13168 * sysdeps/hurd/include/hurd/signal.h: New file.
13169 * sysdeps/mach/include/lock-intern.h: New file.
13170 * sysdeps/mach/include/mach.h: New file.
13171 * sysdeps/mach/include/mach/mig_support.h: New file.
13172 * sysdeps/mach/include/mach_error.h: New file.
13173 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13174 prototype.
13175 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13176 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13177 _HEADER_H_HIDDEN_DEF macro.
13178 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13179 _hurd_fd_error_signal): Add hidden prototype.
13180 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13181 hidden def.
13182 * libio/iolibio.h (_IO_puts): New hidden prototype.
13183 * libio/ioputs.c (_IO_puts): New hidden def.
13184 * sysdeps/mach/hurd/localplt.data: New file.
13185
13186 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13187 Amos Jeffries <squid3@treenet.co.nz>
13188 David Michael <fedora.dm0@gmail.com>
13189 Marco Gerards <marco@gnu.org>
13190 Marcus Brinkmann <marcus@gnu.org>
13191 Neal H. Walfield <neal@gnu.org>
13192 Pino Toscano <toscano.pino@tiscali.it>
13193 Richard Braun <rbraun@sceen.net>
13194 Roland McGrath <roland@gnu.org>
13195 Samuel Thibault <samuel.thibault@ens-lyon.org>
13196 Thomas DiModica <ricinwich@yahoo.com>
13197 Thomas Schwinge <tschwinge@gnu.org>
13198
13199 * htl: New directory.
13200 * sysdeps/htl: New directory.
13201 * sysdeps/hurd/htl: New directory.
13202 * sysdeps/i386/htl: New directory.
13203 * sysdeps/mach/htl: New directory.
13204 * sysdeps/mach/hurd/htl: New directory.
13205 * sysdeps/mach/hurd/i386/htl: New directory.
13206 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13207 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13208 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13209
13210 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13211
13212 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13213 signals in thread created for runing timers.
13214
13215 2018-04-01 Florian Weimer <fweimer@redhat.com>
13216
13217 * support/support_format_addrinfo.c (support_format_addrinfo):
13218 Include unknown error number in formatted result.
13219
13220 2018-03-29 Florian Weimer <fweimer@redhat.com>
13221
13222 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13223 capture SIGBUS.
13224
13225 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13226
13227 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13228 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13229 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13230 (__ASSUME_CLONE_BACKWARDS): Define.
13231
13232 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13233
13234 [BZ #23024]
13235 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13236 early when linux sentinel value is set.
13237
13238 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13239
13240 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13241
13242 2018-03-27 Andreas Schwab <schwab@suse.de>
13243
13244 [BZ #23005]
13245 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13246 allocation of private copy of nsaddr_list fails.
13247
13248 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13249
13250 [BZ #16552]
13251 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13252 * sysdeps/unix/sysv/linux/umount.c: ... here.
13253 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13254 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13255 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13256 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13257 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13258 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13259 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13260
13261 2018-03-26 Andreas Schwab <schwab@suse.de>
13262
13263 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13264 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13265 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13266 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13267 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13268 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13269 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13270 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13271 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13272 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13273 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13274 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13275 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13276 (R_RISCV_NUM): Define.
13277
13278 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13279
13280 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13281 TLS declaration of errno.
13282 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13283 __libc_setup_tls.
13284 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13285 (ARCH_SETUP_TLS): Likewise.
13286 * sysdeps/mach/hurd/libc-start.h: New file copied from
13287 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13288 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13289 instead of __libc_setup_tls.
13290 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13291 __libc_setup_tls before initializing libpthread and running _hurd_init
13292 which starts the signal thread.
13293 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13294 Declare function.
13295 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13296
13297 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
13298
13299 [BZ #22998]
13300 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
13301 after it is defined.
13302
13303 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
13304 Max Horn <max@quendi.de>
13305
13306 [BZ #22644]
13307 CVE-2017-18269
13308 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13309 branch conditions.
13310 * string/test-memmove.c (do_test2): New testcase.
13311
13312 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13313
13314 * sysdeps/generic/frame.h: Remove file.
13315 * sysdeps/arm/frame.h: Likewise.
13316 * sysdeps/hppa/frame.h: Likewise.
13317 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13318 macro.
13319 (GET_FRAME): Likewise.
13320 (GET_STACK): Likewise.
13321 (CALL_SIGHANDLER): Likewise.
13322 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
13323 Likewise.
13324 (GET_FRAME): Likewise.
13325 (GET_STACK): Likewise.
13326 (CALL_SIGHANDLER): Likewise.
13327 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
13328 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13329 (GET_FRAME): Likewise.
13330 (GET_STACK): Likewise.
13331 (CALL_SIGHANDLER): Likewise.
13332 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
13333 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13334 (GET_FRAME): Likewise.
13335 (GET_STACK): Likewise.
13336 (ADVANCE_STACK_FRAME): Likewise.
13337 (CALL_SIGHANDLER): Likewise.
13338 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
13339 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13340 (GET_FRAME): Likewise.
13341 (GET_STACK): Likewise.
13342 (CALL_SIGHANDLER): Likewise.
13343 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
13344 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13345 (GET_FRAME): Likewise.
13346 (GET_STACK): Likewise.
13347 (CALL_SIGHANDLER): Likewise.
13348 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
13349 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13350 (GET_FRAME): Likewise.
13351 (GET_STACK): Likewise.
13352 (CALL_SIGHANDLER): Likewise.
13353 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
13354 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13355 (GET_FRAME): Likewise.
13356 (GET_STACK): Likewise.
13357 (CALL_SIGHANDLER): Likewise.
13358 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
13359 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13360 (GET_FRAME): Likewise.
13361 (GET_STACK): Likewise.
13362 (CALL_SIGHANDLER): Likewise.
13363 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
13364 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13365 (GET_FRAME): Likewise.
13366 (GET_STACK): Likewise.
13367 (CALL_SIGHANDLER): Likewise.
13368 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
13369 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13370 (GET_FRAME): Likewise.
13371 (GET_STACK): Likewise.
13372 (CALL_SIGHANDLER): Likewise.
13373 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
13374 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13375 (GET_FRAME): Likewise.
13376 (GET_STACK): Likewise.
13377 (CALL_SIGHANDLER): Likewise.
13378 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
13379 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13380 (GET_FRAME): Likewise.
13381 (GET_STACK): Likewise.
13382 (CALL_SIGHANDLER): Likewise.
13383 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
13384 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13385 (FIRST_FRAME_POINTER): Likewise.
13386 (ADVANCE_STACK_FRAME): Likewise.
13387 (GET_STACK): Likewise.
13388 (GET_FRAME): Likewise.
13389 (CALL_SIGHANDLER): Likewise.
13390 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
13391 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13392 (ADVANCE_STACK_FRAME): Likewise.
13393 (GET_STACK): Likewise.
13394 (GET_FRAME): Likewise.
13395 (CALL_SIGHANDLER): Likewise.
13396 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
13397 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13398 (GET_FRAME): Likewise.
13399 (GET_STACK): Likewise.
13400 (CALL_SIGHANDLER): Likewise.
13401 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
13402 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13403 (GET_FRAME): Likewise.
13404 (GET_STACK): Likewise.
13405 (CALL_SIGHANDLER): Likewise.
13406
13407 2018-03-21 Joseph Myers <joseph@codesourcery.com>
13408
13409 * sysdeps/x86_64/backtrace.c: Move to ....
13410 * debug/backtrace.c: ... here.
13411 * sysdeps/aarch64/backtrace.c: Remove file.
13412 * sysdeps/alpha/backtrace.c: Likewise.
13413 * sysdeps/hppa/backtrace.c: Likewise.
13414 * sysdeps/ia64/backtrace.c: Likewise.
13415 * sysdeps/mips/backtrace.c: Likewise.
13416 * sysdeps/nios2/backtrace.c: Likewise.
13417 * sysdeps/riscv/backtrace.c: Likewise.
13418 * sysdeps/sh/backtrace.c: Likewise.
13419 * sysdeps/tile/backtrace.c: Likewise.
13420
13421 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13422
13423 [BZ #22987]
13424 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
13425 function.
13426 (fdimf): Likewise.
13427 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
13428
13429 [BZ #17343]
13430 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
13431 possibly overflowing computations.
13432
13433 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
13434
13435 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
13436 values from Linux-specific section now that it is in the GNU section.
13437 * sysdeps/gnu/errlist.c: Regenerate.
13438
13439 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13440
13441 * math/Makefile (libm-narrow-fns): Add sub.
13442 (libm-test-funcs-narrow): Likewise.
13443 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
13444 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
13445 * math/gen-auto-libm-tests.c (test_functions): Add sub.
13446 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
13447 (NARROW_SUB_ROUND_TO_ODD): Likewise.
13448 (NARROW_SUB_TRIVIAL): Likewise.
13449 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
13450 macro.
13451 (__dsubl): Likewise.
13452 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
13453 dsub.
13454 (CFLAGS-nldbl-dsub.c): New variable.
13455 (CFLAGS-nldbl-fsub.c): Likewise.
13456 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13457 __nldbl_dsubl.
13458 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
13459 prototype.
13460 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
13461 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
13462 * math/auto-libm-test-in: Add tests of sub.
13463 * math/auto-libm-test-out-narrow-sub: New generated file.
13464 * math/libm-test-narrow-sub.inc: New file.
13465 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13466 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
13467 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
13468 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
13469 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
13470 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
13471 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
13472 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
13473 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
13474 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
13475 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
13476 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
13477 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
13478 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
13479 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
13480 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
13481 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
13482 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
13483 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13484 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13485 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13486 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13487 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13488 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13489 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13490 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13491 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13492 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13493 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13494 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13495 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13496 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13497 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13498 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13499 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13500 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13501 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13502 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13503 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13504 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13505 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13506 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13507 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
13508 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
13509 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13510 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13511
13512 2018-03-19 Joseph Myers <joseph@codesourcery.com>
13513
13514 [BZ #20079]
13515 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
13516
13517 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
13518
13519 * benchtests/bench-timing.h (attribute_hidden): Undefine.
13520
13521 2018-03-18 Richard Braun <rbraun@sceen.net>
13522
13523 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
13524 thread reference.
13525
13526 2018-03-18 Agustina Arzille <avarzille@riseup.net>
13527
13528 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
13529 (__libc_cleanup_fct): Define function.
13530 (__libc_cleanup_region_start, __libc_cleanup_region_end,
13531 __libc_cleanup_end): Rewrite implementation using
13532 __attribute__ ((__cleanup__)).
13533 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
13534 * hurd/Makefile (routines): Add hurdlock.
13535 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
13536 interface.
13537 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
13538 * hurd/hurdpid.c: Include <lowlevellock.h>
13539 (_S_msg_proc_newids): Use lll_wait to synchronize.
13540 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
13541 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
13542 * mach/Makefile (lock-headers): Remove machine-lock.h.
13543 * mach/lock-intern.h: Include <lowlevellock.h> instead of
13544 <machine-lock.h>.
13545 (__spin_lock_t): New type.
13546 (__SPIN_LOCK_INITIALIZER): New macro.
13547 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
13548 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
13549 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
13550 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
13551 (__mutex_init): Initialize with lll.
13552 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
13553 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
13554 needing lll.
13555 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13556 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
13557 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
13558 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
13559 (__setpgid): Use lll for synchronization.
13560 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
13561 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
13562 instead of <cthreads.h>.
13563 (_IO_lock_inexpensive): New macro
13564 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
13565 (__libc_lock_self0): New declaration.
13566 (__libc_lock_owner_self): New macro.
13567 (__libc_key_t): Remove type.
13568 (_LIBC_LOCK_INITIALIZER): New macro.
13569 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
13570 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
13571 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
13572 __libc_lock_define_initialized_recursive,
13573 __rtld_lock_define_initialized_recursive,
13574 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
13575 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
13576 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
13577 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
13578 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
13579 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
13580 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
13581 New macros.
13582 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
13583 * hurd/hurdlock.c: New file.
13584 * hurd/hurdlock.h: New file.
13585 * mach/lowlevellock.h: New file
13586
13587 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13588
13589 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
13590 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
13591 when opening a symlink with O_NOFOLLOW.
13592 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
13593 path when flags contains O_NOFOLLOW.
13594 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
13595 if flags contains O_DIRECTORY and the result is a directory.
13596 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
13597 oneself when the pointer given in D is nul (as set by ext2fs).
13598 * sysdeps/mach/hurd/mlockall.c: New file.
13599 * sysdeps/mach/hurd/munlockall.c: New file.
13600
13601 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
13602
13603 * hurd/hurdsig.c: Include <pthread.h>.
13604 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
13605 get the signal thread stack layout.
13606 * hurd/Makefile (headers): Remove threadvar.h.
13607 (inline-headers): Remove threadvar.h.
13608 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
13609 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
13610 __hurd_threadvar_max, __hurd_errno_location.
13611 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
13612 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
13613 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
13614 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
13615 unless TLS is not initialized yet, in which case we do not need a
13616 critical section yet anyway.
13617 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
13618 <machine-sp.h>.
13619 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
13620 declarations.
13621 (__hurd_threadvar_index): Remove enum.
13622 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
13623 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
13624 inlines.
13625 (__hurd_reply_port0): New variable declaration.
13626 (__hurd_local_reply_port): New macro.
13627 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
13628 (interrupted_reply_port_location): Add thread_t parameter. Use it
13629 with THREAD_TCB to access thread-local variables.
13630 (_hurdsig_abort_rpcs): Pass ss->thread to
13631 interrupted_reply_port_location.
13632 (_hurd_internal_post_signal): Likewise.
13633 (_hurdsig_init): Use presence of cthread_fork instead of
13634 __hurd_threadvar_stack_mask to start signal thread by hand.
13635 Remove signal thread threadvar initialization.
13636 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
13637 * hurd/sigunwind.c: Include <hurd/threadvar.h>
13638 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
13639 of threadvar.
13640 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
13641 __libc_lock_self0.
13642 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
13643 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
13644 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
13645 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
13646 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
13647 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
13648 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
13649 define variables.
13650 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
13651 <hurd/threadvar.h>.
13652 [IS_IN(rtld)] (rtld_errno): New variable.
13653 [IS_IN(rtld)] (__errno_location): New weak function.
13654 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
13655 * sysdeps/mach/hurd/errno.c: Remove file.
13656 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
13657 (__fork): Remove THREADVAR_SPACE macro and its use.
13658 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
13659 variable.
13660 (init): Do not initialize threadvar.
13661 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
13662 symbol.
13663 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
13664 __hurd_local_reply_port instead of threadvar.
13665 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
13666 _hurd_sigstate fields.
13667 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
13668 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
13669 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
13670 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
13671 instead of threadvar.
13672 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
13673 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
13674 (use_threadvar, global_reply_port): Remove variables.
13675 (__hurd_reply_port0): New variable.
13676 (__mig_get_reply_port): Use __hurd_local_reply_port and
13677 __hurd_reply_port0 instead of threadvar.
13678 (__mig_dealloc_reply_port): Likewise.
13679 (__mig_init): Do not initialize threadvar.
13680 * sysdeps/mach/hurd/profil.c: Fix comment.
13681 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
13682 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
13683 cthread_keycreate, cthread_getspecific, cthread_setspecific to
13684 __cthread_fork, __cthread_detach, __pthread_getattr_np,
13685 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
13686 __cthread_setspecific.
13687 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
13688 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
13689 __cthread_t instead of cthread_fork, cthread_detach,
13690 pthread_getattr_np, pthread_attr_getstack.
13691 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
13692 __cthread_keycreate.
13693 (cthread_getspecific): Rename to __cthread_getspecific.
13694 (cthread_setspecific): Rename to __cthread_setspecific.
13695 (__libc_getspecific): Use __cthread_getspecific instead of
13696 cthread_getspecific.
13697 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
13698 __cthread_keycreate instead of cthread_keycreate.
13699 (__libc_setspecific): Use __cthread_setspecific instead of
13700 cthread_setspecific.
13701 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
13702 Likewise.
13703 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
13704 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
13705 testing whether it is defined.
13706
13707 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
13708
13709 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
13710 Define macro.
13711 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
13712 * sysdeps/mach/i386/thread_state.h
13713 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
13714 i386_THREAD_STATE.
13715 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
13716 i386_THREAD_STATE.
13717 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
13718
13719 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
13720 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
13721
13722 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
13723 macros.
13724 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
13725 descriptor instead of creating a new one.
13726 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
13727
13728 * mach/setup-thread.c: Include <ldsodefs.h>.
13729 (__mach_setup_thread): Call _dl_allocate_tls, pass
13730 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
13731 MACHINE_THREAD_STATE_FLAVOR, before getting
13732 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
13733 MACHINE_THREAD_STATE_FLAVOR with the result.
13734 * hurd/hurdfault.c (_hurdsig_fault_init): Call
13735 MACHINE_THREAD_STATE_FIX_NEW.
13736 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
13737 too. Add original thread parameter.
13738
13739 2018-03-16 Joseph Myers <joseph@codesourcery.com>
13740
13741 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
13742 Remove inline function.
13743
13744 * sysdeps/i386/fpu/libm-test-ulps: Update.
13745 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
13746
13747 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
13748
13749 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
13750 commit.
13751
13752 2018-03-15 Joseph Myers <joseph@codesourcery.com>
13753
13754 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
13755 (__sincos_code): Remove define and undefine.
13756 [__FAST_MATH__] (__sincos): Remove inline function.
13757 [__FAST_MATH__] (__sincosf): Remove inline function.
13758 [__FAST_MATH__] (__sincosl): Remove inline function.
13759 (__atan2l): Remove inline functions.
13760 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
13761 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
13762 function.
13763 (floor): Remove inline function.
13764 (ceil): Likewise.
13765 [__FAST_MATH__] (__ldexp_code): Remove macro.
13766 [__FAST_MATH__] (ldexp): Remove inline function.
13767 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
13768 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
13769 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
13770 [__USE_ISOC99] (__lrint_code): Remove macro.
13771 [__USE_ISOC99] (__llrint_code): Likewise.
13772 [__USE_ISOC99] (lrintf): Remove inline function.
13773 [__USE_ISOC99] (lrint): Likewise.
13774 [__USE_ISOC99] (lrintl): Likewise.
13775 [__USE_ISOC99] (llrint): Likewise.
13776 [__USE_ISOC99] (llrintf): Likewise.
13777 [__USE_ISOC99] (llrintl): Likewise.
13778
13779 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13780
13781 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
13782 (__ieee754_sqrtf): Remove.
13783 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
13784 (__ieee754_sqrtf): Remove.
13785 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
13786 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13787 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
13788 (__ieee754_sqrtf): Remove.
13789 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
13790 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
13791 (sqrtf): Remove.
13792 (sqrtl): Remove.
13793 (__ieee754_sqrt): Remove.
13794 (__ieee754_sqrtf): Remove.
13795 (__ieee754_sqrtl): Remove.
13796 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13797 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
13798 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
13799 (__ieee754_sqrtf): Remove.
13800 (__ieee754_sqrtl): Remove.
13801
13802 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13803
13804 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
13805 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
13806 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
13807 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
13808 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
13809 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
13810 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
13811 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
13812 Likewise.
13813 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
13814 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
13815 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
13816 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
13817 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
13818 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
13819 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
13820 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
13821 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
13822 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13823 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
13824 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
13825 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
13826 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
13827 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
13828 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
13829 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
13830 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
13831 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
13832 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
13833 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13834 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13835 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
13836 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
13837 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
13838 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
13839 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13840 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13841 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
13842 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13843 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
13844 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
13845 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
13846 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
13847 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13848 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
13849 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
13850 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
13851 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
13852 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
13853
13854 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13855
13856 * include/math.h (sqrt): Declare with asm redirect.
13857 (sqrtf): Likewise.
13858 (sqrtl): Likewise.
13859 (sqrtf128): Likewise.
13860 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
13861 nonlib and libnldbl with -fmath-errno.
13862 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
13863 * math/w_sqrt_template.c: Likewise.
13864 * math/w_sqrtf_compat.c: Likewise.
13865 * math/w_sqrtl_compat.c: Likewise.
13866 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
13867 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
13868 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
13869 complex.h.
13870
13871 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13872
13873 * benchtests/Makefile: Define _ISOMAC.
13874 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
13875 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
13876 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
13877 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
13878 * benchtests/bench-timing.h: Define attribute_hidden.
13879
13880 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13881
13882 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
13883 mov + lsr.
13884
13885 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13886
13887 [BZ #22963]
13888 * localedata/locales/cs_CZ (mon): Rename to...
13889 (alt_mon): This.
13890 (mon): Import from CLDR (genitive case).
13891
13892 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13893
13894 [BZ #22937]
13895 * localedata/locales/el_CY (abmon): Rename to...
13896 (ab_alt_mon): This.
13897 (abmon): Import from CLDR (abbreviated genitive case).
13898 * localedata/locales/el_GR (abmon): Rename to...
13899 (ab_alt_mon): This.
13900 (abmon): Import from CLDR (abbreviated genitive case).
13901
13902 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13903
13904 [BZ #22932]
13905 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
13906
13907 2018-03-15 Robert Buj <robert.buj@gmail.com>
13908
13909 [BZ #22848]
13910 * localedata/locales/ca_ES (abmon): Rename to...
13911 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
13912 (mon): Rename to...
13913 (alt_mon): This.
13914 (abmon): Import from CLDR (genitive case, month names preceded by
13915 "de" or "d’").
13916 (mon): Likewise.
13917 (abday): Synchronize with CLDR.
13918 (d_t_fmt): Likewise.
13919 (d_fmt): Likewise.
13920 (am_pm): Likewise.
13921
13922 (LC_TIME): Improve indentation.
13923 (LC_TELEPHONE): Likewise.
13924 (LC_NAME): Likewise.
13925 (LC_ADDRESS): Likewise.
13926
13927 2018-03-14 Joseph Myers <joseph@codesourcery.com>
13928
13929 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
13930 (lrintf): Remove definitions used only with old GCC.
13931 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
13932 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
13933 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
13934 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
13935 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
13936 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
13937 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
13938 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
13939 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
13940 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
13941 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
13942 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
13943 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
13944 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
13945 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
13946 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
13947 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
13948 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
13949 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
13950 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
13951 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
13952 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
13953 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
13954 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
13955 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
13956 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
13957 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
13958 [__FAST_MATH__] (__M_SQRT2): Remove macro.
13959
13960 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
13961
13962 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
13963 instruction to unbreak builds with binutils 2.26 and older.
13964
13965 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
13966
13967 * sysdeps/aarch64/strncmp.S (count): New macro.
13968 (strncmp): Store misaligned length in SRC1 in COUNT.
13969 (mutual_align): Adjust.
13970 (misaligned8): Load dword at a time when it is safe.
13971
13972 2018-03-12 Zack Weinberg <zackw@panix.com>
13973
13974 [BZ #1190]
13975 [BZ #19476]
13976 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
13977 if the _IO_EOF_SEEN bit is already set; update commentary.
13978 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
13979 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
13980
13981 * support/support_openpty.c, support/tty.h: New files.
13982 * support/Makefile (libsupport-routines): Add support_openpty.
13983
13984 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
13985 New test cases.
13986 * libio/Makefile (tests): Add tst-fgetc-after-eof.
13987 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
13988
13989 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
13990
13991 * po/pt_BR.po: Update translations.
13992
13993 2018-03-12 David Michael <fedora.dm0@gmail.com>
13994
13995 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
13996 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
13997 get a port to the startup server.
13998
13999 2018-03-11 Zack Weinberg <zackw@panix.com>
14000
14001 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14002 before nldbl-compat.h.
14003
14004 2018-03-10 Zack Weinberg <zackw@panix.com>
14005
14006 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14007 math.h or math_private.h.
14008
14009 * sysdeps/alpha/fpu/s_isnan.c
14010 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14011 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14012 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14013 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14014 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14015 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14016 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14017 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14018 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14019 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14020 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14021 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14022 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14023 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14024 Include math_private.h.
14025
14026 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14027 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14028 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14029 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14030 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14031 * sysdeps/powerpc/power7/fpu/s_logb.c:
14032 Include math.h and math_private.h.
14033
14034 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14035 uses of $at in .set noat / .set at.
14036
14037 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14038
14039 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14040 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14041 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14042 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14043 Likewise.
14044
14045 2018-03-09 Florian Weimer <fweimer@redhat.com>
14046
14047 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14048 in comment.
14049
14050 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14051
14052 [BZ #22919]
14053 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14054 Add nop before __startcontext, add explaining comments.
14055
14056 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14057
14058 [BZ #22926]
14059 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14060 empty for __SPE__.
14061 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14062 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14063 Do not build hardware transactional code for __SPE__.
14064 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14065 (__lll_trylock_elision): Likewise.
14066 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14067 (__lll_unlock_elision): Likewise.
14068
14069 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14070 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14071 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14072 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14073 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14074 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14075 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14076 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14077 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14078 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14079 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14080 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14081 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14082 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14083 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14084 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14085 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14086 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14087 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14088 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14089 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14090 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14091 (__ASSUME_CLONE_BACKWARDS): Define.
14092 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14093 __clone2 if __NR_clone2 is defined.
14094 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14095 (__ASSUME_CLONE_BACKWARDS): Likewise.
14096 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14097 (__ASSUME_CLONE_BACKWARDS): Likewise.
14098 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14099 (__ASSUME_CLONE2): Likewise.
14100 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14101 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14102 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14103 variants and the define architecture can use.
14104 (__ASSUME_CLONE_DEFAULT): Define as default.
14105 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14106 (__ASSUME_CLONE_BACKWARDS): Likewise.
14107 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14108 (__ASSUME_CLONE_BACKWARDS): Likewise.
14109 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14110 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14111
14112 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14113
14114 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14115
14116 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14117 time.
14118
14119 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14120 (do_test_limit): Likewise.
14121
14122 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14123 for every implementation.
14124 (do_test): Likewise.
14125
14126 * benchtests/bench-strncmp.c: Convert output to json.
14127
14128 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14129
14130 * io/futimens.c: Add missing start-of-file descriptive comment.
14131 * io/utime.c: Likewise.
14132 * misc/futimesat.c: Likewise.
14133 * misc/utimes.c: Likewise.
14134 * sysdeps/mach/hurd/futimesat.c: Likewise.
14135 * sysdeps/mach/hurd/utimes.c: Likewise.
14136 * sysdeps/posix/utime.c: Likewise.
14137 * sysdeps/posix/utimes.c: Likewise.
14138 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14139 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14140 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14141 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14142
14143 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14144
14145 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14146 hurd_futimes.
14147 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14148 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14149 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14150 (__futimens): Move implementation to...
14151 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14152 utime_tvalue_from_tspec): ... new helper functions.
14153 (hurd_futimens): New function.
14154 * sysdeps/mach/hurd/futimesat.c: New file.
14155 * sysdeps/mach/hurd/utimensat.c: New file.
14156
14157 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14158
14159 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14160 UTIME_OMIT): New macros.
14161 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14162 before reverting to converting time spec to time value and calling
14163 __file_utimes.
14164 * sysdeps/mach/hurd/utime-helper.c: New file.
14165 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14166 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14167 reverting to utime_tvalue_from_tval and __file_utimes.
14168 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14169 (__lutimes): Just call hurd_futimens after lookup.
14170 * sysdeps/mach/hurd/utimes.c: Likewise.
14171
14172 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14173
14174 * bits/sigaction.h: Add include guard.
14175 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14176 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14177 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14178 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14179 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14180 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14181 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14182 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14183 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14184
14185 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14186
14187 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14188 -Wmaybe-uninitialized for -Os.
14189 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14190 this disabling.
14191
14192 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14193
14194 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14195 __INO_T_MATCHES_INO64_T is defined.
14196 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14197 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14198 of definition.
14199 * dirent/alphasort64.c: Likewise.
14200 * dirent/scandir.c: Likewise.
14201 * dirent/scandir64-tail.c: Likewise.
14202 * dirent/scandir64.c: Likewise.
14203 * dirent/scandirat.c: Likewise.
14204 * dirent/scandirat64.c: Likewise.
14205 * dirent/versionsort.c: Likewise.
14206 * dirent/versionsort64.c: Likewise.
14207 * include/dirent.h: Likewise.
14208
14209 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14210 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14211 for socketpair endpoint.
14212 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14213 WRITE_BUFFER_SIZE as buffer size for sending socket.
14214 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14215 issue on system where send is implemented with sendto syscall.
14216 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14217 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14218 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14219 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14220
14221 [BZ #21269]
14222 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14223 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14224 sa_restorer for vDSO case.
14225 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14226
14227 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14228
14229 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14230 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14231 * hurd/hurd/ioctl.h: Include <mach/port.h>
14232 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14233 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14234 <mach/mach_types.h> and <mach/message.h>.
14235 (headers): Move mach/param.h to bits/mach/param.h.
14236 * sysdeps/mach/i386/mach/param.h: Move file to ...
14237 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14238 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14239 of <mach/param.h>.
14240 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14241 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14242 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14243 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14244 trivial, for C++ conformity.
14245 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14246 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14247 Process mig output through $(migheadersed).
14248 * hurd/Makefile (migheadersed): Define variable.
14249 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14250 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14251 headers.
14252 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14253 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14254 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14255 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14256 <bits/types/sigset_t.h>.
14257 [!defined __USE_GNU]: Do not #error out.
14258 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14259 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14260 Include <stddef.h> and <bits/types/sigset_t.h>
14261 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14262 instead of sighandler_t.
14263 * stdlib/errno.h (error_t): Move definition to...
14264 * bits/types/error_t.h: ... new header.
14265 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14266 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14267 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14268 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14269 * hurd/hurd.h: Include <bits/types/error_t.h>
14270 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14271 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14272 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14273 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14274 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14275 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14276 * sysdeps/mach/hurd/futimens.c: New file.
14277
14278 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14279
14280 [BZ #22918]
14281 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14282 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14283 * nscd/gai.c (__nss_hosts_database): Readd definition.
14284 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14285 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14286 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14287
14288 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14289
14290 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14291 (ifunc_one): Likewise.
14292
14293 2018-03-01 DJ Delorie <dj@delorie.com>
14294
14295 [BZ #22342]
14296 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
14297 key value.
14298
14299 2018-03-01 Maciej W. Rozycki <macro@mips.com>
14300
14301 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
14302 `match_pid' parameter.
14303 (td_ta_thr_iter): Update accordingly.
14304
14305 2018-03-01 Florian Weimer <fweimer@redhat.com>
14306
14307 * nptl/Makefile (install-lib-ldscripts): Remove.
14308 (install): Remove rule.
14309 ($(inst_libdir)/libpthread.so): Likewise.
14310
14311 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14312
14313 [BZ #22896]
14314 * localedata/locales/an_ES: update month and day names,
14315 improve d_fmt, improve postal_fmt, add country_post,
14316 add country_isbn
14317
14318 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14319
14320 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
14321 Ukrainian instead of Bulgarian.
14322
14323 2018-03-01 Florian Weimer <fweimer@redhat.com>
14324
14325 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
14326 reference.
14327
14328 2018-03-01 Florian Weimer <fweimer@redhat.com>
14329
14330 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
14331 * nptl/Makefile (routines): Add pthread_atfork.
14332 (static-only-routines): Set to pthread_atfork.
14333 (libpthread-routines): Remove pthread_atfork.
14334 (libpthread-static-only-routines): Remove.
14335 (install): Update comment.
14336 (libpthread.so): Do not install libpthread_nonshared.a.
14337 (tests): Do not link with libpthread_nonshared.a.
14338 (generated): Remove libpthread_nonshared.a.
14339 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
14340 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
14341 with libpthread_nonshared.a.
14342
14343 2018-02-28 Joseph Myers <joseph@codesourcery.com>
14344
14345 [BZ #22902]
14346 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
14347 (libc_feholdexcept_setroundf128): New macro.
14348 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
14349
14350 [BZ #15105]
14351 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
14352 libc_hidden_def.
14353 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
14354 * include/inttypes.h: New file.
14355
14356 2018-02-27 Joseph Myers <joseph@codesourcery.com>
14357
14358 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
14359 -Os in two more places.
14360
14361 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14362
14363 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
14364 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
14365 be sorted correctly at the moment because of a bug.
14366
14367 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14368
14369 [BZ #22550] - es_ES locale (and other es_* locales): collation should
14370 treat ñ as a primary different character, sync the collation
14371 for Spanish with CLDR.
14372 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
14373 * localedata/Makefile: Add new test files.
14374 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
14375 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
14376 collation order.
14377 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
14378 * localedata/am_ET.UTF-8.in: New test file.
14379 * localedata/az_AZ.UTF-8.in: Likewise.
14380 * localedata/be_BY.UTF-8.in: Likewise.
14381 * localedata/ber_DZ.UTF-8.in: Likewise.
14382 * localedata/ber_MA.UTF-8.in: Likewise.
14383 * localedata/bg_BG.UTF-8.in: Likewise.
14384 * localedata/br_FR.UTF-8.in: Likewise.
14385 * localedata/cmn_TW.UTF-8.in: Likewise.
14386 * localedata/crh_UA.UTF-8.in: Likewise.
14387 * localedata/csb_PL.UTF-8.in: Likewise.
14388 * localedata/cv_RU.UTF-8.in: Likewise.
14389 * localedata/cy_GB.UTF-8.in: Likewise.
14390 * localedata/dz_BT.UTF-8.in: Likewise.
14391 * localedata/eo.UTF-8.in: Likewise.
14392 * localedata/es_ES.UTF-8.in: Likewise.
14393 * localedata/fa_IR.UTF-8.in: Likewise.
14394 * localedata/fi_FI.UTF-8.in: Likewise.
14395 * localedata/fil_PH.UTF-8.in: Likewise.
14396 * localedata/fur_IT.UTF-8.in: Likewise.
14397 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
14398 * localedata/ha_NG.UTF-8.in: Likewise.
14399 * localedata/ig_NG.UTF-8.in: Likewise.
14400 * localedata/ik_CA.UTF-8.in: Likewise.
14401 * localedata/kk_KZ.UTF-8.in: Likewise.
14402 * localedata/ku_TR.UTF-8.in: Likewise.
14403 * localedata/ky_KG.UTF-8.in: Likewise.
14404 * localedata/ln_CD.UTF-8.in: Likewise.
14405 * localedata/mi_NZ.UTF-8.in: Likewise.
14406 * localedata/ml_IN.UTF-8.in: Likewise.
14407 * localedata/mn_MN.UTF-8.in: Likewise.
14408 * localedata/mr_IN.UTF-8.in: Likewise.
14409 * localedata/mt_MT.UTF-8.in: Likewise.
14410 * localedata/nb_NO.UTF-8.in: Likewise.
14411 * localedata/om_KE.UTF-8.in: Likewise.
14412 * localedata/os_RU.UTF-8.in: Likewise.
14413 * localedata/ps_AF.UTF-8.in: Likewise.
14414 * localedata/ro_RO.UTF-8.in: Likewise.
14415 * localedata/ru_RU.UTF-8.in: Likewise.
14416 * localedata/sc_IT.UTF-8.in: Likewise.
14417 * localedata/se_NO.UTF-8.in: Likewise.
14418 * localedata/sq_AL.UTF-8.in: Likewise.
14419 * localedata/sv_SE.UTF-8.in: Likewise.
14420 * localedata/szl_PL.UTF-8.in: Likewise.
14421 * localedata/tg_TJ.UTF-8.in: Likewise.
14422 * localedata/tk_TM.UTF-8.in: Likewise.
14423 * localedata/tt_RU.UTF-8.in: Likewise.
14424 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
14425 * localedata/ug_CN.UTF-8.in: Likewise.
14426 * localedata/uz_UZ.UTF-8.in: Likewise.
14427 * localedata/vi_VN.UTF-8.in: Likewise.
14428 * localedata/yi_US.UTF-8.in: Likewise.
14429 * localedata/yo_NG.UTF-8.in: Likewise.
14430 * localedata/zh_CN.UTF-8.in: Likewise.
14431 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
14432 file and fix bugs in the collation.
14433 * localedata/locales/az_AZ: Likewise.
14434 * localedata/locales/be_BY: Likewise.
14435 * localedata/locales/ber_DZ: Likewise.
14436 * localedata/locales/ber_MA: Likewise.
14437 * localedata/locales/bg_BG: Likewise.
14438 * localedata/locales/br_FR: Likewise.
14439 * localedata/locales/br_FR@euro: Likewise.
14440 * localedata/locales/ca_ES: Likewise.
14441 * localedata/locales/cns11643_stroke: Likewise.
14442 * localedata/locales/crh_UA: Likewise.
14443 * localedata/locales/cs_CZ: Likewise.
14444 * localedata/locales/csb_PL: Likewise.
14445 * localedata/locales/cv_RU: Likewise.
14446 * localedata/locales/cy_GB: Likewise.
14447 * localedata/locales/da_DK: Likewise.
14448 * localedata/locales/dz_BT: Likewise.
14449 * localedata/locales/en_CA: Likewise.
14450 * localedata/locales/eo: Likewise.
14451 * localedata/locales/es_CU: Likewise.
14452 * localedata/locales/es_EC: Likewise.
14453 * localedata/locales/es_ES: Likewise.
14454 * localedata/locales/es_US: Likewise.
14455 * localedata/locales/et_EE: Likewise.
14456 * localedata/locales/fa_IR: Likewise.
14457 * localedata/locales/fi_FI: Likewise.
14458 * localedata/locales/fil_PH: Likewise.
14459 * localedata/locales/fur_IT: Likewise.
14460 * localedata/locales/gez_ER@abegede: Likewise.
14461 * localedata/locales/ha_NG: Likewise.
14462 * localedata/locales/hr_HR: Likewise.
14463 * localedata/locales/hsb_DE: Likewise.
14464 * localedata/locales/hu_HU: Likewise.
14465 * localedata/locales/ig_NG: Likewise.
14466 * localedata/locales/ik_CA: Likewise.
14467 * localedata/locales/is_IS: Likewise.
14468 * localedata/locales/iso14651_t1_pinyin: Likewise.
14469 * localedata/locales/kk_KZ: Likewise.
14470 * localedata/locales/ku_TR: Likewise.
14471 * localedata/locales/ky_KG: Likewise.
14472 * localedata/locales/ln_CD: Likewise.
14473 * localedata/locales/lt_LT: Likewise.
14474 * localedata/locales/lv_LV: Likewise.
14475 * localedata/locales/mi_NZ: Likewise.
14476 * localedata/locales/ml_IN: Likewise.
14477 * localedata/locales/mn_MN: Likewise.
14478 * localedata/locales/mr_IN: Likewise.
14479 * localedata/locales/mt_MT: Likewise.
14480 * localedata/locales/nb_NO: Likewise.
14481 * localedata/locales/om_KE: Likewise.
14482 * localedata/locales/os_RU: Likewise.
14483 * localedata/locales/pl_PL: Likewise.
14484 * localedata/locales/ps_AF: Likewise.
14485 * localedata/locales/ro_RO: Likewise.
14486 * localedata/locales/ru_RU: Likewise.
14487 * localedata/locales/ru_UA: Likewise.
14488 * localedata/locales/sc_IT: Likewise.
14489 * localedata/locales/se_NO: Likewise.
14490 * localedata/locales/si_LK: Likewise.
14491 * localedata/locales/sq_AL: Likewise.
14492 * localedata/locales/sv_FI: Likewise.
14493 * localedata/locales/sv_FI@euro: Likewise.
14494 * localedata/locales/sv_SE: Likewise.
14495 * localedata/locales/szl_PL: Likewise.
14496 * localedata/locales/tg_TJ: Likewise.
14497 * localedata/locales/ti_ER: Likewise.
14498 * localedata/locales/tk_TM: Likewise.
14499 * localedata/locales/tl_PH: Likewise.
14500 * localedata/locales/tr_TR: Likewise.
14501 * localedata/locales/tt_RU: Likewise.
14502 * localedata/locales/tt_RU@iqtelif: Likewise.
14503 * localedata/locales/ug_CN: Likewise.
14504 * localedata/locales/uk_UA: Likewise.
14505 * localedata/locales/uz_UZ: Likewise.
14506 * localedata/locales/uz_UZ@cyrillic: Likewise.
14507 * localedata/locales/vi_VN: Likewise.
14508 * localedata/locales/yi_US: Likewise.
14509 * localedata/locales/yo_NG: Likewise.
14510
14511 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14512
14513 * gen-locales.mk: Make test files which contain @ modifiers in their
14514 name work.
14515 * localedata/gen-locale.sh: Likewise.
14516
14517 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14518
14519 * posix/tst-fnmatch.input: Fix results for range expressions
14520 for non C locales.
14521 * posix/tst-regexloc.c: Do not use a range expression for
14522 de_DE.ISO-8859-1 locale.
14523
14524 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14525
14526 * posix/bug-regex5.c: Fix test case because with the new
14527 iso14651_t1_common file, the da_DK locale now has 6 collating elements
14528 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
14529 file.
14530
14531 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14532
14533 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
14534 downloaded from ISO, the collation order of @-. and space has changed.
14535 Therefore, this test file needed to be adapted.
14536 * localedata/fr_CA.UTF-8.in: Likewise.
14537 * localedata/fr_FR.UTF-8.in: Likewise.
14538 * localedata/uk_UA.UTF-8.in: Likewise.
14539
14540 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14541
14542 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
14543 order of ȥ in the new iso14651_t1_common file.
14544 * localedata/pl_PL.UTF-8.in: Likewise.
14545
14546 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14547
14548 * localedata/locales/iso14651_t1_common: Add sections for various
14549 scripts to the iso14651_t1_common file.
14550
14551 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14552
14553 * localedata/locales/iso14651_t1_common: Use the code point of a
14554 character in the fourth collation level instead of IGNORE for all
14555 entries which have IGNORE on all 4 levels.
14556
14557 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14558
14559 * localedata/locales/iso14651_t1_common: Add some convenient collation
14560 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
14561 rules similar to those in CLDR.
14562
14563 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14564
14565 * localedata/locales/iso14651_t1_common: The new version of this
14566 file downloaded from ISO contained several syntax errors which
14567 are fixed by this patch.
14568
14569 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14570
14571 * localedata/locales/iso14651_t1_common: replace all <U.....>
14572 with <U000.....> because glibc understands only 4 digit or 8 digit
14573
14574 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14575
14576 * localedata/locales/iso14651_t1_common: Necessary changes
14577 to make the file downloaded from ISO usable by glibc.
14578
14579 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14580
14581 [BZ #14095]
14582 * localedata/locales/iso14651_t1_common: Update file to
14583 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
14584
14585 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14586
14587 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
14588 of <nptl/pthreadP.h>
14589 (thread_attr_compare): Move function to...
14590 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
14591 * sysdeps/nptl/timer_routines.h: ... new header.
14592 * sysdeps/mach/hurd/gai_misc.h: New file.
14593
14594 2018-02-26 Joseph Myers <joseph@codesourcery.com>
14595
14596 * string/strcoll_l.c: Include <libc-diag.h>.
14597 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
14598 declarations of seq1 and seq2.
14599
14600 [BZ #15105]
14601 * stdlib/atoi.c (atoi): Use libc_hidden_def.
14602 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
14603
14604 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
14605
14606 [BZ #22433]
14607 [BZ #22807]
14608 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
14609 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
14610 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
14611 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
14612 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
14613 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
14614
14615 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14616
14617 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
14618 macros used in __ptrace_request.
14619
14620 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
14621
14622 [BZ #22792]
14623 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
14624 to $(CC).
14625 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
14626 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
14627 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
14628 <tcb-offsets.h>.
14629
14630 2018-02-23 Joseph Myers <joseph@codesourcery.com>
14631
14632 [BZ #15105]
14633 * ctype/ctype.c (tolower): Use libc_hidden_def.
14634 (toupper): Likewise.
14635 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
14636 [!_ISOMAC] (toupper): Likewise.
14637
14638 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14639
14640 * localedata/Makefile: Remove --quiet argument when
14641 installing locales
14642
14643 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14644
14645 [BZ #17438]
14646 * localedata/locales/pt_BR (LC_TIME): use / instead of -
14647 in d_fmt.
14648 * localedata/locales/pt_PT (LC_TIME): likewise
14649
14650 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14651
14652 [BZ #22646]
14653 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
14654 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
14655 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
14656
14657 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14658
14659 * sysdeps/sparc/fpu/libm-test-ulps: Update.
14660
14661 * nptl/Makefile (routines): Remove unregister-atfork.
14662 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
14663 (fork_handler_alloc): Remove function.
14664 (fork_handlers, fork_handler_init): New variables.
14665 (__fork_lock): Rename to atfork_lock.
14666 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
14667 to use a dynamic array to add/remove atfork handlers.
14668 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14669 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
14670 Remove declaration.
14671 (fork_handler): Remove next, refcntr, and need_signal member.
14672 (__run_fork_handler_type): New enum.
14673 (__run_fork_handlers): New prototype.
14674 * nptl/register-atfork.c: Remove file.
14675 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
14676
14677 * sysdeps/nptl/nptl-signals.h: Move to ...
14678 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
14679 comments.
14680 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
14681 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
14682 unnecessary check for SIGTIMER.
14683 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
14684 remove unnecessary removal of SIGTIMER.
14685 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
14686 include-signals.h rename.
14687 * nptl/pthreadP.h: Likewise.
14688 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
14689 __is_internal_signal instead of __nptl_is_internal_signal.
14690
14691 2018-02-22 Andrew Waterman <andrew@sifive.com>
14692
14693 [BZ # 22884]
14694 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
14695 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
14696 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
14697 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
14698
14699 2018-02-22 DJ Delorie <dj@delorie.com>
14700
14701 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
14702
14703 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
14704
14705 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
14706 do_misaligned, not misaligned8.
14707
14708 2018-02-22 Steve Ellcey <sellcey@cavium.com>
14709
14710 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
14711 Add memcpy_thunderx2.
14712 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
14713 Increment to 4.
14714 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
14715 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
14716 and IS_THUNDERX2PA checks.
14717 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
14718 Use macro to set name appropriately.
14719 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
14720 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
14721 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
14722 New macro.
14723 (IS_THUNDERX2): New macro.
14724
14725 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
14726
14727 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14728
14729 2018-02-21 Zack Weinberg <zackw@panix.com>
14730
14731 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
14732 Define here, unconditionally.
14733 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
14734 * libio/libioP.h: Remove #if 0 blocks.
14735 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
14736 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
14737 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
14738
14739 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
14740 Assume weak_alias is always defined.
14741
14742 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
14743 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
14744 Remove #if 0 and #ifdef TODO blocks.
14745 Assume text_set_element is always defined.
14746
14747 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
14748 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
14749 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
14750
14751 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
14752 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
14753 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
14754 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
14755 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
14756 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
14757 Reformat bit flags for _flags field to make occupancy clearer.
14758 Update commentary.
14759 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
14760 Keep definitions consistent with those in libio/libio.h.
14761
14762 * libio/libio.h (_IO_file_flags): Remove macro.
14763 All uses changed to _flags.
14764
14765 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
14766 (__HAVE_COLUMN, _IO_BE): Don't define.
14767 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
14768 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
14769 * libio/libioP.h (EOF): Don't define.
14770 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
14771 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
14772 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
14773 testing _IO_UNIFIED_JUMPTABLES.
14774
14775 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
14776 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
14777 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
14778 (_IO_size_t): Delete; all uses changed to size_t.
14779 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
14780 (_IO_off_t): Delete; all uses changed to off_t.
14781 (_IO_off64_t): Delete; all uses changed to off64_t.
14782 (_IO_pid_t): Delete; all uses changed to pid_t.
14783 (_IO_uid_t): Delete; all uses changed to uid_t.
14784 (_IO_wint_t): Delete; all uses changed to wint_t.
14785 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
14786 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
14787 (_IO_cookie_io_functions_t): Delete; all uses changed to
14788 cookie_io_functions_t.
14789 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
14790 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
14791 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
14792 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
14793
14794 * libio/iofopncook.c: Remove unnecessary forward declarations.
14795 * libio/iolibio.h: Correct outdated commentary.
14796 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
14797 * stdio-common/fxprintf.c (__fxprintf_nocancel):
14798 Remove unnecessary casts.
14799 * stdio-common/getline.c: Use _IO_getdelim directly.
14800 Don't redefine ssize_t.
14801 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
14802 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
14803 Remove outdated comments.
14804 * stdio-common/vfscanf.c: Don't redefine va_list.
14805
14806 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
14807 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
14808 Remove preprocessor conditionals on _LIBC and __USE_GNU,
14809 which are always true, and __cplusplus, which is always false.
14810
14811 2018-02-21 Joseph Myers <joseph@codesourcery.com>
14812
14813 [BZ #15105]
14814 [BZ #19463]
14815 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
14816 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
14817 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
14818 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
14819 libc_hidden_proto.
14820 [!_ISOMAC] (putc_unlocked): Likewise.
14821 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
14822 define inline if [__USE_EXTERN_INLINES].
14823 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
14824 putc_unlocked.
14825
14826 [BZ #15105]
14827 [BZ #19463]
14828 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
14829 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
14830 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
14831 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
14832 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
14833 getc_unlocked.
14834 * time/tzfile.c (__tzfile_read): Likewise.
14835
14836 2018-02-21 Mike FABIAN <mfabian@redhat.com>
14837
14838 [BZ #22517]
14839 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
14840
14841 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14842
14843 * io/fcntl.h: Fix a typo in a comment.
14844
14845 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14846
14847 [BZ #22862]
14848 * include/features.h: Add _ISOC11_SOURCE to test for whether to
14849 define _DEFAULT_SOURCE.
14850 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
14851
14852 2018-02-21 Florian Weimer <fweimer@redhat.com>
14853
14854 [BZ #20890]
14855 * elf/cache.c (save_cache): Call fsync on temporary file before
14856 renaming it.
14857 (save_aux_cache): Call fdatasync on temporary file before renaming
14858 it.
14859
14860 2018-02-21 Florian Weimer <fweimer@redhat.com>
14861
14862 [BZ #22787]
14863 * include/caller.h: Remove file.
14864 * elf/dl-caller.c: Likewise.
14865 * elf/Makefile (dl-routines): Remove dl-caller.
14866 (shared-only-routines): Do not add dl-caller.
14867 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
14868 __check_caller.
14869 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
14870 member.
14871 (dl_open_worker): Do not call __check_caller.
14872 (_dl_open): Do not set caller_dl_open member.
14873 * elf/rtld.c (_rtld_global_ro): Do not initialize
14874 _dl_check_caller member.
14875 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
14876 _dl_check_caller member.
14877 (_dl_check_caller): Remove declaration.
14878 * sysdeps/unix/sysv/linux/dl-execstack.c
14879 (_dl_make_stack_executable): Do not call __check_caller.
14880
14881 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
14882
14883 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
14884 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
14885
14886 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14887
14888 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
14889 description.
14890
14891 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14892
14893 [BZ #16335]
14894 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
14895 of 199606L, 200112L, and 200809L.
14896 (_XOPEN_SOURCE): Document special values of 600 and 700.
14897 (_ISOC11_SOURCE): Document macro.
14898 (_ATFILE_SOURCE): Likewise.
14899 (_FORTIFY_SOURCE): Likewise.
14900
14901 2018-02-19 Joseph Myers <joseph@codesourcery.com>
14902
14903 [BZ #15105]
14904 [BZ #19463]
14905 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
14906 and define as weak alias of __ferror_unlocked. Use
14907 libc_hidden_weak.
14908 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
14909 libc_hidden_proto.
14910 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
14911 function if [__USE_EXTERN_INLINES].
14912 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
14913 ferror_unlocked.
14914
14915 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
14916
14917 [BZ #6889]
14918 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
14919
14920 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
14921
14922 [BZ #22818]
14923 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
14924 the GLIBC_2.1 version.
14925
14926 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
14927
14928 [BZ #21508]
14929 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
14930 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
14931 intl/tst-gettext-de.po from po/de.po by removing the
14932 POT-Creation-Date line.
14933 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
14934 ../po/de.po.
14935 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
14936 ../po/de.po.
14937
14938 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14939
14940 * mach/Makefile (headers): Add mach/param.h.
14941 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
14942 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
14943 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
14944 (__ptsname_r): Move implementation to...
14945 (__ptsname_internal): ... new function. Add filling the STP
14946 structure.
14947
14948 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
14949
14950 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
14951 idouble to 1 ULP.
14952
14953 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
14954
14955 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
14956 syntax.
14957
14958 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
14959
14960 * nptl/Makefile (tst-mutex8-ENV): Delete.
14961 * nptl/tst-mutex8.c (check_type):
14962 Add runtime check if mutex will be elided.
14963
14964 2018-02-15 Joseph Myers <joseph@codesourcery.com>
14965
14966 [BZ #20980]
14967 [BZ #21234]
14968 * manual/install.texi (Configuring and compiling): Describe
14969 passing CC and CFLAGS on configure command line, not as
14970 environment variables. Use @code markup on those variables.
14971 Specify what options go in CC and what go in CFLAGS. Note the
14972 requirement to compile with optimization.
14973 * INSTALL: Regenerated.
14974
14975 [BZ #18124]
14976 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
14977 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
14978 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
14979 __sigprocmask instead of sigprocmask.
14980 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
14981 Likewise.
14982 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
14983 __sigsetjmp and sigprocmask.
14984
14985 [BZ #15105]
14986 * include/argz.h (argz_next): Use libc_hidden_proto.
14987 (__argz_next): Likewise.
14988 * string-argz-next.c (__argz_next): Use libc_hidden_def.
14989 (argz_next): Use libc_hidden_weak.
14990
14991 [BZ #15105]
14992 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
14993 libc_hidden_proto.
14994 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
14995 libc_hidden_def.
14996
14997 [BZ #15105]
14998 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
14999 libc_hidden_proto.
15000 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15001
15002 [BZ #15105]
15003 [BZ #19463]
15004 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15005 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15006 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15007 (__feof_unlocked): New declaration, and inline function if
15008 [__USE_EXTERN_INLINES].
15009 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15010 instead of feof_unlocked.
15011 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15012 * nss/nsswitch.c (nss_parse_file): Likewise.
15013 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15014 Likewise.
15015 * time/getdate.c (__getdate_r): Likewise.
15016 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15017 Define as macro to call __feof_unlocked.
15018
15019 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15020
15021 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15022
15023 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15024
15025 * math/Makefile: Remove mpexp.c and mplog.c
15026 * sysdeps/i386/fpu/mpexp.c: Delete file.
15027 * sysdeps/i386/fpu/mplog.c: Likewise.
15028 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15029 * sysdeps/ia64/fpu/mplog.c: Likewise.
15030 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15031 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15032 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15033 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15034 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15035 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15036 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15037 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15038 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15039 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15040 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15041 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15042 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15043 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15044 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15045 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15046
15047 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15048
15049 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15050
15051 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15052
15053 * sysdeps/sh/libm-test-ulps: Update.
15054
15055 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15056
15057 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15058 idouble to 1 ULP.
15059
15060 2018-02-12 Zack Weinberg <zackw@panix.com>
15061
15062 [BZ #19239]
15063 * posix/sys/types.h: Don't include sys/sysmacros.h.
15064 * misc/sys/sysmacros.h: Remove the conditional deprecation
15065 warnings for the macros defined by this header.
15066
15067 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15068
15069 * manual/probes.texi: Remove slowexp probes.
15070 * math/Makefile: Remove slowexp.
15071 * sysdeps/generic/math_private.h (__slowexp): Remove.
15072 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15073 document error bounds.
15074 * sysdeps/i386/fpu/slowexp.c: Remove.
15075 * sysdeps/ia64/fpu/slowexp.c: Remove.
15076 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15077 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15078 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15079 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15080 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15081 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15082 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15083 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15084 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15085 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15086 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15087
15088 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15089
15090 [BZ #13932]
15091 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15092 * benchtests/pow-inputs: Update comment for slow path cases.
15093 * manual/probes.texi (slowpow_p10): Delete removed probe.
15094 (slowpow_p10): Likewise.
15095 * math/Makefile: Remove halfulp.c and slowpow.c.
15096 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15097 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15098 (__halfulp): Remove.
15099 (__slowpow): Remove.
15100 * sysdeps/i386/fpu/halfulp.c: Delete file.
15101 * sysdeps/i386/fpu/slowpow.c: Likewise.
15102 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15103 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15104 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15105 improve comments and add error analysis.
15106 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15107 (power1): Remove function:
15108 (log1): Remove error argument, add error analysis.
15109 (my_log2): Remove function.
15110 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15111 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15112 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15113 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15114 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15115 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15116 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15117 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15118 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15119 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15120 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15121 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15122 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15123 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15124
15125 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15126
15127 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15128 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15129
15130 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15131
15132 [BZ #22433]
15133 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15134 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15135 and PTRACE_SETHBPREGS.
15136
15137 2018-02-10 Zack Weinberg <zackw@panix.com>
15138
15139 [BZ #22830]
15140 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15141 correctly.
15142 * malloc/tst-malloc-stats-cancellation.c: New test case.
15143 * malloc/Makefile: Add new test case.
15144
15145 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15146
15147 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15148
15149 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15150
15151 * math/Makefile (libm-narrow-fns): Add add.
15152 (libm-test-funcs-narrow): Likewise.
15153 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15154 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15155 * math/gen-auto-libm-tests.c (test_functions): Add add.
15156 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15157 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15158 (NARROW_ADD_TRIVIAL): Likewise.
15159 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15160 macro.
15161 (__daddl): Likewise.
15162 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15163 dadd.
15164 (CFLAGS-nldbl-dadd.c): New variable.
15165 (CFLAGS-nldbl-fadd.c): Likewise.
15166 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15167 __nldbl_daddl.
15168 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15169 prototype.
15170 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15171 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15172 * math/auto-libm-test-in: Add tests of add.
15173 * math/auto-libm-test-out-narrow-add: New generated file.
15174 * math/libm-test-narrow-add.inc: New file.
15175 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15176 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15177 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15178 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15179 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15180 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15181 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15182 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15183 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15184 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15185 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15186 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15187 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15188 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15189 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15190 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15191 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15192 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15193 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15194 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15195 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15196 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15197 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15198 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15199 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15200 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15201 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15202 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15203 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15204 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15205 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15206 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15207 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15208 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15209 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15210 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15211 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15212 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15213 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15214 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15215 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15216 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15217 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15218 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15219 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15220 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15221
15222 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15223 (f128-pairs): New variable.
15224 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15225 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15226 to CFLAGS.
15227 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15228 Also make tests add $(f128-loader-link) to gnulib-tests.
15229
15230 2018-02-09 DJ Delorie <dj@redhat.com>
15231
15232 [BZ #22827]
15233 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15234 64-bit ELF type for 64-bit ELF objects.
15235
15236 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15237
15238 * math/libm-test-driver.c (snan_tests_arg): New variable.
15239 * math/libm-test-support.h (snan_tests_arg): New declaration.
15240 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15241
15242 * math/Makefile (test-type-pairs): New variable.
15243 (test-type-pairs-f64xf128-yes): Likewise.
15244 (tests): Add test-narrow-macros.
15245 (libm-test-funcs-narrow): New variable.
15246 (libm-test-c-narrow): Likewise.
15247 (generated): Add $(libm-test-c-narrow).
15248 (libm-tests-base-narrow): New variable.
15249 (libm-tests-narrow): Likewise.
15250 (libm-tests): Add $(libm-tests-narrow).
15251 (libm-tests-for-type): Handle $(libm-tests-narrow).
15252 (libm-test-c-narrow-obj): New variable.
15253 ($(libm-test-c-narrow-obj)): New rule.
15254 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15255 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15256 $(o-iterator) to set dependencies and CFLAGS.
15257 * math/gen-auto-libm-tests.c: Document use for narrowing
15258 functions.
15259 (output_for_one_input_case): Take argument NARROW.
15260 (generate_output): Likewise. Update call to
15261 output_for_one_input_case.
15262 (main): Take --narrow option. Update call to generate_output.
15263 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15264 (apply_lit): Update call to _apply_lit.
15265 (apply_arglit): New function.
15266 (parse_args): Handle "a" arguments.
15267 (parse_auto_input): Handle format names using ":".
15268 * math/README.libm-test: Document "a" parameter type.
15269 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15270 (ARG_TYPE_TRUE_MIN): Likewise.
15271 (ARG_TYPE_MAX): Likwise.
15272 (ARG_MIN_EXP): Likewise.
15273 (ARG_MAX_EXP): Likewise.
15274 (ARG_MANT_DIG): Likewise.
15275 (TEST_COND_arg_ibm128): Likewise.
15276 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15277 (TEST_COND_arg_fmt): New macro.
15278 (init_max_error): Update prototype.
15279 * math/libm-test-support.c (test_ibm128): New variable.
15280 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15281 instead of using [TEST_COND_ibm128] conditional.
15282 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15283 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15284 [TEST_NARROW] (TEST_MSG): New definition.
15285 (arg_plus_zero): New macro.
15286 (arg_minus_zero): Likewise.
15287 (arg_plus_infty): Likewise.
15288 (arg_minus_infty): Likewise.
15289 (arg_qnan_value_pl): Likewise.
15290 (arg_qnan_value): Likewise.
15291 (arg_snan_value_pl): Likewise.
15292 (arg_snan_value): Likewise.
15293 (arg_max_value): Likewise.
15294 (arg_min_value): Likewise.
15295 (arg_min_subnorm_value): Likewise.
15296 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
15297 (RUN_TEST_LOOP_aa_f): New macro.
15298 (TEST_SUFF): New macro.
15299 (TEST_SUFF_STR): Likewise.
15300 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
15301 (TEST_COND_any_ibm128): New macro.
15302 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
15303 this_func. Update call to init_max_error.
15304 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15305 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15306 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15307 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15308 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15309 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15310 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15311 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15312 * math/test-math-vector.h (TEST_NARROW): Likewise.
15313 * math/test-arg-double.h: New file.
15314 * math/test-arg-float128.h: Likewise.
15315 * math/test-arg-float32x.h: Likewise.
15316 * math/test-arg-float64.h: Likewise.
15317 * math/test-arg-float64x.h: Likewise.
15318 * math/test-arg-ldouble.h: Likewise.
15319 * math/test-math-narrow.h: Likewise.
15320 * math/test-narrow-macros.c: Likewise.
15321 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
15322 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
15323 test-narrow-macros-ldbl-64.
15324 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
15325
15326 * math/bits/mathcalls-narrow.h: New file.
15327 * include/bits/mathcalls-narrow.h: Likewise.
15328 * math/math-narrow.h: Likewise.
15329 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
15330 (__MATHCALL_NARROW_ARGS_2): Likewise.
15331 (__MATHCALL_NARROW_ARGS_3): Likewise.
15332 (__MATHCALL_NARROW_NORMAL): Likewise.
15333 (__MATHCALL_NARROW_REDIR): Likewise.
15334 (__MATHCALL_NARROW): Likewise.
15335 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
15336 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
15337 defined.
15338 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
15339 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
15340 (libm-narrow-fns): New variable.
15341 (libm-narrow-types-basic): Likewise.
15342 (libm-narrow-types-ldouble-yes): Likewise.
15343 (libm-narrow-types-float128-yes): Likewise.
15344 (libm-narrow-types-float128-alias-yes): Likewise.
15345 (libm-narrow-types): Likewise.
15346 (libm-routines): Add narrowing functions.
15347 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
15348 (libc_feholdexcept_setroundf128): New macro.
15349 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
15350 * sysdeps/ieee754/float128/float128_private.h: Include
15351 <math/math-narrow.h>.
15352 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
15353 Undefine and redefine.
15354 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
15355 (libm_alias_float_ldouble): Undefine and redefine.
15356 (libm_alias_double_ldouble): Likewise.
15357
15358 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
15359
15360 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
15361
15362 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
15363 FPCR/FPSR.
15364
15365 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
15366
15367 * manual/creature.texi: Convert references to gcc.info to gcc.
15368 * manual/stdio.texi: Likewise.
15369 * manual/string.texi: Likewise.
15370
15371 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15372
15373 [BZ #17979]
15374 * posix/bits/types.h (__int_least8_t): New typedef.
15375 (__uint_least8_t): Likewise.
15376 (__int_least16_t): Likewise.
15377 (__uint_least16_t): Likewise.
15378 (__int_least32_t): Likewise.
15379 (__uint_least32_t): Likewise.
15380 (__int_least64_t): Likewise.
15381 (__uint_least64_t): Likewise.
15382 * sysdeps/generic/stdint.h (int_least8_t): Define using
15383 __int_least8_t.
15384 (int_least16_t): Define using __int_least16_t.
15385 (int_least32_t): Define using __int_least32_t.
15386 (int_least64_t): Define using __int_least64_t.
15387 (uint_least8_t): Define using __uint_least8_t.
15388 (uint_least16_t): Define using __uint_least16_t.
15389 (uint_least32_t): Define using __uint_least32_t.
15390 (uint_least64_t): Define using __uint_least64_t.
15391 * wcsmbs/uchar.h: Include <bits/types.h>.
15392 (char16_t): Define using __uint_least16_t conditional only on
15393 [!__USE_ISOCXX11].
15394 (char32_t): Define using __uint_least32_t conditional only on
15395 [!__USE_ISOCXX11].
15396 * wcsmbs/test-char-types.c: New file.
15397 * wcsmbs/Makefile (tests): Add test-char-types.
15398
15399 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15400 version to 4.0.1.
15401
15402 2018-02-07 Zack Weinberg <zackw@panix.com>
15403
15404 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
15405 Delete all contents except for definitions of _G_HAVE_MMAP and
15406 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
15407 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
15408 sysdeps/unix/sysv/linux/_G_config.h. Make same content
15409 change as above.
15410
15411 * libio/libio.h: Don't include bits/_G_config.h here.
15412 Include stddef.h with __need_wchar_t defined. Include
15413 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
15414 Define _IO_iconv_t here, directly.
15415 Don't define _IO_HAVE_ST_BLKSIZE.
15416 * libio/libioP.h: Include _G_config.h here. Move include of
15417 shlib-compat.h up with rest of includes. Simplify conditionals
15418 controlling definition of _IO_JUMPS_OFFSET.
15419
15420 * csu/init.c: Remove always-true #if around entire file.
15421 Don't include stdio.h. Set _IO_stdin_used to hardwired
15422 constant 0x20001, and update commentary.
15423 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
15424 Replace all uses of _G_va_list with __gnuc_va_list.
15425 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
15426 instead of #if _IO_HAVE_ST_BLKSIZE.
15427 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
15428 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
15429 not #ifdef.
15430
15431 * libio/bits/libio.h: Move back to libio/libio.h and adjust
15432 multiple-include guard to match.
15433 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
15434 into this file.
15435 Remove preprocessor conditionals that are always true and/or
15436 redundant to other preprocessor conditionals in the same nest.
15437 Include shlib-compat.h unconditionally.
15438 Error out if _LIBC is not defined, or if _ISOMAC is defined,
15439 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
15440 defined after including stdio.h.
15441 Use __BEGIN_DECLS/__END_DECLS.
15442
15443 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
15444 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
15445 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
15446
15447 2018-02-07 Zack Weinberg <zackw@panix.com>
15448
15449 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
15450 New single-type headers split from _G_config.h.
15451 * libio/bits/types/cookie_io_functions_t.h
15452 * libio/bits/types/struct_FILE.h
15453 New single-type headers split from libio.h.
15454
15455 * libio/Makefile: Install the above new headers. Don't install
15456 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
15457 bits/libio-ldbl.h.
15458 * libio/_G_config.h, libio/libio.h: Delete file.
15459
15460 * libio/bits/libio.h: Remove improper-inclusion guard.
15461 Include stdio.h and don't repeat anything that it does.
15462 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
15463 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
15464 __io_read_fn as cookie_read_function_t,
15465 __io_write_fn as cookie_write_function_t,
15466 __io_seek_fn as cookie_seek_function_t,
15467 __io_close_fn as cookie_close_function_t,
15468 and _IO_cookie_io_functions_t as cookie_io_functions_t.
15469 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
15470 here, in the "compatibility defines" section. Remove an #if 0
15471 block. Use the "body" macros from bits/types/struct_FILE.h to
15472 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
15473 and _IO_ferror_unlocked.
15474 Move prototypes of __uflow and __overflow...
15475
15476 * libio/stdio.h: ...here. Don't include bits/libio.h.
15477 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
15478 directly from stdarg.h. Include bits/types/__fpos_t.h,
15479 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
15480 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
15481 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
15482 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
15483 cookie_io_functions_t, not _IO_cookie_io_functions_t;
15484 __ssize_t, not _IO_ssize_t. Unconditionally define
15485 BUFSIZ as 8192 and EOF as (-1).
15486
15487 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
15488 macros from bits/types/struct_FILE.h instead of _IO_* macros
15489 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
15490 instead of _IO_ssize_t.
15491 * libio/bits/stdio2.h: Similarly.
15492
15493 * libio/iolibio.h: Add multiple-include guard.
15494 Include bits/libio.h after stdio.h.
15495 * libio/libioP.h: Add multiple-include guard.
15496 Include stdio.h and bits/libio.h before iolibio.h.
15497
15498 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
15499 * include/bits/types/cookie_io_functions_t.h
15500 * include/bits/types/struct_FILE.h: New wrappers.
15501
15502 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
15503 Get definitions of _G_fpos_t and _G_fpos64_t from
15504 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
15505 respectively. Remove improper-inclusion guards.
15506
15507 * conform/data/stdio.h-data: Update expectations of va_list.
15508 * scripts/check-installed-headers.sh: Remove special case for
15509 libio.h and _G_config.h.
15510
15511 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15512
15513 [BZ #15105]
15514 [BZ #19463]
15515 * include/sys/sysmacros.h [!_ISOMAC]
15516 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
15517 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
15518 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
15519 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
15520 libc_hidden_proto.
15521 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
15522 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
15523 Likewise.
15524 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
15525 Undefine and redefine to add use __gnu_dev_ prefix.
15526 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
15527 Likewise.
15528 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
15529 and define as hidden inline function.
15530 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
15531 Likewise.
15532 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
15533 Likewise.
15534 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
15535 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
15536 (gnu_dev_minor): Likewise.
15537 (gnu_dev_makedev): Likewise.
15538 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
15539 makedev.
15540 * posix/wordexp.c (exec_comm_child): Likewise.
15541 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
15542 instead of minor and __gnu_dev_major instead of major.
15543 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
15544 __gnu_dev_major instead of major.
15545 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
15546 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
15547 instead of gnu_dev_minor.
15548 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
15549 (SLAVE_P): Likewise.
15550 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
15551 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
15552 instead of major.
15553
15554 [BZ #21313]
15555 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
15556 in another place.
15557 * locale/weightwc.h (findidx): Likewise.
15558
15559 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
15560
15561 * manual/probes.texi (slowlog): Delete documentation of removed probe.
15562 (slowlog_inexact): Likewise
15563 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
15564 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
15565
15566 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
15567
15568 [BZ #22797]
15569 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
15570 missing second underscore to parameter name.
15571
15572 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15573
15574 [BZ #14508]
15575 [BZ #15512]
15576 [BZ #17082]
15577 [BZ #20530]
15578 * bits/byteswap.h: Update file comment. Do not include
15579 <bits/byteswap-16.h>.
15580 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
15581 constant.
15582 (__bswap_16): Define as inline function.
15583 (__bswap_constant_32): Reformat definition.
15584 (__bswap_32): Always define as inline function, not macro, using
15585 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
15586 otherwise __bswap_constant_32.
15587 (__bswap_constant_64): Reformat definition. Do not use
15588 __extension__ here.
15589 (__bswap_64): Always define as inline function, not macro. Use
15590 __extension__ on function definition. Use __builtin_bswap64 if
15591 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
15592 * string/test-endian-file-scope.c: New file.
15593 * string/test-endian-sign-conversion.c: Likewise.
15594 * string/Makefile (headers): Remove bits/byteswap-16.h.
15595 (tests): Add test-endian-file-scope and
15596 test-endian-sign-conversion.
15597 (CFLAGS-test-endian-sign-conversion.c): New variable.
15598 * bits/byteswap-16.h: Remove file.
15599 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
15600 * sysdeps/ia64/bits/byteswap.h: Likewise.
15601 * sysdeps/m68k/bits/byteswap.h: Likewise.
15602 * sysdeps/s390/bits/byteswap-16.h: Likewise.
15603 * sysdeps/s390/bits/byteswap.h: Likewise.
15604 * sysdeps/tile/bits/byteswap.h: Likewise.
15605 * sysdeps/x86/bits/byteswap-16.h: Likewise.
15606 * sysdeps/x86/bits/byteswap.h: Likewise.
15607
15608 [BZ #17721]
15609 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
15610 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
15611 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
15612 199901L] (__restrict): Define to restrict.
15613
15614 [BZ #19667]
15615 * string/testcopy.c: Include <support/support.h>. Do not include
15616 <malloc.h>. Use <support/test-driver.c>.
15617 (main): Rename to do_test. Make static. Use xmalloc instead of
15618 malloc.
15619
15620 [BZ #13575]
15621 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
15622 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
15623 (SSIZE_MAX): Define to INT_MAX.
15624 * posix/test-ssize-max.c: New file.
15625 * posix/Makefile (tests): Add test-ssize-max.
15626
15627 [BZ #19668]
15628 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
15629 <support/support.h>. Do not include <malloc.h>.
15630 (query_auxv): Use xmalloc instead of malloc.
15631
15632 [BZ #14553]
15633 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
15634 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
15635 instead of loff_t.
15636
15637 2018-02-06 Florian Weimer <fweimer@redhat.com>
15638
15639 [BZ #18023]
15640 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15641 Use scratch_buffer instead of extend_alloca.
15642
15643 2018-02-06 Zack Weinberg <zackw@panix.com>
15644
15645 * libio/stdio.h: Don't define getc or putc as macros.
15646 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
15647 not _IO_getc and _IO_putc.
15648
15649 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
15650 * stdio-common/tstgetln.c: Don't redefine ssize_t.
15651
15652 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15653
15654 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
15655 (TCP_FASTOPEN_NO_COOKIE): Likewise.
15656
15657 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
15658
15659 [BZ #14890]
15660 * elf/elf.h (NT_PRFPREG): New macro.
15661 (NT_S390_VXRS_LOW): Likewise.
15662 (NT_S390_VXRS_HIGH): Likewise.
15663 (NT_S390_GS_CB): Likewise.
15664 (NT_S390_GS_BC): Likewise.
15665 (NT_S390_RI_CB): Likewise.
15666
15667 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
15668 (MAP_SYNC): New macro.
15669 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
15670 Likewise.
15671 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
15672 (MAP_SYNC): Likewise.
15673 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
15674 (MAP_SYNC): Likewise.
15675 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
15676 (MAP_SYNC): Likewise.
15677 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
15678 (MAP_SYNC): Likewise.
15679 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
15680 (MAP_SYNC): Likewise.
15681 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
15682 (MAP_SYNC): Likewise.
15683 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
15684 Likewise.
15685 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
15686 Likewise.
15687
15688 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
15689 (MAP_SHARED_VALIDATE): New macro.
15690 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15691 (MAP_SHARED_VALIDATE): Likewise.
15692
15693 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15694
15695 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
15696 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
15697 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
15698
15699 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15700
15701 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
15702 (DT_NUM): Updated to 35.
15703
15704 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15705
15706 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
15707 __builtin_expect with __glibc_likely and __glibc_unlikely.
15708 (elf_machine_rela): Likewise.
15709 (elf_machine_lazy_rel): Likewise.
15710
15711 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15712
15713 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
15714 __builtin_expect with __glibc_likely and __glibc_unlikely.
15715 (elf_machine_lazy_rel): Likewise.
15716
15717 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15718
15719 [BZ #22638]
15720 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
15721 SHARED.
15722 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
15723
15724 2018-02-05 Andreas Schwab <schwab@suse.de>
15725
15726 [BZ #22761]
15727 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
15728 string.
15729
15730 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
15731
15732 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
15733 not check against PTHREAD_STACK_MIN.
15734
15735 2018-02-02 Sean McKean <smckean83@gmail.com>
15736
15737 [BZ #22735]
15738 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
15739
15740 2018-02-02 Florian Weimer <fweimer@redhat.com>
15741
15742 [BZ #22753]
15743 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
15744 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
15745 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
15746 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
15747 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
15748 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
15749 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
15750 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
15751 * manual/llio.texi (Scatter-Gather): Mention offset -1.
15752 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
15753 * misc/tst-preadvwritev2.c (do_test): Call it.
15754 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
15755
15756 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
15757
15758 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
15759
15760 * benchtests/bench-memcmp.c: Print json instead of plain text.
15761
15762 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
15763 every test run.
15764
15765 2018-02-01 Joseph Myers <joseph@codesourcery.com>
15766
15767 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15768 version to 4.15.
15769 (s390_sthyi): New syscall.
15770
15771 * sysdeps/generic/ldbl-classify-compat.h: New file.
15772 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
15773 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
15774 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
15775 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
15776 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
15777 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
15778 * sysdeps/ieee754/dbl-64/s_finite.c: Include
15779 <ldbl-classify-compat.h>.
15780 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15781 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
15782 <ldbl-classify-compat.h>.
15783 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15784 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
15785 <ldbl-classify-compat.h>.
15786 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15787 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
15788 <ldbl-classify-compat.h>.
15789 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15790 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
15791 <ldbl-classify-compat.h>.
15792 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15793 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
15794 <ldbl-classify-compat.h>.
15795 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15796 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
15797 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
15798 * sysdeps/m68k/coldfire/math_private.h: Remove file.
15799 * sysdeps/microblaze/math_private.h: Likewise.
15800 * sysdeps/nios2/math_private.h: Likewise.
15801 * sysdeps/sh/math_private.h: Likewise.
15802
15803 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
15804 * sysdeps/m68k/coldfire/math_private.h: ... here.
15805 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
15806 * sysdeps/tile/math_private.h: Likewise.
15807 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
15808 Remove macro.
15809 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
15810 Likewise.
15811
15812 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
15813 Remove macro.
15814 (libc_fetestexcept): Likewise.
15815 (libc_feupdateenv_test): Likewise.
15816 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
15817 (libc_fetestexcept): Likewise.
15818 (libc_feupdateenv_test): Likewise.
15819 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
15820 (libc_fetestexcept): Likewise.
15821 (libc_feupdateenv_test): Likewise.
15822 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
15823 (libc_fetestexcept): Likewise.
15824 (libc_feupdateenv_test): Likewise.
15825
15826 * sysdeps/generic/math_private.h
15827 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
15828 New inline function.
15829 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
15830 Likewise.
15831
15832 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
15833 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
15834 * sysdeps/generic/math_private.h
15835 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
15836 inline function.
15837 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
15838 Likewise.
15839 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
15840 Likewise.
15841 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
15842 Likewise.
15843 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
15844 Likewise.
15845 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
15846 Likewise.
15847 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
15848 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
15849 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
15850 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
15851 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
15852 (__fegetenv): Likewise.
15853 (fesetenv): Likewise.
15854 (__fesetenv): Likewise.
15855 (feupdateenv): Likewise.
15856 (__feupdateenv): Likewise.
15857 (fegetround): Likewise.
15858 (__fegetround): Likewise.
15859 (fesetround): Likewise.
15860 (__fesetround): Likewise.
15861
15862 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
15863 (feraiseexcept): New macro.
15864 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
15865 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
15866 Remove macro.
15867 (__feraiseexcept): Likewise.
15868 (feclearexcept): Likewise.
15869 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
15870 (__feraiseexcept): Likewise.
15871 (feclearexcept): Likewise.
15872 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
15873 (__feraiseexcept): Likewise.
15874 (feclearexcept): Likewise.
15875 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
15876 (__feraiseexcept): Likewise.
15877 (feclearexcept): Likewise.
15878 (fetestexcept): Likewise.
15879
15880 * sysdeps/m68k/coldfire/math-tests.h: New file.
15881
15882 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
15883 * sysdeps/m68k/bits/fenv.h: ... here.
15884 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
15885 not define.
15886 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
15887 Likewise.
15888 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
15889 Likewise.
15890 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
15891 Likewise.
15892 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
15893 Likewise.
15894 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
15895 Define to 0.
15896 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
15897 (__FE_UNDEFINED): New enum constant.
15898 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
15899 Do not define.
15900 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
15901 Likewise.
15902 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
15903 Likewise.
15904 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
15905 to match generic bits/fenv.h.
15906 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
15907 Do not define.
15908
15909 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
15910 packed on bits.
15911 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
15912 * soft-fp/half.h (union _FP_UNION_H): Likewise.
15913 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
15914 * soft-fp/single.h (union _FP_UNION_S): Likewise.
15915
15916 2018-02-01 Carlos O'Donell <carlos@redhat.com>
15917 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
15918 Joseph Myers <joseph@codesourcery.com>
15919
15920 [BZ #21314]
15921 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
15922 (__log1p): Disable -Wmaybe-uninitialized for -Os around
15923 computation using c.
15924 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
15925 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
15926 computation using c.
15927
15928 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
15929
15930 * version.h (RELEASE): Set to "development".
15931 (VERSION): Set to "2.27.9000".
15932 * NEWS (2.28): New section.
15933
15934 * version.h (RELEASE): Set to "stable".
15935 (VERSION): Set to "2.27".
15936 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
15937
15938 * NEWS: Add the list of bugs fixed in 2.27.
15939
15940 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15941
15942 * stdlib/test-atexit-race-common.c (do_test): Check stack size
15943 against PTHREAD_STACK_MIN.
15944
15945 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
15946
15947 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
15948 New entries.
15949 (Rafal Luzynski, Andreas Schwab): Update.
15950
15951 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
15952
15953 [BZ #10871]
15954 * NEWS: List the languages which actually use the alternative
15955 months feature in this release. Also explain that "alt_mon" and
15956 "ab_alt_mon" are optional.
15957
15958 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
15959
15960 [BZ #22765]
15961 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
15962
15963 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
15964
15965 * manual/install.texi (Tools for Compilation): Update the newest
15966 versions of gcc, binutils, texinfo, gawk, bison, and sed.
15967 * INSTALL: Regenerated.
15968
15969 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
15970
15971 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
15972 instead of __builtin_expect.
15973
15974 2018-01-30 Florian Weimer <fweimer@redhat.com>
15975
15976 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
15977 data.
15978 * nss/tst-nss-getpwent.c (do_test): Likewise.
15979
15980 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
15981
15982 [BZ #10871]
15983 * localedata/locales/hr_HR (mon): Rename to...
15984 (alt_mon): This.
15985 (mon): Import from CLDR (genitive case).
15986 (d_t_fmt): Update the comment.
15987
15988 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
15989
15990 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
15991 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
15992 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
15993
15994 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
15995
15996 * mach/Versions: Fix version when __mach_host_self_ was added.
15997 * hurd/Versions: Fix version when _hurd_exec_paths was added.
15998 * sysdeps/mach/hurd/i386/ld.abilist: New file.
15999 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16000 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16001 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16002 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16003 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16004 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16005 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16006 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16007 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16008 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16009 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16010 || to respect codestyle.
16011 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16012 (do_test_bz20181): Rename accordingly.
16013 * malloc/malloc.c: Include <assert.h>.
16014 (assert): Do not define.
16015 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16016 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16017 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16018 * sysdeps/mach/hurd/hp-timing.h: New file.
16019 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16020
16021 2018-01-29 Darius Rad <darius@bluespec.com>
16022
16023 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16024
16025 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16026
16027 * sysdeps/init_array/crti.S (.section .init_array): Add
16028 PREINIT_FUNCTION when defined.
16029 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16030 * config.h.in: Regenerate.
16031 * manual/platform.texi: Add RISC-V documenation for
16032 __riscv_flush_icache.
16033 * sysdeps/riscv/__longjmp.S: New file.
16034 * sysdeps/riscv/backtrace.c: Likewise.
16035 * sysdeps/riscv/bits/endian.h: Likewise.
16036 * sysdeps/riscv/bits/setjmp.h: Likewise.
16037 * sysdeps/riscv/bits/wordsize.h: Likewise.
16038 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16039 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16040 * sysdeps/riscv/dl-trampoline.S: Likewise.
16041 * sysdeps/riscv/gccframe.h: Likewise.
16042 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16043 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16044 * sysdeps/riscv/machine-gmon.h: Likewise.
16045 * sysdeps/riscv/memusage.h: Likewise.
16046 * sysdeps/riscv/setjmp.S: Likewise.
16047 * sysdeps/riscv/sys/asm.h: Likewise.
16048 * sysdeps/riscv/tls-macros.h: Likewise.
16049 * sysdeps/riscv/dl-tls.h: New file.
16050 * sysdeps/riscv/libc-tls.c: Likewise.
16051 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16052 * sysdeps/riscv/nptl/tls.h: Likewise.
16053 * sysdeps/riscv/stackinfo.h: Likewise.
16054 * sysdeps/riscv/bits/fenv.h: New file.
16055 * sysdeps/riscv/e_sqrtl.c: Likewise.
16056 * sysdeps/riscv/fpu_control.h: Likewise.
16057 * sysdeps/riscv/math-tests.h: Likewise.
16058 * sysdeps/riscv/nofpu/Implies: Likewise.
16059 * sysdeps/riscv/sfp-machine.h: Likewise.
16060 * sysdeps/riscv/tininess.h: Likewise.
16061 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16062 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16063 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16064 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16065 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16066 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16067 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16068 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16069 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16070 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16071 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16072 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16073 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16074 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16075 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16076 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16077 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16078 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16079 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16080 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16081 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16082 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16083 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16084 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16085 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16086 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16087 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16088 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16089 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16090 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16091 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16092 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16093 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16094 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16095 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16096 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16097 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16098 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16099 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16100 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16101 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16102 * sysdeps/riscv/rvf/math_private.h: Likewise.
16103 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16104 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16105 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16106 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16107 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16108 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16109 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16110 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16111 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16112 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16113 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16114 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16115 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16116 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16117 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16118 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16119 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16120 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16121 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16122 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16123 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16124 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16125 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16126 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16127 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16128 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16129 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16130 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16131 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16132 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16133 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16134 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16135 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16136 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16137 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16138 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16139 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16140 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16141 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16142 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16143 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16144 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16145 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16146 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16147 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16148 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16149 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16150 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16151 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16152 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16153 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16154 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16155 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16156 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16157 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16158 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16159 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16160 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16161 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16162 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16163 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16164 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16165 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16166 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16167 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16168 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16169 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16170 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16171 * sysdeps/riscv/Implies: New file.
16172 * sysdeps/riscv/Makefile: Likewise.
16173 * sysdeps/riscv/configure: Likewise.
16174 * sysdeps/riscv/configure.ac: Likewise.
16175 * sysdeps/riscv/nptl/Makefile: Likewise.
16176 * sysdeps/riscv/preconfigure: Likewise.
16177 * sysdeps/riscv/rv64/Implies-after: Likewise.
16178 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16179 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16180 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16181 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16182 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16183 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16184 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16185 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16186 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16187 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16188 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16189 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16190 (Config): Likewise.
16191
16192 2018-01-29 Florian Weimer <fweimer@redhat.com>
16193
16194 [BZ #22701]
16195 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16196 libnsl_hidden_proto.
16197 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16198 libnsl_hidden_proto.
16199 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16200 * nis/Makefile (libnsl-routines): Add nss-default only for
16201 build-obsolete-nsl.
16202 * nis/nis_defaults.c (__nis_default_ttl): Add
16203 libnsl_hidden_nolink_def.
16204 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16205 declaration.
16206 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16207 * nis/ypclnt.c (yp_maplist): Likewise.
16208
16209 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16210
16211 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16212 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16213
16214 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16215
16216 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16217 clean -dxfq for git updates when replacing sources.
16218
16219 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16220 --disable-libcilkrts unconditionally, not just for the final GCC
16221 build for Hurd.
16222
16223 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16224 version to 4.15.
16225
16226 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16227
16228 [BZ #10871]
16229 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16230 case).
16231
16232 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16233
16234 [BZ #10871]
16235 * localedata/locales/be_BY (mon): Rename to...
16236 (alt_mon): This, then synchronize with CLDR (nominative case).
16237 (abmon): Rename to...
16238 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16239 (mon): Import from CLDR (genitive case).
16240 (abmon): Likewise.
16241 * localedata/locales/be_BY@latin (mon): Rename to...
16242 (alt_mon): This.
16243 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16244
16245 * localedata/locales/be_BY@latin (lang_name): Reworded to
16246 "biełaruskaja mova".
16247
16248 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16249
16250 [BZ #10871]
16251 * localedata/locales/el_CY (mon): Renamed to...
16252 (alt_mon): This.
16253 (mon): Import from CLDR (genitive case).
16254 * localedata/locales/el_GR: Likewise.
16255
16256 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16257
16258 [BZ #10871]
16259 * localedata/locales/ru_RU (mon): Rename to...
16260 (alt_mon): This.
16261 (abmon): Rename to...
16262 (ab_alt_mon): This.
16263 (mon): Import from CLDR (genitive case).
16264 (abmon): Copy from the old content except the 5th month which is
16265 now in the genitive case, even when abbreviated.
16266 * localedata/locales/ru_UA: Likewise.
16267 * time/tst-strptime.c (day_tests): Add an actual example of
16268 a difference between %b and %Ob in Russian.
16269
16270 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16271
16272 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16273 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16274 a `c' variable.
16275 * resolv/res-close.c: Include <stdlib.h>.
16276 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16277 <sys/wait.h>, <time.h>, <sys/uio.h>.
16278 (NOT_CANCEL_H): Add inclusion guard.
16279 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16280 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16281 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16282 return 0.
16283 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16284 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16285 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16286 instead of void *.
16287 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16288 timer_ptr2id to cast struct timer_node * to void *.
16289 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16290 --disable-libcilkrts to gcc configure.
16291 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16292 and make them the default for now.
16293 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16294 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16295 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16296 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
16297 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
16298 MACH_IPC_COMPAT.
16299 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
16300 __task_terminate would ever return successfully.
16301 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
16302 to global scope.
16303 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
16304 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16305 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16306 critical section to make code simpler and avoid warning.
16307 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16308 critical section to make code simpler and avoid warning.
16309 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16310 const char * instead of char *.
16311 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16312 __hurd_file_name_split, hurd_file_name_split,
16313 __hurd_directory_name_split, hurd_directory_name_split,
16314 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16315 hurd_file_name_path_lookup): Make lookup function parameter take a
16316 const char *name instead of char *name.
16317 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16318 __hurd_directory_name_split): Likewise.
16319 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16320 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
16321 * sysdeps/mach/hurd/check_native.c: New file.
16322 * sysdeps/mach/hurd/check_pf.c: New file.
16323 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
16324 (__freeifaddrs): Define macro to freeifaddrs.
16325 * sysdeps/mach/hurd/libhurduser.abilist: New file.
16326 * sysdeps/mach/libmachuser.abilist: New file.
16327 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
16328 (do_test_bz20181): Rename accordingly.
16329 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
16330 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
16331 <sys/mount.h>.
16332 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
16333 version only if __USE_EXTERN_INLINES is defined.
16334 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
16335 __hurd_sockfail): Likewise.
16336 (_hurd_fd_get): Always declare functions, and provide inline versions
16337 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
16338 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
16339 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
16340 _hurd_port_set): Always declare functions, and provide inline versions
16341 only if __USE_EXTERN_INLINES and _LIBC are defined and
16342 IS_IN(libc).
16343 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
16344 _hurd_critical_section_unlock): Likewise.
16345 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
16346 * __hurd_threadvar_location): Likewise.
16347 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
16348 _hurd_userlink_clear): Likewise.
16349 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
16350 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
16351 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
16352 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
16353 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
16354 __spin_lock_locked): Likewise.
16355 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
16356 __spin_lock_locked): Likewise.
16357 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
16358 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
16359 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
16360 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
16361 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
16362 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
16363 _POSIX_NO_TRUNC): Define to 0.
16364 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
16365 check size against PTHREAD_STACK_MIN.
16366 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
16367 IS_IN(libpthread)]: Include <sigsetops.h>.
16368 * mach/Makefile (user-interfaces): Add mach/gnumach.
16369 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
16370 * sysdeps/mach/configure (mach_interface_list): Regenerate.
16371 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
16372 instead of invalid -1.
16373 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
16374 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
16375 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
16376 <net/ppp_defs.h>.
16377
16378 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
16379
16380 * hurd/fcntl-internal.h: New file.
16381
16382 2018-01-27 James Clarke <jrtc27@jrtc27.com>
16383
16384 * sysdeps/hppa/fpu/libm-test-ulps: Update.
16385
16386 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16387
16388 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
16389
16390 [BZ #22701]
16391 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
16392 Build only shared objects.
16393
16394 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16395
16396 * README: Update for hppa.
16397
16398 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
16399
16400 * sysdeps/sparc/fpu/libm-test-ulps: Update
16401 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
16402
16403 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16404
16405 Revert:
16406
16407 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16408
16409 [BZ #22563]
16410 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16411 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
16412 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16413 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
16414 to feature_1.
16415
16416 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16417
16418 [BZ #22563]
16419 * bits/types/__cancel_jmp_buf_tag.h: New file.
16420 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
16421 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
16422 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
16423 * nptl/Makefile (headers): Add
16424 bits/types/__cancel_jmp_buf_tag.h.
16425 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
16426 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
16427 * sysdeps/nptl/pthread.h: Include
16428 <bits/types/__cancel_jmp_buf_tag.h>.
16429 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
16430 __cancel_jmp_buf.
16431 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
16432
16433 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
16434
16435 [BZ #10871]
16436 * localedata/locales/uk_UA (mon): Renamed to...
16437 (alt_mon): This.
16438 (alt_digits): "0" removed and then renamed to...
16439 (mon): This.
16440 (date_fmt): Definition changed not to use the alternative
16441 digits hack.
16442
16443 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
16444
16445 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
16446 FLAG_RISCV_FLOAT_ABI_DOUBLE.
16447 * elf/elf.h (EF_RISCV_RVC): New define.
16448 (EF_RISCV_FLOAT_ABI): Likewise.
16449 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
16450 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
16451 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16452 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
16453 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
16454 define.
16455 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16456
16457 2018-01-25 Andreas Schwab <schwab@suse.de>
16458
16459 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
16460 single quotes.
16461 * sysdeps/gnu/configure: Regenerate.
16462 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
16463 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
16464 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
16465 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
16466 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
16467 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
16468 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
16469 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
16470
16471 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16472
16473 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
16474 URL, and run autoconf, make it the default for now.
16475
16476 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16477
16478 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16479 soft-float ColdFire configuration.
16480
16481 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
16482 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
16483 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
16484
16485 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
16486 MicroBlaze file.
16487
16488 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
16489 ....
16490 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
16491 ... here.
16492 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
16493 New file.
16494
16495 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
16496 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
16497 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
16498 file.
16499
16500 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16501
16502 [BZ #22742]
16503 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
16504 Rename to __reserved and add comment.
16505 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
16506 Rename to __reserved.
16507
16508 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16509
16510 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16511 i686-gnu configurations.
16512 (Context.run_builds): Include mig, gnumach and hurd in components
16513 considered.
16514 (Context.checkout): Add mig, gnumach and hurd to components.
16515 (Context.checkout_tar): Add URL mappings for mig, gnumach and
16516 hurd.
16517 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
16518 (Config.build): Install gnumach headers, build mig and install
16519 hurd headers for 'gnu' OS.
16520 (Config.install_gnumach_headers): New function.
16521 (Config.install_hurd_headers): Likewise.
16522 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
16523 when building for 'gnu' OS.
16524
16525 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
16526
16527 * manual/tunables.texi (Hardware Capability Tunables): Fix
16528 spelling.
16529
16530 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
16531
16532 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
16533 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
16534 (ALTMON_11, ALTMON_12): Improve documentation.
16535 * manual/time.texi (strftime): Likewise.
16536
16537 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16538
16539 [BZ #10871]
16540 * localedata/locales/pl_PL: Alternative month names added,
16541 primary month names are genitive now.
16542 * time/tst-strptime.c (day_tests): Actually use a genitive case
16543 of a month name in Polish language.
16544
16545 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16546
16547 [BZ #10871]
16548 * manual/locale.texi: Document ALTMON_1..12 constants for
16549 nl_langinfo. Specify when to use ALTMON instead of MON.
16550 * manual/time.texi (strftime, strptime): Document GNU extension
16551 permitting O modifier with %B and %b. Specify when to use
16552 %OB instead of %B.
16553
16554 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16555
16556 [BZ #10871]
16557 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
16558 names, define them as the same as abbreviated month names explicitly.
16559 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
16560 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
16561 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
16562 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
16563 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
16564 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
16565 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
16566 _NL_WABALTMON_12): New enum constants.
16567 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
16568 wab_alt_mon, and ab_alt_mon_defined members.
16569 (time_output): Output ab_alt_mon and wab_alt_mon members.
16570 (time_read): Read them, initialize them as copies of abmon and wabmon
16571 respectively if they are missing, initialize ab_alt_mon_defined.
16572 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
16573 * locale/programs/locfile-kw.h: Regenerate.
16574 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
16575 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
16576 and ru_RU.UTF-8.
16577 * time/strftime_l.c (a_altmonth, aam_len): New macros.
16578 [!COMPILE_WIDE] (ABALTMON_1): New macro.
16579 (__strftime_internal): Handle %Ob and %Oh formats.
16580 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
16581 (__strptime_internal): Handle %Ob and %Oh formats.
16582 * time/tst-strptime.c (day_tests): Add more tests to parse different
16583 forms of month names including the new %Ob format specifier.
16584
16585 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16586
16587 [BZ #10871]
16588 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
16589 define them as the same as primary full month names explicitly.
16590 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
16591 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
16592 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
16593 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
16594 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
16595 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
16596 _NL_WALTMON_12): New enum constants.
16597 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
16598 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
16599 macros.
16600 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
16601 walt_mon, and alt_mon_defined members.
16602 (time_output): Output alt_mon and walt_mon members.
16603 (time_read): Read them, initialize them as copies of mon and wmon
16604 respectively if they are missing, initialize alt_mon_defined.
16605 * locale/programs/locfile-kw.gperf (alt_mon): Define.
16606 * locale/programs/locfile-kw.h: Regenerate.
16607 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
16608 * localedata/tst-langinfo.c (map): Add tests for the new constants
16609 ALTMON_1 .. ALTMON_12.
16610 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
16611 and pl_PL.UTF-8.
16612 * time/strftime_l.c (f_altmonth): New macro.
16613 (__strftime_internal): Handle %OB format.
16614 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
16615 (__strptime_internal): Handle %OB format.
16616 * time/tst-strptime.c (day_tests): Add tests to parse different forms
16617 of month names including the new %OB format specifier.
16618
16619 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16620
16621 [BZ #22685]
16622 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
16623 from ABORT_TRANSACTION.
16624 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
16625 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
16626 ABORT_TRANSACTION_IMPL): Likewise.
16627 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
16628 Linux code, but remove the code that aborts transactions.
16629
16630 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
16631
16632 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
16633
16634 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
16635
16636 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
16637 in date: "2004-14-09" should be "2004-09-14".
16638 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
16639 "2003-15-09" should be "2003-09-15".
16640
16641 2018-01-18 Arjun Shankar <arjun@redhat.com>
16642
16643 [BZ #22343]
16644 [BZ #22774]
16645 CVE-2018-6485
16646 CVE-2018-6551
16647 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
16648 after padding.
16649 (_int_memalign): check for integer overflow before calling
16650 _int_malloc.
16651 * malloc/tst-malloc-too-large.c: New test.
16652 * malloc/Makefile: Add tst-malloc-too-large.
16653
16654 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
16655
16656 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
16657 in date: "2017-24-07" should be "2017-07-24".
16658 * localedata/locales/mai_IN: Likewise.
16659 * localedata/locales/mai_NP: Likewise.
16660
16661 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
16662
16663 * po/ru.po: Update translations.
16664
16665 2018-01-17 Joseph Myers <joseph@codesourcery.com>
16666
16667 [BZ #22719]
16668 * sysdeps/hppa/backtrace.c: New file.
16669
16670 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
16671
16672 [BZ #22715]
16673 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
16674 align La_x86_64_retval to VEC_SIZE.
16675
16676 2018-01-16 Joseph Myers <joseph@codesourcery.com>
16677
16678 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
16679 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
16680
16681 2018-01-16 Florian Weimer <fweimer@redhat.com>
16682
16683 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
16684 Move tst-thread-exit-clobber ...
16685 [$(CXX)] (tests-unsupported): ... to here.
16686
16687 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16688
16689 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
16690 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
16691 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16692 (_dl_aarch64_cap_flags): Update.
16693 (_DL_HWCAP_COUNT): Update.
16694
16695 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16696
16697 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
16698 (_DL_HWCAP_LAST): Remove.
16699 (_DL_HWCAP_COUNT): Move to ...
16700 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16701 (_DL_HWCAP_COUNT): ... here.
16702
16703 2018-01-16 Florian Weimer <fweimer@redhat.com>
16704
16705 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
16706 mode with GNU extensions.
16707
16708 2018-01-15 Alan Hayward <alan.hayward@arm.com>
16709
16710 * elf/elf.h (NT_ARM_SVE): Define.
16711
16712 2018-01-15 Florian Weimer <fweimer@redhat.com>
16713
16714 [BZ #22636]
16715 * nptl/tst-minstack-throw.cc: New file.
16716 * nptl/Makefile (tests): Add tst-minstack-throw.
16717 (LDLIBS-tst-minstack-throw): Link with libstdc++.
16718 [!CXX] (tests-unsupported): Add tst-minstack-throw.
16719
16720 2018-01-15 Joseph Myers <joseph@codesourcery.com>
16721
16722 * scripts/build-many-glibcs.py (Context.checkout): Default
16723 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
16724 version to 1.1.0.
16725
16726 2018-01-13 Carlos O'Donell <carlos@redhat.com>
16727
16728 [BZ #22707]
16729 * elf/elf.h (DF_1_STUB): Define.
16730 (DF_1_PIE): Define.
16731
16732 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16733
16734 [BZ #22697]
16735 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
16736 Do not add 0.5 to integer or out-of-range arguments.
16737
16738 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16739
16740 * po/bg.po: Update translations.
16741 * po/cs.po: Likewise.
16742 * po/de.po: Likewise.
16743 * po/ko.po: Likewise.
16744 * po/pl.po: Likewise.
16745 * po/sv.po: Likewise.
16746 * po/uk.po: Likewise.
16747 * po/vi.po: Likewise.
16748
16749 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16750
16751 * aarch64/start.S (_start): Use __wrap_main.
16752 (__wrap_main): New local symbol.
16753
16754 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16755
16756 [BZ #22679]
16757 CVE-2018-1000001
16758 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
16759 generic_getcwd if the path returned by getcwd syscall is not absolute.
16760 * io/tst-getcwd-abspath.c: New test.
16761 * io/Makefile (tests): Add tst-getcwd-abspath.
16762
16763 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
16764
16765 * malloc/malloc.c (malloc_consolidate): Add size check.
16766
16767 2018-01-12 Florian Weimer <fweimer@redhat.com>
16768
16769 * support/write_message.c (write_message): Preserve errno.
16770 * support/check.c (print_failure): Likewise.
16771 * support/support_test_verify_impl.c (support_test_verify_impl):
16772 Likewise.
16773 * support/support_test_compare_failure.c
16774 (support_test_compare_failure): Likewise.
16775
16776 2018-01-12 Florian Weimer <fweimer@redhat.com>
16777
16778 [BZ #22701]
16779 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
16780 Prevent installation of libnsl.so.
16781 (libnsl-inhibit-o): Do not build (or install) static libraries.
16782
16783 2018-01-12 Egmont Koblinger <egmont@gmail.com>
16784
16785 [BZ #22657]
16786 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
16787 before the day number which may produce a double space.
16788 (date_fmt): Likewise.
16789
16790 2018-01-12 Joseph Myers <joseph@codesourcery.com>
16791
16792 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
16793 instead of fegetenv.
16794
16795 2018-01-11 Joseph Myers <joseph@codesourcery.com>
16796
16797 [BZ #22702]
16798 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
16799 comment to say exceptions are discarded.
16800 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
16801 __fegetenv.
16802 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
16803 be enabled.
16804
16805 2018-01-11 Florian Weimer <fweimer@redhat.com>
16806
16807 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
16808 and error message.
16809
16810 2018-01-11 Florian Weimer <fweimer@redhat.com>
16811
16812 [BZ #22636]
16813 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
16814 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
16815
16816 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16817
16818 [BZ #22693]
16819 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
16820 negative arguments in test for NaN or infinity argument.
16821
16822 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
16823
16824 * po/libc.pot: Regenerate.
16825
16826 2018-01-10 Florian Weimer <fweimer@redhat.com>
16827
16828 [BZ #22636]
16829 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
16830 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
16831
16832 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
16833
16834 * hurd/hurd/fd.h: Include <fcntl.h>
16835 (__hurd_at_flags): New function.
16836 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
16837 with call to __hurd_at_flags.
16838 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
16839 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
16840 __faccessat
16841 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
16842 (__access_noerrno): Use __faccessat_common instead of access_common.
16843 (__access): Likewise.
16844 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
16845 with a call to __faccessat.
16846 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
16847 (__faccessat_common): ... this. Move implementation of __access into it when
16848 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
16849 reauthenticate_cwdir_at helper to implement AT mechanism.
16850 (__faccessat_noerrno): New function, just calls __faccessat_common.
16851 (__faccessat): New function, just calls __faccessat_common.
16852 (faccessat): Define weak alias.
16853
16854 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16855
16856 [BZ #22691]
16857 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16858 (CFLAGS-s_fmaxmagl.c): New variable.
16859 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
16860
16861 [BZ #22690]
16862 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
16863 long int for arguments of possibly overflowing addition or
16864 subtraction.
16865 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
16866
16867 2018-01-09 Joseph Myers <joseph@codesourcery.com>
16868
16869 [BZ #22688]
16870 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16871 (CFLAGS-e_remainderl.c): New variable.
16872
16873 [BZ #22687]
16874 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
16875 variable.
16876 (CFLAGS-s_cacoshl.c): Likewise.
16877 (CFLAGS-s_casinhl.c): Likewise.
16878 (CFLAGS-s_catanl.c): Likewise.
16879 (CFLAGS-s_catanhl.c): Likewise.
16880 (CFLAGS-s_cexpl.c): Likewise.
16881 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
16882 (CFLAGS-s_csinhl.c): Likewise.
16883 (CFLAGS-s_clogl.c): Likewise.
16884 (CFLAGS-s_clog10l.c): Likewise.
16885 (CFLAGS-s_csinl.c): Likewise.
16886 (CFLAGS-s_csqrtl.c): Likewise.
16887
16888 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
16889 2017-01-09 Svante Signell <svante.signell@gmail.com>
16890
16891 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
16892 (_hurd_exec_paths): New function.
16893 * hurd/hurd.h (_hurd_exec): Deprecate function.
16894 (_hurd_exec_paths): Declare function.
16895 * hurd/Versions: Export _hurd_exec_paths.
16896 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
16897 (__execve): Use __getcwd to build absolute path, and use
16898 _hurd_exec_paths instead of _hurd_exec.
16899 * sysdeps/mach/hurd/spawni.c: Likewise.
16900 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
16901 _hurd_exec.
16902
16903 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
16904
16905 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
16906 test instead of failing in case of ENOENT returned by posix_openpt.
16907
16908 2018-01-08 Florian Weimer <fweimer@redhat.com>
16909
16910 resolv: Support binary labels in test framework.
16911 * support/resolv_test.c (struct to_be_freed): Remove.
16912 (struct compressed_name): New.
16913 (allocate_compressed_name, ascii_tolower)
16914 (compare_compressed_name): New functions.
16915 (struct resolv_response_builder): Update type of
16916 compression_offsets for use with tsearch. Rempve to_be_freed.
16917 (response_push_pointer_to_free): Remove function.
16918 (resolv_response_add_name): Rewrite using struct compressed_name
16919 and tsearch instead of hsearch_r.
16920 (response_builder_allocate): Remove initialization of
16921 compression_offsets.
16922 (response_builder_free): Update for removal of to_be_freed. Use
16923 tdestroy instead of hdestroy_r.
16924 * resolv/Makefile (tests): Add tst-resolv-binary.
16925 (tst-resolv-binary): Link with -lresolv -lpthread.
16926
16927 2018-01-08 Florian Weimer <fweimer@redhat.com>
16928
16929 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
16930 time. Pass positive flag instead of negative flag to
16931 support_test_compare_failure.
16932 (support_test_compare_failure): Change negative parameter to
16933 positive.
16934 * support/support_test_compare_failure.c (report)
16935 (support_test_compare_failure): Likewise.
16936 * support/tst-test_compare.c (return_ssize_t, return_int): New.
16937 (do_test): Check int/size_t, ssize_t/size_t comparisons.
16938
16939 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
16940
16941 [BZ #22637]
16942 * nptl/descr.h (stackblock, stackblock_size): Update comments.
16943 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
16944 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
16945 stacksize.
16946 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
16947
16948 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
16949
16950 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
16951 Add s_sincosf-sse2 and s_sincosf-fma.
16952 (CFLAGS-s_sincosf-fma.c): New.
16953 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
16954 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
16955 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
16956 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
16957 __sincosf is defined.
16958
16959 2018-01-08 Florian Weimer <fweimer@redhat.com>
16960
16961 * nptl/tst-thread-exit-clobber.cc: New file.
16962 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
16963 C++11 mode.
16964 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
16965 (tests): Add tst-thread-exit-clobber.
16966 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
16967
16968 2018-01-08 Florian Weimer <fweimer@redhat.com>
16969
16970 * support/check.h (support_static_assert): Define.
16971 (TEST_COMPARE): Use it.
16972
16973 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
16974
16975 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
16976 [!__RLIM_T_MATCHES_RLIM64_T]
16977 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
16978 __getrlimit64. Add libc_hidden_weak.
16979
16980 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
16981
16982 * elf/elf.h (R_RISCV_NONE): New define.
16983 (R_RISCV_32): Likewise.
16984 (R_RISCV_64): Likewise.
16985 (R_RISCV_RELATIVE): Likewise.
16986 (R_RISCV_COPY): Likewise.
16987 (R_RISCV_JUMP_SLOT): Likewise.
16988 (R_RISCV_TLS_DTPMOD32): Likewise.
16989 (R_RISCV_TLS_DTPMOD64): Likewise.
16990 (R_RISCV_TLS_DTPREL32): Likewise.
16991 (R_RISCV_TLS_DTPREL64): Likewise.
16992 (R_RISCV_TLS_TPREL32): Likewise.
16993 (R_RISCV_TLS_TPREL64): Likewise.
16994 * Makerules (make-link-multidir): Make directories before linking into
16995 them.
16996 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
16997 define.
16998 (VDSO_HASH_LINUX_4_15): Likewise.
16999 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17000 in subdirectories of lib.
17001 * nptl/Makefile (/librt.so): Always depend on
17002 "$(shared-thread-library)".
17003
17004 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17005
17006 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17007 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17008 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17009 (___tls_get_addr).
17010 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17011 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17012 "-O2 -march=i686".
17013 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17014 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17015 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17016 * sysdeps/gnu/glob-lstat-compat.c: New file.
17017 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17018 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17019
17020 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17021
17022 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17023 Reserve 16 chars to reloc_addr before calling _itoa_word.
17024
17025 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17026
17027 [BZ #22678]
17028 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17029 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17030
17031 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17032 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17033
17034 * resource/tst-getrlimit.c: Add copyright header.
17035
17036 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17037 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17038
17039 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17040 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17041 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17042 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17043 instead.
17044 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17045 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17046 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17047 RLIM64_INFINITY): Fix values to match the kernel ones.
17048 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17049 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17050 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17051 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17052 getrlimit64@@GLIBC_2_27.
17053 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17054 and setrlimit64.
17055 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17056 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17057 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17058 setrlimit, getrlimit64 and setrlimit64.
17059
17060 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17061
17062 [BZ #22648]
17063 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17064 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17065
17066 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17067
17068 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17069 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17070 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17071
17072 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17073
17074 [BZ #15479]
17075 [BZ #22666]
17076 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17077 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17078
17079 [BZ #15479]
17080 [BZ #22665]
17081 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17082 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17083 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17084 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17085
17086 2018-01-04 Florian Weimer <fweimer@redhat.com>
17087
17088 [BZ #22667]
17089 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17090 Align the stack before calling exit.
17091 * stdlib/tst-makecontext-align.c: New file.
17092 * stdlib/Makefile (tests): Add tst-makecontext-align.
17093
17094 2018-01-04 Florian Weimer <fweimer@redhat.com>
17095
17096 Add support for calling dlvsym from libc.so.
17097 * include/dlfcn.h (__libc_dlvsym): Declare.
17098 * elf/Makefile (tests-static-internal): Add
17099 tst-libc_dlvsym-static.
17100 (tests-internal): Add tst-libc_dlvsym.
17101 (modules-names): Add tst-libc_dlvsym-dso.
17102 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17103 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17104 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17105 object tst-libc_dlvsym-dso.so needs to be built before running
17106 these tests.
17107 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17108 * elf/Versions: Export __libc_dlvsym.
17109 * elf/dl-libc.c (struct do_dlvsym_args): New.
17110 (do_dlvsym, __libc_dlvsym): New functions.
17111 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17112 (_dl_open_hook2): New variable.
17113 (__libc_register_dl_open_hook): Set it.
17114 * elf/tst-libc_dlvsym-dso.c: New file.
17115 * elf/tst-libc_dlvsym-static.c: Likewise.
17116 * elf/tst-libc_dlvsym.c: Likewise.
17117 * elf/tst-libc_dlvsym.h: Likewise.
17118
17119 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17120
17121 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17122 include <sys/mount.h>.
17123
17124 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17125
17126 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17127 Add __NO_MATH_ERRNO__ check.
17128
17129 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17130
17131 * sysdeps/mips/mips32/libm-test-ulps: Update.
17132 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17133
17134 2018-01-02 Florian Weimer <fweimer@redhat.com>
17135
17136 * misc/tst-pselect.c: Add copyright header.
17137
17138 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17139
17140 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17141 comment.
17142 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17143 comment.
17144 (settrlimit): Rename into setrlimit.
17145 (__sttrlimit): Rename into __setrlimit.
17146
17147 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17148 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17149 never defined in that case.
17150
17151 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17152
17153 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17154
17155 * sysdeps/arm/libm-test-ulps: Update.
17156
17157 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17158 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17159
17160 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17161
17162 * NEWS: Add cosf and sincosf to list of optimized functions.
17163
17164 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17165
17166 [BZ #22660]
17167 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17168 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17169 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17170 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17171
17172 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17173
17174 [BZ #22433]
17175 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17176
17177 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17178 making a copy of it.
17179
17180 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17181
17182 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17183 trailing whitespace removed.
17184 * scripts/config.guess: Update to version 2018-01-01.
17185 * scripts/config.sub: Update to version 2018-01-01.
17186 * scripts/move-if-change: Update from gnulib.
17187
17188 * NEWS: Update copyright dates.
17189 * catgets/gencat.c (print_version): Likewise.
17190 * csu/version.c (banner): Likewise.
17191 * debug/catchsegv.sh: Likewise.
17192 * debug/pcprofiledump.c (print_version): Likewise.
17193 * debug/xtrace.sh (do_version): Likewise.
17194 * elf/ldconfig.c (print_version): Likewise.
17195 * elf/ldd.bash.in: Likewise.
17196 * elf/pldd.c (print_version): Likewise.
17197 * elf/sotruss.sh: Likewise.
17198 * elf/sprof.c (print_version): Likewise.
17199 * iconv/iconv_prog.c (print_version): Likewise.
17200 * iconv/iconvconfig.c (print_version): Likewise.
17201 * locale/programs/locale.c (print_version): Likewise.
17202 * locale/programs/localedef.c (print_version): Likewise.
17203 * login/programs/pt_chown.c (print_version): Likewise.
17204 * malloc/memusage.sh (do_version): Likewise.
17205 * malloc/memusagestat.c (print_version): Likewise.
17206 * malloc/mtrace.pl: Likewise.
17207 * manual/libc.texinfo: Likewise.
17208 * nptl/version.c (banner): Likewise.
17209 * nscd/nscd.c (print_version): Likewise.
17210 * nss/getent.c (print_version): Likewise.
17211 * nss/makedb.c (print_version): Likewise.
17212 * posix/getconf.c (main): Likewise.
17213 * scripts/test-installation.pl: Likewise.
17214 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17215
17216 * All files with FSF copyright notices: Update copyright dates
17217 using scripts/update-copyrights.
17218 * locale/programs/charmap-kw.h: Regenerated.
17219 * locale/programs/locfile-kw.h: Likewise.
17220
17221 2017-12-31 Zack Weinberg <zackw@panix.com>
17222
17223 * libio/bits/libio-ldbl.h: Correct check for improper
17224 inclusion. Add own multiple include guard.
17225
17226 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17227 Dmitry V. Levin <ldv@altlinux.org>
17228
17229 [BZ #22625]
17230 CVE-2017-16997
17231 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17232 string token expansion. Check for NULL pointer or empty string possibly
17233 returned by expand_dynamic_string_token.
17234 (decompose_rpath): Check for empty path after dynamic string
17235 token expansion.
17236
17237 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17238
17239 [BZ #22433]
17240 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17241
17242 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17243 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17244 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17245 and PTRACE_SYSCALL.
17246 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17247 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17248 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17249 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17250 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17251 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17252
17253 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17254 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17255 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17256 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17257 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17258 bits/ptrace-shared.h.
17259 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17260 <bits/ptrace-shared.h>.
17261 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17262 __ptrace_peeksiginfo_flags, ptrace): Remove.
17263 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17264 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17265 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17266 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17267 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17268
17269 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17270
17271 [BZ #17804]
17272 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17273 end of the loop. Improve comments.
17274
17275 2017-12-29 Zack Weinberg <zackw@panix.com>
17276
17277 [BZ #22615]
17278 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17279 might be set on success.
17280
17281 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17282
17283 [BZ #22611]
17284 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17285 is unchanged on success.
17286
17287 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17288
17289 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17290 updated.
17291 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17292 expand_dynamic_string_token): Likewise.
17293 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17294 is_path argument.
17295
17296 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
17297 contains ':'.
17298
17299 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
17300 is set and name contains ':', and all code depending on these checks.
17301
17302 2017-12-24 Zack Weinberg <zackw@panix.com>
17303
17304 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17305 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17306 respectively.
17307 * libio/libio.h: Rename the original version of this file to
17308 libio/bits/libio.h. Error out if not included by stdio.h or the
17309 stub libio.h.
17310 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17311 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17312 if not included by bits/libio.h or the stub _G_config.h.
17313 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17314 sysdeps/unix/sysv/linux/bits. Error out if not included by
17315 bits/libio.h or the stub _G_config.h.
17316 * libio/stdio.h: Include bits/libio.h, not libio.h.
17317 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17318 well as libio.h and _G_config.h.
17319
17320 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
17321 * libio/strfile.h, stdio-common/vfscanf.c
17322 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
17323 Include stdio.h, not _G_config.h nor libio.h.
17324 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
17325 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
17326
17327 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
17328
17329 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
17330
17331 [BZ #22347]
17332 * stdlib/getrandom.c (getrandom): Fix comment.
17333 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
17334
17335 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
17336
17337 [BZ #21161]
17338 * manual/arith.texi (strtoul): Fix a typo.
17339
17340 [BZ #22596]
17341 * manual/arith.texi (finite): Fix the description of the return
17342 value.
17343
17344 2017-12-22 Eric Blake <ebb9@byu.net>
17345
17346 Avoid gcc warnings on cygwin
17347 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17348 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17349 Avoid unused variable.
17350
17351 2017-12-22 Florian Weimer <fweimer@redhat.com>
17352
17353 * io/Makefile (routines): Add copy_file_range.
17354 (tests): Add tst-copy_file_range.
17355 (tests-static, tests-internal): Add tst-copy_file_range-compat.
17356 * io/Versions (GLIBC_2.27): Export copy_file_range.
17357 * io/copy_file_range-compat.c: New file.
17358 * io/copy_file_range.c: Likewise.
17359 * io/tst-copy_file_range-compat.c: Likewise.
17360 * io/tst-copy_file_range.c: Likewise.
17361 * manual/llio.texi (Copying File Data): New section.
17362 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
17363 * support/Makefile (libsupport-routines): Add support-xfstat,
17364 xftruncate, xlseek.
17365 * support/support-xfstat.c: New file.
17366 * support/xftruncate.c: Likewise.
17367 * support/xlseek.c: Likewise.
17368 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
17369 * sysdeps/unix/sysv/linux/**.abilist: Update.
17370 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
17371
17372 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
17373
17374 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17375 disable-multi-arch variant to aarch64-linux-gnu.
17376
17377 2017-12-20 Joseph Myers <joseph@codesourcery.com>
17378
17379 * manual/texinfo.tex: Update to version 2017-12-18.20 with
17380 trailing whitespace removed.
17381 * scripts/config.guess: Update to version 2017-12-17.
17382 * scripts/config.sub: Update to version 2017-11-23.
17383 * scripts/install-sh: Update to version 2017-09-23.17.
17384 * scripts/move-if-change: Update to version 2017-09-13 06:45.
17385
17386 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17387
17388 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
17389 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17390 * sysdeps/tile/_mcount.S (__mcount): Likewise.
17391 * sysdeps/tile/crti.S (_init, _fini): Likewise.
17392 * sysdeps/tile/crtn.S: Likewise.
17393 * sysdeps/tile/dl-start.S (_start): Likewise.
17394 * sysdeps/tile/dl-trampoline.S: Likewise.
17395 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
17396 * sysdeps/tile/start.S (_start): Likewise.
17397 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
17398 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
17399 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
17400 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
17401 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
17402 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
17403 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
17404
17405 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
17406 comment.
17407 * sysdeps/tile/preconfigure: Remove tilegx folder.
17408 * sysdeps/tile/tilegx/Implies: Move definitions to ...
17409 * sysdeps/tile/Implies: ... here.
17410 * sysdeps/tile/tilegx/Makefile: Move rules to ...
17411 * sysdeps/tile/Makefile: ... here.
17412 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
17413 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
17414 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
17415 * sysdeps/tile/bits/wordsize.h: ... here.
17416 * sysdeps/tile/tilegx/*: Move to ...
17417 * sysdeps/tile/*: ... here.
17418 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
17419 * sysdeps/tile/tilegx32/Implies: ... here.
17420 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
17421 * sysdeps/tile/tilegx64/Implies: ... here.
17422 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
17423 to ...
17424 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
17425 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
17426 * sysdeps/unix/sysv/linux/tile/*: ... here.
17427 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
17428 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
17429 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
17430 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
17431
17432 * README: Remove tilepro-*-linux-gnu from supported architecture.
17433 * scripts/build-many-glibcs.py: Likewise.
17434 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17435 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
17436 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
17437 elf_machine_matches_host, elf_machine_dynamic,
17438 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
17439 howto, elf_machine_rela): Likewise.
17440 * sysdeps/tile/dl-start.S (_start): Likewise.
17441 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
17442 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
17443 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
17444 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
17445 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
17446 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
17447 Likewise.
17448 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
17449 * sysdeps/tile/preconfigure: Likewise.
17450 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
17451 POINTER_CHK_GUARD): Likewise.
17452 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
17453 * sysdeps/tile/start.S (_start): Likewise.
17454 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
17455 Likewise.
17456 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
17457 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
17458 CMOVNEZ): Remove.
17459 * sysdeps/unix/sysv/linux/tile/bits/environments.h
17460 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
17461 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
17462 Likewise.
17463 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
17464 * sysdeps/tile/tilepro/Implies: Remove file.
17465 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
17466 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
17467 * sysdeps/tile/tilepro/memchr.c: Likewise.
17468 * sysdeps/tile/tilepro/memcpy.S: Likewise.
17469 * sysdeps/tile/tilepro/memset.c: Likewise.
17470 * sysdeps/tile/tilepro/memusage.h: Likewise.
17471 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
17472 * sysdeps/tile/tilepro/strchr.c: Likewise.
17473 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
17474 * sysdeps/tile/tilepro/strlen.c: Likewise.
17475 * sysdeps/tile/tilepro/strrchr.c: Likewise.
17476 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
17477 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
17478 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
17479 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
17480 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
17481 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
17482 Likewise.
17483 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
17484 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
17485 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
17486 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
17487 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
17488 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
17489 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
17490 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
17491 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
17492 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
17493 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
17494 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
17495 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
17496 tilepro mention in comment.
17497
17498 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
17499 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
17500 * nptl/pthread_join_common.c: New file: common function used on
17501 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
17502 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
17503 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
17504 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
17505 (cleanup): Move definition to pthread_join_common.c.
17506 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
17507 Remove superflous checks.
17508 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
17509 Likewise.
17510
17511 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
17512
17513 * sysdeps/aarch64/libm-test-ulps: Update.
17514
17515 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17516
17517 * sysdeps/aarch64/memset.S (MEMSET): Define.
17518
17519 2017-12-20 Florian Weimer <fweimer@redhat.com>
17520
17521 [BZ #22635]
17522 nptl: Provide full implementation of pthread_self in libc.so.
17523 * nptl/Makefile (routines): Add pthread_self.
17524 (libpthread-routines): Replace pthread_self with
17525 compat-pthread_self.
17526 * nptl/forward.c (pthread_self): Remove.
17527 * nptl/nptl-init.c (pthread_functions): Do not initialize
17528 ptr_pthread_self.
17529 * nptl/pthread_self.c (pthread_self): Remove weak alias.
17530 * nptl/compat-pthread_self.c: New file.
17531 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
17532 Remove ptr_pthread_self.
17533
17534 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
17535
17536 * posix/regcomp.c: Fix spelling in comments.
17537 * posix/regex.h: Likewise.
17538 * posix/regex_internal.c: Likewise.
17539 * posix/regexec.c: Likewise.
17540
17541 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17542
17543 [BZ #22377]
17544 * math/Makefile [C++] (tests): Add test for iseqsig.
17545 * math/math.h [C++] (iseqsig): New implementation, which does
17546 not rely on __MATH_TG/__builtin_types_compatible_p.
17547 * math/test-math-iseqsig.cc: New file.
17548 * sysdeps/powerpc/powerpc64le/Makefile
17549 (CFLAGS-test-math-iseqsig.cc): New variable.
17550
17551 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
17552
17553 * elf/dl-load.c (is_trusted_path): Remove.
17554 (fillin_rpath): Remove check_trusted argument and its use,
17555 all callers changed.
17556
17557 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17558
17559 [BZ #22630]
17560 * Makeconfig (link-pie-before-libc): Replace -pie with
17561 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
17562 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
17563 (tst-dlopen-aout-no-pie): New.
17564 (LDFLAGS-tst-prelink): Removed.
17565 (tst-prelink-no-pie): New.
17566 (LDFLAGS-tst-main1): Removed.
17567 (tst-main1-no-pie): New.
17568 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
17569 (tst-gmon-no-pie): New.
17570
17571 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17572
17573 * manual/install.texi: Document that --enable-static-pie
17574 implies PIE.
17575 * INSTALL: Regenerated.
17576
17577 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
17578
17579 [BZ #21309]
17580 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
17581 unsigned.
17582
17583 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17584
17585 Revert:
17586
17587 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17588
17589 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17590
17591 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17592
17593 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17594 <errno.h>. Include "eexp.tbl".
17595 (half): New constant.
17596 (one): Likewise.
17597 (__ieee754_exp): Rewrite.
17598 (__slowexp): Remove prototype.
17599 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17600 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17601 * sysdeps/i386/fpu/slowexp.c: Likewise.
17602 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17603 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17604 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17605 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17606 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17607 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17608 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17609 comment.
17610 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17611 (CPPFLAGS-slowexp.c): Remove variable.
17612 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17613 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17614 (CFLAGS-slowexp-fma.c): Remove variable.
17615 (CFLAGS-slowexp-fma4.c): Likewise.
17616 (CFLAGS-slowexp-avx.c): Likewise.
17617 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17618 define as macro.
17619 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17620 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17621 * math/Makefile (type-double-routines): Remove slowexp.
17622 * manual/probes.texi (slowexp_p6): Remove.
17623 (slowexp_p32): Likewise.
17624
17625 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17626
17627 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
17628 arithmetic.
17629
17630 * lib/glob.c (glob): Do not pass NULL to mempcpy.
17631
17632 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17633
17634 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17635
17636 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17637
17638 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17639 <errno.h>. Include "eexp.tbl".
17640 (half): New constant.
17641 (one): Likewise.
17642 (__ieee754_exp): Rewrite.
17643 (__slowexp): Remove prototype.
17644 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17645 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17646 * sysdeps/i386/fpu/slowexp.c: Likewise.
17647 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17648 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17649 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17650 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17651 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17652 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17653 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17654 comment.
17655 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17656 (CPPFLAGS-slowexp.c): Remove variable.
17657 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17658 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17659 (CFLAGS-slowexp-fma.c): Remove variable.
17660 (CFLAGS-slowexp-fma4.c): Likewise.
17661 (CFLAGS-slowexp-avx.c): Likewise.
17662 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17663 define as macro.
17664 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17665 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17666 * math/Makefile (type-double-routines): Remove slowexp.
17667 * manual/probes.texi (slowexp_p6): Remove.
17668 (slowexp_p32): Likewise.
17669
17670 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17671 James Clarke <jrtc27@jrtc27.com>
17672
17673 [BZ #22603]
17674 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
17675 addition.
17676
17677 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17678
17679 [BZ #22605]
17680 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
17681 code.
17682
17683 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17684
17685 [BZ #22563]
17686 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17687 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17688 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17689 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17690 to feature_1.
17691
17692 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17693
17694 [BZ #22563]
17695 * bits/types/__cancel_jmp_buf_tag.h: New file.
17696 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17697 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17698 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17699 * nptl/Makefile (headers): Add
17700 bits/types/__cancel_jmp_buf_tag.h.
17701 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17702 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17703 * sysdeps/nptl/pthread.h: Include
17704 <bits/types/__cancel_jmp_buf_tag.h>.
17705 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17706 __cancel_jmp_buf.
17707 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17708
17709 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17710
17711 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17712 --enable-static-pie variants to x86_64, x32 and i686.
17713
17714 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17715
17716 [BZ #22631]
17717 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
17718 argument for attrubutes. All callers changed.
17719 (__inline_mathop1): Likewise. All callers changed.
17720 (__inline_mathop): Likewise. All callers changed.
17721 [__USE_MISC] (scalbn): Use __inline_forward instead of
17722 __inline_forward_c.
17723 [__USE_ISOC99] (scalbln): Likewise.
17724 [__USE_ISOC99] (nearbyint): Likewise.
17725 [__USE_ISOC99] (lrint): Likewise.
17726 [__USE_MISC] (scalbnf): Likewise.
17727 [__USE_ISOC99] (scalblnf): Likewise.
17728 [__USE_ISOC99] (nearbyintf): Likewise.
17729 [__USE_ISOC99] (lrintf): Likewise.
17730 [__USE_MISC] (scalbnl): Likewise.
17731 [__USE_ISOC99] (scalblnl): Likewise.
17732 [__USE_ISOC99] (nearbyintl): Likewise.
17733 [__USE_ISOC99] (lrintl): Likewise.
17734 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
17735 __inline_mathop and __m81_defun changed.
17736
17737 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
17738 CPU or FPU for ARM hard-float configurations.
17739
17740 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17741
17742 * nptl/tst-attr3.c: Include <libc-diag.h>.
17743 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
17744
17745 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
17746
17747 * string/tester.c (test_strncat): Also disable -Warray-bounds
17748 warnings for two tests.
17749
17750 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17751
17752 [BZ #22614]
17753 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
17754 $(cc-pie-default) == yes.
17755 * config.make.in (cc-pie-default): New.
17756 * configure.ac (libc_cv_pie_default): Renamed to ...
17757 (libc_cv_cc_pie_default): This.
17758 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
17759 * configure: Regenerated.
17760
17761 2017-12-18 Florian Weimer <fweimer@redhat.com>
17762
17763 [BZ #20204]
17764 ld.so: Harden dl-libc/libdl hooks.
17765 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
17766 (rtld_active): New function.
17767 * dlfcn/dladdr.c (__dladdr): Call it.
17768 * dlfcn/dladdr1.c (__dladdr1): Likewise.
17769 * dlfcn/dlclose.c (__dlcose): Likewise.
17770 * dlfcn/dlerror.c (__dlerror): Likewise.
17771 * dlfcn/dlinfo.c (__dlinfo): Likewise.
17772 * dlfcn/dlmopen.c (__dlmopen): Likewise.
17773 * dlfcn/dlopen.c (__dlopen): Likewise.
17774 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
17775 * dlfcn/dlsym.c (__dlsym): Likewise.
17776 * dlfcn/dlvsym.c (__dlvsym): Likewise.
17777 * libio/vtables.c (_IO_vtable_check): Likewise.
17778 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
17779 (__libc_dlclose): Likewise.
17780 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
17781 assignment.
17782
17783 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17784
17785 [BZ #22446]
17786 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
17787 buffers for readlink input and output.
17788
17789 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
17790
17791 [BZ #22624]
17792 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
17793 inhibit_stack_protector.
17794
17795 [BZ #22624]
17796 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
17797 inhibit_stack_protector.
17798
17799 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
17800
17801 [BZ #22627]
17802 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
17803 code and invocation.
17804
17805 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
17806
17807 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
17808
17809 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
17810
17811 [BZ #22505]
17812 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
17813
17814 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17815
17816 * sysdeps/s390/fpu/libm-test-ulps: Update.
17817
17818 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17819
17820 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17821
17822 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17823
17824 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
17825 constants to s_sincosf.h file.
17826 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
17827 * sysdeps/ieee754/flt-32/s_sincosf.c: New
17828 implementation.
17829 * sysdeps/ieee754/flt-32/s_sincosf.h:
17830 New file.
17831
17832 2017-12-12 Carlos O'Donell <carlos@redhat.com>
17833
17834 [BZ #14681]
17835 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
17836 before mtrace.
17837
17838 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
17839
17840 [BZ #19574]
17841 * INSTALL: Regenerated.
17842 * Makeconfig (real-static-start-installed-name): New.
17843 (pic-default): Updated for --enable-static-pie.
17844 (pie-default): New for --enable-static-pie.
17845 (default-pie-ldflag): Likewise.
17846 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
17847 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
17848 Replace $(static-start-installed-name) with
17849 $(real-static-start-installed-name).
17850 (+prectorT): Updated for --enable-static-pie.
17851 (+postctorT): Likewise.
17852 (CFLAGS-.o): Add $(pie-default).
17853 (CFLAGS-.op): Likewise.
17854 * NEWS: Mention --enable-static-pie.
17855 * config.h.in (ENABLE_STATIC_PIE): New.
17856 * configure.ac (--enable-static-pie): New configure option.
17857 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
17858 (have-static-pie): Likewise.
17859 Enable static PIE if linker supports --no-dynamic-linker.
17860 (ENABLE_STATIC_PIE): New AC_DEFINE.
17861 (enable-static-pie): New LIBC_CONFIG_VAR.
17862 * configure: Regenerated.
17863 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
17864 gr$(start-installed-name) for --enable-static-pie.
17865 (extra-objs): Likewise.
17866 (install-lib): Likewise.
17867 (extra-objs): Add static-reloc.o and static-reloc.os
17868 ($(objpfx)$(start-installed-name)): Also depend on
17869 $(objpfx)static-reloc.o.
17870 ($(objpfx)r$(start-installed-name)): New.
17871 ($(objpfx)g$(start-installed-name)): Also depend on
17872 $(objpfx)static-reloc.os.
17873 ($(objpfx)gr$(start-installed-name)): New.
17874 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
17875 in libc.a.
17876 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
17877 initimage.
17878 * csu/static-reloc.c: New file.
17879 * elf/Makefile (routines): Add dl-reloc-static-pie.
17880 (elide-routines.os): Likewise.
17881 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
17882 (tst-tls1-static-non-pie-no-pie): New.
17883 * elf/dl-reloc-static-pie.c: New file.
17884 * elf/dl-support.c (_dl_get_dl_main_map): New function.
17885 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
17886 STATIC_PIE_BOOTSTRAP.
17887 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
17888 * gmon/Makefile (tests): Add tst-gmon-static-pie.
17889 (tests-static): Likewise.
17890 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
17891 (tst-gmon-static-no-pie): New.
17892 (CFLAGS-tst-gmon-static-pie.c): Likewise.
17893 (CRT-tst-gmon-static-pie): Likewise.
17894 (tst-gmon-static-pie-ENV): Likewise.
17895 (tests-special): Likewise.
17896 ($(objpfx)tst-gmon-static-pie.out): Likewise.
17897 (clean-tst-gmon-static-pie-data): Likewise.
17898 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
17899 * gmon/tst-gmon-static-pie.c: New file.
17900 * manual/install.texi: Document --enable-static-pie.
17901 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
17902 (_dl_get_dl_main_map): Likewise.
17903 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
17904 * sysdeps/x86_64/configure.ac: Likewise.
17905 * sysdeps/i386/configure: Regenerated.
17906 * sysdeps/x86_64/configure: Likewise.
17907 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
17908 (ASFLAGS-.op): Likewise.
17909
17910 2017-12-15 Joseph Myers <joseph@codesourcery.com>
17911
17912 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
17913 * posix/tst-mmap-offset.c (fname): Use /tmp.
17914 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
17915
17916 2017-12-15 Steve Ellcey <sellcey@cavium.com>
17917
17918 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
17919
17920 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
17921
17922 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
17923 errno.
17924
17925 2017-12-15 Joseph Myers <joseph@codesourcery.com>
17926
17927 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
17928 --with-float=hard for arm-linux-gnueabihf configurations.
17929
17930 [BZ #14121]
17931 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
17932 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
17933 ($(mo-installed)): Use $(objpfx)%.mo.
17934 (realclean): Remove rule.
17935
17936 * po/Makefile (linguas): Remove rule and dependencies.
17937 (linguas.mo): Likewise.
17938 (.PHONY): Do not depend on linguas and linguas.mo.
17939 (podir): Remove variable.
17940 (pofiles): Likewise.
17941 [$(pofiles)] (%.po): Remove rule.
17942
17943 * sysdeps/sparc/sparc32/Makefile
17944 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
17945 start-of-line whitespace in argument of echo.
17946 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
17947 with whitespace. Generate __wrap_.udiv alias.
17948 * sysdeps/sparc/sparc32/rem.S: Regenerated.
17949 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
17950 * sysdeps/sparc/sparc32/udiv.S: Likewise.
17951 * sysdeps/sparc/sparc32/urem.S: Likewise.
17952
17953 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17954
17955 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
17956 for aligned inputs.
17957
17958 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
17959
17960 * benchtests/bench-strcmp.c: Print output in JSON format.
17961
17962 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
17963
17964 2017-12-14 Florian Weimer <fweimer@redhat.com>
17965
17966 [BZ #22607]
17967 CVE-2017-1000409
17968 * elf/dl-load.c (_dl_init_paths): Compute number of components in
17969 the expanded path string.
17970
17971 2017-12-14 Florian Weimer <fweimer@redhat.com>
17972
17973 [BZ #22606]
17974 CVE-2017-1000408
17975 * elf/dl-load.c (system_dirs): Update comment.
17976 (nsystem_dirs_len): Use array_length.
17977 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
17978
17979 2017-12-14 Florian Weimer <fweimer@redhat.com>
17980
17981 Simplify compiling most of support/ outside of glibc.
17982 * support/check_addrinfo.c: Include <string.h>.
17983 * support/check_dns_packet.c: Likewise.
17984 * support/check_hostent.c: Likewise.
17985 * support/support_can_chroot.c: Include <support/xunistd.h>.
17986 * support/support_format_addrinfo.c: Include <stdlib.h>
17987 * support/support_format_dns_packet.c: Include <stdbool.h>.
17988 * support/support_format_hostent.c: Include <stdlib.h>.
17989 * support/support_format_netent.c: Likewise.
17990 * support/support_write_string.c: Include <support/xunistd.h>.
17991 * support/xdlfcn.c: Include <stddef.h>.
17992
17993 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
17994
17995 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
17996
17997 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17998 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17999
18000 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18001 (sysdeps_routines): Add memset-niagara7.
18002 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18003 Likewise.
18004 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18005 file.
18006 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18007 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18008 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18009 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18010 Add niagara7 option.
18011 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18012 memset.
18013
18014 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18015 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18016 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18017 Likewise.
18018 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18019 New file.
18020 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18021 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18022 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18023 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18024 and __memmove_niagara7.
18025 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18026 Add niagara7 option.
18027 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18028 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18029 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18030 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18031 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18032
18033 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18034
18035 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18036 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18037 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18038 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18039
18040 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18041 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18042 _dl_sparc_cap_flags array.
18043 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18044
18045 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18046
18047 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18048 time whenever possible.
18049
18050 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18051
18052 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18053 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18054
18055 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18056
18057 * soft-fp/fmadf4.c: Move to ....
18058 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18059 * soft-fp/fmasf4.c: Move to ....
18060 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18061 * soft-fp/fmatf4.c: Move to ....
18062 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18063 * sysdeps/ieee754/soft-fp/Makefile: New file.
18064 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18065 * sysdeps/arm/preconfigure: Regenerated.
18066 * sysdeps/arm/nofpu/Implies: New file.
18067 * sysdeps/arm/s_fma.c: Remove file.
18068 * sysdeps/arm/s_fmaf.c: Likewise.
18069 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18070 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18071 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18072 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18073 * sysdeps/microblaze/s_fma.c: Remove file.
18074 * sysdeps/microblaze/s_fmaf.c: Likewise.
18075 * sysdeps/mips/mips32/nofpu/Implies: New file.
18076 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18077 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18078 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18079 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18080 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18081 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18082 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18083 implementation.
18084 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18085 * sysdeps/nios2/s_fma.c: Remove file.
18086 * sysdeps/nios2/s_fmaf.c: Likewise.
18087 * sysdeps/sh/nofpu/Implies: New file.
18088 * sysdeps/sh/s_fma.c: Remove file.
18089 * sysdeps/sh/s_fmaf.c: Likewise.
18090 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18091 * sysdeps/tile/s_fma.c: Remove file.
18092 * sysdeps/tile/s_fmaf.c: Likewise.
18093
18094 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18095
18096 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18097 Add s_cosf-sse2 and s_cosf-fma.
18098 (CFLAGS-s_cosf-fma.c): New.
18099 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18100 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18101 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18102
18103 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18104
18105 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18106
18107 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18108
18109 * libio/Makefile (tests): Add tst-bz22415.
18110 (tst-bz22415-ENV): New rule.
18111 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18112 (tests-special): Add tst-bz22415-mem.out.
18113 ($(objpfx)tst-bz22415-mem.out): New rule.
18114 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18115 in case of a successful seek operation.
18116 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18117 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18118 buffer is required.
18119 * libio/tst-bz22415.c: New test.
18120
18121 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18122
18123 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18124
18125 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18126 __IPC_64 to 0 to avoid IPC_64 being set.
18127
18128 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18129
18130 [BZ #22593]
18131 * math/bits/mathcalls.h (nextafter): Remove const.
18132 (nexttoward): Likewise.
18133
18134 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18135
18136 * configure.ac (--with-fp): Remove configure option.
18137 (with_fp_cond): New variable.
18138 (libc_cv_with_fp): New configure test. Use this variable instead
18139 of with_fp.
18140 * configure: Regenerated.
18141 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18142 * manual/install.texi (Configuring and compiling): Remove
18143 --without-fp.
18144 * INSTALL: Regenerated.
18145 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18146 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18147 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18148 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18149 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18150 use --without-fp to configure glibc.
18151
18152 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18153
18154 * manual/locale.texi (nl_langinfo): Fix a typo.
18155
18156 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18157
18158 [BZ #22588]
18159 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18160
18161 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18162
18163 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18164 (CFLAGS-argp-parse.c): Likewise.
18165 (CFLAGS-argp-fmtstream.c): Likewise.
18166 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18167 (CPPFLAGS-sha512-crypt.c): Likewise.
18168 (CPPFLAGS-md5-crypt.c): Likewise.
18169 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18170 (CFLAGS-stack_chk_fail_local.c): Likewise.
18171 (CFLAGS-backtrace.c): Likewise.
18172 (CFLAGS-sprintf_chk.c): Likewise.
18173 (CFLAGS-snprintf_chk.c): Likewise.
18174 (CFLAGS-vsprintf_chk.c): Likewise.
18175 (CFLAGS-vsnprintf_chk.c): Likewise.
18176 (CFLAGS-asprintf_chk.c): Likewise.
18177 (CFLAGS-vasprintf_chk.c): Likewise.
18178 (CFLAGS-obprintf_chk.c): Likewise.
18179 (CFLAGS-dprintf_chk.c): Likewise.
18180 (CFLAGS-vdprintf_chk.c): Likewise.
18181 (CFLAGS-printf_chk.c): Likewise.
18182 (CFLAGS-fprintf_chk.c): Likewise.
18183 (CFLAGS-vprintf_chk.c): Likewise.
18184 (CFLAGS-vfprintf_chk.c): Likewise.
18185 (CFLAGS-gets_chk.c): Likewise.
18186 (CFLAGS-fgets_chk.c): Likewise.
18187 (CFLAGS-fgets_u_chk.c): Likewise.
18188 (CFLAGS-fread_chk.c): Likewise.
18189 (CFLAGS-fread_u_chk.c): Likewise.
18190 (CFLAGS-swprintf_chk.c): Likewise.
18191 (CFLAGS-vswprintf_chk.c): Likewise.
18192 (CFLAGS-wprintf_chk.c): Likewise.
18193 (CFLAGS-fwprintf_chk.c): Likewise.
18194 (CFLAGS-vwprintf_chk.c): Likewise.
18195 (CFLAGS-vfwprintf_chk.c): Likewise.
18196 (CFLAGS-fgetws_chk.c): Likewise.
18197 (CFLAGS-fgetws_u_chk.c): Likewise.
18198 (CFLAGS-read_chk.c): Likewise.
18199 (CFLAGS-pread_chk.c): Likewise.
18200 (CFLAGS-pread64_chk.c): Likewise.
18201 (CFLAGS-recv_chk.c): Likewise.
18202 (CFLAGS-recvfrom_chk.c): Likewise.
18203 (CFLAGS-tst-longjmp_chk.c): Likewise.
18204 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18205 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18206 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18207 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18208 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18209 (CFLAGS-tst-chk1.c): Likewise.
18210 (CFLAGS-tst-chk2.c): Likewise.
18211 (CFLAGS-tst-chk3.c): Likewise.
18212 (CFLAGS-tst-chk4.cc): Likewise.
18213 (CFLAGS-tst-chk5.cc): Likewise.
18214 (CFLAGS-tst-chk6.cc): Likewise.
18215 (CFLAGS-tst-lfschk1.c): Likewise.
18216 (CFLAGS-tst-lfschk2.c): Likewise.
18217 (CFLAGS-tst-lfschk3.c): Likewise.
18218 (CFLAGS-tst-lfschk4.cc): Likewise.
18219 (CFLAGS-tst-lfschk5.cc): Likewise.
18220 (CFLAGS-tst-lfschk6.cc): Likewise.
18221 (CFLAGS-tst-ssp-1.c): Likewise.
18222 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18223 (CFLAGS-scandir64.c): Likewise.
18224 (CFLAGS-scandir-tail.c): Likewise.
18225 (CFLAGS-scandir64-tail.c): Likewise.
18226 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18227 (CFLAGS-dl-tunables.c): Likewise.
18228 (CFLAGS-dl-runtime.c): Likewise.
18229 (CFLAGS-dl-lookup.c): Likewise.
18230 (CFLAGS-dl-iterate-phdr.c): Likewise.
18231 (CFLAGS-vismain.c): Likewise.
18232 (CFLAGS-tst-linkall-static.c): Likewise.
18233 (CFLAGS-tst-linkall-static.c): Likewise.
18234 (CPPFLAGS-dl-load.c): Likewise.
18235 (CFLAGS-ldconfig.c): Likewise.
18236 (CFLAGS-dl-cache.c): Likewise.
18237 (CFLAGS-cache.c): Likewise.
18238 (CFLAGS-rtld.c): Likewise.
18239 (CFLAGS-multiload.c): Likewise.
18240 (CFLAGS-filtmod1.c): Likewise.
18241 (CFLAGS-tst-align.c): Likewise.
18242 (CFLAGS-tst-align2.c): Likewise.
18243 (CFLAGS-tst-alignmod.c): Likewise.
18244 (CFLAGS-tst-alignmod2.c): Likewise.
18245 (CPPFLAGS-tst-execstack.c): Likewise.
18246 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18247 (CFLAGS-tst-latepthreadmod.c): Likewise.
18248 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18249 (CFLAGS-getgrnam_r.c): Likewise.
18250 (CFLAGS-getgrent_r.c): Likewise.
18251 (CFLAGS-getgrent.c): Likewise.
18252 (CFLAGS-fgetgrent.c): Likewise.
18253 (CFLAGS-fgetgrent_r.c): Likewise.
18254 (CFLAGS-putgrent.c): Likewise.
18255 (CFLAGS-initgroups.c): Likewise.
18256 (CFLAGS-getgrgid.c): Likewise.
18257 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18258 (CFLAGS-getsgent.c): Likewise.
18259 (CFLAGS-fgetsgent.c): Likewise.
18260 (CFLAGS-fgetsgent_r.c): Likewise.
18261 (CFLAGS-putsgent.c): Likewise.
18262 (CFLAGS-getsgnam.c): Likewise.
18263 (CFLAGS-getsgnam_r.c): Likewise.
18264 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18265 (CFLAGS-iconv_charmap.c): Likewise.
18266 (CFLAGS-dummy-repertoire.c): Likewise.
18267 (CFLAGS-charmap.c): Likewise.
18268 (CFLAGS-linereader.c): Likewise.
18269 (CFLAGS-simple-hash.c): Likewise.
18270 (CFLAGS-gconv_conf.c): Likewise.
18271 (CFLAGS-iconvconfig.c): Likewise.
18272 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18273 (CFLAGS-gethstbyad.c): Likewise.
18274 (CFLAGS-gethstbynm_r.c): Likewise.
18275 (CFLAGS-gethstbynm.c): Likewise.
18276 (CFLAGS-gethstbynm2_r.c): Likewise.
18277 (CFLAGS-gethstbynm2.c): Likewise.
18278 (CFLAGS-gethstent_r.c): Likewise.
18279 (CFLAGS-gethstent.c): Likewise.
18280 (CFLAGS-rcmd.c): Likewise.
18281 (CFLAGS-getnetbynm_r.c): Likewise.
18282 (CFLAGS-getnetbynm.c): Likewise.
18283 (CFLAGS-getnetbyad_r.c): Likewise.
18284 (CFLAGS-getnetbyad.c): Likewise.
18285 (CFLAGS-getnetent_r.c): Likewise.
18286 (CFLAGS-getnetent.c): Likewise.
18287 (CFLAGS-getaliasent_r.c): Likewise.
18288 (CFLAGS-getaliasent.c): Likewise.
18289 (CFLAGS-getrpcent_r.c): Likewise.
18290 (CFLAGS-getrpcent.c): Likewise.
18291 (CFLAGS-getservent_r.c): Likewise.
18292 (CFLAGS-getservent.c): Likewise.
18293 (CFLAGS-getprtent_r.c): Likewise.
18294 (CFLAGS-getprtent.c): Likewise.
18295 (CFLAGS-either_ntoh.c): Likewise.
18296 (CFLAGS-either_hton.c): Likewise.
18297 (CFLAGS-getnetgrent.c): Likewise.
18298 (CFLAGS-getnetgrent_r.c): Likewise.
18299 (CFLAGS-tst-checks-posix.c): Likewise.
18300 (CFLAGS-tst-sockaddr.c): Likewise.
18301 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
18302 (CFLAGS-tst-translit.c): Likewise.
18303 (CFLAGS-tst-gettext2.c): Likewise.
18304 (CFLAGS-tst-codeset.c): Likewise.
18305 (CFLAGS-tst-gettext3.c): Likewise.
18306 (CFLAGS-tst-gettext4.c): Likewise.
18307 (CFLAGS-tst-gettext5.c): Likewise.
18308 (CFLAGS-tst-gettext6.c): Likewise.
18309 * io/Makefile (CFLAGS-open.c): Likewise.
18310 (CFLAGS-open64.c): Likewise.
18311 (CFLAGS-creat.c): Likewise.
18312 (CFLAGS-creat64.c): Likewise.
18313 (CFLAGS-fcntl.c): Likewise.
18314 (CFLAGS-poll.c): Likewise.
18315 (CFLAGS-ppoll.c): Likewise.
18316 (CFLAGS-lockf.c): Likewise.
18317 (CFLAGS-statfs.c): Likewise.
18318 (CFLAGS-fstatfs.c): Likewise.
18319 (CFLAGS-statvfs.c): Likewise.
18320 (CFLAGS-fstatvfs.c): Likewise.
18321 (CFLAGS-fts.c): Likewise.
18322 (CFLAGS-fts64.c): Likewise.
18323 (CFLAGS-ftw.c): Likewise.
18324 (CFLAGS-ftw64.c): Likewise.
18325 (CFLAGS-lockf.c): Likewise.
18326 (CFLAGS-posix_fallocate.c): Likewise.
18327 (CFLAGS-posix_fallocate64.c): Likewise.
18328 (CFLAGS-fallocate.c): Likewise.
18329 (CFLAGS-fallocate64.c): Likewise.
18330 (CFLAGS-read.c): Likewise.
18331 (CFLAGS-write.c): Likewise.
18332 (CFLAGS-test-stat.c): Likewise.
18333 (CFLAGS-test-lfs.c): Likewise.
18334 * libio/Makefile (CFLAGS-fileops.c): Likewise.
18335 (CFLAGS-fputc.c): Likewise.
18336 (CFLAGS-fputwc.c): Likewise.
18337 (CFLAGS-freopen64.c): Likewise.
18338 (CFLAGS-freopen.c): Likewise.
18339 (CFLAGS-fseek.c): Likewise.
18340 (CFLAGS-fseeko64.c): Likewise.
18341 (CFLAGS-fseeko.c): Likewise.
18342 (CFLAGS-ftello64.c): Likewise.
18343 (CFLAGS-ftello.c): Likewise.
18344 (CFLAGS-fwide.c): Likewise.
18345 (CFLAGS-genops.c): Likewise.
18346 (CFLAGS-getc.c): Likewise.
18347 (CFLAGS-getchar.c): Likewise.
18348 (CFLAGS-getwc.c): Likewise.
18349 (CFLAGS-getwchar.c): Likewise.
18350 (CFLAGS-iofclose.c): Likewise.
18351 (CFLAGS-iofflush.c): Likewise.
18352 (CFLAGS-iofgetpos64.c): Likewise.
18353 (CFLAGS-iofgetpos.c): Likewise.
18354 (CFLAGS-iofgets.c): Likewise.
18355 (CFLAGS-iofgetws.c): Likewise.
18356 (CFLAGS-iofputs.c): Likewise.
18357 (CFLAGS-iofputws.c): Likewise.
18358 (CFLAGS-iofread.c): Likewise.
18359 (CFLAGS-iofsetpos64.c): Likewise.
18360 (CFLAGS-iofsetpos.c): Likewise.
18361 (CFLAGS-ioftell.c): Likewise.
18362 (CFLAGS-iofwrite.c): Likewise.
18363 (CFLAGS-iogetdelim.c): Likewise.
18364 (CFLAGS-iogetline.c): Likewise.
18365 (CFLAGS-iogets.c): Likewise.
18366 (CFLAGS-iogetwline.c): Likewise.
18367 (CFLAGS-ioputs.c): Likewise.
18368 (CFLAGS-ioseekoff.c): Likewise.
18369 (CFLAGS-ioseekpos.c): Likewise.
18370 (CFLAGS-iosetbuffer.c): Likewise.
18371 (CFLAGS-iosetvbuf.c): Likewise.
18372 (CFLAGS-ioungetc.c): Likewise.
18373 (CFLAGS-ioungetwc.c): Likewise.
18374 (CFLAGS-oldfileops.c): Likewise.
18375 (CFLAGS-oldiofclose.c): Likewise.
18376 (CFLAGS-oldiofgetpos64.c): Likewise.
18377 (CFLAGS-oldiofgetpos.c): Likewise.
18378 (CFLAGS-oldiofsetpos64.c): Likewise.
18379 (CFLAGS-oldiofsetpos.c): Likewise.
18380 (CFLAGS-peekc.c): Likewise.
18381 (CFLAGS-putc.c): Likewise.
18382 (CFLAGS-putchar.c): Likewise.
18383 (CFLAGS-putwc.c): Likewise.
18384 (CFLAGS-putwchar.c): Likewise.
18385 (CFLAGS-rewind.c): Likewise.
18386 (CFLAGS-wfileops.c): Likewise.
18387 (CFLAGS-wgenops.c): Likewise.
18388 (CFLAGS-oldiofopen.c): Likewise.
18389 (CFLAGS-iofopen.c): Likewise.
18390 (CFLAGS-iofopen64.c): Likewise.
18391 (CFLAGS-oldtmpfile.c): Likewise.
18392 (CFLAGS-tst_putwc.c): Likewise.
18393 * locale/Makefile (CFLAGS-md5.c): Likewise.
18394 (CFLAGS-charmap.c): Likewise.
18395 (CFLAGS-locfile.c): Likewise.
18396 (CFLAGS-charmap-dir.c): Likewise.
18397 * login/Makefile (CFLAGS-grantpt.c): Likewise.
18398 (CFLAGS-getpt.c): Likewise.
18399 (CFLAGS-pt_chown.c): Likewise.
18400 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
18401 (CFLAGS-obstack.c): Likewise.
18402 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
18403 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
18404 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
18405 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
18406 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
18407 (CFLAGS-test-tgmath.c): Likewise.
18408 (CFLAGS-test-tgmath2.c): Likewise.
18409 (CFLAGS-test-tgmath-ret.c): Likewise.
18410 (CFLAGS-test-powl.c): Likewise.
18411 (CFLAGS-test-snan.c): Likewise.
18412 (CFLAGS-test-signgam-finite.c): Likewise.
18413 (CFLAGS-test-signgam-finite-c99.c): Likewise.
18414 (CFLAGS-test-signgam-finite-c11.c): Likewise.
18415 (CFLAGS-test-signgam-uchar.c): Likewise.
18416 (CFLAGS-test-signgam-uchar-init.c): Likewise.
18417 (CFLAGS-test-signgam-uchar-static.c): Likewise.
18418 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
18419 (CFLAGS-test-signgam-uint.c): Likewise.
18420 (CFLAGS-test-signgam-uint-init.c): Likewise.
18421 (CFLAGS-test-signgam-uint-static.c): Likewise.
18422 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
18423 (CFLAGS-test-signgam-ullong.c): Likewise.
18424 (CFLAGS-test-signgam-ullong-init.c): Likewise.
18425 (CFLAGS-test-signgam-ullong-static.c): Likewise.
18426 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
18427 (CFLAGS-test-math-cxx11.cc): Likewise.
18428 (CFLAGS-test-math-isinff.cc): Likewise.
18429 (CFLAGS-test-math-iszero.cc): Likewise.
18430 (CFLAGS-test-math-issignaling.cc): Likewise.
18431 (CFLAGS-test-math-iscanonical.cc): Likewise.
18432 (CFLAGS-test-iszero-excess-precision.c): Likewise.
18433 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
18434 (CFLAGS-test-flt-eval-method.c): Likewise.
18435 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
18436 (CFLAGS-test-finite-macros.c): Likewise.
18437 * misc/Makefile (CFLAGS-select.c): Likewise.
18438 (CFLAGS-tsearch.c): Likewise.
18439 (CFLAGS-lsearch.c): Likewise.
18440 (CFLAGS-pselect.c): Likewise.
18441 (CFLAGS-readv.c): Likewise.
18442 (CFLAGS-writev.c): Likewise.
18443 (CFLAGS-preadv.c): Likewise.
18444 (CFLAGS-preadv64.c): Likewise.
18445 (CFLAGS-pwritev.c): Likewise.
18446 (CFLAGS-pwritev64.c): Likewise.
18447 (CFLAGS-preadv2.c): Likewise.
18448 (CFLAGS-preadv64v2.c): Likewise.
18449 (CFLAGS-pwritev2.c): Likewise.
18450 (CFLAGS-pwritev64v2.c): Likewise.
18451 (CFLAGS-usleep.c): Likewise.
18452 (CFLAGS-syslog.c): Likewise.
18453 (CFLAGS-error.c): Likewise.
18454 (CFLAGS-getpass.c): Likewise.
18455 (CFLAGS-mkstemp.c): Likewise.
18456 (CFLAGS-mkstemp64.c): Likewise.
18457 (CFLAGS-getsysstats.c): Likewise.
18458 (CFLAGS-getusershell.c): Likewise.
18459 (CFLAGS-err.c): Likewise.
18460 (CFLAGS-tst-tsearch.c): Likewise.
18461 (CFLAGS-msync.c): Likewise.
18462 (CFLAGS-fdatasync.c): Likewise.
18463 (CFLAGS-fsync.c): Likewise.
18464 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
18465 (CFLAGS-unwind.c): Likewise.
18466 (CFLAGS-unwind-forcedunwind.c): Likewise.
18467 (CFLAGS-pthread_cancel.c): Likewise.
18468 (CFLAGS-pthread_setcancelstate.c): Likewise.
18469 (CFLAGS-pthread_setcanceltype.c): Likewise.
18470 (CFLAGS-cancellation.c): Likewise.
18471 (CFLAGS-libc-cancellation.c): Likewise.
18472 (CFLAGS-pthread_exit.c): Likewise.
18473 (CFLAGS-forward.c): Likewise.
18474 (CFLAGS-pthread_testcancel.c): Likewise.
18475 (CFLAGS-pthread_join.c): Likewise.
18476 (CFLAGS-pthread_timedjoin.c): Likewise.
18477 (CFLAGS-pthread_once.c): Likewise.
18478 (CFLAGS-pthread_cond_wait.c): Likewise.
18479 (CFLAGS-sem_wait.c): Likewise.
18480 (CFLAGS-sem_timedwait.c): Likewise.
18481 (CFLAGS-fcntl.c): Likewise.
18482 (CFLAGS-lockf.c): Likewise.
18483 (CFLAGS-pread.c): Likewise.
18484 (CFLAGS-pread64.c): Likewise.
18485 (CFLAGS-pwrite.c): Likewise.
18486 (CFLAGS-pwrite64.c): Likewise.
18487 (CFLAGS-wait.c): Likewise.
18488 (CFLAGS-waitpid.c): Likewise.
18489 (CFLAGS-sigwait.c): Likewise.
18490 (CFLAGS-msgrcv.c): Likewise.
18491 (CFLAGS-msgsnd.c): Likewise.
18492 (CFLAGS-tcdrain.c): Likewise.
18493 (CFLAGS-open.c): Likewise.
18494 (CFLAGS-open64.c): Likewise.
18495 (CFLAGS-pause.c): Likewise.
18496 (CFLAGS-recv.c): Likewise.
18497 (CFLAGS-send.c): Likewise.
18498 (CFLAGS-accept.c): Likewise.
18499 (CFLAGS-sendto.c): Likewise.
18500 (CFLAGS-connect.c): Likewise.
18501 (CFLAGS-recvfrom.c): Likewise.
18502 (CFLAGS-recvmsg.c): Likewise.
18503 (CFLAGS-sendmsg.c): Likewise.
18504 (CFLAGS-close.c): Likewise.
18505 (CFLAGS-read.c): Likewise.
18506 (CFLAGS-write.c): Likewise.
18507 (CFLAGS-nanosleep.c): Likewise.
18508 (CFLAGS-sigsuspend.c): Likewise.
18509 (CFLAGS-msync.c): Likewise.
18510 (CFLAGS-fdatasync.c): Likewise.
18511 (CFLAGS-fsync.c): Likewise.
18512 (CFLAGS-pt-system.c): Likewise.
18513 (CFLAGS-tst-cleanup2.c): Likewise.
18514 (CFLAGS-tst-cleanupx2.c): Likewise.
18515 (CFLAGS-flockfile.c): Likewise.
18516 (CFLAGS-ftrylockfile.c): Likewise.
18517 (CFLAGS-funlockfile.c): Likewise.
18518 (CFLAGS-tst-initializers1.c): Likewise.
18519 (CFLAGS-tst-initializers1-c89.c): Likewise.
18520 (CFLAGS-tst-initializers1-c99.c): Likewise.
18521 (CFLAGS-tst-initializers1-c11.c): Likewise.
18522 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
18523 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
18524 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
18525 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
18526 (CFLAGS-nscd_getgr_r.c): Likewise.
18527 (CFLAGS-nscd_gethst_r.c): Likewise.
18528 (CFLAGS-nscd_getai.c): Likewise.
18529 (CFLAGS-nscd_initgroups.c): Likewise.
18530 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
18531 (CFLAGS-pause.c): Likewise.
18532 (CFLAGS-pread.c): Likewise.
18533 (CFLAGS-pread64.c): Likewise.
18534 (CFLAGS-pwrite.c): Likewise.
18535 (CFLAGS-pwrite64.c): Likewise.
18536 (CFLAGS-sleep.c): Likewise.
18537 (CFLAGS-wait.c): Likewise.
18538 (CFLAGS-waitid.c): Likewise.
18539 (CFLAGS-waitpid.c): Likewise.
18540 (CFLAGS-getopt.c): Likewise.
18541 (CFLAGS-wordexp.c): Likewise.
18542 (CFLAGS-sysconf.c): Likewise.
18543 (CFLAGS-pathconf.c): Likewise.
18544 (CFLAGS-fpathconf.c): Likewise.
18545 (CFLAGS-spawn.c): Likewise.
18546 (CFLAGS-spawnp.c): Likewise.
18547 (CFLAGS-spawni.c): Likewise.
18548 (CFLAGS-glob.c): Likewise.
18549 (CFLAGS-glob64.c): Likewise.
18550 (CFLAGS-getconf.c): Likewise.
18551 (CFLAGS-nanosleep.c): Likewise.
18552 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
18553 (CFLAGS-getpwent.c): Likewise.
18554 (CFLAGS-getpw.c): Likewise.
18555 (CFLAGS-fgetpwent_r.c): Likewise.
18556 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
18557 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
18558 (CFLAGS-mq_timedreceive.c): Likewise.
18559 (CFLAGS-mq_timedsend.c): Likewise.
18560 (CFLAGS-clock_nanosleep.c): Likewise.
18561 (CFLAGS-librt-cancellation.c): Likewise.
18562 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
18563 (CFLAGS-getspent.c): Likewise.
18564 (CFLAGS-fgetspent.c): Likewise.
18565 (CFLAGS-fgetspent_r.c): Likewise.
18566 (CFLAGS-putspent.c): Likewise.
18567 (CFLAGS-getspnam.c): Likewise.
18568 (CFLAGS-getspnam_r.c): Likewise.
18569 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
18570 (CFLAGS-sigsuspend.c): Likewise.
18571 (CFLAGS-sigtimedwait.c): Likewise.
18572 (CFLAGS-sigwait.c): Likewise.
18573 (CFLAGS-sigwaitinfo.c): Likewise.
18574 (CFLAGS-sigreturn.c): Likewise.
18575 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
18576 (CFLAGS-vfwprintf.c): Likewise.
18577 (CFLAGS-tmpfile.c): Likewise.
18578 (CFLAGS-tmpfile64.c): Likewise.
18579 (CFLAGS-tempname.c): Likewise.
18580 (CFLAGS-psignal.c): Likewise.
18581 (CFLAGS-vprintf.c): Likewise.
18582 (CFLAGS-cuserid.c): Likewise.
18583 (CFLAGS-errlist.c): Likewise.
18584 (CFLAGS-siglist.c): Likewise.
18585 (CFLAGS-scanf15.c): Likewise.
18586 (CFLAGS-scanf17.c): Likewise.
18587 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
18588 (CFLAGS-msort.c): Likewise.
18589 (CFLAGS-qsort.c): Likewise.
18590 (CFLAGS-system.c): Likewise.
18591 (CFLAGS-fmtmsg.c): Likewise.
18592 (CFLAGS-strfmon.c): Likewise.
18593 (CFLAGS-strfmon_l.c): Likewise.
18594 (CFLAGS-strfromd.c): Likewise.
18595 (CFLAGS-strfromf.c): Likewise.
18596 (CFLAGS-strfroml.c): Likewise.
18597 (CFLAGS-tst-bsearch.c): Likewise.
18598 (CFLAGS-tst-qsort.c): Likewise.
18599 (CFLAGS-tst-makecontext2.c): Likewise.
18600 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
18601 (CFLAGS-xnlm_prot.c): Likewise.
18602 (CFLAGS-xrstat.c): Likewise.
18603 (CFLAGS-xyppasswd.c): Likewise.
18604 (CFLAGS-xklm_prot.c): Likewise.
18605 (CFLAGS-xrex.c): Likewise.
18606 (CFLAGS-xsm_inter.c): Likewise.
18607 (CFLAGS-xmount.c): Likewise.
18608 (CFLAGS-xrusers.c): Likewise.
18609 (CFLAGS-xspray.c): Likewise.
18610 (CFLAGS-xnfs_prot.c): Likewise.
18611 (CFLAGS-xrquota.c): Likewise.
18612 (CFLAGS-xkey_prot.c): Likewise.
18613 (CFLAGS-auth_unix.c): Likewise.
18614 (CFLAGS-key_call.c): Likewise.
18615 (CFLAGS-pmap_rmt.c): Likewise.
18616 (CFLAGS-clnt_perr.c): Likewise.
18617 (CFLAGS-openchild.c): Likewise.
18618 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
18619 (CFLAGS-msgsnd.c): Likewise.
18620 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
18621 * time/Makefile (CFLAGS-tzfile.c): Likewise.
18622 (CFLAGS-tzset.c): Likewise.
18623 (CFLAGS-getdate.c): Likewise.
18624 (CFLAGS-test_time.c): Likewise.
18625 (CPPFLAGS-tst-tzname.c): Likewise.
18626 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
18627 (CFLAGS-zic.c): Likewise.
18628 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
18629 (CFLAGS-wcswidth.c): Likewise.
18630 (CFLAGS-wcstol.c): Likewise.
18631 (CFLAGS-wcstoul.c): Likewise.
18632 (CFLAGS-wcstoll.c): Likewise.
18633 (CFLAGS-wcstoull.c): Likewise.
18634 (CFLAGS-wcstod.c): Likewise.
18635 (CFLAGS-wcstold.c): Likewise.
18636 (CFLAGS-wcstof128.c): Likewise.
18637 (CFLAGS-wcstof.c): Likewise.
18638 (CFLAGS-wcstol_l.c): Likewise.
18639 (CFLAGS-wcstoul_l.c): Likewise.
18640 (CFLAGS-wcstoll_l.c): Likewise.
18641 (CFLAGS-wcstoull_l.c): Likewise.
18642 (CFLAGS-wcstod_l.c): Likewise.
18643 (CFLAGS-wcstold_l.c): Likewise.
18644 (CFLAGS-wcstof128_l.c): Likewise.
18645 (CFLAGS-wcstof_l.c): Likewise.
18646 (CPPFLAGS-tst-wchar-h.c): Likewise.
18647 (CPPFLAGS-wcstold_l.c): Likewise.
18648
18649 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
18650
18651 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
18652
18653 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
18654 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18655
18656 * manual/tunables.texi (Hardware Capability Tunables): Document
18657 glibc.tune.cached_memopt.
18658 * sysdeps/powerpc/cpu-features.c: New file.
18659 * sysdeps/powerpc/cpu-features.h: New file.
18660 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
18661 _dl_powerpc_cpu_features.
18662 * sysdeps/powerpc/dl-tunables.list: New file.
18663 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
18664 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
18665 (INIT_ARCH): Initialize use_aligned_memopt.
18666 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
18667 IS_IN(rtld))]: Restrict dl_platform_init availability and
18668 initialize CPU features used by tunables.
18669 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
18670 Add memcpy-power8-cached.
18671 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
18672 __memcpy_power8_cached.
18673 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
18674 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
18675 New file.
18676
18677 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18678
18679 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
18680 (CFLAGS-noinl-tester.c): Likewise.
18681 (CFLAGS-tst-strlen.c): Likewise.
18682 (CFLAGS-stratcliff.c): Likewise.
18683 (CFLAGS-test-ffs.c): Likewise.
18684 (CFLAGS-tst-inlcall.c): Likewise.
18685 (CFLAGS-tst-xbzero-opt.c): Likewise.
18686 (CFLAGS-memcpy.c): Likewise.
18687 (CFLAGS-wordcopy.c): Likewise.
18688
18689 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
18690
18691 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
18692 Store r15 on stack and add cfi rule.
18693 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
18694 Likewise.
18695
18696 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
18697
18698 [BZ #22577]
18699 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
18700 call.
18701
18702 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18703
18704 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18705 Add s_sinf-sse2 and s_sinf-fma.
18706 (CFLAGS-s_sinf-fma.c): New.
18707 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
18708 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
18709 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
18710
18711 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18712
18713 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
18714
18715 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18716
18717 [BZ #22568]
18718 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
18719 part of result to imaginary part of argument if it is zero and the
18720 real part of the argument is not finite.
18721 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
18722 of result to real part of argument if it is zero and the imaginary
18723 part of the argument is not finite.
18724
18725 2017-12-07 Mike FABIAN <mfabian@redhat.com>
18726
18727 [BZ #22524]
18728 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
18729 and to the list of locales to be built for testing.
18730 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
18731 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
18732 and build the collation rules upon that.
18733
18734 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18735
18736 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
18737 * manual/math.texi (Mathematics): Document support for _Float32.
18738 * math/Makefile (test-types): Add float32.
18739 * math/Versions (GLIBC_2.27): Add _Float32 functions.
18740 * stdlib/Versions (GLIBC_2.27): Likewise.
18741 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18742 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18743 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18744 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18745 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18746 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18747 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18748 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18749 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18750 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18751 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18752 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18753 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18754 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18755 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18756 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18757 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18758 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18759 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18760 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18761 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18762 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18763 Likewise.
18764 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18765 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18766 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18767 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18768 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18769 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18770 Likewise.
18771 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18772 Likewise.
18773 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18774 Likewise.
18775 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18776 Likewise.
18777
18778 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18779 Likewise.
18780 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18781 Likewise.
18782 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18783 Likewise.
18784 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18785 Likewise.
18786 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18787 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18788 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18789 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18790 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18791 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18792 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18793 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18794 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18795 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18796 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18797 Likewise.
18798 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18799 Likewise.
18800 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18801 Likewise.
18802 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18803 Likewise.
18804 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18805 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18806 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18807 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18808 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18809 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18810 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18811 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18812
18813 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18814
18815 * stdlib/strtof.c: Include <bits/floatn.h>
18816 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
18817 and later undefine as macro. Define as weak alias if
18818 [!USE_WIDE_CHAR].
18819 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
18820 and later undefine as macro. Define as weak alias if
18821 [USE_WIDE_CHAR].
18822 * stdlib/strtof_l.c: Include <bits/floatn.h>
18823 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
18824 and later undefine as macro. Define as weak alias if
18825 [!USE_WIDE_CHAR].
18826 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
18827 and later undefine as macro. Define as weak alias if
18828 [USE_WIDE_CHAR].
18829
18830 * stdlib/strfromf.c: Include <bits/floatn.h>.
18831 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
18832 and later undefine as macro and define as weak alias.
18833
18834 * math/test-float32.h: New file.
18835
18836 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
18837 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
18838 (libm_alias_float_other_r): Create f32 alias.
18839 (libm_alias_float_r): Use semicolon before call to
18840 libm_alias_float_other_r.
18841
18842 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
18843 second argument to libm_alias_float_other.
18844 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
18845 second argument to libm_alias_float_other.
18846 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
18847 argument to libm_alias_float_other.
18848
18849 [BZ #22561]
18850 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
18851 real part of result for argument 0 + i * NaN.
18852 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
18853 results for tests of 0 + i * NaN.
18854
18855 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18856
18857 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18858
18859 2017-12-06 David S. Miller <davem@davemloft.net>
18860
18861 * sysdeps/sparc/fpu/libm-test-ulps: Update
18862 exp_{downward,towardzero,upward} ulps.
18863
18864 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18865
18866 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
18867 variables static.
18868
18869 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
18870 (Y0_2D): Likewise.
18871 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
18872 (Y0_2D): Likewise.
18873 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
18874 (Y0_2D): Likewise.
18875 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
18876 (Y0_2D): Likewise.
18877
18878 2017-12-06 Mike FABIAN <mfabian@redhat.com>
18879
18880 [BZ #22515]
18881 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
18882 and to the list of locales to be built for testing.
18883 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
18884 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
18885 and build the collation rules upon that.
18886
18887 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18888
18889 * NEWS: Add sinf to list of optimized functions.
18890
18891 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18892
18893 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
18894 (__HAVE_FLOAT32X): Likewise.
18895 * manual/math.texi (Mathematics): Document support for _Float64
18896 and _Float32x.
18897 * math/Makefile (test-types): Add float64 and float32x.
18898 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
18899 functions.
18900 * stdlib/Versions (GLIBC_2.27): Likewise.
18901 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18902 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18903 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18904 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18905 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18906 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18907 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18908 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18909 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18910 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18911 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18912 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18913 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18914 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18915 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18916 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18917 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18918 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18919 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18920 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18921 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18922 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18923 Likewise.
18924 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18925 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18926 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18927 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18928 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18929 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18930 Likewise.
18931 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18932 Likewise.
18933 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18934 Likewise.
18935 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18936 Likewise.
18937 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18938 Likewise.
18939 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18940 Likewise.
18941 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18942 Likewise.
18943 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18944 Likewise.
18945 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18946 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18947 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18948 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18949 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18950 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18951 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18952 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18953 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18954 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18955 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18956 Likewise.
18957 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18958 Likewise.
18959 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18960 Likewise.
18961 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18962 Likewise.
18963 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18964 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18965 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18966 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18967 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18968 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18969 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18970 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18971
18972 2017-12-05 Joseph Myers <joseph@codesourcery.com>
18973
18974 * bits/floatn-common.h: Include <bits/long-double.h>.
18975 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18976 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
18977 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18978 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
18979 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18980 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
18981 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18982 (__builtin_huge_valf64): Use __builtin_huge_vall.
18983 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18984 (__builtin_inff64): Use __builtin_infl.
18985 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18986 (__builtin_nanf64): Use __builtin_nanl.
18987 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18988 (__builtin_nansf64): Use __builtin_nansl.
18989
18990 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
18991 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
18992 Carlos O'Donnell <carlos@redhat.com>
18993
18994 * elf/dl-tunables.list: Add elision parameters.
18995 * manual/tunables.texi: Add entries about elision tunable.
18996 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
18997 Add callback functions to dynamically enable/disable elision.
18998 Add multiple callbacks functions to set elision parameters.
18999 Deleted __libc_enable_secure check.
19000 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19001 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19002 * configure: Regenerated.
19003 * configure.ac: Option enable_lock_elision was deleted.
19004 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19005 * config.make.in: Remove references to enable_lock_elision.
19006 * manual/install.texi: Elision configure option was removed.
19007 * INSTALL: Regenerated to remove enable_lock_elision.
19008 * nptl/Makefile:
19009 Disable elision so it can verify error case for destroying a mutex.
19010 * sysdeps/powerpc/nptl/elide.h:
19011 Cleanup ENABLE_LOCK_ELISION check.
19012 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19013 * sysdeps/s390/configure: Regenerated.
19014 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19015 * nptl/tst-mutex8.c:
19016 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19017 * sysdeps/powerpc/powerpc32/sysdep.h:
19018 Deleted all ENABLE_LOCK_ELISION checks.
19019 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19020 * sysdeps/powerpc/sysdep.h: Likewise.
19021 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19022 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19023 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19024 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19025 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19026 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19027 enable-lock-elision.
19028
19029 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19030
19031 * stdlib/strtod.c: Include <bits/floatn.h>.
19032 (BUILD_DOUBLE): New macro.
19033 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19034 (strtof64): Define and later undefine as macro. Define as weak
19035 alias if [!USE_WIDE_CHAR].
19036 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19037 (wcstof64): Define and later undefine as macro. Define as weak
19038 alias if [USE_WIDE_CHAR].
19039 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19040 (strtof32x): Define and later undefine as macro. Define as weak
19041 alias if [!USE_WIDE_CHAR].
19042 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19043 (wcstof32x): Define and later undefine as macro. Define as weak
19044 alias if [USE_WIDE_CHAR].
19045 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19046 (BUILD_DOUBLE): New macro.
19047 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19048 (strtof64_l): Define and later undefine as macro. Define as weak
19049 alias if [!USE_WIDE_CHAR].
19050 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19051 (wcstof64_l): Define and later undefine as macro. Define as weak
19052 alias if [USE_WIDE_CHAR].
19053 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19054 (strtof32x_l): Define and later undefine as macro. Define as weak
19055 alias if [!USE_WIDE_CHAR].
19056 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19057 (wcstof32x_l): Define and later undefine as macro. Define as weak
19058 alias if [USE_WIDE_CHAR].
19059
19060 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19061
19062 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19063 (reduced): Use ones as double instead of integer.
19064
19065 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19066
19067 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19068
19069 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19070
19071 * stdlib/strfromd.c: Include <bits/floatn.h>.
19072 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19073 and later undefine as macro and define as weak alias.
19074 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19075 Likewise.
19076
19077 * math/test-float32x.h: New file.
19078 * math/test-float64.h: Likewise.
19079
19080 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19081 (libm_alias_double_other_r_f64): New macro.
19082 (libm_alias_double_other_r_f32x): Likewise.
19083 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19084 libm_alias_double_other_r_f32x.
19085 (libm_alias_double_r): Use semicolon before call to
19086 libm_alias_double_other_r.
19087 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19088 <bits/floatn.h>.
19089 (libm_alias_double_other_r_f64): New macro.
19090 (libm_alias_double_other_r_f32x): Likewise.
19091 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19092 libm_alias_double_other_r_f32x.
19093
19094 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19095
19096 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19097 int.
19098 (SINF_FUNC): Likewise. Replace floor with simple casts.
19099
19100 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19101
19102 [BZ #22517]
19103 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19104 and to the list of locales to be built for testing.
19105 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19106 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19107 and build the collation rules upon that.
19108
19109 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19110
19111 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19112 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19113 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19114 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19115 instead of __insn__xxx.
19116 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19117 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19118 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19119 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19120 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19121 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19122
19123 2017-12-05 Florian Weimer <fweimer@redhat.com>
19124
19125 Linux: Implement interfaces for memory protection keys
19126 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19127 xsignal, xsysconf.
19128 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19129 * support/xunistd.h (xsysconf): Declare.
19130 * support/xraise.c: New file.
19131 * support/xsigaction.c: Likewise.
19132 * support/xsignal.c: Likewise.
19133 * support/xsysconf.c: Likewise.
19134 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19135 pkey_set, pkey_get, pkey_mprotect.
19136 [misc] (tests): Add tst-pkey.
19137 (tst-pkey): Link with -lpthread.
19138 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19139 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19140 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19141 (PKEY_DISABLE_WRITE): Define.
19142 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19143 Declare.
19144 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19145 (SEGV_PKUERR): Add.
19146 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19147 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19148 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19149 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19150 Add.
19151 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19152 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19153 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19154 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19155 * sysdeps/unix/sysv/linux/**.abilist: Update.
19156
19157 2017-12-05 Florian Weimer <fweimer@redhat.com>
19158
19159 * support/tst-test_compare.c (subprocess): Use long long instead
19160 of long argument for consistent type width across 32-bit and
19161 64-bit architectures.
19162 (do_test): Adjust expected output.
19163
19164 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19165
19166 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19167 (cosf): Define using libm_alias_float.
19168 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19169 (fabsf): Define using libm_alias_float.
19170 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19171 (fmaf): Define using libm_alias_float.
19172 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19173 (rintf): Define using libm_alias_float.
19174 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19175 (sinf): Define using libm_alias_float.
19176 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19177 <libm-alias-float.h>.
19178 (modff): Define using libm_alias_float.
19179 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19180 <libm-alias-float.h>.
19181 (logbf): Define using libm_alias_float.
19182 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19183 <libm-alias-float.h>.
19184 (ceilf): Define using libm_alias_float.
19185 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19186 <libm-alias-float.h>.
19187 (copysignf): Define using libm_alias_float.
19188 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19189 <libm-alias-float.h>.
19190 (floorf): Define using libm_alias_float.
19191 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19192 <libm-alias-float.h>.
19193 (llrintf): Define using libm_alias_float.
19194 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19195 <libm-alias-float.h>.
19196 (llroundf): Define using libm_alias_float.
19197 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19198 <libm-alias-float.h>.
19199 (lrintf): Define using libm_alias_float.
19200 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19201 <libm-alias-float.h>.
19202 (lroundf): Define using libm_alias_float.
19203 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19204 <libm-alias-float.h>.
19205 (nearbyintf): Define using libm_alias_float.
19206 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19207 <libm-alias-float.h>.
19208 (rintf): Define using libm_alias_float.
19209 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19210 <libm-alias-float.h>.
19211 (roundf): Define using libm_alias_float.
19212 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19213 <libm-alias-float.h>.
19214 (truncf): Define using libm_alias_float.
19215 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19216 Include <libm-alias-float.h>.
19217 (ceilf): Define using libm_alias_float.
19218 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19219 Include <libm-alias-float.h>.
19220 (copysignf): Define using libm_alias_float.
19221 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19222 Include <libm-alias-float.h>.
19223 (floorf): Define using libm_alias_float.
19224 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19225 Include <libm-alias-float.h>.
19226 (llrintf): Define using libm_alias_float.
19227 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19228 Include <libm-alias-float.h>.
19229 (llroundf): Define using libm_alias_float.
19230 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19231 Include <libm-alias-float.h>.
19232 (logbf): Define using libm_alias_float.
19233 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19234 Include <libm-alias-float.h>.
19235 (lrintf): Define using libm_alias_float.
19236 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19237 Include <libm-alias-float.h>.
19238 (lroundf): Define using libm_alias_float.
19239 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19240 Include <libm-alias-float.h>.
19241 (modff): Define using libm_alias_float.
19242 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19243 Include <libm-alias-float.h>.
19244 (roundf): Define using libm_alias_float.
19245 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19246 Include <libm-alias-float.h>.
19247 (truncf): Define using libm_alias_float.
19248 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19249 <libm-alias-float.h>.
19250 (llrintf): Define using libm_alias_float.
19251 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19252 <libm-alias-float.h>.
19253 (llroundf): Define using libm_alias_float.
19254 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19255 <libm-alias-float.h>.
19256 (ceilf): Define using libm_alias_float.
19257 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19258 <libm-alias-float.h>.
19259 (floorf): Define using libm_alias_float.
19260 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19261 <libm-alias-float.h>.
19262 (llroundf): Define using libm_alias_float.
19263 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19264 <libm-alias-float.h>.
19265 (lroundf): Define using libm_alias_float.
19266 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19267 <libm-alias-float.h>.
19268 (roundf): Define using libm_alias_float.
19269 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19270 <libm-alias-float.h>.
19271 (truncf): Define using libm_alias_float.
19272 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19273 <libm-alias-float.h>.
19274 (copysignf): Define using libm_alias_float.
19275 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19276 <libm-alias-float.h>.
19277 (llrintf): Define using libm_alias_float.
19278 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19279 <libm-alias-float.h>.
19280 (llroundf): Define using libm_alias_float.
19281 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19282 <libm-alias-float.h>.
19283 (lrintf): Define using libm_alias_float.
19284 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19285 <libm-alias-float.h>.
19286 (lroundf): Define using libm_alias_float.
19287 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19288 <libm-alias-float.h>.
19289 (ceilf): Define using libm_alias_float.
19290 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19291 <libm-alias-float.h>.
19292 (copysignf): Define using libm_alias_float.
19293 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19294 <libm-alias-float.h>.
19295 (cosf): Define using libm_alias_float.
19296 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
19297 <libm-alias-float.h>.
19298 (floorf): Define using libm_alias_float.
19299 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
19300 <libm-alias-float.h>.
19301 (llrintf): Define using libm_alias_float.
19302 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
19303 <libm-alias-float.h>.
19304 (llroundf): Define using libm_alias_float.
19305 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19306 <libm-alias-float.h>.
19307 (logbf): Define using libm_alias_float.
19308 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19309 <libm-alias-float.h>.
19310 (modff): Define using libm_alias_float.
19311 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19312 <libm-alias-float.h>.
19313 (roundf): Define using libm_alias_float.
19314 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19315 <libm-alias-float.h>.
19316 (sinf): Define using libm_alias_float.
19317 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19318 <libm-alias-float.h>.
19319 (truncf): Define using libm_alias_float.
19320 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
19321 <libm-alias-float.h>.
19322 (ceilf): Define using libm_alias_float.
19323 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19324 <libm-alias-float.h>.
19325 (copysignf): Define using libm_alias_float.
19326 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
19327 <libm-alias-float.h>.
19328 (floorf): Define using libm_alias_float.
19329 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19330 <libm-alias-float.h>.
19331 (llrintf): Define using libm_alias_float.
19332 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
19333 <libm-alias-float.h>.
19334 (llroundf): Define using libm_alias_float.
19335 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
19336 <libm-alias-float.h>.
19337 (nearbyintf): Define using libm_alias_float.
19338 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
19339 <libm-alias-float.h>.
19340 (rintf): Define using libm_alias_float.
19341 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
19342 <libm-alias-float.h>.
19343 (roundf): Define using libm_alias_float.
19344 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
19345 <libm-alias-float.h>.
19346 (truncf): Define using libm_alias_float.
19347 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
19348 <libm-alias-float.h>.
19349 (ceilf): Define using libm_alias_float.
19350 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
19351 <libm-alias-float.h>.
19352 (floorf): Define using libm_alias_float.
19353 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19354 <libm-alias-float.h>.
19355 (llroundf): Define using libm_alias_float.
19356 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
19357 <libm-alias-float.h>.
19358 (roundf): Define using libm_alias_float.
19359 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
19360 <libm-alias-float.h>.
19361 (truncf): Define using libm_alias_float.
19362 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19363 <libm-alias-float.h>.
19364 (copysignf): Define using libm_alias_float.
19365 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19366 <libm-alias-float.h>.
19367 (llrintf): Define using libm_alias_float.
19368 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19369 <libm-alias-float.h>.
19370 (llroundf): Define using libm_alias_float.
19371 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
19372 <libm-alias-float.h>.
19373 (cosf): Define using libm_alias_float.
19374 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19375 <libm-alias-float.h>.
19376 (llrintf): Define using libm_alias_float.
19377 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19378 <libm-alias-float.h>.
19379 (llroundf): Define using libm_alias_float.
19380 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
19381 <libm-alias-float.h>.
19382 (sinf): Define using libm_alias_float.
19383
19384 2017-12-04 Florian Weimer <fweimer@redhat.com>
19385
19386 * support/check.h (TEST_COMPARE): Define.
19387 (support_test_compare_failure): Declare.
19388 * support/Makefile (libsupport-routines): Add
19389 support_test_compare_failure.
19390 (tests): Add tst-test_compare.
19391 * support /support_test_compare_failure.c: New file.
19392 * support/tst-test_compare.c: Likewise.
19393
19394 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19395
19396 [BZ #22527]
19397 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
19398 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
19399 available, this rewrite of the collation rules does reproduce
19400 the test file in the same order.
19401
19402 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19403
19404 [BZ #10580]
19405 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
19406 digraphs in the month and day names. Using single code points for
19407 digraphs is deprecated. While there are dedicated Unicode
19408 codepoints, for the digraphs, these are included for backwards
19409 compatibility and modern texts use a sequence of Basic Latin
19410 characters. See: https://www.unicode.org/faq/ligature_digraph.html
19411 This makes the month and day names agree exactly with CLDR now,
19412 CLDR does not use the single code points for the digraphs either.
19413
19414 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
19415
19416 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
19417
19418 2017-12-04 Joseph Myers <joseph@codesourcery.com>
19419
19420 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
19421 of floor.
19422
19423 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
19424
19425 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
19426 Define only for libc.so.
19427
19428 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
19429
19430 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19431 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
19432 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
19433 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
19434 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
19435
19436 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19437
19438 [BZ #5997]
19439 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
19440
19441 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
19442
19443 [BZ libc/19170]
19444 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
19445 PREINIT_FUNCTION_WEAK is nonzero.
19446 (gmon_initializer): New function. Put procedure label for it in
19447 .init_array section.
19448 (_init): Don't call PREINIT_FUNCTION.
19449 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
19450 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
19451 value when map argument is null.
19452
19453 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
19454 depi instruction from PIC pc-relative sequence.
19455 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
19456 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
19457 (elf_machine_load_address): Likewise.
19458 (elf_machine_runtime_setup): Likewise.
19459
19460 2017-12-02 Joseph Myers <joseph@codesourcery.com>
19461
19462 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
19463 <libm-alias-double.h>.
19464 (logb): Define using libm_alias_double.
19465 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19466 <libm-alias-double.h>.
19467 (copysign): Define using libm_alias_double.
19468 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
19469 <libm-alias-double.h>.
19470 (llrint): Define using libm_alias_double.
19471 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
19472 <libm-alias-double.h>.
19473 (llround): Define using libm_alias_double.
19474 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19475 <libm-alias-double.h>.
19476 (lrint): Define using libm_alias_double.
19477 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19478 <libm-alias-double.h>.
19479 (lround): Define using libm_alias_double.
19480 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
19481 Include <libm-alias-double.h>.
19482 (copysign): Define using libm_alias_double.
19483 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
19484 Include <libm-alias-double.h>.
19485 (llrint): Define using libm_alias_double.
19486 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
19487 Include <libm-alias-double.h>.
19488 (llround): Define using libm_alias_double.
19489 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
19490 <libm-alias-double.h>.
19491 (logb): Define using libm_alias_double.
19492 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
19493 Include <libm-alias-double.h>.
19494 (lrint): Define using libm_alias_double.
19495 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
19496 Include <libm-alias-double.h>.
19497 (lround): Define using libm_alias_double.
19498 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
19499 <libm-alias-double.h>.
19500 (llrint): Define using libm_alias_double.
19501 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19502 <libm-alias-double.h>.
19503 (llround): Define using libm_alias_double.
19504 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19505 <libm-alias-double.h>.
19506 (llround): Define using libm_alias_double.
19507 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19508 <libm-alias-double.h>.
19509 (lround): Define using libm_alias_double.
19510 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19511 <libm-alias-double.h>.
19512 (copysign): Define using libm_alias_double.
19513 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
19514 <libm-alias-double.h>.
19515 (llrint): Define using libm_alias_double.
19516 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19517 <libm-alias-double.h>.
19518 (llround): Define using libm_alias_double.
19519 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19520 <libm-alias-double.h>.
19521 (lrint): Define using libm_alias_double.
19522 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19523 <libm-alias-double.h>.
19524 (lround): Define using libm_alias_double.
19525 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
19526 <libm-alias-double.h>.
19527 (copysign): Define using libm_alias_double.
19528 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
19529 <libm-alias-double.h>.
19530 (llrint): Define using libm_alias_double.
19531 (lrint): Likewise.
19532 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
19533 <libm-alias-double.h>.
19534 (llround): Define using libm_alias_double.
19535 (lround): Likewise.
19536 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
19537 <libm-alias-double.h>.
19538 (logb): Define using libm_alias_double.
19539 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19540 <libm-alias-double.h>.
19541 (copysign): Define using libm_alias_double.
19542 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19543 <libm-alias-double.h>.
19544 (llrint): Define using libm_alias_double.
19545 (lrint): Likewise.
19546 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
19547 <libm-alias-double.h>.
19548 (llround): Define using libm_alias_double.
19549 (lround): Likewise.
19550 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19551 <libm-alias-double.h>.
19552 (llround): Define using libm_alias_double.
19553 (lround): Likewise.
19554 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19555 <libm-alias-double.h>.
19556 (copysign): Define using libm_alias_double.
19557 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19558 <libm-alias-double.h>.
19559 (llrint): Define using libm_alias_double.
19560 (lrint): Likewise.
19561 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19562 <libm-alias-double.h>.
19563 (llround): Define using libm_alias_double.
19564 (lround): Likewise.
19565 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19566 <libm-alias-double.h>.
19567 (llrint): Define using libm_alias_double.
19568 (lrint): Likewise.
19569 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19570 <libm-alias-double.h>.
19571 (llround): Define using libm_alias_double.
19572 (lround): Likewise.
19573
19574 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19575
19576 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
19577 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
19578 compat symbol based on llround.
19579
19580 * sysdeps/powerpc/power7/fpu/s_logb.c
19581 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
19582 symbol based on __logb, not on logb.
19583 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
19584 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19585 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
19586 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19587
19588 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
19589 (rint): Define using libm_alias_double.
19590 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
19591 <libm-alias-double.h>.
19592 (modf): Define using libm_alias_double.
19593 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
19594 <libm-alias-double.h>.
19595 (ceil): Define using libm_alias_double.
19596 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
19597 <libm-alias-double.h>.
19598 (floor): Define using libm_alias_double.
19599 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
19600 <libm-alias-double.h>.
19601 (nearbyint): Define using libm_alias_double.
19602 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
19603 <libm-alias-double.h>.
19604 (rint): Define using libm_alias_double.
19605 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
19606 <libm-alias-double.h>.
19607 (round): Define using libm_alias_double.
19608 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
19609 <libm-alias-double.h>.
19610 (trunc): Define using libm_alias_double.
19611 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
19612 <libm-alias-double.h>.
19613 (ceil): Define using libm_alias_double.
19614 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
19615 Include <libm-alias-double.h>.
19616 (floor): Define using libm_alias_double.
19617 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
19618 <libm-alias-double.h>.
19619 (modf): Define using libm_alias_double.
19620 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
19621 Include <libm-alias-double.h>.
19622 (round): Define using libm_alias_double.
19623 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
19624 Include <libm-alias-double.h>.
19625 (trunc): Define using libm_alias_double.
19626 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
19627 <libm-alias-double.h>.
19628 (ceil): Define using libm_alias_double.
19629 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
19630 <libm-alias-double.h>.
19631 (floor): Define using libm_alias_double.
19632 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
19633 <libm-alias-double.h>.
19634 (round): Define using libm_alias_double.
19635 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
19636 <libm-alias-double.h>.
19637 (trunc): Define using libm_alias_double.
19638 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
19639 <libm-alias-double.h>.
19640 (ceil): Define using libm_alias_double.
19641 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
19642 <libm-alias-double.h>.
19643 (floor): Define using libm_alias_double.
19644 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
19645 <libm-alias-double.h>.
19646 (modf): Define using libm_alias_double.
19647 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
19648 <libm-alias-double.h>.
19649 (round): Define using libm_alias_double.
19650 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
19651 <libm-alias-double.h>.
19652 (trunc): Define using libm_alias_double.
19653 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
19654 <libm-alias-double.h>.
19655 (ceil): Define using libm_alias_double.
19656 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
19657 <libm-alias-double.h>.
19658 (floor): Define using libm_alias_double.
19659 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
19660 <libm-alias-double.h>.
19661 (nearbyint): Define using libm_alias_double.
19662 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
19663 <libm-alias-double.h>.
19664 (rint): Define using libm_alias_double.
19665 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
19666 <libm-alias-double.h>.
19667 (round): Define using libm_alias_double.
19668 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
19669 <libm-alias-double.h>.
19670 (trunc): Define using libm_alias_double.
19671 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
19672 <libm-alias-double.h>.
19673 (ceil): Define using libm_alias_double.
19674 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
19675 <libm-alias-double.h>.
19676 (floor): Define using libm_alias_double.
19677 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
19678 <libm-alias-double.h>.
19679 (round): Define using libm_alias_double.
19680 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
19681 <libm-alias-double.h>.
19682 (trunc): Define using libm_alias_double.
19683
19684 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
19685 (fabs): Define using libm_alias_double.
19686 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
19687 (fma): Define using libm_alias_double.
19688 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
19689 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
19690 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
19691 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
19692
19693 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19694
19695 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
19696
19697 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
19698 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
19699 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
19700
19701 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
19702 due redirect macro.
19703
19704 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
19705
19706 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
19707
19708 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19709
19710 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
19711 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
19712 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
19713 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
19714
19715 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19716 (libm-sysdep_routines): Add s_nearbyintf-generic and
19717 s_nearbyint-generic.
19718 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
19719 New file.
19720 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
19721 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
19722 Likewise.
19723 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
19724 Likewise.
19725 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
19726 file.
19727 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
19728 Likewise.
19729
19730 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19731 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
19732 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
19733 file.
19734 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
19735 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
19736 Likewise.
19737 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
19738 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
19739 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
19740
19741 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19742 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
19743 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
19744 file.
19745 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
19746 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
19747 Likewise.
19748 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
19749 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
19750 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
19751
19752 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19753 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
19754 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
19755 file.
19756 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
19757 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
19758 Likewise.
19759 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
19760 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
19761 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
19762
19763 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19764 (sysdep_calls): New rule.
19765 (sysdep_routines): Use sysdep_calls as base.
19766 (libm-sysdep_routines): Add generic rule for symbols shared with
19767 libc. Add s_copysign-generic and s_copysign-generic objects.
19768 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
19769 New file.
19770 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
19771 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
19772 Likewise.
19773 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
19774 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
19775 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
19776
19777 2017-12-01 Mike FABIAN <mfabian@redhat.com>
19778
19779 [BZ #22519]
19780 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
19781 the list of locales to be built for testing.
19782 * localedata/is_IS.UTF-8.in: New file.
19783 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
19784 on iso14651_t1.
19785
19786 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19787
19788 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
19789 <libm-alias-float.h>.
19790 (fabsf): Define using libm_alias_float.
19791
19792 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
19793
19794 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
19795
19796 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19797
19798 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
19799 <libm-alias-float.h>.
19800 (fabsf): Define using libm_alias_float.
19801 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
19802 <libm-alias-float.h>.
19803 (lrintf): Define using libm_alias_float.
19804 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
19805 <libm-alias-float.h>.
19806 (rintf): Define using libm_alias_float.
19807
19808 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
19809 <libm-alias-double.h>.
19810 (fabs): Define using libm_alias_double.
19811 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
19812 <libm-alias-double.h>.
19813 (lrint): Define using libm_alias_double.
19814 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
19815 <libm-alias-double.h>.
19816 (rint): Define using libm_alias_double.
19817
19818 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
19819 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
19820 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
19821 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
19822 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
19823 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
19824 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
19825 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
19826 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
19827 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
19828 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
19829 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
19830 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
19831 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
19832 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
19833 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
19834 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
19835 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
19836 s_atan_template.c.
19837 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
19838 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
19839 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
19840 s_ceil_template.c.
19841 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
19842 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
19843 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
19844 s_cos_template.c.
19845 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
19846 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
19847 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
19848 s_expm1_template.c.
19849 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
19850 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
19851 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
19852 s_fabs_template.c.
19853 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
19854 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
19855 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
19856 s_floor_template.c.
19857 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
19858 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
19859 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
19860 s_frexp_template.c.
19861 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
19862 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
19863 s_lrint_template.c.
19864 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
19865 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
19866 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
19867 s_modf_template.c.
19868 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
19869 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
19870 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
19871 s_nearbyint_template.c.
19872 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
19873 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
19874 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
19875 s_remquo_template.c.
19876 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
19877 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
19878 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
19879 s_rint_template.c.
19880 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
19881 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
19882 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
19883 s_sin_template.c.
19884 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
19885 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
19886 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
19887 s_sincos_template.c.
19888 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
19889 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
19890 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
19891 s_tan_template.c.
19892 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
19893 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
19894 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
19895 s_tanh_template.c.
19896 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
19897 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
19898 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
19899 s_trunc_template.c.
19900 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
19901 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
19902 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
19903 s_atan.c instead of including s_atan.c.
19904 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
19905 s_atanf.c instead of including s_atanf.c.
19906 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
19907 s_atanl.c instead of including s_atanl.c.
19908 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
19909 instead of s_atan.c.
19910 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
19911 instead of s_atanf.c.
19912 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
19913 instead of s_atanl.c.
19914
19915 * scripts/update-copyrights: Do not handle intl/plural.c
19916 specially.
19917
19918 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
19919
19920 [BZ #22432]
19921 * configure.ac (BISON): Require to be present.
19922 * configure: Regenerated.
19923 * intl/Makefile (generated): Add plural.c.
19924 [$(BISON) != no]: Make code unconditional.
19925 (plural.c): Change rule to $(objpfx)plural.c.
19926 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
19927 * intl/plural.c: Remove.
19928 * manual/install.texi (Tools for Compilation): Document bison as
19929 required.
19930 * INSTALL: Regenerated.
19931
19932 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19933
19934 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
19935 <libm-alias-double.h>.
19936 (llrint): Define using libm_alias_double.
19937 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
19938 <libm-alias-float.h>.
19939 (llrintf): Define using libm_alias_float.
19940 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
19941 <libm-alias-ldouble.h>.
19942 (llrintl): Define using libm_alias_ldouble.
19943
19944 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
19945 declare_mgen_alias instead of weak_alias.
19946 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
19947 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
19948 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
19949
19950 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19951
19952 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19953 Add add_n-generic.
19954 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
19955 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
19956 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
19957
19958 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19959 Add submul_1-generic.
19960 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
19961 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
19962 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
19963
19964 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19965 Add addmul_1-generic.
19966 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
19967 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
19968 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
19969
19970 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19971 Add sub_n-generic.
19972 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
19973 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
19974 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
19975
19976 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19977 Add mul_1-generic.
19978 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
19979 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
19980 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
19981
19982 2017-11-30 Mike FABIAN <mfabian@redhat.com>
19983
19984 According to CLDR, collation rules for Serbian and Bosnian
19985 should be the same as for Croatian.
19986
19987 [BZ #22534]
19988 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
19989 and to the list of locales to be built for testing.
19990 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
19991 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
19992 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
19993 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
19994
19995 2017-11-30 Mike FABIAN <mfabian@redhat.com>
19996
19997 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
19998 to make test case pass.
19999 * localedata/hr_HR.UTF-8.in: Add more test strings.
20000
20001 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20002
20003 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20004
20005 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20006
20007 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20008 the list of locales to built for testing.
20009 * localedata/hr_HR.UTF-8.in: New file.
20010
20011 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20012
20013 [BZ #10580]
20014 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20015 iso14651_t1.
20016 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20017 CLDR (except use ligatures for the digraphs, CLDR does not use
20018 the ligatures), add first_workday, some fixes in the date and time
20019 formats.
20020 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20021 for Đ and đ.
20022 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20023 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20024 Add int_p_cs_precedes and int_n_cs_precedes.
20025 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20026 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20027 LC_MONETARY now).
20028 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20029 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20030 name_miss.
20031 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20032 and lang_lib. Change postal_fmt.
20033
20034 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20035
20036 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20037 <setjmp.h>.
20038 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20039 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20040 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20041 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20042 * sysdeps/generic/setjmpP.h: New file.
20043 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20044 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20045 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20046 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20047 Add jmp_buf-ssp.sym.
20048 (tests): Add tst-saved_mask-1.
20049
20050 2017-11-30 Arjun Shankar <arjun@redhat.com>
20051
20052 [BZ #22375]
20053 CVE-2017-17426
20054 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20055 instead of request2size.
20056
20057 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20058
20059 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20060 (__lllrint): Remove alias.
20061 (lllrint): Likewise.
20062 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20063 (__lllrintf): Likewise.
20064 (lllrintf): Likewise.
20065
20066 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20067 <libm-alias-float.h>.
20068 (copysignf): Define using libm_alias_float.
20069 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20070 <libm-alias-float.h>.
20071 (fabsf): Define using libm_alias_float.
20072 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20073 Include <libm-alias-float.h>.
20074 (copysignf): Define using libm_alias_float.
20075 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20076 <libm-alias-float.h>.
20077 (fabsf): Define using libm_alias_float.
20078 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20079 <libm-alias-float.h>.
20080 (fdimf): Define using libm_alias_float.
20081 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20082 <libm-alias-float.h>.
20083 (fmaf): Define using libm_alias_float.
20084 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20085 <libm-alias-float.h>.
20086 (llrintf): Define using libm_alias_float.
20087 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20088 Include <libm-alias-float.h>.
20089 (nearbyintf): Define using libm_alias_float.
20090 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20091 <libm-alias-float.h>.
20092 (rintf): Define using libm_alias_float.
20093 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20094 <libm-alias-float.h>.
20095 (llrintf): Define using libm_alias_float.
20096 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20097 <libm-alias-float.h>.
20098 (lrintf): Define using libm_alias_float.
20099 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20100 <libm-alias-float.h>.
20101 (nearbyintf): Define using libm_alias_float.
20102 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20103 <libm-alias-float.h>.
20104 (rintf): Define using libm_alias_float.
20105 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20106 <libm-alias-float.h>.
20107 (ceilf): Define using libm_alias_float.
20108 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20109 <libm-alias-float.h>.
20110 (floorf): Define using libm_alias_float.
20111 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20112 <libm-alias-float.h>.
20113 (fmaf): Define using libm_alias_float.
20114 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20115 <libm-alias-float.h>.
20116 (lrintf): Define using libm_alias_float.
20117 (llrintf): Likewise.
20118 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20119 <libm-alias-float.h>.
20120 (nearbyintf): Define using libm_alias_float.
20121 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20122 <libm-alias-float.h>.
20123 (rintf): Define using libm_alias_float.
20124 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20125 <libm-alias-float.h>.
20126 (truncf): Define using libm_alias_float.
20127 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20128 <libm-alias-float.h>.
20129 (copysignf): Define using libm_alias_float.
20130 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20131 <libm-alias-float.h>.
20132 (fabsf): Define using libm_alias_float.
20133 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20134 <libm-alias-float.h>.
20135 (lrintf): Define using libm_alias_float.
20136 (llrintf): Likewise.
20137 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20138 <libm-alias-float.h>.
20139 (nearbyintf): Define using libm_alias_float.
20140 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20141 <libm-alias-float.h>.
20142 (rintf): Define using libm_alias_float.
20143
20144 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20145
20146 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20147 <libm-alias-double.h>.
20148 (copysign): Define using libm_alias_double.
20149 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20150 <libm-alias-double.h>.
20151 (fabs): Define using libm_alias_double.
20152 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20153 Include <libm-alias-double.h>.
20154 (copysign): Define using libm_alias_double.
20155 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20156 <libm-alias-double.h>.
20157 (fabs): Define using libm_alias_double.
20158 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20159 <libm-alias-double.h>.
20160 (fdim): Define using libm_alias_double.
20161 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20162 <libm-alias-double.h>.
20163 (fma): Define using libm_alias_double.
20164 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20165 <libm-alias-double.h>.
20166 (llrint): Define using libm_alias_double.
20167 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20168 Include <libm-alias-double.h>.
20169 (nearbyint): Define using libm_alias_double.
20170 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20171 <libm-alias-double.h>.
20172 (rint): Define using libm_alias_double.
20173 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20174 <libm-alias-double.h>.
20175 (fabs): Define using libm_alias_double.
20176 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20177 <libm-alias-double.h>.
20178 (llrint): Define using libm_alias_double.
20179 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20180 <libm-alias-double.h>.
20181 (nearbyint): Define using libm_alias_double.
20182 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20183 <libm-alias-double.h>.
20184 (rint): Define using libm_alias_double.
20185 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20186 <libm-alias-double.h>.
20187 (ceil): Define using libm_alias_double.
20188 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20189 <libm-alias-double.h>.
20190 (floor): Define using libm_alias_double.
20191 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20192 <libm-alias-double.h>.
20193 (fma): Define using libm_alias_double.
20194 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20195 <libm-alias-double.h>.
20196 (lrint): Define using libm_alias_double.
20197 (llrint): Likewise.
20198 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20199 <libm-alias-double.h>.
20200 (nearbyint): Define using libm_alias_double.
20201 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20202 <libm-alias-double.h>.
20203 (rint): Define using libm_alias_double.
20204 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20205 <libm-alias-double.h>.
20206 (trunc): Define using libm_alias_double.
20207 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20208 <libm-alias-double.h>.
20209 (copysign): Define using libm_alias_double.
20210 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20211 <libm-alias-double.h>.
20212 (fabs): Define using libm_alias_double.
20213 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20214 <libm-alias-double.h>.
20215 (lrint): Define using libm_alias_double.
20216 (llrint): Likewise.
20217 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20218 <libm-alias-double.h>.
20219 (nearbyint): Define using libm_alias_double.
20220 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20221 <libm-alias-double.h>.
20222 (rint): Define using libm_alias_double.
20223
20224 [BZ #22229]
20225 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20226 <math_ldbl_opt.h>.
20227 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20228
20229 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20230 SPARC --disable-multi-arch glibc variants.
20231
20232 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20233 <libm-alias-float.h>.
20234 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20235 if [SHARED].
20236 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20237 <libm-alias-float.h>.
20238 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20239 if [SHARED].
20240 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20241 <libm-alias-float.h>.
20242 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20243 if [SHARED].
20244 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20245 <libm-alias-float.h>.
20246 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20247 if [SHARED].
20248 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20249 <libm-alias-float.h>.
20250 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20251 if [SHARED].
20252 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20253 <libm-alias-float.h>.
20254 (ceilf): Define using libm_alias_float.
20255 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20256 <libm-alias-float.h>.
20257 (floorf): Define using libm_alias_float.
20258 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20259 <libm-alias-float.h>.
20260 (fmaf): Define using libm_alias_float.
20261 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20262 <libm-alias-float.h>.
20263 (nearbyintf): Define using libm_alias_float.
20264 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20265 <libm-alias-float.h>.
20266 (rintf): Define using libm_alias_float.
20267 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20268 <libm-alias-float.h>.
20269 (truncf): Define using libm_alias_float.
20270 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20271 (copysignf): Define using libm_alias_float.
20272 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20273 (cosf): Define using libm_alias_float.
20274 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20275 (fabsf): Define using libm_alias_float.
20276 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20277 (fmaxf): Define using libm_alias_float.
20278 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20279 (fminf): Define using libm_alias_float.
20280 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20281 (llrintf): Define using libm_alias_float.
20282 [!__ILP32__] (lrintf): Likewise.
20283 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20284 (sincosf): Define using libm_alias_float.
20285 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20286 (sinf): Define using libm_alias_float.
20287 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20288 (lrintf): Define using libm_alias_float.
20289
20290 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20291 <libm-alias-double.h>.
20292 (atan): Define using libm_alias_double.
20293 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20294 <libm-alias-double.h>.
20295 (ceil): Define using libm_alias_double.
20296 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
20297 <libm-alias-double.h>.
20298 (floor): Define using libm_alias_double.
20299 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
20300 <libm-alias-double.h>.
20301 (fma): Define using libm_alias_double.
20302 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
20303 <libm-alias-double.h>.
20304 (nearbyint): Define using libm_alias_double.
20305 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20306 <libm-alias-double.h>.
20307 (rint): Define using libm_alias_double.
20308 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20309 <libm-alias-double.h>.
20310 (sin): Define using libm_alias_double.
20311 (cos): Likewise.
20312 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20313 <libm-alias-double.h>.
20314 (tan): Define using libm_alias_double.
20315 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20316 <libm-alias-double.h>.
20317 (trunc): Define using libm_alias_double.
20318 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20319 (copysign): Define using libm_alias_double.
20320 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
20321 (fabs): Define using libm_alias_double.
20322 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
20323 (fmax): Define using libm_alias_double.
20324 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
20325 (fmin): Define using libm_alias_double.
20326 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
20327 (llrint): Define using libm_alias_double.
20328 [!__ILP32__] (lrint): Likewise.
20329 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
20330 (lrint): Define using libm_alias_double.
20331
20332 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20333
20334 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20335 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
20336 objects.
20337 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
20338 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
20339 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
20340 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
20341 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
20342 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20343
20344 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20345 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
20346 objects.
20347 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
20348 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
20349 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
20350 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
20351 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
20352 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20353
20354 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20355 (libm-sysdep_routines): Add s_nearbyint-generic and
20356 s_nearbyintf-generic objects.
20357 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
20358 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
20359 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
20360 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
20361 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
20362 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
20363
20364 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20365 Add s_finitef-generic and s_finite-generic objects.
20366 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
20367 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
20368 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
20369 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
20370 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
20371 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
20372
20373 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20374 Add s_isinff-generic and s_isinf-generic objects.
20375 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
20376 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
20377 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
20378 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
20379 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
20380 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
20381
20382 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20383 Add s_isnanf-generic and s_isnan-generic objects.
20384 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
20385 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
20386 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
20387 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
20388 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
20389 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
20390
20391 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
20392 macro.
20393 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
20394 rule.
20395 (sysdep_routines): Use sysdep_calls as base.
20396 (libm-sysdep_routines): Add generic rule for symbols shared with
20397 libc. Add s_signbit-generic and s_signbitf-generic objects.
20398 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
20399 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
20400 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
20401 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
20402 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
20403 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
20404
20405 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20406
20407 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
20408 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
20409 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
20410 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
20411 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
20412 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
20413 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
20414 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
20415 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
20416 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
20417 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
20418 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
20419 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
20420 libm_alias_float_r.
20421 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
20422 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
20423 (logf): Likewise.
20424 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
20425 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
20426 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
20427 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
20428 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
20429 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
20430 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
20431 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
20432 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
20433 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
20434 libm_alias_float.
20435 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
20436 (cosf): Likewise.
20437 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
20438 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
20439 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
20440 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
20441 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
20442 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
20443 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
20444 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
20445 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
20446 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
20447 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
20448 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
20449 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
20450 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
20451 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
20452 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
20453 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
20454 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
20455 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
20456 libm_alias_float.
20457 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
20458 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
20459 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
20460 * sysdeps/ia64/fpu/w_lgammaf_main.c
20461 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
20462 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
20463
20464 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20465 Alexandre Oliva <aoliva@redhat.com>
20466
20467 [BZ #17750]
20468 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
20469 * localedata/fr_CA.UTF-8.in: New file with test data for backward
20470 accents sorting.
20471 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
20472 sorting.
20473 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
20474 * localedata/locales/de_DE (LC_COLLATE): Likewise.
20475 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
20476 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
20477 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
20478 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
20479 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
20480 instead of “ifdef DIACRIT_BACKWARD”.
20481
20482 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20483
20484 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
20485 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
20486 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
20487 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
20488 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
20489 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
20490 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
20491 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
20492 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
20493 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
20494 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
20495 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
20496 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
20497 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
20498 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
20499 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20500 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
20501 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
20502 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20503 ($(have-as-vis3) == yes): Remove conditional.
20504 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
20505 Likewise.
20506 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
20507 file.
20508 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
20509 file.
20510 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
20511 file.
20512 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
20513 file.
20514 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
20515 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
20516 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
20517 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
20518 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
20519 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
20520 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
20521 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
20522
20523 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20524
20525 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
20526 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
20527 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
20528 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
20529 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
20530 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
20531 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
20532 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
20533 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
20534 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
20535 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
20536 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
20537 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
20538 libm_alias_double_r.
20539 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
20540 (log): Likewise.
20541 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
20542 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
20543 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
20544 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
20545 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
20546 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
20547 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
20548 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
20549 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
20550 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
20551 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
20552 libm_alias_double.
20553 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
20554 (cos): Likewise.
20555 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
20556 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
20557 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
20558 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
20559 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
20560 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
20561 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
20562 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
20563 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
20564 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
20565 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
20566 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
20567 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
20568 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
20569 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
20570 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
20571 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
20572 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
20573 libm_alias_double.
20574 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
20575 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
20576 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
20577 * sysdeps/ia64/fpu/w_lgamma_main.c
20578 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
20579 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
20580
20581 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
20582
20583 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
20584 address of $global$ into %dp register earlier. Use pc-relative
20585 instruction sequence for PIC case.
20586
20587 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20588
20589 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
20590 (asinhf): Define using libm_alias_float.
20591 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
20592 (atanf): Define using libm_alias_float.
20593 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
20594 (cbrtf): Define using libm_alias_float.
20595 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
20596 (ceilf): Define using libm_alias_float.
20597 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20598 (copysignf): Define using libm_alias_float.
20599 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
20600 (expm1f): Define using libm_alias_float.
20601 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
20602 (fabsf): Define using libm_alias_float.
20603 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
20604 (floorf): Define using libm_alias_float.
20605 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20606 (fmaxf): Define using libm_alias_float.
20607 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
20608 (fminf): Define using libm_alias_float.
20609 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
20610 (frexpf): Define using libm_alias_float.
20611 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20612 (llrintf): Define using libm_alias_float.
20613 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
20614 (logbf): Define using libm_alias_float.
20615 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20616 (lrintf): Define using libm_alias_float.
20617 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
20618 (nearbyintf): Define using libm_alias_float.
20619 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
20620 (remquof): Define using libm_alias_float.
20621 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
20622 (rintf): Define using libm_alias_float.
20623 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
20624 (truncf): Define using libm_alias_float.
20625 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
20626 <libm-alias-float.h>.
20627 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20628 if [SHARED].
20629 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
20630 <libm-alias-float.h>.
20631 (expf): Define using libm_alias_float, or libm_alias_float_other
20632 if [SHARED].
20633 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
20634 <libm-alias-float.h>.
20635 (log2f): Define using libm_alias_float, or libm_alias_float_other
20636 if [SHARED].
20637 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
20638 <libm-alias-float.h>.
20639 (logf): Define using libm_alias_float, or libm_alias_float_other
20640 if [SHARED].
20641 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
20642 <libm-alias-float.h>.
20643 (powf): Define using libm_alias_float, or libm_alias_float_other
20644 if [SHARED].
20645 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
20646 <libm-alias-float.h>.
20647 (cosf): Define using libm_alias_float.
20648 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
20649 <libm-alias-float.h>.
20650 (sincosf): Define using libm_alias_float.
20651 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
20652 <libm-alias-float.h>.
20653 (sinf): Define using libm_alias_float.
20654 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20655 (fmaxf): Define using libm_alias_float.
20656 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
20657 (fminf): Define using libm_alias_float.
20658 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20659 <libm-alias-float.h>.
20660 (fmaf): Define using libm_alias_float.
20661
20662 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
20663 (asinh): Define using libm_alias_double.
20664 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
20665 (atan): Define using libm_alias_double.
20666 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
20667 (cbrt): Define using libm_alias_double.
20668 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
20669 (ceil): Define using libm_alias_double.
20670 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
20671 (copysign): Define using libm_alias_double.
20672 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
20673 (expm1): Define using libm_alias_double.
20674 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
20675 (fabs): Define using libm_alias_double.
20676 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
20677 (fdim): Define using libm_alias_double.
20678 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
20679 (floor): Define using libm_alias_double.
20680 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
20681 (fmax): Define using libm_alias_double.
20682 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
20683 (fmin): Define using libm_alias_double.
20684 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
20685 (frexp): Define using libm_alias_double.
20686 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
20687 (llrint): Define using libm_alias_double.
20688 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
20689 (logb): Define using libm_alias_double.
20690 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
20691 (lrint): Define using libm_alias_double.
20692 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
20693 (nearbyint): Define using libm_alias_double.
20694 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
20695 (remquo): Define using libm_alias_double.
20696 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
20697 (rint): Define using libm_alias_double.
20698 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
20699 (trunc): Define using libm_alias_double.
20700 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
20701 (fmax): Define using libm_alias_double.
20702 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
20703 (fmin): Define using libm_alias_double.
20704 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
20705 (fma): Define using libm_alias_double.
20706
20707 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
20708
20709 [BZ #22370]
20710 * elf/dl-hwcaps.c (ROUND): Removed.
20711 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
20712 and ELF_NOTE_NEXT_OFFSET.
20713 * elf/dl-load.c (ROUND): Removed.
20714 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20715 * elf/readelflib.c (ROUND): Removed.
20716 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20717 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
20718 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
20719 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
20720
20721 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20722
20723 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20724 [!__fmaf] (fmaf): Define using libm_alias_float.
20725
20726 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
20727 [!__fma] (fma): Define using libm_alias_double.
20728 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
20729
20730 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20731
20732 [BZ #22336]
20733 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
20734 and implement the collation rules for cs from CLDR on top of that.
20735 * Makefile: Add cs_CZ.UTF-8 to test-input.
20736 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
20737
20738 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
20739
20740 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
20741
20742 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20743 Icarus Sparry <icarus.w.sparry@intel.com>
20744
20745 * benchtests/Makefile:Add BENCHSET to allow subsets of
20746 benchmarks to be run.
20747 * benchtests/README: Add documentation for: Running subsets of
20748 benchmarks.
20749
20750 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20751
20752 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
20753 range of tests names.
20754
20755 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
20756 result from property and remove "max", min" and "mean" from
20757 required properties based on benchtests/bench-skeleton.c.
20758
20759 2017-11-28 Florian Weimer <fweimer@redhat.com>
20760
20761 [BZ #20826]
20762 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
20763 due to Internet requirement.
20764 * posix/Makefile (tests): Remove tst-getaddrinfo4,
20765 tst-getaddrinfo5.
20766 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
20767
20768 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20769
20770 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20771 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
20772 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20773 (sysdep_routines): Add memset-ultra1.
20774 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
20775 file.
20776 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
20777 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
20778 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
20779 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
20780 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
20781 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
20782 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
20783 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20784
20785 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
20786 file.
20787 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
20788 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
20789 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
20790 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
20791 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
20792 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
20793 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
20794 macro.
20795 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20796 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
20797 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20798 (sysdep_routines): Add memcpy-ultra1.
20799 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
20800 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
20801
20802 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20803
20804 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
20805 (cfloat_versions): Take function argument without trailing 'f'.
20806 Call libm_alias_float_other.
20807 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
20808 * sysdeps/alpha/fpu/cargf.c: Likewise.
20809 * sysdeps/alpha/fpu/cimagf.c: Likewise.
20810 * sysdeps/alpha/fpu/conjf.c: Likewise.
20811 * sysdeps/alpha/fpu/crealf.c: Likewise.
20812 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
20813 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
20814 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
20815 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
20816 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
20817 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
20818 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
20819 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
20820 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
20821 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
20822 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
20823 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
20824 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
20825 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
20826 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
20827 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
20828 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
20829 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
20830 (clog10f): Use libm_alias_float_other.
20831 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20832 (ceilf): Define using libm_alias_float.
20833 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
20834 (copysignf): Define using libm_alias_float.
20835 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20836 (fabsf): Define using libm_alias_float.
20837 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
20838 (floorf): Define using libm_alias_float.
20839 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
20840 (fmaxf): Define using libm_alias_float.
20841 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
20842 (fminf): Define using libm_alias_float.
20843 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20844 (lrintf): Define using libm_alias_float.
20845 (llrintf): Likewise.
20846 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20847 (lroundf): Define using libm_alias_float.
20848 (llroundf): Likewise.
20849 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
20850 (rintf): Define using libm_alias_float.
20851 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
20852 (truncf): Define using libm_alias_float.
20853
20854 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20855 (ceilf): Define using libm_alias_float.
20856 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
20857 (floorf): Define using libm_alias_float.
20858 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20859 (fmaf): Define using libm_alias_float.
20860 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
20861 (fmaxf): Define using libm_alias_float.
20862 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
20863 (fminf): Define using libm_alias_float.
20864 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
20865 (llrintf): Define using libm_alias_float.
20866 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
20867 (llroundf): Define using libm_alias_float.
20868 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20869 (lrintf): Define using libm_alias_float.
20870 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20871 (lroundf): Define using libm_alias_float.
20872 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
20873 <libm-alias-float.h>.
20874 (nearbyintf): Define using libm_alias_float.
20875 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
20876 (rintf): Define using libm_alias_float.
20877 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
20878 (roundf): Define using libm_alias_float.
20879 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
20880 (truncf): Define using libm_alias_float.
20881
20882 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
20883 (ceil): Define using libm_alias_double.
20884 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
20885 (copysign): Define using libm_alias_double.
20886 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
20887 (fabs): Define using libm_alias_double.
20888 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
20889 (floor): Define using libm_alias_double.
20890 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
20891 (fmax): Define using libm_alias_double.
20892 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
20893 (fmin): Define using libm_alias_double.
20894 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
20895 (lrint): Define using libm_alias_double.
20896 (llrint): Likewise.
20897 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
20898 (lround): Define using libm_alias_double.
20899 (llround): Likewise.
20900 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
20901 (rint): Define using libm_alias_double.
20902 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
20903 (trunc): Define using libm_alias_double.
20904
20905 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
20906 (libm_alias_double_r): Add semicolon after weak_alias call.
20907
20908 2017-11-27 Joseph Myers <joseph@codesourcery.com>
20909
20910 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
20911 (ceil): Define using libm_alias_double.
20912 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
20913 (floor): Define using libm_alias_double.
20914 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
20915 (fma): Define using libm_alias_double.
20916 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
20917 (fmax): Define using libm_alias_double.
20918 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
20919 (fmin): Define using libm_alias_double.
20920 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
20921 (llrint): Define using libm_alias_double.
20922 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
20923 (llround): Define using libm_alias_double.
20924 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
20925 (lrint): Define using libm_alias_double.
20926 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
20927 (lround): Define using libm_alias_double.
20928 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
20929 (nearbyint): Define using libm_alias_double.
20930 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
20931 (rint): Define using libm_alias_double.
20932 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
20933 (round): Define using libm_alias_double.
20934 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
20935 (trunc): Define using libm_alias_double.
20936
20937 2017-11-27 Florian Weimer <fweimer@redhat.com>
20938
20939 * sysdeps/unix/sysv/linux/mlock2.c: New file.
20940 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
20941 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
20942 (tests): Add tst-mlock2.
20943 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
20944 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
20945 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
20946 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
20947 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
20948 for mlock. Document mlock2.
20949
20950 2017-11-27 Joseph Myers <joseph@codesourcery.com>
20951
20952 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
20953 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
20954 Likewise.
20955 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
20956 Likewise.
20957 * sysdeps/x86/Makeconfig: New file.
20958 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
20959 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20960 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
20961 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20962 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20963 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20964 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
20965 Likewise.
20966 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20967 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20968 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20969 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20970 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20971 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20972 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20973 * manual/math.texi (Mathematics): Document support for _Float64x.
20974 * math/Versions (GLIBC_2.27): Add _Float64x functions.
20975 * stdlib/Versions (GLIBC_2.27): Likewise.
20976 * wcsmbs/Versions (GLIBC_2.27): Likewise.
20977 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
20978 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20979 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20980 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20981 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
20982 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20983 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
20984 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20985 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20986 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20987 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20988 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
20989 Likewise.
20990 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20991 Likewise.
20992 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20993 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20994 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20995 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20996 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20997 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20998 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20999 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21000 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21001 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21002 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21003 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21004 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21005 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21006
21007 2017-11-27 Andreas Schwab <schwab@suse.de>
21008
21009 * elf/Makefile (dl-routines): Add dl-sort-maps.
21010 * elf/dl-sort-maps.c: New file.
21011 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21012 (_dl_sort_maps): Declare.
21013 * elf/dl-fini.c (_dl_sort_fini): Remove.
21014 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21015 * elf/dl-close.c (_dl_close_worker): Likewise.
21016 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21017 open-coding it.
21018 * elf/dl-open.c (dl_open_worker): Likewise.
21019
21020 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21021
21022 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21023 using libm_alias_float128.
21024 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21025 Likewise.
21026 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21027 Likewise.
21028 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21029 (setpayloadsigf128): Likewise.
21030 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21031 Likewise.
21032 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21033 Likewise.
21034
21035 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21036 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21037 -mfloat128 to CFLAGS.
21038 ($(foreach
21039 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21040 Likewise.
21041 (CFLAGS-libm-test-support-float64x.c): New variable.
21042 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21043 $(f128-loader-link) to gnulib-tests.
21044
21045 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21046 (libm_alias_float128_other_r): If
21047 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21048 alias.
21049 (libm_alias_float128_r): Add semicolon after weak_alias call.
21050 * sysdeps/generic/libm-alias-ldouble.h
21051 (libm_alias_ldouble_other_r_f128): New macro.
21052 (libm_alias_ldouble_other_r_f64x): Likewise.
21053 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21054 and libm_alias_ldouble_other_r_f64x.
21055 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21056 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21057 (libm_alias_ldouble_other_r_f128): New macro.
21058 (libm_alias_ldouble_other_r_f64x): Likewise.
21059 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21060 and libm_alias_ldouble_other_r_f64x.
21061
21062 * stdlib/strfroml.c: Always include <stdlib.h>.
21063 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21064 undefine as macro and define as weak alias.
21065 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21066 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21067 <stdlib.h>.
21068 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21069 Define and later undefine as macro and define as weak alias.
21070
21071 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21072 Define and later undefine as macro. Define as weak alias if
21073 [!USE_WIDE_CHAR].
21074 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21075 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21076 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21077 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21078 Define and later undefine as macro. Define as weak alias if
21079 [!USE_WIDE_CHAR].
21080 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21081 Define and later undefine as macro. Define as weak alias if
21082 [USE_WIDE_CHAR].
21083 * sysdeps/ieee754/float128/strtof128_l.c
21084 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21085 Define and later undefine as macro. Define as weak alias if
21086 [!USE_WIDE_CHAR].
21087 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21088 Define and later undefine as macro. Define as weak alias if
21089 [USE_WIDE_CHAR].
21090 * sysdeps/ieee754/ldbl-128/strtold_l.c
21091 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21092 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21093 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21094 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21095 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21096 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21097 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21098 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21099 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21100 * sysdeps/ieee754/ldbl-96/strtold_l.c
21101 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21102 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21103 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21104 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21105
21106 * math/test-float64x.h: New file.
21107 * math/Makefile (type-float64x-yes): New variable.
21108 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21109
21110 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21111 function-like macro.
21112 (min_of_type_): Likewise.
21113 (min_of_type_l): Likewise.
21114 (min_of_type_f128): Likewise.
21115 (min_of_type): Pass () as last argument of __MATH_TG.
21116
21117 * stdlib/tst-strtod-round-skeleton.c
21118 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21119 headers.
21120
21121 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21122 for combinations of long double with _Float64 and _Float64x.
21123
21124 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21125 (__DECL_SIMD_cosf32): Likewise.
21126 (__DECL_SIMD_cosf64): Likewise.
21127 (__DECL_SIMD_cosf32x): Likewise.
21128 (__DECL_SIMD_cosf64x): Likewise.
21129 (__DECL_SIMD_cosf128x): Likewise.
21130 (__DECL_SIMD_sinf16): Likewise.
21131 (__DECL_SIMD_sinf32): Likewise.
21132 (__DECL_SIMD_sinf64): Likewise.
21133 (__DECL_SIMD_sinf32x): Likewise.
21134 (__DECL_SIMD_sinf64x): Likewise.
21135 (__DECL_SIMD_sinf128x): Likewise.
21136 (__DECL_SIMD_sincosf16): Likewise.
21137 (__DECL_SIMD_sincosf32): Likewise.
21138 (__DECL_SIMD_sincosf64): Likewise.
21139 (__DECL_SIMD_sincosf32x): Likewise.
21140 (__DECL_SIMD_sincosf64x): Likewise.
21141 (__DECL_SIMD_sincosf128x): Likewise.
21142 (__DECL_SIMD_logf16): Likewise.
21143 (__DECL_SIMD_logf32): Likewise.
21144 (__DECL_SIMD_logf64): Likewise.
21145 (__DECL_SIMD_logf32x): Likewise.
21146 (__DECL_SIMD_logf64x): Likewise.
21147 (__DECL_SIMD_logf128x): Likewise.
21148 (__DECL_SIMD_expf16): Likewise.
21149 (__DECL_SIMD_expf32): Likewise.
21150 (__DECL_SIMD_expf64): Likewise.
21151 (__DECL_SIMD_expf32x): Likewise.
21152 (__DECL_SIMD_expf64x): Likewise.
21153 (__DECL_SIMD_expf128x): Likewise.
21154 (__DECL_SIMD_powf16): Likewise.
21155 (__DECL_SIMD_powf32): Likewise.
21156 (__DECL_SIMD_powf64): Likewise.
21157 (__DECL_SIMD_powf32x): Likewise.
21158 (__DECL_SIMD_powf64x): Likewise.
21159 (__DECL_SIMD_powf128x): Likewise.
21160
21161 * stdlib/Versions (libc): Move entries for wcstof128 and
21162 wcstof128_l to ....
21163 * wcsmbs/Versions (libc): ... here.
21164 Include <float128-abi.h>.
21165
21166 2017-11-24 Florian Weimer <fweimer@redhat.com>
21167
21168 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21169 bits/mman-shared.h.
21170 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21171 <bits/mman-shared.h>.
21172 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21173 to ...
21174 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21175 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21176 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21177 <bits/mman-shared.h>.
21178
21179 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21180
21181 [BZ #22457]
21182 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21183 posix_memalign/free.
21184 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21185
21186 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21187
21188 [BZ #22469]
21189 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21190 and implement the collation rules for pl from CLDR on top of that.
21191 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21192 of locales to be built for testing.
21193 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21194
21195 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21196
21197 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21198 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21199 libm_alias_ldouble_other.
21200 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21201 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21202 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21203 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21204 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21205 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21206 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21207 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21208 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21209 libm_alias_ldouble_r.
21210 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21211 libm_alias_ldouble_other.
21212 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21213 (log10l): Likewise.
21214 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21215 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21216 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21217 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21218 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21219 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21220 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21221 (atan2l): Likewise.
21222 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21223 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21224 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21225 libm_alias_ldouble.
21226 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21227 (cosl): Likewise.
21228 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21229 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21230 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21231 (expl): Likewise.
21232 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21233 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21234 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21235 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21236 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21237 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21238 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21239 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21240 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21241 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21242 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21243 libm_alias_ldouble.
21244 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21245 libm_alias_ldouble_other.
21246 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21247 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21248 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21249 libm_alias_ldouble.
21250 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21251 libm_alias_ldouble_other.
21252 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21253 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21254 * sysdeps/ia64/fpu/w_lgammal_main.c
21255 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21256 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21257
21258 2017-11-23 Florian Weimer <fweimer@redhat.com>
21259
21260 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21261 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21262 alike. Remove freeres marker.
21263 * malloc/arena.c (arena_thread_freeres): Call
21264 tcache_thread_shutdown.
21265
21266 2017-11-23 Florian Weimer <fweimer@redhat.com>
21267
21268 [BZ #22459]
21269 Export nscd hash function as __nss_hash.
21270 * include/nss.h (__nss_hash): Declare.
21271 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21272 symbol.
21273 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21274 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21275 of __nscd_hash.
21276 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21277 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21278 * nss/Makefiles (routines): Add nss_hash.
21279 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21280 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21281 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21282 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21283
21284 2017-11-23 Florian Weimer <fweimer@redhat.com>
21285
21286 [BZ #22478]
21287 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21288 Return error code, not -1.
21289 * signal/tst-sigwait-eintr.c: New file.
21290 * signal/Makefile (tests): Add tst-sigwait-eintr.
21291
21292 2017-11-23 Florian Weimer <fweimer@redhat.com>
21293
21294 Linux: Add memfd_create system call wrapper
21295 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21296 tst-memfd_create.
21297 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
21298 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
21299 [__USE_GNU] (memfd_create): Declare.
21300 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
21301 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
21302 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
21303 * sysdeps/unix/sysv/linux/**.abilist: Update.
21304 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21305
21306 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21307
21308 * localedata/gen-locale.sh: Fix typo in variable name.
21309
21310 * resolv/res_debug.c (p_secstodate): Condition definition on
21311 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21312 directly as __p_secstodate, and as a compat symbol. Do not use
21313 libresolv_hidden_def.
21314 * resolv/resolv.h (p_secstodate): Remove macro and function
21315 declaration.
21316 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21317 using p_secstodate.
21318 * include/resolv.h (__p_secstodate): Do not use
21319 libresolv_hidden_proto.
21320 * resolv/Makefile (tests): Move tst-p_secstodate to ....
21321 (tests-internal): ... here.
21322 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
21323 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
21324 and declare and use __p_secstodate and use compat_symbol_reference
21325 in that case.
21326 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
21327 implementation returning 77.
21328
21329 [BZ #22463]
21330 * resolv/res_debug.c: Include <libc-diag.h>.
21331 (p_secstodate): Assert time_t at least as wide as u_long. On
21332 overflow, use integer seconds since the epoch as output, or use
21333 "<overflow>" as output and set errno to EOVERFLOW if integer
21334 seconds since the epoch would be 14 or more characters.
21335 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
21336 for sprintf call.
21337 * resolv/tst-p_secstodate.c: New file.
21338 * resolv/Makefile (tests): Add tst-p_secstodate.
21339 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
21340
21341 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
21342 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
21343 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
21344
21345 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
21346
21347 * posix/regcomp.c (init_word_char): Add comments.
21348
21349 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21350
21351 [BZ #22447]
21352 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
21353 strlen to compute length of ut_user and set trailing NUL byte of
21354 result explicitly.
21355
21356 2017-11-21 Mike FABIAN <mfabian@redhat.com>
21357
21358 [BZ #15537]
21359 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
21360 using “copy "iso14651_t1"” and then implementing the
21361 collation rules for lv from CLDR on top of that.
21362 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
21363 of locales to be built for testing.
21364 * lv_LV.UTF-8.in: New file with test data to test the Latvian
21365 sorting.
21366
21367 2017-11-21 Joseph Myers <joseph@codesourcery.com>
21368
21369 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21370 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
21371 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
21372 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
21373 [__USE_MISC] (MADV_HWPOISON): New macro.
21374 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
21375
21376 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21377
21378 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
21379 -Wmissing-braces on GCC 4.9.
21380
21381 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21382
21383 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
21384 * sysdeps/s390/s390-32/start.S (_start): Likewise
21385 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
21386 (thread_start): Likewise.
21387 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
21388 (thread_start): Likewise.
21389 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
21390 (__makecontext_ret): Likewise.
21391 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
21392 (__makecontext_ret): Likewise.
21393
21394 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21395
21396 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
21397 __wcschrnul): Remove attribute_hidden.
21398
21399 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
21400
21401 regex: don't assume uint64_t or uint32_t
21402 This avoids -Werror=overflow errors for 32-bit systems in
21403 the 64-bit case. Problem reported by Joseph Myers in:
21404 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
21405 Also, when this code is used in Gnulib it ports to platforms
21406 that lack uint64_t and uint32_t. The C standard doesn't guarantee
21407 them, and on some 32-bit compilers there is no uint64_t.
21408 Problem reported by Gianluigi Tiesi in:
21409 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
21410 * posix/regcomp.c (init_word_char): Don't assume that the types
21411 uint64_t and uint32_t exist. Adapted from Gnulib patch
21412 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
21413 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
21414
21415 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
21416
21417 * sysdeps/aarch64/memset-reg.h: New file.
21418 * sysdeps/aarch64/memset.S: Use it.
21419 (__memset): Rename to MEMSET macro.
21420 [ZVA_MACRO]: Use zva_macro.
21421 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21422 Add memset_generic and memset_falkor.
21423 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21424 (__libc_ifunc_impl_list): Add memset ifuncs.
21425 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
21426 local variable zva_size.
21427 * sysdeps/aarch64/multiarch/memset.c: New file.
21428 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
21429 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
21430 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
21431 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
21432 (DCZID_DZP_MASK): New macro.
21433 (DCZID_BS_MASK): Likewise.
21434 (init_cpu_features): Read and set zva_size.
21435 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
21436 (struct cpu_features): New member zva_size.
21437
21438 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
21439 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
21440 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
21441
21442 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
21443 backwards. Fix timing computation.
21444 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
21445 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
21446 on memset by N at a time. Fix timing computation.
21447
21448 2017-11-20 Florian Weimer <fweimer@redhat.com>
21449
21450 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
21451 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
21452
21453 2017-11-19 Florian Weimer <fweimer@redhat.com>
21454
21455 manual: Document mprotect
21456 * manual/memory.texi (Memory Protection): New section.
21457 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
21458 documentation of PROT_* flags and reference the Memory Protection
21459 section instead.
21460
21461 2017-11-19 Florian Weimer <fweimer@redhat.com>
21462
21463 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
21464 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
21465 (Scatter-Gather): ... to here. Remove misleading comment.
21466
21467 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
21468
21469 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
21470 style.
21471
21472 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
21473 when /proc/<pid>/setgroups does not exist.
21474
21475 2017-11-18 Florian Weimer <fweimer@redhat.com>
21476
21477 * sysdeps/unix/sysv/linux/tst-ttyname.c
21478 (become_root_in_mount_ns): Remove.
21479 (do_in_chroot_1): Call support_enter_mount_namespace.
21480 (do_in_chroot_2): Likewise.
21481 (do_test): Call support_become_root early.
21482
21483 2017-11-18 Florian Weimer <fweimer@redhat.com>
21484
21485 * support/namespace.h (support_enter_mount_namespace): Declare.
21486 * support/support_enter_mount_namespace.c: New file.
21487 * support/Makefile (libsupport-routines): Add
21488 support_enter_mount_namespace.
21489
21490 2017-11-18 Florian Weimer <fweimer@redhat.com>
21491
21492 * support/temp_file.c (support_create_temp_directory): Use
21493 test_dir and do not rely on the presence of the XXXXXX suffix.
21494 * support/temp_file.h (support_create_temp_directory): Update
21495 comment.
21496 * support/tst-xreadlink.c (do_test): Adjust.
21497 * support/support_chroot.c (support_chroot_create): Likewise.
21498
21499 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21500
21501 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
21502 macro.
21503 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
21504 htm-no-suspend.
21505
21506 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21507
21508 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21509 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21510 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21511 (ceill): Define using libm_alias_ldouble.
21512 * sysdeps/x86_64/fpu/s_copysignl.S: Include
21513 <libm-alias-ldouble.h>.
21514 (copysignl): Define using libm_alias_ldouble.
21515 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21516 (fabsl): Define using libm_alias_ldouble.
21517 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21518 (floorl): Define using libm_alias_ldouble.
21519 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21520 (fmaxl): Define using libm_alias_ldouble.
21521 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21522 (fminl): Define using libm_alias_ldouble.
21523 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21524 (llrintl): Define using libm_alias_ldouble.
21525 (lrintl): Likewise.
21526 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
21527 <libm-alias-ldouble.h>.
21528 (nearbyintl): Define using libm_alias_ldouble.
21529 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21530 (truncl): Define using libm_alias_ldouble.
21531 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
21532 <libm-alias-ldouble.h>.
21533 (lrintl): Define using libm_alias_ldouble.
21534
21535 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21536 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21537 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
21538 (asinhl): Define using libm_alias_ldouble.
21539 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
21540 (atanl): Define using libm_alias_ldouble.
21541 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
21542 (cbrtl): Define using libm_alias_ldouble.
21543 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21544 (ceill): Define using libm_alias_ldouble.
21545 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
21546 (copysignl): Define using libm_alias_ldouble.
21547 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21548 (fabsl): Define using libm_alias_ldouble.
21549 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21550 (floorl): Define using libm_alias_ldouble.
21551 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21552 (fmaxl): Define using libm_alias_ldouble.
21553 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21554 (fminl): Define using libm_alias_ldouble.
21555 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
21556 (frexpl): Define using libm_alias_ldouble.
21557 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21558 (llrintl): Define using libm_alias_ldouble.
21559 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
21560 (logbl): Define using libm_alias_ldouble.
21561 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
21562 (lrintl): Define using libm_alias_ldouble.
21563 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
21564 (nearbyintl): Define using libm_alias_ldouble.
21565 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
21566 (nextafterl): Define using libm_alias_ldouble.
21567 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
21568 (remquol): Define using libm_alias_ldouble.
21569 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
21570 (rintl): Define using libm_alias_ldouble.
21571 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21572 (truncl): Define using libm_alias_ldouble.
21573 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21574 (fmaxl): Define using libm_alias_ldouble.
21575 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21576 (fminl): Define using libm_alias_ldouble.
21577
21578 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
21579 to C syntax instead of availability and properties of types.
21580 * bits/floatn.h [!__ASSEMBLER]: Likewise.
21581 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
21582 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
21583 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
21584 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
21585 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
21586
21587 2017-11-17 Florian Weimer <fweimer@redhat.com>
21588
21589 support_become_root: Enable file creation in namespaces.
21590 * support/support_become_root.c (setup_mapping): New function.
21591 (support_become_root): Call it.
21592
21593 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21594
21595 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
21596 macro.
21597
21598 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21599
21600 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
21601 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
21602
21603 2017-11-16 Joseph Myers <joseph@codesourcery.com>
21604
21605 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
21606
21607 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21608 version to 4.14.
21609
21610 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
21611
21612 * INSTALL: Fix botched up regeneration.
21613
21614 * NEWS: Update sourceare link to https.
21615 * configure.ac: Likewise.
21616 * crypt/md5test-giant.c: Likewise.
21617 * dlfcn/bug-atexit1.c: Likewise.
21618 * dlfcn/bug-atexit2.c: Likewise.
21619 * localedata/README: Likewise.
21620 * malloc/tst-mallocfork.c: Likewise.
21621 * manual/install.texi: Likewise.
21622 * nptl/tst-pthread-getattr.c: Likewise.
21623 * stdio-common/tst-fgets.c: Likewise.
21624 * stdio-common/tst-fwrite.c: Likewise.
21625 * sunrpc/Makefile: Likewise.
21626 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
21627 * wcsmbs/tst-mbrtowc2.c: Likewise.
21628 * configure: Regenerate.
21629 * INSTALL: Regenerate.
21630
21631 2017-11-15 Martin Sebor <msebor@redhat.com>
21632
21633 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
21634 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
21635 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
21636
21637 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21638
21639 [BZ #22145]
21640 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
21641 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
21642
21643 [BZ #22145]
21644 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
21645 Defer is_pty check until end of the function.
21646 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21647
21648 [BZ #22145]
21649 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
21650 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
21651 (ttyname): Likewise.
21652 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
21653 (__ttyname_r): Likewise.
21654
21655 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
21656 int to bool.
21657
21658 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
21659
21660 * manual/terminal.texi (Is It a Terminal):
21661 Mention ENODEV for ttyname and ttyname_r.
21662
21663 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21664
21665 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
21666 constant and macro.
21667
21668 * sysdeps/unix/sysv/linux/bits/mman-linux.h
21669 [__USE_MISC] (MADV_WIPEONFORK): New macro.
21670 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21671 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21672 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
21673 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21674
21675 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21676
21677 * signal/sigrelse.c (sigrelse): Optimize implementation.
21678
21679 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
21680 (__sigpause): Rely on __sigsuspend to implement single thread
21681 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
21682
21683 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21684
21685 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
21686 kernel version to 4.14.
21687
21688 2017-11-15 Steve Ellcey <sellcey@cavium.com>
21689
21690 [BZ #22442]
21691 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
21692 Check if ifname is too long.
21693
21694 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21695
21696 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
21697
21698 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21699
21700 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
21701 was accidentally lost.
21702
21703 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21704
21705 * localedata/locales/az_IR: Add standard copyright header.
21706
21707 2017-11-15 Florian Weimer <fweimer@redhat.com>
21708
21709 [BZ #22439]
21710 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
21711 not just the top one. Output a new "subheaps" statistic.
21712
21713 2017-11-15 Florian Weimer <fweimer@redhat.com>
21714
21715 [BZ #22408]
21716 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
21717 under the per-arena lock.
21718 * malloc/Makefile (tests): Add tst-malloc_info.
21719 (tst-malloc_info): Link with libpthread.
21720 * malloc/tst-malloc_info.c: New file.
21721
21722 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21723
21724 [BZ #21660]
21725 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
21726 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
21727 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
21728 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
21729 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
21730 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
21731 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
21732 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
21733 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
21734 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
21735 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
21736 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
21737 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
21738 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
21739 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
21740 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
21741 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
21742 (__floating_type): Likewise.
21743 (__real_integer_type): Likewise.
21744 (__complex_integer_type): Likewise.
21745 (__expr_is_real): Likewise.
21746 (__tgmath_real_type_sub): Likewise.
21747 (__tgmath_real_type): Likewise.
21748 (__tgmath_complex_type_sub): Likewise.
21749 (__tgmath_complex_type): Likewise.
21750 (__TGMATH_F128): Likewise.
21751 (__TGMATH_CF128): Likewise.
21752 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
21753 new macros.
21754 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
21755 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
21756 Likewise.
21757 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
21758 Likewise.
21759 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
21760 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
21761 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
21762 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
21763 Likewise.
21764 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
21765 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
21766 Likewise.
21767 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
21768 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
21769 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
21770 Likewise.
21771 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
21772 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
21773 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
21774 (cimag): Likewise.
21775 (creal): Likewise.
21776
21777 2017-11-14 Joseph Myers <joseph@codesourcery.com>
21778
21779 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
21780 for stpncpy calls for GCC 8.
21781 (test_strncat): Disable -Wstringop-truncation warning for strncat
21782 calls for GCC 8. Disable -Wstringop-overflow= warning for one
21783 strncat call for GCC 7.
21784 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
21785 calls for GCC 8.
21786 (test_memcmp): Use memcpy instead of strncpy for calls not copying
21787 trailing NUL.
21788
21789 * string/bug-strncat1.c: Include <libc-diag.h>.
21790 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
21791
21792 2017-11-13 Claude Paroz <claude@2xlibre.net>
21793
21794 [BZ #22387]
21795 * localedata/locales/aa_DJ: Improved readibility by replacing
21796 <Uxxxx> sequences in the ASCII printable range by their ASCII
21797 character equivalents.
21798 * localedata/locales/aa_ER: Likewise.
21799 * localedata/locales/aa_ER@saaho: Likewise.
21800 * localedata/locales/aa_ET: Likewise.
21801 * localedata/locales/af_ZA: Likewise.
21802 * localedata/locales/agr_PE: Likewise.
21803 * localedata/locales/ak_GH: Likewise.
21804 * localedata/locales/am_ET: Likewise.
21805 * localedata/locales/anp_IN: Likewise.
21806 * localedata/locales/ar_AE: Likewise.
21807 * localedata/locales/ar_BH: Likewise.
21808 * localedata/locales/ar_DZ: Likewise.
21809 * localedata/locales/ar_EG: Likewise.
21810 * localedata/locales/ar_IN: Likewise.
21811 * localedata/locales/ar_IQ: Likewise.
21812 * localedata/locales/ar_JO: Likewise.
21813 * localedata/locales/ar_KW: Likewise.
21814 * localedata/locales/ar_LB: Likewise.
21815 * localedata/locales/ar_LY: Likewise.
21816 * localedata/locales/ar_MA: Likewise.
21817 * localedata/locales/ar_OM: Likewise.
21818 * localedata/locales/ar_QA: Likewise.
21819 * localedata/locales/ar_SA: Likewise.
21820 * localedata/locales/ar_SD: Likewise.
21821 * localedata/locales/ar_SS: Likewise.
21822 * localedata/locales/ar_SY: Likewise.
21823 * localedata/locales/ar_TN: Likewise.
21824 * localedata/locales/ar_YE: Likewise.
21825 * localedata/locales/as_IN: Likewise.
21826 * localedata/locales/ast_ES: Likewise.
21827 * localedata/locales/ayc_PE: Likewise.
21828 * localedata/locales/az_AZ: Likewise.
21829 * localedata/locales/az_IR: Likewise.
21830 * localedata/locales/be_BY: Likewise.
21831 * localedata/locales/be_BY@latin: Likewise.
21832 * localedata/locales/bem_ZM: Likewise.
21833 * localedata/locales/ber_DZ: Likewise.
21834 * localedata/locales/ber_MA: Likewise.
21835 * localedata/locales/bg_BG: Likewise.
21836 * localedata/locales/bhb_IN: Likewise.
21837 * localedata/locales/bho_IN: Likewise.
21838 * localedata/locales/bi_VU: Likewise.
21839 * localedata/locales/bn_BD: Likewise.
21840 * localedata/locales/bn_IN: Likewise.
21841 * localedata/locales/bo_CN: Likewise.
21842 * localedata/locales/bo_IN: Likewise.
21843 * localedata/locales/br_FR: Likewise.
21844 * localedata/locales/brx_IN: Likewise.
21845 * localedata/locales/bs_BA: Likewise.
21846 * localedata/locales/byn_ER: Likewise.
21847 * localedata/locales/ca_AD: Likewise.
21848 * localedata/locales/ca_ES: Likewise.
21849 * localedata/locales/ca_FR: Likewise.
21850 * localedata/locales/ca_IT: Likewise.
21851 * localedata/locales/ce_RU: Likewise.
21852 * localedata/locales/chr_US: Likewise.
21853 * localedata/locales/cmn_TW: Likewise.
21854 * localedata/locales/crh_UA: Likewise.
21855 * localedata/locales/cs_CZ: Likewise.
21856 * localedata/locales/csb_PL: Likewise.
21857 * localedata/locales/cv_RU: Likewise.
21858 * localedata/locales/cy_GB: Likewise.
21859 * localedata/locales/da_DK: Likewise.
21860 * localedata/locales/de_AT: Likewise.
21861 * localedata/locales/de_BE: Likewise.
21862 * localedata/locales/de_CH: Likewise.
21863 * localedata/locales/de_DE: Likewise.
21864 * localedata/locales/de_IT: Likewise.
21865 * localedata/locales/de_LI: Likewise.
21866 * localedata/locales/de_LU: Likewise.
21867 * localedata/locales/doi_IN: Likewise.
21868 * localedata/locales/dv_MV: Likewise.
21869 * localedata/locales/dz_BT: Likewise.
21870 * localedata/locales/el_CY: Likewise.
21871 * localedata/locales/el_GR: Likewise.
21872 * localedata/locales/en_AG: Likewise.
21873 * localedata/locales/en_AU: Likewise.
21874 * localedata/locales/en_BW: Likewise.
21875 * localedata/locales/en_CA: Likewise.
21876 * localedata/locales/en_DK: Likewise.
21877 * localedata/locales/en_GB: Likewise.
21878 * localedata/locales/en_HK: Likewise.
21879 * localedata/locales/en_IE: Likewise.
21880 * localedata/locales/en_IL: Likewise.
21881 * localedata/locales/en_IN: Likewise.
21882 * localedata/locales/en_NG: Likewise.
21883 * localedata/locales/en_NZ: Likewise.
21884 * localedata/locales/en_PH: Likewise.
21885 * localedata/locales/en_SG: Likewise.
21886 * localedata/locales/en_US: Likewise.
21887 * localedata/locales/en_ZA: Likewise.
21888 * localedata/locales/en_ZM: Likewise.
21889 * localedata/locales/en_ZW: Likewise.
21890 * localedata/locales/eo: Likewise.
21891 * localedata/locales/es_AR: Likewise.
21892 * localedata/locales/es_BO: Likewise.
21893 * localedata/locales/es_CL: Likewise.
21894 * localedata/locales/es_CO: Likewise.
21895 * localedata/locales/es_CR: Likewise.
21896 * localedata/locales/es_CU: Likewise.
21897 * localedata/locales/es_DO: Likewise.
21898 * localedata/locales/es_EC: Likewise.
21899 * localedata/locales/es_ES: Likewise.
21900 * localedata/locales/es_GT: Likewise.
21901 * localedata/locales/es_HN: Likewise.
21902 * localedata/locales/es_MX: Likewise.
21903 * localedata/locales/es_NI: Likewise.
21904 * localedata/locales/es_PA: Likewise.
21905 * localedata/locales/es_PE: Likewise.
21906 * localedata/locales/es_PR: Likewise.
21907 * localedata/locales/es_PY: Likewise.
21908 * localedata/locales/es_SV: Likewise.
21909 * localedata/locales/es_US: Likewise.
21910 * localedata/locales/es_UY: Likewise.
21911 * localedata/locales/es_VE: Likewise.
21912 * localedata/locales/et_EE: Likewise.
21913 * localedata/locales/eu_ES: Likewise.
21914 * localedata/locales/eu_ES@euro: Likewise.
21915 * localedata/locales/fa_IR: Likewise.
21916 * localedata/locales/ff_SN: Likewise.
21917 * localedata/locales/fi_FI: Likewise.
21918 * localedata/locales/fil_PH: Likewise.
21919 * localedata/locales/fo_FO: Likewise.
21920 * localedata/locales/fr_BE: Likewise.
21921 * localedata/locales/fr_CA: Likewise.
21922 * localedata/locales/fr_CH: Likewise.
21923 * localedata/locales/fr_FR: Likewise.
21924 * localedata/locales/fr_LU: Likewise.
21925 * localedata/locales/fur_IT: Likewise.
21926 * localedata/locales/fy_DE: Likewise.
21927 * localedata/locales/fy_NL: Likewise.
21928 * localedata/locales/ga_IE: Likewise.
21929 * localedata/locales/gd_GB: Likewise.
21930 * localedata/locales/gez_ER: Likewise.
21931 * localedata/locales/gez_ET: Likewise.
21932 * localedata/locales/gl_ES: Likewise.
21933 * localedata/locales/gu_IN: Likewise.
21934 * localedata/locales/gv_GB: Likewise.
21935 * localedata/locales/ha_NG: Likewise.
21936 * localedata/locales/hak_TW: Likewise.
21937 * localedata/locales/he_IL: Likewise.
21938 * localedata/locales/hi_IN: Likewise.
21939 * localedata/locales/hif_FJ: Likewise.
21940 * localedata/locales/hne_IN: Likewise.
21941 * localedata/locales/hr_HR: Likewise.
21942 * localedata/locales/hsb_DE: Likewise.
21943 * localedata/locales/ht_HT: Likewise.
21944 * localedata/locales/hu_HU: Likewise.
21945 * localedata/locales/hy_AM: Likewise.
21946 * localedata/locales/i18n: Likewise.
21947 * localedata/locales/ia_FR: Likewise.
21948 * localedata/locales/id_ID: Likewise.
21949 * localedata/locales/ig_NG: Likewise.
21950 * localedata/locales/ik_CA: Likewise.
21951 * localedata/locales/is_IS: Likewise.
21952 * localedata/locales/it_CH: Likewise.
21953 * localedata/locales/it_IT: Likewise.
21954 * localedata/locales/iu_CA: Likewise.
21955 * localedata/locales/ja_JP: Likewise.
21956 * localedata/locales/ka_GE: Likewise.
21957 * localedata/locales/kk_KZ: Likewise.
21958 * localedata/locales/kl_GL: Likewise.
21959 * localedata/locales/kn_IN: Likewise.
21960 * localedata/locales/ko_KR: Likewise.
21961 * localedata/locales/kok_IN: Likewise.
21962 * localedata/locales/ks_IN: Likewise.
21963 * localedata/locales/ks_IN@devanagari: Likewise.
21964 * localedata/locales/ku_TR: Likewise.
21965 * localedata/locales/kw_GB: Likewise.
21966 * localedata/locales/ky_KG: Likewise.
21967 * localedata/locales/lb_LU: Likewise.
21968 * localedata/locales/lg_UG: Likewise.
21969 * localedata/locales/li_BE: Likewise.
21970 * localedata/locales/li_NL: Likewise.
21971 * localedata/locales/lij_IT: Likewise.
21972 * localedata/locales/ln_CD: Likewise.
21973 * localedata/locales/lo_LA: Likewise.
21974 * localedata/locales/lt_LT: Likewise.
21975 * localedata/locales/lv_LV: Likewise.
21976 * localedata/locales/lzh_TW: Likewise.
21977 * localedata/locales/mag_IN: Likewise.
21978 * localedata/locales/mai_IN: Likewise.
21979 * localedata/locales/mg_MG: Likewise.
21980 * localedata/locales/mhr_RU: Likewise.
21981 * localedata/locales/mi_NZ: Likewise.
21982 * localedata/locales/mk_MK: Likewise.
21983 * localedata/locales/ml_IN: Likewise.
21984 * localedata/locales/mn_MN: Likewise.
21985 * localedata/locales/mni_IN: Likewise.
21986 * localedata/locales/mr_IN: Likewise.
21987 * localedata/locales/ms_MY: Likewise.
21988 * localedata/locales/mt_MT: Likewise.
21989 * localedata/locales/my_MM: Likewise.
21990 * localedata/locales/nan_TW: Likewise.
21991 * localedata/locales/nan_TW@latin: Likewise.
21992 * localedata/locales/nb_NO: Likewise.
21993 * localedata/locales/nds_DE: Likewise.
21994 * localedata/locales/nds_NL: Likewise.
21995 * localedata/locales/ne_NP: Likewise.
21996 * localedata/locales/nhn_MX: Likewise.
21997 * localedata/locales/niu_NU: Likewise.
21998 * localedata/locales/niu_NZ: Likewise.
21999 * localedata/locales/nl_AW: Likewise.
22000 * localedata/locales/nl_BE: Likewise.
22001 * localedata/locales/nl_NL: Likewise.
22002 * localedata/locales/nn_NO: Likewise.
22003 * localedata/locales/nr_ZA: Likewise.
22004 * localedata/locales/nso_ZA: Likewise.
22005 * localedata/locales/oc_FR: Likewise.
22006 * localedata/locales/om_ET: Likewise.
22007 * localedata/locales/om_KE: Likewise.
22008 * localedata/locales/or_IN: Likewise.
22009 * localedata/locales/os_RU: Likewise.
22010 * localedata/locales/pa_IN: Likewise.
22011 * localedata/locales/pa_PK: Likewise.
22012 * localedata/locales/pap_AW: Likewise.
22013 * localedata/locales/pap_CW: Likewise.
22014 * localedata/locales/pl_PL: Likewise.
22015 * localedata/locales/ps_AF: Likewise.
22016 * localedata/locales/pt_BR: Likewise.
22017 * localedata/locales/pt_PT: Likewise.
22018 * localedata/locales/quz_PE: Likewise.
22019 * localedata/locales/raj_IN: Likewise.
22020 * localedata/locales/ro_RO: Likewise.
22021 * localedata/locales/ru_RU: Likewise.
22022 * localedata/locales/ru_UA: Likewise.
22023 * localedata/locales/rw_RW: Likewise.
22024 * localedata/locales/sa_IN: Likewise.
22025 * localedata/locales/sat_IN: Likewise.
22026 * localedata/locales/sc_IT: Likewise.
22027 * localedata/locales/sd_IN: Likewise.
22028 * localedata/locales/sd_IN@devanagari: Likewise.
22029 * localedata/locales/se_NO: Likewise.
22030 * localedata/locales/sgs_LT: Likewise.
22031 * localedata/locales/shs_CA: Likewise.
22032 * localedata/locales/si_LK: Likewise.
22033 * localedata/locales/sid_ET: Likewise.
22034 * localedata/locales/sk_SK: Likewise.
22035 * localedata/locales/sl_SI: Likewise.
22036 * localedata/locales/sm_WS: Likewise.
22037 * localedata/locales/so_DJ: Likewise.
22038 * localedata/locales/so_ET: Likewise.
22039 * localedata/locales/so_KE: Likewise.
22040 * localedata/locales/so_SO: Likewise.
22041 * localedata/locales/sq_AL: Likewise.
22042 * localedata/locales/sq_MK: Likewise.
22043 * localedata/locales/sr_ME: Likewise.
22044 * localedata/locales/sr_RS: Likewise.
22045 * localedata/locales/sr_RS@latin: Likewise.
22046 * localedata/locales/ss_ZA: Likewise.
22047 * localedata/locales/st_ZA: Likewise.
22048 * localedata/locales/sv_FI: Likewise.
22049 * localedata/locales/sv_SE: Likewise.
22050 * localedata/locales/sw_KE: Likewise.
22051 * localedata/locales/sw_TZ: Likewise.
22052 * localedata/locales/szl_PL: Likewise.
22053 * localedata/locales/ta_IN: Likewise.
22054 * localedata/locales/ta_LK: Likewise.
22055 * localedata/locales/tcy_IN: Likewise.
22056 * localedata/locales/te_IN: Likewise.
22057 * localedata/locales/tg_TJ: Likewise.
22058 * localedata/locales/th_TH: Likewise.
22059 * localedata/locales/the_NP: Likewise.
22060 * localedata/locales/ti_ER: Likewise.
22061 * localedata/locales/ti_ET: Likewise.
22062 * localedata/locales/tig_ER: Likewise.
22063 * localedata/locales/tk_TM: Likewise.
22064 * localedata/locales/tl_PH: Likewise.
22065 * localedata/locales/tn_ZA: Likewise.
22066 * localedata/locales/to_TO: Likewise.
22067 * localedata/locales/tpi_PG: Likewise.
22068 * localedata/locales/tr_CY: Likewise.
22069 * localedata/locales/tr_TR: Likewise.
22070 * localedata/locales/ts_ZA: Likewise.
22071 * localedata/locales/tt_RU: Likewise.
22072 * localedata/locales/tt_RU@iqtelif: Likewise.
22073 * localedata/locales/ug_CN: Likewise.
22074 * localedata/locales/uk_UA: Likewise.
22075 * localedata/locales/unm_US: Likewise.
22076 * localedata/locales/ur_IN: Likewise.
22077 * localedata/locales/ur_PK: Likewise.
22078 * localedata/locales/uz_UZ: Likewise.
22079 * localedata/locales/uz_UZ@cyrillic: Likewise.
22080 * localedata/locales/ve_ZA: Likewise.
22081 * localedata/locales/vi_VN: Likewise.
22082 * localedata/locales/wa_BE: Likewise.
22083 * localedata/locales/wae_CH: Likewise.
22084 * localedata/locales/wal_ET: Likewise.
22085 * localedata/locales/wo_SN: Likewise.
22086 * localedata/locales/xh_ZA: Likewise.
22087 * localedata/locales/yi_US: Likewise.
22088 * localedata/locales/yo_NG: Likewise.
22089 * localedata/locales/yue_HK: Likewise.
22090 * localedata/locales/yuw_PG: Likewise.
22091 * localedata/locales/zh_CN: Likewise.
22092 * localedata/locales/zh_HK: Likewise.
22093 * localedata/locales/zh_SG: Likewise.
22094 * localedata/locales/zh_TW: Likewise.
22095 * localedata/locales/zu_ZA: Likewise.
22096
22097 2017-11-13 Florian Weimer <fweimer@redhat.com>
22098
22099 * support/next_to_fault.h, support/next_to_fault.c: New files.
22100 * support/Makefile (libsupport-routines): Add next_to_fault.
22101 * resolv/tst-inet_pton.c (struct next_to_fault)
22102 (next_to_fault_allocate, next_to_fault_free): Remove.
22103 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22104
22105 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22106
22107 * elf/dl-support.c: Include <dl-procruntime.c>.
22108 * include/link.h: Include <link_map.h>.
22109 * sysdeps/generic/dl-procruntime.c: New file.
22110 * sysdeps/generic/link_map.h: Likewise.
22111 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22112 the writable ld.so namespace.
22113
22114 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22115
22116 timezone: pacify GCC -Wstringop-truncation
22117 Problem reported by Martin Sebor in:
22118 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22119 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22120
22121 2017-11-12 Florian Weimer <fweimer@redhat.com>
22122
22123 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22124 tst-xreadlink.
22125 (tests): Add tst-xreadlink.
22126 * support/support.h (xstrndup): Declare.
22127 * support/xunistd.h (xunlink, xreadlink): Declare.
22128 * support/temp_file.h (support_create_temp_directory): Declare.
22129 * support/temp_file.c (support_create_temp_directory): New function.
22130 * support/support_chroot.c (support_chroot_create): Use it.
22131 * support/xreadlink.c: New file.
22132 * support/xstrndup.c: Likewise.
22133 * support/xunlink.c: Likewise.
22134 * support/tst-xreadlink.c: Likewise.
22135
22136 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22137
22138 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22139
22140 2017-11-11 Florian Weimer <fweimer@redhat.com>
22141
22142 [BZ #22409]
22143 [BZ #22412]
22144 * resolv/res_comp.c (printable_string, binary_hnok)
22145 (binary_leading_dash): New functions.
22146 (res_hnok): Reimplement using these functions and ns_name_pton.
22147 (res_ownok): Likewise.
22148 (res_mailok): Reimplement using printable_string, ns_name_pton and
22149 binary_hnok.
22150 (res_dnok): Reimplement using printable_string and ns_name_pton.
22151 * resolv/tst-res_hnok.c (tests): Add additional tests.
22152 (LETTERDIGITS, PRINTABLE): Define.
22153 (do_test): Adjust one_char results.
22154
22155 2017-11-11 Florian Weimer <fweimer@redhat.com>
22156
22157 [BZ #22413]
22158 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22159 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22160
22161 2017-11-11 Florian Weimer <fweimer@redhat.com>
22162
22163 * resolv/tst-ns_name_pton.c: New file.
22164 * resolv/Makefile (tests): Add tst-ns_name_pton.
22165 (tst-ns_name_pton): Link against libresolv.
22166
22167 2017-11-11 Florian Weimer <fweimer@redhat.com>
22168
22169 * resolv/tst-res_hnok.c: New file.
22170 * resolv/Makefile (tests): Add tst-res_hnok.
22171 (tst-res_hnok): Link against libresolv.
22172
22173 2017-11-11 Florian Weimer <fweimer@redhat.com>
22174
22175 * resolv/tst-resolv-network.c: Use test framework instead explicit
22176 main function.
22177
22178 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22179
22180 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22181 <jmp_buf-macros.h>.
22182 [!_ISOMAC] (STR_HELPER): New.
22183 [!_ISOMAC] (STR): Likewise.
22184 [!_ISOMAC] (TEST_SIZE): Likewise.
22185 [!_ISOMAC] (TEST_ALIGN): Likewise.
22186 [!_ISOMAC] (TEST_OFFSET): Likewise.
22187 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22188 field offsets of jmp_buf as well as sigjmp_buf.
22189 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22190 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22191 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22192 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22193 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22194 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22195 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22196 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22197 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22198 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22199 Likewise.
22200 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22201 Likewise.
22202 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22203 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22204 Likewise.
22205 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22206 Likewise.
22207 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22208 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22209 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22210 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22211 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22212 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22213 Likewise.
22214 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22215 Likewise.
22216 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22217 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22218 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22219
22220 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22221
22222 * include/float.h
22223 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22224 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22225 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22226 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22227 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22228 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22229 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22230 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22231 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22232 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22233 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22234 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22235 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22236 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22237 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22238 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22239 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22240 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22241 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22242 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22243 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22244 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22245 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22246 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22247 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22248 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22249 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22250 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22251 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22252 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22253 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22254 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22255 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22256 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22257 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22258 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22259 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22260 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22261 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22262 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22263 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22264 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22265 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22266 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22267 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22268 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22269 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22270 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22271 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22272 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22273 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22274 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22275 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22276 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22277 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22278 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22279 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22280 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22281 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22282 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22283 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22284 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22285 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22286 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22287 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22288 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22289 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22290 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22291 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22292 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22293 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22294 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22295 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22296 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
22297 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22298 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
22299 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22300 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
22301 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22302 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
22303 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22304 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22305 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22306 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22307 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22308 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22309 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22310 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22311
22312 * stdlib/tst-strtod.h (F16): New macro.
22313 (F32): Likewise.
22314 (F64): Likewise.
22315 (F32X): Likewise.
22316 (F64X): Likewise.
22317 (F128X): Likewise.
22318 (IF_FLOAT16): Likewise.
22319 (IF_FLOAT32): Likewise.
22320 (IF_FLOAT64): Likewise.
22321 (IF_FLOAT32X): Likewise.
22322 (IF_FLOAT64X): Likewise.
22323 (IF_FLOAT128X): Likewise.
22324 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
22325 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
22326 (STRTOD_TEST_FOREACH): Likewise.
22327 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
22328 (CHOOSE_f64): Likewise.
22329 (CHOOSE_f32x): Likewise.
22330 (CHOOSE_f64x): Likewise.
22331
22332 2017-11-07 Andreas Schwab <schwab@suse.de>
22333
22334 * nptl/Makefile (tests-internal): Remove tst-typesizes.
22335
22336 2017-11-07 Mike FABIAN <mfabian@redhat.com>
22337
22338 [BZ #22403]
22339 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
22340 to be escaped.
22341 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
22342 to be escaped.
22343
22344 2017-11-07 Claude Paroz <claude@2xlibre.net>
22345
22346 [BZ #22403]
22347 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
22348 to be escaped.
22349 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
22350 to be escaped.
22351 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
22352 to be escaped.
22353
22354 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22355
22356 [BZ #22298]
22357 * nptl/allocatestack.c (allocate_stack): Check if
22358 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
22359 __PTHREAD_MUTEX_HAVE_PREV is defined.
22360 * nptl/descr.h (pthread): Likewise.
22361 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
22362 Likewise.
22363 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22364 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22365 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
22366 * sysdeps/nptl/bits/thread-shared-types.h
22367 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22368 defines.
22369 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
22370 of __WORDSIZE for internal layout.
22371 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
22372 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
22373 instead of __WORDSIZE whether to use an union for __spins and __list
22374 fields.
22375 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
22376 case.
22377 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
22378 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22379 defines.
22380 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
22381 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22382 Likewise.
22383 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
22384 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22385 Likewise.
22386 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
22387 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22388 Likewise.
22389 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
22390 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22391 Likewise.
22392 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
22393 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22394 Likewise.
22395 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
22396 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22397 Likewise.
22398 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
22399 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22400 Likewise.
22401 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
22402 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22403 Likewise.
22404 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
22405 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22406 Likewise.
22407 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
22408 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22409 Likewise.
22410 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
22411 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22412 Likewise.
22413 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
22414 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22415 Likewise.
22416 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
22417 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22418 Likewise.
22419 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
22420 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22421 Likewise.
22422
22423 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
22424 New macros.
22425 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
22426 checks for expected input type size.
22427 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22428 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22429 Likewise.
22430 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22431 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
22432 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
22433 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
22434 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22435 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
22436 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
22437 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
22438 superflous runtime assert check.
22439 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
22440 Likewise.
22441 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
22442 Likewise.
22443 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22444 Likewise.
22445 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
22446 Likewise.
22447 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
22448 Likewise.
22449 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
22450 Likewise.
22451 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
22452 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
22453 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
22454 Likewise.
22455 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
22456 Likewise.
22457 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
22458 Likewise.
22459 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
22460 Likewise.
22461 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
22462 Likewise.
22463 * nptl/pthread_attr_setinheritsched.c
22464 (__pthread_attr_setinheritsched): Likewise.
22465 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
22466 Likewise.
22467 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
22468 Likewise.
22469 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
22470 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
22471 __old_pthread_attr_setstack): Likewise.
22472 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
22473 Likewise.
22474 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
22475 Likewise.
22476 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
22477 Likewise.
22478 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
22479 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
22480 Likewise.
22481 * nptl/tst-typesizes.c: Remove file.
22482
22483 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
22484 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
22485 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
22486 checks for internal pthread_mutex_t offsets.
22487 * sysdeps/aarch64/nptl/pthread-offsets.h
22488 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
22489 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
22490 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
22491 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
22492 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
22493 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
22494 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
22495 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
22496 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
22497 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
22498 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
22499 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
22500 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
22501 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
22502 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
22503 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
22504 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
22505 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
22506
22507 2017-11-07 Florian Weimer <fweimer@redhat.com>
22508
22509 * bits/mman-linux.h: Move ...
22510 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
22511 comment.
22512 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
22513 outdated comment.
22514
22515 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22516
22517 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
22518 Redefine STRNLEN as __strnlen_power8.
22519
22520 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22521
22522 * signal/sighold.c (sighold): Optimize implementation.
22523
22524 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
22525 __NR_rt_sigqueueinfo.
22526
22527 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
22528 __sigtimedwait.
22529 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
22530 assume __NR_rt_sigtimedwait.
22531 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
22532 and add LIBC_CANCEL_HANDLED for cancellation marking.
22533 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22534
22535 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22536 (sysdeps_routines): Add memchr_noneon.
22537 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
22538 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
22539 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
22540 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
22541 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
22542 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
22543 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
22544
22545 * sysdeps/arm/arm-ifunc.h: New file.
22546 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
22547 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
22548 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
22549 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
22550 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
22551 (__memcpy_neon): Avoid create hidden alias.
22552 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
22553 (__memcpy_vfp): Likewise.
22554 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22555 (sysdep_routines): Add memcpy_arm.
22556 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
22557
22558 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
22559
22560 [BZ #22362]
22561 * Makerules (make-link-multidir): New.
22562 * config.make.in (multidir): New.
22563 * configure.ac (libc_cv_multidir): New. AC_SUBST.
22564 * configure: Regenerated.
22565 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
22566 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
22567 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
22568 New target.
22569
22570 2017-11-06 Joseph Myers <joseph@codesourcery.com>
22571
22572 [BZ #22402]
22573 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
22574 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
22575
22576 2017-11-04 Mike FABIAN <mfabian@redhat.com>
22577
22578 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
22579 to be escaped.
22580
22581 2017-11-04 Florian Weimer <fweimer@redhat.com>
22582
22583 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
22584
22585 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22586
22587 * math/math.h [__HAVE_DISTINCT_FLOAT16
22588 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22589 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22590 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22591 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
22592 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
22593 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
22594 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22595 (__MATH_TG_F32): New macro.
22596 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22597 (__MATH_TG_F64X): Likewise.
22598 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22599 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
22600
22601 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
22602
22603 * po/de.po: Update translations.
22604 * po/ru.po: Likewise.
22605
22606 2017-11-03 Florian Weimer <fweimer@redhat.com>
22607
22608 * manual/filesys.texi (Hard Links): Document linkat.
22609
22610 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22611
22612 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
22613 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22614 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22615 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22616 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22617 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22618 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
22619 the same as _Float128.
22620 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22621 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22622 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
22623
22624 * stdlib/stdlib.h
22625 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
22626 Declare.
22627 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
22628 Likewise.
22629 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
22630 Likewise.
22631 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22632 (strtof32x): Likewise.
22633 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22634 (strtof64x): Likewise.
22635 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22636 (strtof128x): Likewise.
22637 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22638 (strfromf16): Likewise.
22639 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22640 (strfromf32): Likewise.
22641 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22642 (strfromf64): Likewise.
22643 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22644 (strfromf32x): Likewise.
22645 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22646 (strfromf64x): Likewise.
22647 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22648 (strfromf128x): Likewise.
22649 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
22650 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
22651 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
22652 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
22653 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
22654 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
22655
22656 2017-11-03 Richard Henderson <rth@twiddle.net>
22657
22658 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
22659
22660 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22661
22662 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
22663
22664 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22665
22666 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
22667 DT_TLSDESC_GOT initialization.
22668 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
22669 (_dl_tlsdesc_resolve_hold): Likewise.
22670 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
22671 (_dl_tlsdesc_resolve_hold): Likewise.
22672 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
22673 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22674
22675 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22676
22677 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
22678
22679 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22680
22681 [BZ #18572]
22682 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
22683 non-lazily for R_ARM_TLS_DESC.
22684
22685 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22686
22687 [BZ #17078]
22688 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
22689 R_ARM_TLS_DESC case.
22690 (elf_machine_lazy_rel): Remove the prelink check.
22691
22692 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22693
22694 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
22695 DT_TLSDESC_GOT initialization.
22696 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
22697 (_dl_tlsdesc_resolve_rela): Likewise.
22698 (_dl_tlsdesc_resolve_hold): Likewise.
22699 (_dl_tlsdesc_undefweak): Remove ldar.
22700 (_dl_tlsdesc_dynamic): Likewise.
22701 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
22702 (_dl_tlsdesc_resolve_rela): Likewise.
22703 (_dl_tlsdesc_resolve_hold): Likewise.
22704 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
22705 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22706 (_dl_tlsdesc_resolve_rela): Likewise.
22707 (_dl_tlsdesc_resolve_hold): Likewise.
22708
22709 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22710
22711 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
22712 binding and initialization non-lazily for R_AARCH64_TLSDESC.
22713
22714 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22715
22716 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
22717 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
22718
22719 2017-11-02 Joseph Myers <joseph@codesourcery.com>
22720
22721 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
22722 Declare.
22723 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
22724 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
22725 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
22726 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
22727 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
22728 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
22729 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
22730 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
22731 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
22732 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
22733 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
22734
22735 2017-11-02 Mike FABIAN <mfabian@redhat.com>
22736
22737 [BZ #22382]
22738 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
22739 * localedata/locales/tpi_PG: Add standard header.
22740
22741 2017-11-02 Florian Weimer <fweimer@redhat.com>
22742
22743 test-errno-linux: quotactl can fail with EPERM in containers.
22744 * sysdeps/unix/sysv/linux/test-errno-linux.c
22745 (LIST, LIST_FORWARD): New macros.
22746 (check_error_in_list): New function.
22747 (test_wrp_rv): Accept list of permitted error codes.
22748 (test_wrp_rv2): Remove.
22749 (test_wrp): Call test_wrp_rv with list of error codes.
22750 (test_wrp2): Accept list of error codes.
22751 (do_test): Adjust. Allow EPERM for quotactl.
22752
22753 2017-11-02 Florian Weimer <fweimer@redhat.com>
22754
22755 * stdio-common/bug16.c (do_test): Use array_length.
22756 * stdio-common/errlist.c (_sys_nerr): Likewise.
22757 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
22758 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
22759 * stdio-common/psiginfo.c (psiginfo): Use array_length.
22760 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
22761 (do_test): Use array_length.
22762 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
22763 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
22764 * stdio-common/tst-printf-round.c (do_test): Likewise.
22765 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
22766 (CHECK): Use array_length.
22767 * stdio-common/tstdiomisc.c (t3, F): Likewise.
22768 * stdio-common/tstscanf.c (main): Likewise.
22769 * stdio-common/vfprintf.c (process_string_arg): Likewise.
22770
22771 2017-11-02 Florian Weimer <fweimer@redhat.com>
22772
22773 Add array_length and array_end macros.
22774 * include/array_length.h: New file.
22775
22776 2017-11-02 Florian Weimer <fweimer@redhat.com>
22777
22778 [BZ #22332]
22779 * posix/tst-glob-tilde.c (do_noescape): New variable.
22780 (one_test): Process it.
22781 (do_test): Set do_noescape. Add unescaping test case.
22782
22783 2017-11-01 Joseph Myers <joseph@codesourcery.com>
22784
22785 * math/complex.h
22786 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
22787 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
22788 with appropriate macros defined and undefined.
22789 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
22790 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22791 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
22792 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22793 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
22794 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22795 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
22796 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22797 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
22798 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22799
22800 * math/complex.h
22801 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
22802 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
22803 that for long double. Do not condition define and undefine of
22804 _Mdouble_complex_ on [__CFLOAT128].
22805
22806 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
22807
22808 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22809 of <sysdeps/generic/sysdep.h>.
22810 (ALIGNARG): Removed.
22811 (ASM_SIZE_DIRECTIVE): Likewise.
22812 (ENTRY): Likewise.
22813 (END): Likewise.
22814 (ENTRY_CHK): Likewise.
22815 (END_CHK): Likewise.
22816 (syscall_error): Likewise.
22817 (mcount): Likewise.
22818 (PSEUDO_END): Likewise.
22819 (L): Likewise.
22820 (atom_text_section): Likewise.
22821 * sysdeps/x86/sysdep.h: New file.
22822 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22823 of <sysdeps/generic/sysdep.h>.
22824 (ALIGNARG): Removed.
22825 (ASM_SIZE_DIRECTIVE): Likewise.
22826 (ENTRY): Likewise.
22827 (END): Likewise.
22828 (ENTRY_CHK): Likewise.
22829 (END_CHK): Likewise.
22830 (syscall_error): Likewise.
22831 (mcount): Likewise.
22832 (PSEUDO_END): Likewise.
22833 (L): Likewise.
22834 (atom_text_section): Likewise.
22835
22836 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
22837
22838 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
22839 category of LC_CTYPE set to "i18n:2012".
22840 * localedata/locales/i18n_ctype: Regenerate.
22841
22842 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
22843
22844 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
22845 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
22846 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
22847 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
22848
22849 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
22850 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
22851 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
22852 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
22853
22854 2017-10-31 Joseph Myers <joseph@codesourcery.com>
22855
22856 * math/complex.h
22857 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
22858 New macro.
22859 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
22860 Likewise.
22861 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
22862 Likewise.
22863 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22864 (CMPLXF32X): Likewise.
22865 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22866 (CMPLXF64X): Likewise.
22867 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22868 (CMPLXF128X): Likewise.
22869
22870 * math/math.h
22871 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
22872 (__MATH_EVAL_FMT2): Define to add 0.0f.
22873
22874 2017-10-31 Alan Modra <amodra@gmail.com>
22875
22876 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
22877 include sysdep.h.
22878 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
22879 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
22880 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
22881 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
22882 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
22883 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
22884 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
22885 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
22886 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
22887 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
22888 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
22889 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
22890 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
22891 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
22892 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
22893 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
22894 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
22895 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
22896 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
22897 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
22898 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
22899 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
22900 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
22901 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
22902 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
22903 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
22904 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
22905 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
22906 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
22907 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
22908 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
22909 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
22910 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
22911 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
22912 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
22913 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
22914 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
22915 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
22916 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
22917 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
22918 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
22919 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
22920 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
22921 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
22922 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
22923 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
22924 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
22925 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
22926 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
22927 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
22928 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
22929 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
22930 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
22931 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
22932 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
22933 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
22934 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
22935 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
22936 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
22937 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
22938 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
22939 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
22940 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
22941 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
22942 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
22943 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
22944 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
22945 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
22946 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
22947
22948 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
22949 include sysdep.h and math_ldbl_opt.h.
22950
22951 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
22952 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
22953 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
22954 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
22955 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
22956 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
22957 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
22958 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
22959 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
22960 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
22961 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
22962 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
22963 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
22964 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
22965 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
22966 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
22967 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
22968 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
22969 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
22970 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
22971 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
22972 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
22973 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
22974 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
22975 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
22976 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
22977
22978 2017-10-31 Alan Modra <amodra@gmail.com>
22979
22980 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
22981 string/strncase_l.c, not string/strncase.c.
22982 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
22983 (libc_hidden_def): Redefine.
22984
22985 2017-10-31 Alan Modra <amodra@gmail.com>
22986
22987 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
22988 (__STRCMP, STRCMP, __strcasecmp_l): Define.
22989 (__strcasecmp): Don't define.
22990
22991 2017-10-31 Alan Modra <amodra@gmail.com>
22992
22993 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
22994 IS_IN (libc).
22995 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
22996 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
22997 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
22998
22999 2017-10-31 Alan Modra <amodra@gmail.com>
23000
23001 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23002 USE_AS_STPNCPY.
23003
23004 2017-10-31 Alan Modra <amodra@gmail.com>
23005
23006 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23007 Redefine only when SHARED.
23008
23009 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23010
23011 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23012 Include <bits/math-finite.h> with appropriate macros defined and
23013 undefined.
23014 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23015 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23016 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23017 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23018 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23019
23020 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23021 [!_Mlong_double_] (_Mlong_double_): Likewise.
23022 [!_Mfloat16_] (_Mfloat16_): Likewise.
23023 [!_Mfloat32_] (_Mfloat32_): Likewise.
23024 [!_Mfloat64_] (_Mfloat64_): Likewise.
23025 [!_Mfloat128_] (_Mfloat128_): Likewise.
23026 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23027 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23028 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23029 (_Mdouble_): Define without indirection through those macros.
23030 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23031 [!_Mfloat128_] (_Mfloat128_): Likewise.
23032 [_Mlong_double_] (_Mlong_double_): Likewise.
23033 (_Mdouble_): Define without indirection through those macros.
23034 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23035 not add -D_Mlong_double_=double.
23036 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23037 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23038
23039 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23040
23041 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23042
23043 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23044
23045 * sysdeps/x86/libc-start.c: Reformat.
23046
23047 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23048
23049 [BZ #22353]
23050 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23051 (1): Renamed to ...
23052 (L(Src0)): This.
23053 (L(Src1)): New.
23054 (L(Src2)): Likewise.
23055 (L(1)): Renamed to ...
23056 (L(Src3)): This.
23057
23058 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23059
23060 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23061 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23062 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23063 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23064 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23065 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23066 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23067 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23068 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23069 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23070 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23071 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23072 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23073 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23074 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23075 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23076 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23077 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23078 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23079 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23080 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23081 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23082 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23083 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23084 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23085 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23086 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23087 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23088 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23089 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23090 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23091 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23092 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23093 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23094 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23095 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23096 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23097 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23098 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23099 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23100 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23101 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23102 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23103 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23104 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23105 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23106 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23107 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23108 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23109 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23110 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23111 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23112 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23113 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23114 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23115 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23116 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23117 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23118 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23119 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23120 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23121 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23122 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23123 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23124 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23125 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23126
23127 2017-10-30 Florian Weimer <fweimer@redhat.com>
23128
23129 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23130 always defined.
23131 * io/tst-mkdirat.c (do_test): Likewise.
23132 * io/tst-mkfifoat.c (do_test): Likewise.
23133 * io/tst-mknodat.c (do_test): Likewise.
23134 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23135 * locale/programs/locale.c (select_dirs): Likewise.
23136 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23137 * posix/bug-glob2.c (my_readdir): Likewise.
23138 * posix/tst-dir.c (main): Likewise.
23139 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23140 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23141
23142 2017-10-30 Florian Weimer <fweimer@redhat.com>
23143
23144 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23145 just __USE_GNU.
23146
23147 2017-10-30 Florian Weimer <fweimer@redhat.com>
23148
23149 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23150 Convert to support/test-driver.c.
23151 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23152 New macro parameters.
23153 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23154 * posix/tst-gnuglob.c: New file.
23155 * posix/tst-gnuglob64.c: Likewise.
23156 * posix/Makefile (tests): Add tst-gnuglob64.
23157
23158 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23159
23160 [BZ #19485]
23161 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23162 and use a better translation for March in “mon”.
23163 * localedata/locales/csb_PL: Use more ASCII to improve the
23164 readability of the source.
23165
23166 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23167
23168 [BZ #13953]
23169 * localedata/locales/km_KH: Use ASCII as much
23170 as possible for better readability of the source and
23171 remove useless comments.
23172 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23173 was commented out and apparently wrong anyway because it was
23174 using Lao characters. If Buddhist era should be used
23175 for km_KH, a native speaker should write the correct formaat
23176 for Khmer.
23177 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23178 (According to CLDR, the first weekday for Cambodia is Sunday).
23179 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23180 (These were using Lao characters which must be wrong. If we get
23181 the correct data from a native speaker, we could add it back, until
23182 then it is better not to have name_mr and name_mrs at all than
23183 having it wrong).
23184
23185 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23186
23187 * locale/loadlocale.c: Correct size of
23188 _nl_value_type_LC_<category> arrays.
23189
23190 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23191
23192 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23193 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23194 with appropriate macros defined and undefined.
23195 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23196 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23197 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23198 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23199 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23200
23201 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23202
23203 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23204 "-O2 -march=i586".
23205
23206 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23207
23208 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23209 with lowercase letters to make it agree with CLDR.
23210
23211 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23212
23213 [BZ #15260]
23214 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23215 first letters of yesstr and nostr in yesexpr and noexpr,
23216 not for the full words.
23217 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23218 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23219 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23220 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23221 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23222 first letters of yesstr and nostr in yesexpr and noexpr,
23223 until now only English was matched in yesexpr and noexpr.
23224 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23225 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23226 fil but not for tl. As tl and fil are very similar, using fil
23227 is probably better than using English.
23228
23229 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23230
23231 [BZ #21706]
23232 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23233 in yesstr and nostr.
23234
23235 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23236
23237 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23238 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23239 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23240 Likewise.
23241 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23242 Likewise.
23243 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23244 Likewise.
23245 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23246 Likewise.
23247 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23248 (SNANF128X): Likewise.
23249
23250 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23251 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23252 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23253 (HUGE_VAL_F32): Likewise.
23254 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23255 (HUGE_VAL_F64): Likewise.
23256 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23257 (HUGE_VAL_F32X): Likewise.
23258 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23259 (HUGE_VAL_F64X): Likewise.
23260 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23261 (HUGE_VAL_F128X): Likewise.
23262
23263 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23264
23265 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23266 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23267 for the br_FR locale.
23268
23269 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23270
23271 [BZ #21706]
23272 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23273
23274 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23275
23276 * locale/programs/record-status.h: Define globals, and function
23277 prototypes. Move function bodies...
23278 * locale/programs/record-status.c: ... to here. New file.
23279 * iconv/Makefile (iconv_prog-modules): Add record-status.
23280 * locale/Makefile (lib-modules): Likewise.
23281 * iconv/iconv_prog.c: Remove verbose.
23282 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23283 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23284 record a warning about ASCII compatibility.
23285 * locale/programs/ld-monetary.c (monetary_finish): If
23286 warn_int_curr_symbol is true then record a warning about the symbol
23287 not being in our ISO 4217 list.
23288 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23289 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23290 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23291 (OPT_NO_WARN): Define.
23292 (OPT_WARN): Define.
23293 (options): Add entry for --no-warnings, and --warnings.
23294 (set_warnings): New function to enable/disable warnings.
23295 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23296 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
23297 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
23298 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
23299 Pass flags to generate_locale.
23300 (generate_locale): Accept new flag argument and pass it to localedef
23301 invocation.
23302 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
23303 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
23304
23305 * localedata/Makefile (test-input-data): Use full file name.
23306 * localedata/da_DK.in: Rename to...
23307 * localedata/da_DK.ISO-8859-1.in: ...this.
23308 * localedata/de_DE.in: Rename to...
23309 * localedata/de_DE.ISO-8859-1.in: ...this.
23310 * localedata/en_US.in: Rename to...
23311 * localedata/en_US.ISO-8859-1.in: ...this.
23312 * localedata/fr_FR.in: Rename to...
23313 * localedata/fr_FR.UTF-8.in: ... this.
23314 * localedata/hr_HR.in: Rename to...
23315 * localedata/hr_HR.ISO-8859-2.in: ...this.
23316 * localedata/hu_HU.in: Rename to...
23317 * localedata/hu_HU.UTF-8.in: ...this.
23318 * localedata/si_LK.in: Rename to...
23319 * localedata/si_LK.UTF-8.in: ...this.
23320 * localedata/sv_SE.in: Rename to...
23321 * localedata/sv_SE.ISO-8859-1.in: ...this.
23322 * localedata/tr_TR.in: Rename to...
23323 * localedata/tr_TR.UTF-8.in: ...this.
23324 * localedata/uk_UA.in: Rename to...
23325 * localedata/uk_UA.UTF-8.in: ...this.
23326 * localedata/sort-test.sh: Test file is locale name with the
23327 suffix.
23328
23329 * localedata/unicode-gen/Makefile (check_i18n): Rename to
23330 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
23331 file.
23332 * localedata/locales/i18n_ctype: Regenerate.
23333 * localedata/locales/tr_TR: Likewise.
23334 * localedata/locales/translit_circle: Likewise.
23335 * localedata/locales/translit_cjk_compat: Likewise.
23336 * localedata/locales/translit_combining: Likewise.
23337 * localedata/locales/translit_compat: Likewise.
23338 * localedata/locales/translit_font: Likewise.
23339 * localedata/locales/translit_fraction: Likewise.
23340
23341 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23342
23343 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
23344 lxvd2x/stxvd2x with lvx/stvx.
23345 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
23346
23347 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
23348
23349 * include/alloc_buffer.h: Replace "if if " with "if " in
23350 comments.
23351 * sysdeps/mips/memcpy.S: Likkewise.
23352 * sysdeps/mips/memset.S: Likewise.
23353 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23354 Likewise.
23355 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
23356 Likewise.
23357 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
23358 Likewise.
23359
23360 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23361
23362 [BZ #15261]
23363 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
23364 yesexpr and noexpr.
23365 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23366 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23367 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23368 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23369 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23370 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23371 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23372
23373 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23374
23375 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
23376 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23377 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23378 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23379 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23380 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
23381 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23382 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23383 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23384 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23385 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23386 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23387
23388 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23389
23390 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
23391 as possible for better readability of the source.
23392 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
23393 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
23394 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
23395 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
23396 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
23397 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
23398 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
23399 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
23400 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23401 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
23402 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
23403 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
23404 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
23405 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
23406 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
23407 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
23408 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
23409 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
23410 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
23411 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
23412 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
23413 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
23414 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
23415 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
23416 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
23417 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
23418 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
23419 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
23420 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
23421 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
23422 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
23423 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23424 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
23425 * localedata/locales/en_US (LC_MESSAGES): Likewise.
23426 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
23427 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
23428 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
23429 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
23430 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
23431 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
23432 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
23433 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
23434 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
23435 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
23436 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
23437 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
23438 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
23439 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
23440 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
23441 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
23442 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
23443 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
23444 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
23445 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23446 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23447 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
23448 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
23449 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23450 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
23451 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
23452 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
23453 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
23454 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
23455 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
23456 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
23457 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
23458 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
23459 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
23460 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
23461 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
23462 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
23463 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
23464 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
23465 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
23466 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23467 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
23468 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
23469 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
23470 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
23471 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
23472 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
23473 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
23474 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
23475 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23476 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
23477 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
23478 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
23479 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23480 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
23481 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
23482 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
23483 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
23484 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23485 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
23486 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
23487 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23488 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
23489 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23490 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
23491 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
23492 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
23493 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
23494 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
23495 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
23496 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
23497 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
23498 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
23499 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
23500 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
23501 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
23502 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
23503 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
23504 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23505 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
23506 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
23507 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
23508 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
23509 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
23510 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
23511 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
23512 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
23513 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
23514 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
23515 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
23516 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
23517 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
23518 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
23519 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
23520 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
23521 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
23522 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
23523 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
23524 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
23525 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
23526 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
23527 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
23528 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
23529 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
23530 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
23531 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
23532 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
23533 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
23534 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
23535 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
23536 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
23537 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23538 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
23539 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
23540 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
23541 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
23542 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
23543 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
23544 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
23545 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
23546 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23547 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
23548 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
23549 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
23550 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
23551 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
23552 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
23553 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
23554 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
23555 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
23556 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
23557 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23558 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
23559 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
23560 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
23561 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
23562 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23563 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23564 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23565 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
23566
23567 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23568
23569 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
23570 (Use first letters of yesstr and nostr correctly instead of using
23571 full words).
23572
23573 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23574
23575 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
23576 (Use first letters of yesstr and nostr correctly).
23577
23578 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23579
23580 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
23581 also check for the first characters of yesstr and nostr.
23582 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
23583 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
23584
23585 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23586
23587 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
23588 also check for Chinese characters.
23589
23590 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23591
23592 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
23593 match also for the contents of yesstr and nostr. As the first letter
23594 of yesstr and nostr is equal, checking only for the first letter
23595 is not enough.
23596
23597 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23598
23599 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
23600 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
23601
23602 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23603
23604 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
23605 of main contributor.
23606
23607 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23608
23609 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
23610 instead of using English.
23611
23612 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23613
23614 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
23615 by including the first letters of nostr and yesexpr in the regexp.
23616 Also make it more readable by using ASCII where possible.
23617
23618 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23619
23620 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
23621 the first letter of nostr in the regexp. It agrees with CLDR now.
23622 Also make it more readable by using ASCII where possible.
23623
23624 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23625
23626 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
23627 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
23628 these strings contain a U+17D6 (which somewhat looks like a colon)
23629 instead of a real colon to separate the full words for “yes”
23630 and “no” from the single letter responses.
23631
23632 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23633
23634 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
23635 it agree with CLDR (include the first letter of yesstr).
23636 Also make it more readable by using ASCII where possible.
23637
23638 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23639
23640 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
23641 and improve yesexpr and noexpr. The yesstr and nostr apparently
23642 came from CLDR. And CLDR has a bug there: these strings contain
23643 a U+0903 (which looks like a colon) instead of a real colon
23644 to separate the full words for “yes” and “no” from the single
23645 letter responses.
23646
23647 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23648
23649 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
23650 letters of the full yesstr and nostr in yesexpr and noexpr.
23651
23652 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23653
23654 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
23655 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
23656 * localedata/locales/an_ES: Make source more readable by using ASCII
23657 where possible.
23658
23659 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23660
23661 [BZ #20952]
23662 * localedata/locales/yuw_PG: New file.
23663 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
23664 * locale/iso-639.def: Add Yau (Uruwa).
23665
23666 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23667
23668 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
23669
23670 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23671
23672 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
23673 (__libc_realloc): Likewise.
23674 (_mid_memalign): Likewise.
23675 (__libc_calloc): Likewise.
23676
23677 2017-10-23 Mike FABIAN <mfabian@redhat.com>
23678
23679 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
23680 by adding the generic +1 and -0 as in all other locales.
23681 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
23682 day names and make it more readable by using ASCII where possible.
23683
23684 2017-10-24 Joseph Myers <joseph@codesourcery.com>
23685
23686 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
23687 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
23688
23689 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23690
23691 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
23692 WNOHANG in waitpid call.
23693
23694 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
23695
23696 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
23697 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
23698
23699 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
23700 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
23701 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
23702 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
23703 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
23704 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
23705 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
23706 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
23707 variables.
23708
23709 2017-10-23 Michael Collison <michael.collison@arm.com>
23710
23711 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
23712 with __builtin_sqrt.
23713 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
23714 with __builtin_sqrtf.
23715 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
23716 with __builtin_ceil.
23717 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
23718 with __builtin_ceilf.
23719 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
23720 with __builtin_floor.
23721 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
23722 with __builtin_floorf.
23723 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
23724 with __builtin_fma.
23725 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
23726 with __builtin_fmaf.
23727 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
23728 with __builtin_fmax.
23729 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
23730 with __builtin_fmaxf.
23731 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
23732 with __builtin_fmin.
23733 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
23734 with __builtin_fminf.
23735 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
23736 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
23737 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
23738 with builtin_rint and conversion to int.
23739 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
23740 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
23741 with builtin_llround.
23742 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
23743 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
23744 with builtin_rint and conversion to long int.
23745 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
23746 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
23747 with builtin_lround.
23748 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
23749 with builtin_lroundf.
23750 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
23751 statements with __builtin_nearbyint.
23752 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
23753 statements with __builtin_nearbyintf.
23754 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
23755 with __builtin_rint.
23756 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
23757 with __builtin_rintf.
23758 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
23759 with __builtin_round.
23760 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
23761 with __builtin_roundf.
23762 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
23763 with __builtin_trunc.
23764 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
23765 with __builtin_truncf.
23766 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
23767 and s_l[l]round[f].c too.
23768
23769 2017-10-23 Alan Modra <amodra@gmail.com>
23770
23771 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
23772 Adjust stack after restoring regs. Add missing LR cfi_restore.
23773
23774 2017-10-23 Alan Modra <amodra@gmail.com>
23775
23776 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
23777 Move LR save and frame setup/teardown and LR restore to
23778 immediately around memset call. Provide cfi.
23779
23780 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23781
23782 * sysdeps/i386/fpu/e_powf.S: Removed.
23783 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
23784 * sysdeps/i386/fpu/w_powf.c: Likewise.
23785 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
23786 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23787 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23788 Add e_powf-sse2.
23789 (CFLAGS-e_powf-sse2.c): New.
23790 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
23791 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
23792
23793 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23794
23795 * sysdeps/i386/fpu/e_log2f.S: Removed.
23796 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
23797 * sysdeps/i386/fpu/w_log2f.c: Likewise.
23798 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
23799 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23800 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23801 Add e_log2f-sse2.
23802 (CFLAGS-e_log2f-sse2.c): New.
23803 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
23804 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
23805
23806 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23807
23808 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23809 Add e_powf-fma.
23810 (CFLAGS-e_powf-fma.c): New.
23811 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
23812 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
23813
23814 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23815
23816 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23817 Add e_log2f-fma.
23818 (CFLAGS-e_log2f-fma.c): New.
23819 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
23820 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
23821
23822 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23823
23824 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23825 Add e_logf-fma.
23826 (CFLAGS-e_logf-fma.c): New.
23827 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
23828 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
23829
23830 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23831
23832 * sysdeps/i386/fpu/e_logf.S: Removed.
23833 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
23834 * sysdeps/i386/fpu/w_logf.c: Likewise.
23835 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
23836 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
23837 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23838 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23839 Add e_logf-sse2.
23840 (CFLAGS-e_logf-sse2.c): New.
23841 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
23842 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
23843
23844 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23845
23846 * sysdeps/i386/fpu/e_exp2f.S: Removed.
23847 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
23848 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
23849 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23850 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23851 Add e_exp2f-sse2.
23852 (CFLAGS-e_exp2f-sse2.c): New.
23853 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
23854 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
23855
23856 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23857
23858 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23859 Add e_exp2f-fma.
23860 (CFLAGS-e_exp2f-fma.c): New.
23861 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
23862 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
23863
23864 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23865
23866 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
23867 * sysdeps/i386/fpu/e_expf.S: Likewise.
23868 * sysdeps/i386/fpu/math_errf.c: Likewise.
23869 * sysdeps/i386/fpu/w_expf.c: Likewise.
23870 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
23871 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
23872 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
23873 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
23874 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23875 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23876 Remove e_expf-ia32.
23877 (CFLAGS-e_expf-sse2.c): New.
23878 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
23879 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
23880
23881 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23882
23883 * sysdeps/x86_64/fpu/e_expf.S: Removed.
23884 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
23885 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
23886 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
23887 e_expf.c.
23888 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
23889 New.
23890 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
23891 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
23892 Renamed to ...
23893 (__redirect_expf): This.
23894 (SYMBOL_NAME): Changed to expf.
23895 (__ieee754_expf): Renamed to ...
23896 (__expf): This.
23897 (__GI___expf): This.
23898 (__ieee754_expf): Add strong_alias.
23899 (__expf_finite): Likewise.
23900 (__expf): New.
23901 Include <sysdeps/ieee754/flt-32/e_expf.c>.
23902
23903 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
23904
23905 [BZ #22332]
23906 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
23907 unescaping.
23908
23909 2017-10-21 Florian Weimer <fweimer@redhat.com>
23910
23911 * posix/Makefile (tests): Add tst-glob-tilde.
23912 (tests-special): Add tst-glob-tilde-mem.out
23913 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
23914 (tst-glob-tilde-mem.out): Add mtrace check.
23915 * posix/tst-glob-tilde.c: New file.
23916
23917 2017-10-20 Joseph Myers <joseph@codesourcery.com>
23918
23919 * bits/floatn-common.h: New file.
23920 * math/Makefile (headers): Add bits/floatn-common.h.
23921 * bits/floatn.h: Include <bits/floatn-common.h>.
23922 * sysdeps/ia64/bits/floatn.h: Likewise.
23923 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
23924 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
23925 * sysdeps/powerpc/bits/floatn.h: Likewise.
23926 * sysdeps/x86/bits/floatn.h: Likewise.
23927
23928 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23929
23930 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
23931 indicates whether compiler emits an warning for alias for
23932 functions with incompatible types.
23933
23934 [BZ #22273]
23935 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
23936 the auxiliary process is terminated by a signal before calling _exit
23937 or execve.
23938
23939 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
23940
23941 [BZ #21265]
23942 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
23943 New.
23944 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
23945 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
23946 and bit_arch_XSAVEC_Usable if needed.
23947 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
23948 and bit_arch_Use_dl_runtime_resolve_opt.
23949 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
23950 Removed.
23951 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
23952 (bit_arch_Prefer_No_AVX512): Updated.
23953 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
23954 (bit_arch_XSAVEC_Usable): New.
23955 (STATE_SAVE_OFFSET): Likewise.
23956 (STATE_SAVE_MASK): Likewise.
23957 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
23958 (cpu_features): Add xsave_state_size and xsave_state_full_size.
23959 (index_arch_Use_dl_runtime_resolve_opt): Removed.
23960 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
23961 (index_arch_XSAVEC_Usable): New.
23962 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
23963 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
23964 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
23965 is enabled.
23966 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
23967 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
23968 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
23969 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
23970 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
23971 _dl_runtime_resolve_xsavec.
23972 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
23973 Removed.
23974 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
23975 instead of VEC_SIZE.
23976 (REGISTER_SAVE_BND0): Removed.
23977 (REGISTER_SAVE_BND1): Likewise.
23978 (REGISTER_SAVE_BND3): Likewise.
23979 (REGISTER_SAVE_RAX): Always defined to 0.
23980 (VMOV): Removed.
23981 (_dl_runtime_resolve_avx): Likewise.
23982 (_dl_runtime_resolve_avx_slow): Likewise.
23983 (_dl_runtime_resolve_avx_opt): Likewise.
23984 (_dl_runtime_resolve_avx512): Likewise.
23985 (_dl_runtime_resolve_avx512_opt): Likewise.
23986 (_dl_runtime_resolve_sse): Likewise.
23987 (_dl_runtime_resolve_sse_vex): Likewise.
23988 (USE_FXSAVE): New.
23989 (_dl_runtime_resolve_fxsave): Likewise.
23990 (USE_XSAVE): Likewise.
23991 (_dl_runtime_resolve_xsave): Likewise.
23992 (USE_XSAVEC): Likewise.
23993 (_dl_runtime_resolve_xsavec): Likewise.
23994 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
23995 Removed.
23996 (_dl_runtime_resolve_avx512_opt): Likewise.
23997 (_dl_runtime_resolve_avx): Likewise.
23998 (_dl_runtime_resolve_avx_opt): Likewise.
23999 (_dl_runtime_resolve_sse): Likewise.
24000 (_dl_runtime_resolve_sse_vex): Likewise.
24001 (_dl_runtime_resolve_fxsave): New.
24002 (_dl_runtime_resolve_xsave): Likewise.
24003 (_dl_runtime_resolve_xsavec): Likewise.
24004
24005 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24006
24007 [BZ #22320]
24008 CVE-2017-15670
24009 * posix/glob.c (__glob): Fix one-byte overflow.
24010
24011 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24012
24013 * malloc/malloc.c (sysdep-cancel.h): Add include.
24014
24015 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24016
24017 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24018
24019 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24020
24021 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24022 (tests): Remove $(objpfx)ga_test depdendency.
24023 * resolv/ga_test.c: Remove file.
24024
24025 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24026
24027 [BZ #18812]
24028 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24029 * localedata/locales/kab_DZ: New file.
24030
24031 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24032
24033 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24034 _dl_relocate_static_pie instead of _dl_start to compute load
24035 address in static PIE.
24036
24037 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24038
24039 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24040
24041 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24042
24043 [BZ #13605]
24044 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24045 * localedata/locales/shn_MM: New file.
24046
24047 2017-10-20 Florian Weimer <fweimer@redhat.com>
24048
24049 [BZ #22321]
24050 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24051 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24052 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24053 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24054 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24055 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24056
24057 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24058
24059 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24060
24061 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24062
24063 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24064
24065 [BZ #22322]
24066 * sysdeps/mips/bits/long-double.h: Move to ....
24067 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24068
24069 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24070
24071 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24072
24073 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24074 H.J. Lu <hongjiu.lu@intel.com>
24075
24076 [BZ #22299]
24077 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24078 GLRO(dl_platform) to NULL.
24079 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24080 (modules-names): Add tst-platformmod-1 and
24081 x86_64/tst-platformmod-2.
24082 (CFLAGS-tst-platform-1.c): New.
24083 (CFLAGS-tst-platformmod-1.c): Likewise.
24084 (CFLAGS-tst-platformmod-2.c): Likewise.
24085 (LDFLAGS-tst-platformmod-2.so): Likewise.
24086 ($(objpfx)tst-platform-1): Likewise.
24087 ($(objpfx)tst-platform-1.out): Likewise.
24088 (tst-platform-1-ENV): Likewise.
24089 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24090 * sysdeps/x86_64/tst-platform-1.c: New file.
24091 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24092 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24093
24094 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24095
24096 [BZ #13994]
24097 * locale/iso-639.def: Add Karbi.
24098 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24099 * localedata/locales/mjw_IN: New file.
24100
24101 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24102
24103 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24104 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24105 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24106 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24107 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24108 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24109 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24110 <bits/floatn.h>.
24111 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24112 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24113 * manual/math.texi (Mathematics): Document additional architecture
24114 support for _Float128.
24115 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24116 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24117 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24118 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24119 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24120 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24121 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24122 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24123 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24124 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24125 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24126 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24127 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24128 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24129 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24130
24131 2017-10-18 Renlin Li <renlin.li@arm.com>
24132
24133 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24134 _DYNAMIC symbol to calculate load address.
24135
24136 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24137
24138 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24139 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24140 summary bits.
24141 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24142 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24143
24144 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24145
24146 [BZ #16777]
24147 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24148 and improve readability by using more ASCII.
24149 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24150 and improve readability by using more ASCII.
24151
24152 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24153
24154 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24155 not all targets support atomics on bool.
24156
24157 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24158
24159 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24160 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24161 __f128.
24162 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24163 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24164 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24165 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24166 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24167 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24168
24169 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24170
24171 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24172 defines.
24173
24174 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24175
24176 [BZ #22159]
24177 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24178 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24179 (do_check_remalloced_chunk): Fix build bug.
24180 (do_check_malloc_state): Add assert that checks arena->top.
24181 (malloc_consolidate): Remove initialization.
24182 (int_mallinfo): Remove call to malloc_consolidate.
24183 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24184
24185 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24186
24187 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24188 (have_fastchunks): Remove.
24189 (clear_fastchunks): Remove.
24190 (set_fastchunks): Remove.
24191 (malloc_state): Add have_fastchunks.
24192 (malloc_init_state): Use have_fastchunks.
24193 (do_check_malloc_state): Remove incorrect invariant checks.
24194 (_int_malloc): Use have_fastchunks.
24195 (_int_free): Likewise.
24196 (malloc_consolidate): Likewise.
24197
24198 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24199
24200 * malloc/malloc.c (tcache_put): Inline.
24201 (tcache_get): Inline.
24202
24203 2017-10-17 Jordi Mallach <jordi@gnu.org>
24204
24205 Aurelien Jarno <aurelien@aurel32.net>
24206 [BZ #2522]
24207 * localedata/locales/ca_ES@valencia: New file.
24208 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24209
24210 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24211
24212 [BZ #22296]
24213 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24214 < 6.x
24215
24216 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24217
24218 * scripts/build-many-glibcs.py (Context.add_all_configs):
24219 Add arm-linux-gnueabihf multiarch extra_glibcs.
24220
24221 * sysdeps/generic/ifunc-init.h: New file.
24222 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24223
24224 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24225
24226 [BZ #22019]
24227 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24228 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24229 * stdlib/tst-strfmon_l.c: adapt test case.
24230
24231 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24232
24233 * sysdeps/generic/float128-abi.h: New file.
24234 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24235 non-__prefixed symbols to ....
24236 * math/Versions: ... here. Include <float128-abi.h>.
24237 * stdlib/Versions ... and here. Include <float128-abi.h>
24238
24239 2017-10-16 Florian Weimer <fweimer@redhat.com>
24240
24241 * version.h (VERSION): Switch to ".9000" as the development
24242 version suffix.
24243
24244 2017-10-16 Florian Weimer <fweimer@redhat.com>
24245
24246 [BZ #22050]
24247 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24248 compat_symbol_reference to access non-default version.
24249
24250 2017-10-16 Florian Weimer <fweimer@redhat.com>
24251
24252 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24253
24254 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24255
24256 * include/shlib-compat.h (compat_symbol_reference): Update
24257 comment.
24258
24259 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24260
24261 * math/Makefile (test-types): Add
24262 $(type-float128-$(float128-alias-fcts)).
24263 * math/test-float128.h (TYPE_STR): Define conditional on
24264 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24265 (ULP_IDX): Likewise.
24266 (ULP_I_IDX): Likewise.
24267
24268 * stdlib/strtold.c: Include <bits/floatn.h>
24269 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24270 and later undefine as macro. Define as weak alias if
24271 [!USE_WIDE_CHAR].
24272 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24273 and later undefine as macro. Define as weak alias if
24274 [USE_WIDE_CHAR].
24275 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24276 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24277 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24278 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24279 Define and later undefine as macro. Define as weak alias if
24280 [USE_WIDE_CHAR].
24281 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24282 <bits/floatn.h>.
24283 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24284 Define and later undefine as macro. Define as weak alias if
24285 [!USE_WIDE_CHAR].
24286 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24287 Define and later undefine as macro. Define as weak alias if
24288 [USE_WIDE_CHAR].
24289
24290 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24291
24292 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24293 record_verbose messages.
24294
24295 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24296
24297 [BZ #22052]
24298 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
24299 to silence -O3 -Wall warning with GCC 7.
24300
24301 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
24302
24303 * Makeconfig (+link-static-before-libc): Use the first of
24304 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24305 * gmon/Makefile (tests): Add tst-gmon-static.
24306 (tests-static): Likewise.
24307 (CFLAGS-tst-gmon-static.c): New.
24308 (CRT-tst-gmon-static): Likewise.
24309 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24310 (tst-gmon-static-ENV): Likewise.
24311 (tests-special): Likewise.
24312 ($(objpfx)tst-gmon-static.out): Likewise.
24313 (clean-tst-gmon-static-data): Likewise.
24314 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24315 * gmon/tst-gmon-static-gprof.sh: New file.
24316 * gmon/tst-gmon-static.c: Likewise.
24317
24318 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24319
24320 [BZ #22295]
24321 * locale/programs/linereader.c (get_string): Don't warn on
24322 non-symbolic character.
24323
24324 [BZ #22294]
24325 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
24326 int_curr_symbol.
24327
24328 [BZ #22292]
24329 * locale/programs/record-status.h: New file
24330 * locale/programs/locale.c: Add comment.
24331 * locale/programs/charmap-dir.c: Don't include error.h.
24332 (charmap_opendir): Use record_error.
24333 * locale/programs/charmap.c: Don't include error.h.
24334 (charmap_read): Use record_error, and record_warning.
24335 (parse_charmap): Likewise.
24336 * locale/programs/ld-address.c: Don't include error.h.
24337 (address_finish): Use record_error, and record_warning.
24338 * locale/programs/ld-collate.c: Don't include error.h.
24339 (collate_finish): Use record_error, and record_error_at_line.
24340 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
24341 (ctype_class_new): Likewise.
24342 (ctype_map_new): Likewise.
24343 (set_one_default): Likewise.
24344 (set_class_defaults): Likewise.
24345 (translit_flatten): Likewise.
24346 (allocate_arrays): Use record_error, and record_verbose.
24347 * locale/programs/ld-identification.c: Don't include error.h.
24348 (indentation_finish): Use record_error and record_warning.
24349 * locale/programs/ld-measurement.c: Don't include error.h.
24350 (measurement_finish): Use record_error.
24351 * locale/programs/ld-messages.c
24352 (message_finish): Likewise.
24353 * locale/programs/ld-monetary.c
24354 (monetary_finish): Likewise.
24355 * locale/programs/ld-name.c (name_finish): Use record_error
24356 and record_warning.
24357 * locale/programs/ld-numeric.c
24358 (numeric_finish): Use record_error.
24359 * locale/programs/ld-paper.c: Don't include error.h.
24360 (paper_finish): Use record_error.
24361 * locale/programs/ld-telephone.c: Don't include error.h.
24362 (telephone_finish): Use record_error.
24363 * locale/programs/ld-time.c (time_finish): Likewise.
24364 * locale/programs/linereader.h (lr_error): Make inline func.
24365 * locale/programs/localedef.c: Define recorded_warning_count,
24366 and recorded_error_count.
24367 (main): Use record_error. Use recorded_error_count and
24368 recorded_warning_count to issue correct error returns.
24369 (add_to_readlist): Use record_error.
24370 (find_locale): Likewise.
24371 (load_locale): Likewise.
24372 * locale/programs/localedef.h: Remove be_quiet
24373 and WITH_CUR_LOCALE.
24374 * locale/programs/locarchive.c (compare_from_file): Use
24375 record_error.
24376 * locale/programs/locfile.c (write_locale_data): Use
24377 record_error.
24378 * locale/programs/repertoire.c: Dont include error.h.
24379 (repertoire_complain): Use record_error.
24380 * localedata/tst-fmon.sh: Expect failures from localedef.
24381 * localedata/tst-locale.sh: Likewise.
24382 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
24383
24384 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
24385 (REPORTS): Likewise.
24386 (check): Likewise.
24387 (i18n): Rename to...
24388 (i18n_ctype): ...this.
24389 (i18n-report): Rename to...
24390 (i18n_ctype-report): ...this.
24391 * localedata/locales/i18n_ctype: Regenerate.
24392 * localedata/locales/i18n: copy i18n_ctype.
24393
24394 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24395
24396 * stdlib/strfroml.c: Include <bits/floatn.h>.
24397 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
24398 Define before include of <stdlib.h> and undefine afterwards, then
24399 define as weak alias.
24400
24401 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
24402 Undefine and restore default definition. Use
24403 libm_alias_ldouble_other.
24404
24405 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
24406
24407 [BZ #22153]
24408 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
24409 in coredumps.
24410
24411 2017-10-13 James Clarke <jrtc27@jrtc27.com>
24412
24413 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24414 Assign sym_map to be map for local symbols, as TLS relocations
24415 use sym_map to determine whether the symbol is defined and to
24416 extract the TLS information.
24417 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24418 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24419
24420 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24421
24422 [BZ #22189]
24423 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
24424 (math_force_eval): Add powerpc version.
24425
24426 [BZ #22142]
24427 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
24428 -DBL_MAX.
24429 (do_test): Likewise.
24430 * stdio-common/tst-printf.sh: Likewise.
24431 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
24432 ifdef clause in order to set the carry bit right. Replace r0 by
24433 0 without changing the behavior.
24434
24435 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24436
24437 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
24438 <libm-alias-ldouble.h>.
24439 (fabsl): Define using libm_alias_ldouble.
24440 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
24441 <libm-alias-ldouble.h>.
24442 (fabsl): Define using libm_alias_ldouble.
24443
24444 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
24445 Remove conditional code.
24446
24447 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
24448 Rename to __clog10_internal_l.
24449 (__clog10_internal_l): Define aliases using
24450 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
24451 with __clog10.
24452
24453 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24454
24455 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
24456 * benchtests/sincosf-inputs: New file.
24457 * benchtests/cosf-inputs: New file.
24458 * benchtests/sinf-inputs: New file.
24459
24460 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24461
24462 * posix/tst-spawn.c (do_test): Wait for both children.
24463
24464 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
24465
24466 [BZ #22284]
24467 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
24468 tests-pie): Add tst-gmon-pie.
24469 (CFLAGS-tst-gmon-pie.c): New.
24470 (CRT-tst-gmon-pie): Likewise.
24471 (tst-gmon-pie-ENV): Likewise.
24472 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
24473 ($(objpfx)tst-gmon-pie.out): Likewise.
24474 (clean-tst-gmon-pie-data): Likewise.
24475 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
24476 * gmon/gmon.c [PIC]: Include <link.h>.
24477 [PIC] (callback): New function.
24478 (write_hist): Add an argument for load address. Subtract load
24479 address from PCs.
24480 (write_call_graph): Likewise.
24481 (write_gmon): Call __dl_iterate_phdr to get load address, pass
24482 it to write_hist and write_call_graph.
24483 * gmon/tst-gmon-pie.c: New file.
24484
24485 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24486
24487 * math/Makefile (test-types-basic): New variable.
24488 (test-types): Likewise.
24489 (libm-test-support): Use $(test-types) instead of $(types).
24490 (libm-tests-base-normal): Likewise.
24491 (libm-tests-base-finite): Likewise.
24492 (libm-tests-base-inline): Likewise.
24493 (generated): Likewise.
24494 ($(objpfx)libm-test-support-$(t).c): Likewise.
24495 (libm-tests-for-type iterator): Likewise.
24496 (libm-test-support iterator): Likewise.
24497 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
24498 (ulp_idx): Use ULP_IDX.
24499 * math/test-ldouble.h: Include <float.h>.
24500 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
24501 (ULP_IDX): New macro.
24502 (ULP_I_IDX): Likewise.
24503 * math/test-double.h (ULP_IDX): Likewise.
24504 (ULP_I_IDX): Likewise.
24505 * math/test-float.h (ULP_IDX): Likewise.
24506 (ULP_I_IDX): Likewise.
24507 * math/test-float128.h (ULP_IDX): Likewise.
24508 (ULP_I_IDX): Likewise.
24509
24510 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24511
24512 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
24513 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24514 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24515 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
24516 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24517 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
24518 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
24519 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24520 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24521 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24522 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
24523 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24524 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24525 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24526 (SINGLE_THREAD_BY_GLOBAL): Define.
24527 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24528 Likewise.
24529 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24530 Likewise.
24531 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24532 Likewise.
24533 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24534 Likewise.
24535 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
24536 (SINGLE_THREAD_BY_GLOBAL): Likewise.
24537 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24538 Likewise.
24539
24540 2017-10-11 Andreas Schwab <schwab@suse.de>
24541
24542 * nis/Makefile (aux): Remove.
24543 * nscd/Makefile (aux): Add nscd_hash.
24544 (nscd-modules): Likewise.
24545 ($(objpfx)nscd): Don't depend on libnsl.
24546 * nscd/nscd_hash.c: New file.
24547 * nscd/nscd_hash.h: Likewise.
24548 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
24549 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
24550 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
24551 instead of <nis/rpcsvc/nis.h>.
24552 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
24553
24554 2017-10-11 Florian Weimer <fweimer@redhat.com>
24555
24556 [BZ #22078]
24557 Avoid large NSS buffers with many addresses, aliases.
24558 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
24559 using dynarrays and struct alloc_buffer.
24560 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
24561 (tst-nss-files-hosts-multi): Link with -ldl.
24562 * nss/tst-nss-files-hosts-multi.c: New file.
24563
24564 2017-10-11 Florian Weimer <fweimer@redhat.com>
24565
24566 [BZ #18023]
24567 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
24568 scratch_buffer. Eliminate gotos.
24569
24570 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24571
24572 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
24573 libm_alias_ldouble_other.
24574 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
24575 undefine and redefine.
24576 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
24577 (exp10l): Do not define here.
24578 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
24579 (weak_alias): Undefine and redefine.
24580 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
24581 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
24582 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
24583 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
24584
24585 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
24586 [!__fma] (fma): Define using libm_alias_double.
24587 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
24588 [!__fmaf] (fmaf): Define using libm_alias_float.
24589 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
24590 (fmal): Define using libm_alias_ldouble.
24591
24592 2017-10-10 Joseph Myers <joseph@codesourcery.com>
24593
24594 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
24595 New macro.
24596 (libm_alias_double_other): Likewise.
24597 (libm_alias_double_r): Use libm_alias_double_other_r.
24598 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
24599 New macro.
24600 (libm_alias_float_other): Likewise.
24601 (libm_alias_float_r): Use libm_alias_float_other_r.
24602 * sysdeps/generic/libm-alias-float128.h
24603 (libm_alias_float128_other_r): New macro.
24604 (libm_alias_float128_other): Likewise.
24605 (libm_alias_float128_r): Use libm_alias_float128_other_r.
24606 * sysdeps/generic/libm-alias-ldouble.h
24607 (libm_alias_ldouble_other_r): New macro.
24608 (libm_alias_ldouble_other): Likewise.
24609 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24610 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24611 (libm_alias_double_other_r): New macro.
24612 (libm_alias_double_other): Likewise.
24613 (libm_alias_double_r): Use libm_alias_double_other_r.
24614 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24615 (libm_alias_ldouble_other_r): New macro.
24616 (libm_alias_ldouble_other): Likewise.
24617 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24618 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
24619 [!USE_AS_COMPAT]: Use libm_alias_double_other.
24620 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
24621 [!USE_AS_COMPAT]: Use libm_alias_float_other.
24622 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
24623 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
24624 * math/w_exp2f.c: Use libm_alias_float_other.
24625 * math/w_expf.c: Likewise.
24626 * math/w_log2f.c: Likewise.
24627 * math/w_logf.c: Likewise.
24628 * math/w_powf.c: Likewise.
24629 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
24630 [!__exp2f]: Use libm_alias_float_other.
24631 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
24632 [!__expf]: Use libm_alias_float_other.
24633 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
24634 [!__log2f]: Use libm_alias_float_other.
24635 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
24636 [!__logf]: Use libm_alias_float_other.
24637 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
24638 [!__powf]: Use libm_alias_float_other.
24639
24640 2017-10-10 Florian Weimer <fweimer@redhat.com>
24641
24642 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
24643 function.
24644 (_nss_files_gethostbyname3_r): Call it.
24645
24646 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24647
24648 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
24649 error. Remove default definition of declare_mgen_alias.
24650 [!declare_mgen_alias_r]: Likewise.
24651 * sysdeps/generic/math-type-macros-double.h
24652 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
24653 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
24654 (declare_mgen_alias_r): Likewise.
24655 * sysdeps/generic/math-type-macros-float128.h
24656 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24657 * sysdeps/generic/math-type-macros-ldouble.h
24658 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24659 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
24660 macro.
24661 (declare_mgen_alias_r_s): Likewise.
24662 (declare_mgen_alias_r): Likewise.
24663 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
24664 (lgamma_r): Define using libm_alias_double_r.
24665 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
24666 (lgammaf_r): Define using libm_alias_float_r.
24667 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
24668 (lgammal_r): Define using libm_alias_ldouble_r.
24669 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
24670 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
24671
24672 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24673
24674 * lib/glob.c (__glob_pattern_type): Remove now-spurious
24675 extern declaration.
24676
24677 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24678
24679 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
24680
24681 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
24682
24683 [BZ #21326]
24684 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
24685 [__cplusplus >= 201103] (__USE_ISOC99): Define.
24686 * math/Makefile (test-math-cxx11): New test.
24687 * math/test-math-cxx11.cc: New file.
24688
24689 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
24690
24691 * login/openpty.c (openpty): Close slave pty file descriptor on error.
24692
24693 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
24694 call to allocate the slave pty file descriptor.
24695
24696 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24697
24698 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
24699 [!__fma] (fma): Define using libm_alias_double.
24700 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
24701 [!__fma] (fma): Define using libm_alias_double.
24702
24703 * sysdeps/ieee754/float128/float128_private.h: Include
24704 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
24705 (libm_alias_ldouble_r): Undefine and redefine.
24706 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
24707 <libm-alias-ldouble.h>.
24708 (asinhl): Define using libm_alias_ldouble.
24709 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
24710 <libm-alias-ldouble.h>.
24711 (atanl): Define using libm_alias_ldouble.
24712 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
24713 <libm-alias-ldouble.h>.
24714 (cbrtl): Define using libm_alias_ldouble.
24715 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
24716 <libm-alias-ldouble.h>.
24717 (ceill): Define using libm_alias_ldouble.
24718 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
24719 <libm-alias-ldouble.h>.
24720 (copysignl): Define using libm_alias_ldouble.
24721 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
24722 <libm-alias-ldouble.h>.
24723 (cosl): Define using libm_alias_ldouble.
24724 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
24725 <libm-alias-ldouble.h>.
24726 (erfl): Define using libm_alias_ldouble.
24727 (erfcl): Likewise.
24728 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
24729 <libm-alias-ldouble.h>.
24730 (expm1l): Define using libm_alias_ldouble.
24731 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
24732 <libm-alias-ldouble.h>.
24733 (fabsl): Define using libm_alias_ldouble.
24734 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
24735 <libm-alias-ldouble.h>.
24736 (floorl): Define using libm_alias_ldouble.
24737 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
24738 <libm-alias-ldouble.h>.
24739 (fmal): Define using libm_alias_ldouble.
24740 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
24741 <libm-alias-ldouble.h>.
24742 (frexpl): Define using libm_alias_ldouble.
24743 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
24744 libm_alias_ldouble.
24745 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
24746 <libm-alias-ldouble.h>.
24747 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
24748 libm_alias_ldouble.
24749 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
24750 <libm-alias-ldouble.h>.
24751 (getpayloadl): Define using libm_alias_ldouble.
24752 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
24753 <libm-alias-ldouble.h>.
24754 (llrintl): Define using libm_alias_ldouble.
24755 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
24756 <libm-alias-ldouble.h>.
24757 (llroundl): Define using libm_alias_ldouble.
24758 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
24759 <libm-alias-ldouble.h>.
24760 (logbl): Define using libm_alias_ldouble.
24761 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
24762 <libm-alias-ldouble.h>.
24763 (lrintl): Define using libm_alias_ldouble.
24764 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
24765 <libm-alias-ldouble.h>.
24766 (lroundl): Define using libm_alias_ldouble.
24767 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
24768 <libm-alias-ldouble.h>.
24769 (modfl): Define using libm_alias_ldouble.
24770 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
24771 <libm-alias-ldouble.h>.
24772 (nearbyintl): Define using libm_alias_ldouble.
24773 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
24774 <libm-alias-ldouble.h>.
24775 (nextafterl): Define using libm_alias_ldouble.
24776 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
24777 <libm-alias-ldouble.h>.
24778 (nextupl): Define using libm_alias_ldouble.
24779 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
24780 <libm-alias-ldouble.h>.
24781 (remquol): Define using libm_alias_ldouble.
24782 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
24783 <libm-alias-ldouble.h>.
24784 (rintl): Define using libm_alias_ldouble.
24785 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
24786 <libm-alias-ldouble.h>.
24787 (roundevenl): Define using libm_alias_ldouble.
24788 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
24789 <libm-alias-ldouble.h>.
24790 (roundl): Define using libm_alias_ldouble.
24791 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
24792 using libm_alias_ldouble.
24793 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
24794 <libm-alias-ldouble.h>.
24795 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
24796 Define using libm_alias_ldouble.
24797 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
24798 <libm-alias-ldouble.h>.
24799 (sincosl): Define using libm_alias_ldouble.
24800 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
24801 <libm-alias-ldouble.h>.
24802 (sinl): Define using libm_alias_ldouble.
24803 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
24804 <libm-alias-ldouble.h>.
24805 (tanhl): Define using libm_alias_ldouble.
24806 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
24807 <libm-alias-ldouble.h>.
24808 (tanl): Define using libm_alias_ldouble.
24809 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
24810 <libm-alias-ldouble.h>.
24811 (totalorderl): Define using libm_alias_ldouble.
24812 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
24813 <libm-alias-ldouble.h>.
24814 (totalordermagl): Define using libm_alias_ldouble.
24815 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
24816 <libm-alias-ldouble.h>.
24817 (truncl): Define using libm_alias_ldouble.
24818 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
24819 libm_alias_ldouble.
24820 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
24821 libm_alias_ldouble.
24822 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
24823 <libm-alias-ldouble.h>.
24824 (weak_alias): Do not undefine and redefine.
24825 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24826 (copysignl): Define with long_double_symbol only if [IS_IN
24827 (libc)].
24828 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
24829 <libm-alias-ldouble.h>.
24830 (weak_alias): Do not undefine and redefine.
24831 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24832 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
24833 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
24834 <libm-alias-ldouble.h>.
24835 (weak_alias): Do not undefine and redefine.
24836 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24837 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
24838 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
24839 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
24840 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
24841 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
24842 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
24843 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
24844 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
24845 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
24846 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
24847 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
24848 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
24849 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
24850 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
24851 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
24852 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
24853 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
24854 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
24855 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
24856 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
24857 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
24858 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
24859 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
24860 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
24861 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
24862
24863 2017-10-06 Carlos O'Donell <carlos@redhat.com>
24864
24865 [BZ #22111]
24866 * malloc/malloc.c (tcache_shutting_down): Use bool type.
24867 (tcache_thread_freeres): Set tcache_shutting_down before
24868 freeing the tcache.
24869 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
24870 * malloc/tst-malloc-tcache-leak.c: New file.
24871
24872 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24873
24874 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
24875 back to powerpc32 file.
24876 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
24877 (memrchr): Add __memrchr_power8 to ifunc list.
24878 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
24879 extra bytes for unaligned inputs.
24880
24881 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24882
24883 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
24884 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
24885 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
24886 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24887 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24888
24889 2017-10-05 Joseph Myers <joseph@codesourcery.com>
24890
24891 * sysdeps/arm/libm-test-ulps: Update.
24892
24893 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
24894 <libm-alias-ldouble.h>.
24895 (asinhl): Define using libm_alias_ldouble.
24896 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
24897 <libm-alias-ldouble.h>.
24898 (cbrtl): Define using libm_alias_ldouble.
24899 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
24900 <libm-alias-ldouble.h>.
24901 (copysignl): Define using libm_alias_ldouble.
24902 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
24903 <libm-alias-ldouble.h>.
24904 (cosl): Define using libm_alias_ldouble.
24905 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
24906 <libm-alias-ldouble.h>.
24907 (erfl): Define using libm_alias_ldouble.
24908 (erfcl): Likewise.
24909 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
24910 <libm-alias-ldouble.h>.
24911 (fmal): Define using libm_alias_ldouble.
24912 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
24913 <libm-alias-ldouble.h>.
24914 (frexpl): Define using libm_alias_ldouble.
24915 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
24916 libm_alias_ldouble.
24917 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
24918 <libm-alias-ldouble.h>.
24919 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
24920 libm_alias_ldouble.
24921 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
24922 <libm-alias-ldouble.h>.
24923 (getpayloadl): Define using libm_alias_ldouble.
24924 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
24925 <libm-alias-ldouble.h>.
24926 (llrintl): Define using libm_alias_ldouble.
24927 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
24928 <libm-alias-ldouble.h>.
24929 (llroundl): Define using libm_alias_ldouble.
24930 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
24931 <libm-alias-ldouble.h>.
24932 (lrintl): Define using libm_alias_ldouble.
24933 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
24934 <libm-alias-ldouble.h>.
24935 (lroundl): Define using libm_alias_ldouble.
24936 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
24937 <libm-alias-ldouble.h>.
24938 (modfl): Define using libm_alias_ldouble.
24939 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
24940 <libm-alias-ldouble.h>.
24941 (nextupl): Define using libm_alias_ldouble.
24942 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
24943 <libm-alias-ldouble.h>.
24944 (remquol): Define using libm_alias_ldouble.
24945 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
24946 <libm-alias-ldouble.h>.
24947 (roundevenl): Define using libm_alias_ldouble.
24948 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
24949 <libm-alias-ldouble.h>.
24950 (roundl): Define using libm_alias_ldouble.
24951 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
24952 using libm_alias_ldouble.
24953 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
24954 <libm-alias-ldouble.h>.
24955 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
24956 <libm-alias-ldouble.h>.
24957 (setpayloadsigl): Define using libm_alias_ldouble.
24958 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
24959 <libm-alias-ldouble.h>.
24960 (sincosl): Define using libm_alias_ldouble.
24961 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
24962 <libm-alias-ldouble.h>.
24963 (sinl): Define using libm_alias_ldouble.
24964 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
24965 <libm-alias-ldouble.h>.
24966 (tanhl): Define using libm_alias_ldouble.
24967 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
24968 <libm-alias-ldouble.h>.
24969 (tanl): Define using libm_alias_ldouble.
24970 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
24971 <libm-alias-ldouble.h>.
24972 (totalorderl): Define using libm_alias_ldouble.
24973 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
24974 <libm-alias-ldouble.h>.
24975 (totalordermagl): Define using libm_alias_ldouble.
24976 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
24977 libm_alias_ldouble.
24978 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
24979 libm_alias_ldouble.
24980
24981 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
24982
24983 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
24984 memmove_falkor.
24985 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
24986 (__libc_ifunc_impl_list): Likewise.
24987 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
24988 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
24989
24990 * benchtests/bench-memmove-walk.c: New file.
24991 * benchtests/Makefile (string-benchset): Add it.
24992
24993 * benchtests/bench-memset-walk.c: New file.
24994 * benchtests/Makefile (string-benchset): Add it.
24995
24996 * benchtests/bench-memcpy-walk.c: New file.
24997 * benchtests/Makefile (string-benchset): Add it.
24998
24999 2017-10-05 Florian Weimer <fweimer@redhat.com>
25000
25001 nscd: Eliminate compilation time dependency in the build output.
25002 * nscd/nscd_stat.c (STATDATA_VERSION)
25003 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25004 (STATDATA_VERSION_FULL): New macro definitions.
25005 (compilation): Remove.
25006 (struct statdata): Adjust version member.
25007 (send_stats): Set version from STATDATA_VERSION_FULL.
25008 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25009
25010 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25011
25012 * configure.ac (--enable-add-ons): Remove option.
25013 (machine): Do not mention add-ons in comment.
25014 (LIBC_PRECONFIGURE): Likewise.
25015 (add_ons): Remove variable and sanity checks and logic to locate
25016 add-ons.
25017 (add_ons_automatic): Remove variable.
25018 (configured_add_ons): Likewise.
25019 (add_ons_sfx): Likewise.
25020 (add_ons_pfx): Likewise.
25021 (add_on_subdirs): Likewise.
25022 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25023 consideration of add-ons in Implies handling.
25024 (sysdeps_add_ons): Likewise.
25025 * configure: Regenerated.
25026 * libidn/configure.ac: Remove.
25027 * libidn/configure: Likewise.
25028 * sysdeps/unix/inet/configure.ac: New file.
25029 * sysdeps/unix/inet/configure: New generated file.
25030 * sysdeps/unix/inet/Subdirs: Add libidn.
25031 * Makeconfig (sysdeps-srcdirs): Remove variable.
25032 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25033 ($(common-objpfx)config.status): Do not depend on add-on files.
25034 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25035 comment.
25036 (all-subdirs): Do not include $(add-on-subdirs).
25037 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25038 * config.make.in (add-ons): Remove variable.
25039 (add-on-subdirs): Likewise.
25040 (sysdeps-add-ons): Likewise.
25041 * manual/Makefile (add-chapters): Remove.
25042 ($(objpfx)texis): Do not depend on $(add-chapters).
25043 (nonexamples): Do not handle $(add-chapters).
25044 (examples): Do not handle $(add-ons).
25045 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25046 libc-texinfo.sh.
25047 * manual/install.texi (Installation): Do not mention add-ons.
25048 (--enable-add-ons): Do not document configure option.
25049 * INSTALL: Regenerated.
25050 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25051 * manual/maint.texi (Hierarchy Conventions): Do not mention
25052 add-ons.
25053 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25054 --enable-add-ons.
25055 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25056 add-ons.
25057 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25058 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25059
25060 2017-10-05 Andreas Schwab <schwab@suse.de>
25061
25062 [BZ #15142]
25063 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25064 (_IO_flush_all_lockp): Always lock list_all_lock.
25065 (_IO_flush_all_linebuffered): Likewise.
25066 (_IO_unbuffer_all): Likewise.
25067
25068 2017-10-05 Florian Weimer <fweimer@redhat.com>
25069
25070 [BZ #15436]
25071 Do not flush stdio streams on abort.
25072 * stdlib/abort.c (fflush): Remove macro definition.
25073 (abort): Remove stages related to stdio flushing.
25074
25075 2017-10-05 Florian Weimer <fweimer@redhat.com>
25076
25077 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25078
25079 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25080
25081 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25082
25083 2017-10-05 Florian Weimer <fweimer@redhat.com>
25084
25085 * support/support_format_hostent.c (support_format_hostent): Add
25086 more error information for NETDB_INTERNAL.
25087
25088 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25089
25090 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25091 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25092 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25093 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25094 AC_DEFINE if multi-arch is enabled.
25095 * sysdeps/i386/configure: Regenerated.
25096
25097 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25098
25099 * Makeconfig (+link-static-before-libc): Use
25100 $(DEFAULT-LDFLAGS-$(@F)).
25101 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25102 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25103 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25104
25105 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25106
25107 * elf/Makefile (tests): Add tst-main1.
25108 (modules-names): Add tst-main1mod.
25109 ($(objpfx)tst-main1): New.
25110 (CRT-tst-main1): Likewise.
25111 (LDFLAGS-tst-main1): Likewise.
25112 (LDLIBS-tst-main1): Likewise.
25113 (tst-main1mod.so-no-z-defs): Likewise.
25114 * elf/tst-main1.c: New file.
25115 * elf/tst-main1mod.c: Likewise.
25116
25117 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25118
25119 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25120
25121 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25122
25123 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25124 (fma): Define using libm_alias_double.
25125 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25126 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25127 <math_ldbl_opt.h>.
25128 (fmal): Do not define as compat symbol here.
25129 * sysdeps/alpha/fpu/s_fma.c: New file.
25130
25131 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25132
25133 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25134
25135 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25136
25137 [BZ #22229]
25138 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25139 <math_ldbl_opt.h>
25140 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25141 and libc.
25142 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25143 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25144 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25145 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25146 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25147 Include <math_ldbl_opt.h>
25148 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25149 and libc.
25150 (compat_symbol): Undefine and redefine.
25151 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25152 <math_ldbl_opt.h>
25153 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25154 (compat_symbol): Undefine and redefine.
25155 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25156 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25157 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25158 GLIBC_2_1 for libm.
25159 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25160 GLIBC_2.0 copysignl symbol.
25161 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25162 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25163
25164 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25165
25166 2017-10-04 Florian Weimer <fweimer@redhat.com>
25167
25168 * scripts/check-local-headers.sh: Ignore nspr4 header file
25169 directory in addition to nspr.
25170
25171 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25172
25173 [BZ #17956]
25174 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25175 * configure: Regenerate.
25176 * crypt/Makefile (nss-cpp-flags): New variable.
25177 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25178 (CPPFLAGS-md5-crypt.c): Use it.
25179 * scripts/check-local-headers.sh: Ignore nspr header file
25180 directory.
25181
25182 2017-10-04 Andreas Schwab <schwab@suse.de>
25183
25184 * nis/Makefile (services): Remove compat.
25185 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25186 ($(objpfx)libnss_compat.so): Remove rule.
25187 * nis/Versions (libnss_compat): Remove.
25188 * nss/Makefile (services): Add compat.
25189 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25190 * nss/Versions (libnss_compat): Define.
25191 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25192 Don't include <rpc/types.h>. Replace bool_t by bool.
25193 * nss/nss_compat/compat-initgroups.c: Likewise.
25194 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25195 instead of <rpcsrv/ypclnt.h>.
25196 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25197 yp_get_default_domain.
25198 * nss/nss_compat/compat-pwd.c: Likewise.
25199 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25200 yp_get_default_domain.
25201 * nss/nss_compat/nisdomain.c: New file.
25202 * nss/nss_compat/nisdomain.h: Likewise.
25203
25204 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25205
25206 [BZ #22244]
25207 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25208 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25209
25210 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25211
25212 [BZ #22243]
25213 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25214 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25215
25216 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25217
25218 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25219 "movl main@GOTOFF(%ebx), %eax".
25220
25221 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25222
25223 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25224 allow undefined _DYNAMIC in PIE libc.a.
25225 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25226 Likewse.
25227
25228 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25229
25230 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25231 check _DYNAMIC.
25232
25233 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25234
25235 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25236 check _DYNAMIC.
25237
25238 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25239
25240 * math/test-math-iscanonical.cc (error): Replace bool with int.
25241
25242 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25243
25244 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25245 (modf): Define using libm_alias_double, only if [!__modf].
25246 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25247 <libm-alias-double.h>.
25248 (modf): Define using libm_alias_double, only if [!__modf].
25249 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25250 compat symbol here.
25251 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25252 (weak_alias): Do not undefine and redefine.
25253 (strong_alias): Likewise.
25254 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25255 (weak_alias): Likewise.
25256 (strong_alias): Likewise.
25257
25258 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25259 (logb): Define using libm_alias_double, only if [!__logb].
25260 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25261 <libm-alias-double.h>.
25262 (logb): Define using libm_alias_double, only if [!__logb].
25263 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25264 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25265 (weak_alias): Do not undefine and redefine.
25266 (strong_alias): Likewise.
25267 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25268 (weak_alias): Likewise.
25269 (strong_alias): Likewise.
25270
25271 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25272
25273 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25274 Check SHARED instead PIC.
25275
25276 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25277
25278 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25279 [!__fmaf] (fmaf): Define using libm_alias_float.
25280
25281 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25282 (frexp): Define using libm_alias_double.
25283 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25284 <libm-alias-double.h>.
25285 (frexp): Define using libm_alias_double.
25286 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25287 compat symbol here.
25288
25289 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25290
25291 [BZ #22235]
25292 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25293 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25294 (CFLAGS-test-math-iscanonical.cc): New variable.
25295 * math/test-math-iscanonical.cc: New file.
25296 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
25297 Provide a C++ implementation based on function overloading,
25298 rather than using __MATH_TG, which uses C-only builtins.
25299 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
25300 Likewise.
25301 * sysdeps/powerpc/powerpc64le/Makefile
25302 (CFLAGS-test-math-iscanonical.cc): New variable.
25303
25304 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25305
25306 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25307 (ceil): Define using libm_alias_double.
25308 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25309 (floor): Define using libm_alias_double.
25310 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25311 <libm-alias-double.h>.
25312 (llround): Define using libm_alias_double.
25313 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25314 <libm-alias-double.h>.
25315 (lround): Define using libm_alias_double.
25316 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25317 <libm-alias-double.h>.
25318 (nearbyint): Define using libm_alias_double.
25319 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25320 <libm-alias-double.h>.
25321 (remquo): Define using libm_alias_double.
25322 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
25323 (rint): Define using libm_alias_double.
25324 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
25325 (round): Define using libm_alias_double.
25326 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
25327 (trunc): Define using libm_alias_double.
25328 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
25329 <libm-alias-double.h>.
25330 (ceil): Define using libm_alias_double.
25331 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
25332 <libm-alias-double.h>.
25333 (floor): Define using libm_alias_double.
25334 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
25335 <libm-alias-double.h>.
25336 (llround): Define using libm_alias_double.
25337 [_LP64] (lround): Likewise.
25338 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
25339 <libm-alias-double.h>.
25340 [!_LP64] (lround): Define using libm_alias_double.
25341 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
25342 <libm-alias-double.h>.
25343 (nearbyint): Define using libm_alias_double.
25344 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
25345 <libm-alias-double.h>.
25346 (remquo): Define using libm_alias_double.
25347 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
25348 <libm-alias-double.h>.
25349 (rint): Define using libm_alias_double.
25350 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
25351 <libm-alias-double.h>.
25352 (round): Define using libm_alias_double.
25353 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
25354 <libm-alias-double.h>.
25355 (trunc): Define using libm_alias_double.
25356 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
25357 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
25358 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
25359 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
25360 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
25361 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
25362 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
25363 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
25364 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
25365
25366 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25367
25368 * math/w_remainder.c: New file.
25369 * math/w_remainderf.c: New file.
25370 * math/w_remainderl.c: New file.
25371
25372 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25373
25374 * elf/rtld.c (BOOTSTRAP_MAP): New.
25375 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
25376 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25377 Likewise.
25378 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25379 Likewise.
25380 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25381 Likewise.
25382
25383 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25384
25385 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
25386 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
25387 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
25388 rtld_hidden_data_ver): Define to empty.
25389 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
25390 __assert_perror_fail): Likewise.
25391 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25392 (__rewinddir): Likewise.
25393 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25394 (__profile_frequency): Likewise.
25395 * include/setjmp.h (__sigsetjmp): Likewise.
25396 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
25397 __libc_sigaction): Likewise.
25398 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
25399 not set hidden attribute.
25400 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
25401 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
25402 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
25403 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
25404 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
25405 __fxstatat64): Likewise.
25406 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25407 (__uname): Likewise.
25408 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25409 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
25410 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
25411 (NO_RTLD_HIDDEN): Set.
25412 * sysdeps/mach/hurd/configure: Refresh.
25413 * config.h.in: Refresh.
25414
25415 2017-10-02 Joseph Myers <joseph@codesourcery.com>
25416
25417 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
25418 (atan): Define using libm_alias_double.
25419 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
25420 (tan): Define using libm_alias_double.
25421 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
25422 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
25423
25424 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
25425 define as weak alias of __atan. Do not define any aliases if
25426 [__atan].
25427 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
25428 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
25429 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
25430 as weak alias of __tan. Do not define any aliases if [__tan].
25431 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
25432 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
25433 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
25434 __atan.
25435 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
25436 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
25437 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
25438 and define as weak alias of __atan.
25439 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
25440 __atan.
25441 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
25442 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
25443 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
25444 define as weak alias of __tan.
25445
25446 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25447
25448 * math/w_lgamma.c: New file.
25449 * math/w_lgammaf.c: New file.
25450 * math/w_lgammal.c: New file.
25451
25452 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25453
25454 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
25455 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
25456 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
25457 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
25458 * sysdeps/ieee754/flt-32/w_logf.c: New file.
25459 * sysdeps/ieee754/flt-32/w_powf.c: New file.
25460 * sysdeps/i386/fpu/w_log2f.c: New file.
25461 * sysdeps/i386/fpu/w_logf.c: New file.
25462 * sysdeps/i386/fpu/w_powf.c: New file.
25463 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
25464 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
25465 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
25466
25467 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25468 H.J. Lu <hongjiu.lu@intel.com>
25469
25470 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
25471 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
25472 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
25473 * sysdeps/ieee754/flt-32/w_expf.c: New file.
25474 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
25475 the new expf code.
25476 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
25477 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
25478 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
25479 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
25480 * sysdeps/i386/fpu/w_exp2f.c: New file.
25481 * sysdeps/i386/fpu/w_expf.c: New file.
25482 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
25483 * sysdeps/x86_64/fpu/w_expf.c: New file.
25484
25485 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25486
25487 * math/Versions (logf): New libm symbol at GLIBC_2.27.
25488 (log2f): Likewise.
25489 (powf): Likewise.
25490 * math/w_log2f.c: New file.
25491 * math/w_logf.c: New file.
25492 * math/w_powf.c: New file.
25493 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
25494 * math/w_logf_compat.c (__logf_compat): Likewise.
25495 * math/w_powf_compat.c (__powf_compat): Likewise.
25496 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
25497 * sysdeps/ia64/fpu/e_logf.S: Likewise.
25498 * sysdeps/ia64/fpu/e_powf.S: Likewise.
25499 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
25500 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25501 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25502 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25503 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25504 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25505 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25506 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25507 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25508 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25509 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25510 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25511 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25512 Likewise.
25513 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25514 Likewise.
25515 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25516 Likewise.
25517 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25518 Likewise.
25519 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25520 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25521 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25522 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25523 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25524 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25525 Likewise.
25526 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25527 Likewise.
25528 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25529 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25530 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25531
25532 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25533
25534 * sysdeps/powerpc/powerpc64/multiarch/Makefile
25535 (sysdep_routines): Add memrchr_power8.
25536 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
25537 (memrchr): Add __memrchr_power8 to list of memrchr functions.
25538 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
25539 New file.
25540 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25541 (memrchr): Add __memrchr_power8 to ifunc list.
25542 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
25543
25544 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25545
25546 [BZ #18822]
25547 * sysdeps/unix/sysv/linux/posix_fadvise64.c
25548 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
25549 libc_hidden_def.
25550 * sysdeps/unix/sysv/linux/posix_fallocate64.c
25551 (__posix_fallocate64_l64): Likewise.
25552
25553 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25554
25555 [BZ #18822]
25556 * sysdeps/unix/sysv/linux/sched_setaffinity.c
25557 (__sched_setaffinity_new): Add libc_hidden_proto and
25558 libc_hidden_def.
25559
25560 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25561
25562 [BZ #18822]
25563 * include/glob.h (__glob64): Add libc_hidden_proto.
25564 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
25565 libc_hidden_def.
25566
25567 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25568
25569 [BZ #18822]
25570 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
25571 attribute_hidden.
25572
25573 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25574
25575 [BZ #18822]
25576 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
25577
25578 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25579
25580 [BZ #18822]
25581 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
25582 libc_hidden_def.
25583
25584 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25585
25586 [BZ #18822]
25587 * csu/version.c (__libc_print_version): Add attribute_hidden.
25588
25589 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25590
25591 [BZ #18822]
25592 * include/libc-internal.h (__init_misc): Add attribute_hidden.
25593
25594 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25595
25596 [BZ #18822]
25597 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
25598
25599 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25600
25601 [BZ #18822]
25602 * nscd/nscd_helper.c (__nis_hash): New prototype.
25603
25604 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25605
25606 [BZ #18822]
25607 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
25608 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
25609 libc_hidden_def.
25610 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
25611 * termios/tcgetattr.c (__tcgetattr): Likewise.
25612
25613 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25614
25615 [BZ #18822]
25616 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
25617 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
25618 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
25619 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
25620 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
25621
25622 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25623
25624 [BZ #18822]
25625 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
25626
25627 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25628
25629 [BZ #18822]
25630 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
25631 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
25632
25633 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25634
25635 [BZ #18822]
25636 * intl/hash-string.h (__hash_string): Add attribute_hidden.
25637
25638 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25639
25640 [BZ #18822]
25641 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
25642 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
25643
25644 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25645
25646 [BZ #18822]
25647 * include/ifreq.h: New file.
25648 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
25649 (__ifreq): Likewise.
25650 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
25651 (__ifreq): Likewise.
25652
25653 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25654
25655 [BZ #18822]
25656 * include/idna.h: New file.
25657 * inet/getnameinfo.c: Include <idna.h> instead of
25658 <libidn/idna.h>.
25659 (__idna_to_unicode_lzlz): Removed.
25660 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
25661 <libidn/idna.h>.
25662 (__idna_to_ascii_lz): Removed.
25663 (__idna_to_unicode_lzlz): Likewise.
25664
25665 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25666
25667 [BZ #18822]
25668 * include/plural-exp.h: New file.
25669 * intl/plural-exp.c: Include <plural-exp.h> instead of
25670 "plural-exp.h".
25671
25672 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25673
25674 [BZ #18822]
25675 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
25676 "getsourcefilter.h".
25677 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
25678 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
25679 "getsourcefilter.h".
25680 (__get_sol): Removed.
25681
25682 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25683
25684 [BZ #18822]
25685 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
25686 to ...
25687 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
25688
25689 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25690
25691 [BZ #18822]
25692 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
25693 attribute_hidden.
25694
25695 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25696
25697 [BZ #18822]
25698 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
25699
25700 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25701
25702 [BZ #18822]
25703 * include/search.h (__tdestroy): Add libc_hidden_proto.
25704 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
25705
25706 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25707
25708 [BZ #18822]
25709 * include/assert.h (__assert_fail_base): Add attribute_hidden.
25710
25711 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25712
25713 [BZ #18822]
25714 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
25715 attribute_hidden.
25716
25717 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25718
25719 [BZ #18822]
25720 * include/signal.h (__kill): Add libc_hidden_proto.
25721 (__sigblock): Likewise.
25722 (__sigprocmask): Likewise.
25723 (__sigaltstack): Likewise.
25724 * signal/kill.c (__kill): Add libc_hidden_def.
25725 * signal/sigblock.c (__sigblock): Likewise.
25726 * signal/sigprocmask.c (__sigprocmask): Likewise.
25727 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
25728 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
25729 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
25730 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
25731 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
25732 Likewise.
25733 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
25734 Likewise.
25735 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
25736 (__sigprocmask): Likewise.
25737 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
25738 Likewise.
25739 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
25740 (__sigprocmask): Likewise.
25741 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
25742 Likewise.
25743
25744 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25745
25746 [BZ #18822]
25747 * include/string.h (__strsep): Add libc_hidden_proto.
25748 * string/strsep.c (__strsep): Add libc_hidden_def.
25749
25750 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25751
25752 [BZ #18822]
25753 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
25754 attribute_hidden.
25755 (__spawni): Likewise.
25756
25757 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25758
25759 [BZ #18822]
25760 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
25761 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
25762 libc_hidden_def.
25763
25764 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25765
25766 [BZ #18822]
25767 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
25768
25769 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25770
25771 [BZ #18822]
25772 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
25773 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
25774 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
25775 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
25776 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
25777 Likewise.
25778 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
25779 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
25780
25781 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25782
25783 [BZ #18822]
25784 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
25785 (__dcigettext): Likewise.
25786
25787 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25788
25789 [BZ #18822]
25790 * include/sys/sysinfo.h (__get_nprocs_conf): Add
25791 libc_hidden_proto.
25792 (__get_nprocs): Likewise.
25793 (__get_phys_pages): Likewise.
25794 (__get_avphys_pages): Likewise.
25795 (__get_child_max): Add attribute_hidden.
25796 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
25797 (__get_nprocs): Likewise.
25798 (__get_phys_pages): Likewise.
25799 (__get_avphys_pages): Likewise.
25800 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
25801 libc_hidden_def.
25802 (__get_nprocs): Likewise.
25803 (__get_phys_pages): Likewise.
25804 (__get_avphys_pages): Likewise.
25805 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
25806 libc_hidden_def.
25807 (__get_nprocs_conf): Likewise.
25808 (__get_phys_pages): Likewise.
25809 (__get_avphys_pages): Likewise.
25810
25811 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25812
25813 [BZ #18822]
25814 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
25815 attribute_hidden.
25816 (__netlink_close): Likewise.
25817 (__netlink_free_handle): Likewise.
25818 (__netlink_request): Likewise.
25819
25820 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25821
25822 [BZ #18822]
25823 * include/rpc/rpc.h (__rpc_thread_variables): Add
25824 attribute_hidden.
25825 (__rpc_thread_svc_cleanup): Likewise.
25826 (__rpc_thread_clnt_cleanup): Likewise.
25827 (__rpc_thread_key_cleanup): Likewise.
25828
25829 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25830
25831 [BZ #18822]
25832 * include/sys/uio.h (__readv): Add libc_hidden_proto.
25833 (__writev): Likewise.
25834 * misc/readv.c (__readv): Add libc_hidden_def.
25835 * misc/writev.c (__writev): Likewise.
25836 * sysdeps/posix/readv.c (__readv): Likewise.
25837 * sysdeps/posix/writev.c (__writev): Likewise.
25838 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
25839 (__readv): Likewise.
25840 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
25841 (__writev): Likewise.
25842
25843 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25844
25845 [BZ #18822]
25846 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
25847 (__regcomp): Add libc_hidden_proto.
25848 (__regexec): Likewise.
25849 (__regfree): Likewise.
25850 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
25851 (__regfree): Likewise.
25852 * posix/regexec.c (__regexec): Likewise.
25853
25854 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25855
25856 [BZ #18822]
25857 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
25858 (__getutent): Likewise.
25859 (__getutid): Likewise.
25860 (__getutline): Likewise.
25861 (__pututline): Likewise.
25862 (__getutent_r): Likewise.
25863 (__getutid_r): Likewise.
25864 (__getutline_r): Likewise.
25865 (__utmpname): Add attribute_hidden.
25866 (__setutent): Likewise.
25867 (__endutent): Likewise.
25868 * login/getutent.c (__getutent): Add libc_hidden_def.
25869 * login/getutent_r.c (__getutent_r): Likewise.
25870 (__pututline): Likewise.
25871 * login/getutid.c (__getutid): Likewise.
25872 * login/getutid_r.c (__getutid_r): Likewise.
25873 * login/getutline.c (__getutline): Likewise.
25874 * login/getutline_r.c (__getutline_r): Likewise.
25875 * login/updwtmp.c (__updwtmp): Likewise.
25876
25877 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25878
25879 [BZ #18822]
25880 * include/dirent.h (__opendir): Always add attribute_hidden.
25881 (__fdopendir): Likewise.
25882 (__closedir): Likewise.
25883 (__readdir): Likewise.
25884 (__readdir64): Add libc_hidden_proto.
25885 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
25886 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
25887 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
25888 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
25889 New alias.
25890
25891 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25892
25893 [BZ #18822]
25894 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
25895 * include/netdb.h (__gethostbyaddr_r): Likewise.
25896 (__gethostbyname_r): Likewise.
25897 (__gethostbyname2_r): Likewise.
25898 (__getnetbyaddr_r): Likewise.
25899 (__getnetbyname_r): Likewise.
25900 (__getservbyname_r): Likewise.
25901 (__getservbyport_r): Likewise.
25902 (__getprotobyname_r): Likewise.
25903 (__getprotobynumber_r): Likewise.
25904 (__getnetgrent_r): Likewise.
25905 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
25906 (__getrpcbynumber_r): Likewise.
25907 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
25908
25909 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25910
25911 [BZ #18822]
25912 * include/stdio.h (__fcloseall): Add attribute_hidden.
25913 (__getline): Likewise.
25914 (__path_search): Likewise.
25915 (__gen_tempname): Likewise.
25916 (__libc_message): Likewise.
25917 (__flockfile): Likewise.
25918 (__funlockfile): Likewise.
25919 (__fxprintf): Likewise.
25920 (__fxprintf_nocancel): Likewise.
25921
25922 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25923
25924 [BZ #18822]
25925 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
25926 (__sgetsgent_r): Likewise.
25927
25928 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25929
25930 [BZ #18822]
25931 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
25932 (__statfs64): Likewise.
25933 (__fstatfs64): Likewise.
25934 * include/sys/statvfs.h (__statvfs64): Likewise.
25935 (__fstatvfs64): Likewise.
25936 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
25937 (__statfs_filesize_max): Likewise.
25938 (__statfs_symlinks): Likewise.
25939 (__statfs_chown_restricted): Likewise.
25940
25941 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25942
25943 [BZ #18822]
25944 * include/time.h (__tzstring): Add attribute_hidden.
25945 (__tzfile_read): Likewise.
25946 (__tzfile_compute): Likewise.
25947 (__tzfile_default): Likewise.
25948 (__tzset_parse_tz): Likewise.
25949 (__offtime): Likewise.
25950 (__asctime_r): Likewise.
25951 (__tzset): Likewise.
25952 (__tz_convert): Likewise.
25953 (__getdate_r): Likewise.
25954 (__getclktck): Likewise.
25955
25956 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25957
25958 [BZ #18822]
25959 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
25960 (__nscd_unmap): Likewise.
25961 (__nscd_cache_search): Likewise.
25962 (__nscd_get_nl_timestamp): Likewise.
25963 (__nscd_getpwnam_r): Likewise.
25964 (__nscd_getpwuid_r): Likewise.
25965 (__nscd_getgrnam_r): Likewise.
25966 (__nscd_getgrgid_r): Likewise.
25967 (__nscd_gethostbyname_r): Likewise.
25968 (__nscd_gethostbyname2_r): Likewise.
25969 (__nscd_gethostbyaddr_r): Likewise.
25970 (__nscd_getai): Likewise.
25971 (__nscd_getgrouplist): Likewise.
25972 (__nscd_getservbyname_r): Likewise.
25973 (__nscd_getservbyport_r): Likewise.
25974 (__nscd_innetgr): Likewise.
25975 (__nscd_setnetgrent): Likewise.
25976
25977 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25978
25979 [BZ #18822]
25980 * include/gmp.h: Declare internal functions only if _ISOMAC is
25981 undefined.
25982 (__mpn_extract_double): Add attribute_hidden.
25983 (__mpn_extract_long_double): Likewise.
25984 (__mpn_extract_float128): Likewise.
25985 (__mpn_construct_float): Likewise.
25986 (__mpn_construct_double): Likewise.
25987 (__mpn_construct_long_double): Likewise.
25988 (__mpn_construct_float128): Likewise.
25989 (mpn_add_1): Likewise.
25990 (mpn_addmul_1): Likewise.
25991 (mpn_add_n): Likewise.
25992 (mpn_cmp): Likewise.
25993 (mpn_divrem): Likewise.
25994 (mpn_lshift): Likewise.
25995 (mpn_mul): Likewise.
25996 (mpn_mul_1): Likewise.
25997 (mpn_rshift): Likewise.
25998 (mpn_sub_1): Likewise.
25999 (mpn_submul_1): Likewise.
26000 (mpn_sub_n): Likewise.
26001
26002 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26003
26004 [BZ #18822]
26005 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26006 (__wcscat): Likewise.
26007 (__btowc): Likewise.
26008 (__wcrtomb): Likewise.
26009 (__mbsrtowcs): Likewise.
26010 (__wcsrtombs): Likewise.
26011 (__mbsnrtowcs): Likewise.
26012 (__wcsnrtombs): Likewise.
26013 (__wcsncpy): Likewise.
26014 (__wcpncpy): Likewise.
26015 (__wmemcpy): Likewise.
26016 (__wmempcpy): Likewise.
26017 (__wmemmove): Likewise.
26018 (__wcschrnul): Likewise.
26019 (__vfwscanf): Likewise.
26020 (__vswprintf): Likewise.
26021 (__fwprintf): Likewise.
26022 (__vfwprintf): Likewise.
26023
26024 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26025
26026 [BZ #18822]
26027 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26028 (__getgrgid_r): Likewise.
26029 (__getgrnam_r): Likewise.
26030 * include/pwd.h (__getpwuid_r): Likewise.
26031 (__getpwnam_r): Likewise.
26032 (__fgetpwent_r): Likewise.
26033 * include/shadow.h (__getspnam_r): Likewise.
26034 (__sgetspent_r): Likewise.
26035 (__fgetspent_r): Likewise.
26036
26037 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26038
26039 [BZ #18822]
26040 * include/unistd.h (__access): Add attribute_hidden.
26041 (__lseek64): Likewise.
26042 (__libc_pread64): Likewise.
26043 (__pipe2): Likewise.
26044 (__sleep): Likewise.
26045 (__chdir): Likewise.
26046 (__fchdir): Likewise.
26047 (__getcwd): Likewise.
26048 (__rmdir): Likewise.
26049 (__execvpe): Likewise.
26050 (__execve): Likewise.
26051 (__setsid): Likewise.
26052 (__getuid): Likewise.
26053 (__geteuid): Likewise.
26054 (__getgid): Likewise.
26055 (__getegid): Likewise.
26056 (__getgroups): Likewise.
26057 (__group_member): Likewise.
26058 (__ttyname_r): Likewise.
26059 (__isatty): Likewise.
26060 (__readlink): Likewise.
26061 (__unlink): Likewise.
26062 (__gethostname): Likewise.
26063 (__profil): Likewise.
26064 (__getdtablesize): Likewise.
26065 (__brk): Likewise.
26066 (__ftruncate): Likewise.
26067 (__ftruncate64): Likewise.
26068
26069 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26070
26071 [BZ #18822]
26072 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26073 * argp/argp-fs-xinl.c: Likewise.
26074 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26075 * argp/argp-parse.c: Include <argp.h>.
26076 * argp/argp-xinl.c: Likewise.
26077 * include/argp-fmtstream.h: New file.
26078 * include/argp.h (__argp_error): Add attribute_hidden.
26079 (__argp_failure): Likewise.
26080 (__argp_input): Likewise.
26081 (__argp_state_help): Likewise.
26082
26083 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26084
26085 [BZ #18822]
26086 * include/wchar.h (____wcstof_l_internal): New prototype.
26087 (____wcstod_l_internal): Likewise.
26088 (____wcstold_l_internal): Likewise.
26089 (____wcstol_l_internal): Likewise.
26090 (____wcstoul_l_internal): Likewise.
26091 (____wcstoll_l_internal): Likewise.
26092 (____wcstoull_l_internal): Likewise.
26093 (____wcstof128_l_internal): Likewise.
26094 * sysdeps/ieee754/float128/wcstof128.c
26095 (____wcstof128_l_internal): Removed.
26096 * sysdeps/ieee754/float128/wcstof128_l.c
26097 (____wcstof128_l_internal): Likewise.
26098 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26099 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26100 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26101 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26102 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26103 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26104 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26105 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26106 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26107 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26108
26109 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26110
26111 [BZ #18822]
26112 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26113 instead of <sys/statvfs.h>.
26114 (__internal_statvfs): Removed.
26115 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26116 instead of <sys/statvfs.h>.
26117 (__internal_statvfs64): Removed.
26118 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26119 "internal_statvfs.h" instead of <sys/statvfs.h>.
26120 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26121 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26122 instead of <sys/statvfs.h>.
26123 (__internal_statvfs): Removed.
26124 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26125 instead of <sys/statvfs.h>.
26126 (__internal_statvfs64): Removed.
26127
26128 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26129
26130 [BZ #18822]
26131 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26132 (__gconv_close): Likewise.
26133 (__gconv): Likewise.
26134 (__gconv_find_transform): Likewise.
26135 (__gconv_lookup_cache): Likewise.
26136 (__gconv_compare_alias_cache): Likewise.
26137 (__gconv_load_cache): Likewise.
26138 (__gconv_get_path): Likewise.
26139 (__gconv_close_transform): Likewise.
26140 (__gconv_release_cache): Likewise.
26141 (__gconv_find_shlib): Likewise.
26142 (__gconv_release_shlib): Likewise.
26143 (__gconv_get_builtin_trans): Likewise.
26144 (__gconv_compare_alias): Likewise.
26145 * include/dlfcn.h (_dlerror_run): Likewise.
26146 * include/stdio.h (__fortify_fail_abort): Likewise.
26147 * include/time.h (__tz_compute): Likewise.
26148 (__strptime_internal): Likewise.
26149 * intl/gettextP.h (_nl_find_domain): Likewise.
26150 (_nl_load_domain): Likewise.
26151 (_nl_find_msg): Likewise.
26152 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26153 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26154 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26155 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26156 (__gai_find_request): Likewise.
26157 (__gai_remove_request): Likewise.
26158 (__gai_notify): Likewise.
26159 (__gai_notify_only): Likewise.
26160 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26161 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26162 (_dl_non_dynamic_init): Likewise.
26163 (_dl_aux_init): Likewise.
26164 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26165 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26166 Likewise.
26167 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26168 (__wcsmbs_clone_conv): Likewise.
26169 (__wcsmbs_named_conv): Likewise.
26170
26171 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26172
26173 [BZ #18822]
26174 * include/stdlib.h (__random): Add attribute_hidden.
26175 (__random_r): Likewise.
26176 (__srandom_r): Likewise.
26177 (__initstate_r): Likewise.
26178 (__setstate_r): Likewise.
26179 (__erand48_r): Likewise.
26180 (__nrand48_r): Likewise.
26181 (__jrand48_r): Likewise.
26182 (__srand48_r): Likewise.
26183 (__seed48_r): Likewise.
26184 (__lcong48_r): Likewise.
26185 (__drand48_iterate): Likewise.
26186 (__setenv): Likewise.
26187 (__unsetenv): Likewise.
26188 (__clearenv): Likewise.
26189 (__ptsname_r): Likewise.
26190 (__posix_openpt): Likewise.
26191 (__add_to_environ): Likewise.
26192 (__realpath): Add libc_hidden_proto.
26193 (__ecvt_r): Likewise.
26194 (__fcvt_r): Likewise.
26195 (__qecvt_r): Likewise.
26196 (__qfcvt_r): Likewise.
26197 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26198 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26199
26200 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26201
26202 [BZ #18822]
26203 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26204 * include/time.h (__mktime_internal): Likewise.
26205 * libio/iolibio.h (__fopen_internal): Likewise.
26206
26207 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26208
26209 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26210 pointer in frame.
26211 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26212 Correct offset used to restore PIC register.
26213
26214 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26215
26216 [BZ libc/22165]
26217 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26218 code to load address of __getcontext_ret when generating PIC code.
26219
26220 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26221
26222 * elf/Makefile (tests-static-internal): Add
26223 tst-tls1-static-non-pie.
26224 (LDFLAGS-tst-tls1-static-non-pie): New.
26225 * elf/tst-tls1-static-non-pie.c: New file.
26226
26227 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26228
26229 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26230 (asinh): Define using libm_alias_double.
26231 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26232 (cbrt): Define using libm_alias_double.
26233 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26234 <libm-alias-double.h>.
26235 (copysign): Define using libm_alias_double.
26236 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26237 (erf): Define using libm_alias_double.
26238 (erfc): Likewise.
26239 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26240 (expm1): Define using libm_alias_double.
26241 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26242 (fabs): Define using libm_alias_double.
26243 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26244 libm_alias_double.
26245 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26246 <libm-alias-double.h>.
26247 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26248 libm_alias_double.
26249 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26250 <libm-alias-double.h>.
26251 (getpayload): Define using libm_alias_double.
26252 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26253 <libm-alias-double.h>.
26254 (llrint): Define using libm_alias_double.
26255 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26256 (lrint): Define using libm_alias_double.
26257 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26258 <libm-alias-double.h>.
26259 (nextup): Define using libm_alias_double.
26260 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26261 <libm-alias-double.h>.
26262 (roundeven): Define using libm_alias_double.
26263 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26264 libm_alias_double.
26265 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26266 <libm-alias-double.h>.
26267 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26268 using libm_alias_double.
26269 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26270 (cos): Define using libm_alias_double.
26271 (sin): Likewise.
26272 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26273 <libm-alias-double.h>.
26274 (sincos): Define using libm_alias_double.
26275 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26276 (tanh): Define using libm_alias_double.
26277 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26278 <libm-alias-double.h>.
26279 (totalorder): Define using libm_alias_double.
26280 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26281 <libm-alias-double.h>.
26282 (totalordermag): Define using libm_alias_double.
26283 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26284 libm_alias_double.
26285 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26286 libm_alias_double.
26287 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26288 <libm-alias-double.h>.
26289 (getpayload): Define using libm_alias_double.
26290 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26291 <libm-alias-double.h>.
26292 (roundeven): Define using libm_alias_double.
26293 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26294 <libm-alias-double.h>.
26295 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26296 <libm-alias-double.h>.
26297 (totalorder): Define using libm_alias_double.
26298 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
26299 <libm-alias-double.h>.
26300 (totalordermag): Define using libm_alias_double.
26301 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
26302 libc compat symbol here.
26303 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
26304 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26305 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26306 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26307 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26308 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26309 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26310 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26311 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26312 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26313
26314 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26315
26316 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26317 _dl_relocate_static_pie instead of _dl_start to compute load
26318 address in static PIE. Return 0 if _DYNAMIC is undefined for
26319 static executable.
26320
26321 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26322
26323 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
26324 _DYNAMIC is undefined for static executable.
26325
26326 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26327
26328 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
26329
26330 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26331
26332 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26333
26334 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26335
26336 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
26337 (__ieee754_lgamma_r): Use fabs rather than __fabs.
26338 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
26339 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
26340 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
26341 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
26342 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
26343 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
26344 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
26345 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26346 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
26347 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
26348 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26349 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26350 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
26351 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
26352 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
26353
26354 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26355
26356 * math/bits/cmathcalls.h (cimag): Remove inline.
26357 (creal): Remove inline.
26358 (conj): Remove inline.
26359
26360 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26361
26362 * math/Makefile (type-float-routines): Add e_powf_log2_data.
26363 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
26364 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
26365 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
26366 (issignalingf_inline): Likewise.
26367 (POWF_LOG2_TABLE_BITS): Likewise.
26368 (POWF_LOG2_POLY_ORDER): Likewise.
26369 (POWF_SCALE_BITS): Likewise.
26370 (POWF_SCALE): Likewise.
26371 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
26372 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
26373 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
26374
26375 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26376
26377 * math/Makefile (type-float-routines): Add e_log2f_data.
26378 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
26379 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
26380 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
26381 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
26382 * sysdeps/i386/fpu/e_log2f_data.c: New file.
26383 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
26384 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
26385
26386 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26387
26388 * math/Makefile (type-float-routines): Add e_logf_data.
26389 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
26390 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
26391 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
26392 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
26393 * sysdeps/i386/fpu/e_logf_data.c: New file.
26394 * sysdeps/ia64/fpu/e_logf_data.c: New file.
26395 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
26396
26397 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
26398
26399 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
26400 undefined _DYNAMIC in PIE libc.a.
26401 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26402 Likewse.
26403
26404 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26405
26406 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
26407 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
26408 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
26409 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
26410 (__signbit): Remove.
26411 (__signbitl): Remove.
26412 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
26413 (__signbit): Remove.
26414 (__signbitl): Remove.
26415 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
26416 (__signbit): Remove.
26417 (__signbitl): Remove.
26418 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
26419 (__signbit): Remove.
26420 (__signbitl): Remove.
26421 * sysdeps/tile/bits/mathinline.h: Delete file.
26422 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
26423 (__signbit): Remove.
26424 (__signbitl): Remove.
26425
26426 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26427
26428 * math/math.h: Improve handling of C99 isgreater macros.
26429 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
26430 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
26431 * sysdeps/powerpc/bits/mathinline.h: Likewise.
26432 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
26433 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
26434
26435 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
26436
26437 * sysdeps/aarch64/libm-test-ulps: Update.
26438
26439 2017-09-28 Joseph Myers <joseph@codesourcery.com>
26440
26441 [BZ #22225]
26442 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
26443 math_opt_barrier on argument when doing arithmetic on it.
26444 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
26445 Likewise. Use math_force_eval not math_opt_barrier after
26446 arithmetic.
26447 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
26448 math_opt_barrier on argument when doing arithmetic on it.
26449 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
26450 Likewise.
26451
26452 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
26453
26454 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
26455 libc_hidden_def.
26456 (__freeifaddrs): Likewise.
26457
26458 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
26459
26460 * include/dirent.h (__dirfd): New declaration.
26461 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
26462 alias.
26463 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
26464 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
26465 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
26466 * include/unistd.h (__revoke): New declaration.
26467 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
26468 alias.
26469 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
26470 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
26471 revoke.
26472 * include/dirent.h (__seekdir): New declaration.
26473 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
26474 redefine as weak alias.
26475 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
26476 of seekdir.
26477 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
26478 and use libc_hidden_def on them.
26479 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
26480 them.
26481 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
26482 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
26483 instead of getifaddrs and freeifaddrs.
26484
26485 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26486
26487 [BZ #18822]
26488 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
26489 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
26490 (__dso_handle): Remove declaration.
26491 * dlfcn/tstatexit.c (__dso_handle): Removed.
26492 (main): Don't check __dso_handle.
26493 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
26494 (main): Don't check __dso_handle.
26495 * include/dso_handle.h: New file.
26496 * malloc/mtrace.c: Include <dso_handle.h>.
26497 (mtrace): Pass __dso_handle directly.
26498 * nptl/pthread_atfork.c: Include <dso_handle.h>.
26499 (__dso_handle): Remove declaration.
26500 (__pthread_atfork): Pass __dso_handle directly.
26501 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
26502 (__dso_handle): Removed.
26503 * posix/wordexp-test.c: Include <dso_handle.h>.
26504 (__dso_handle): Remove declaration.
26505 (__app_register_atfork): Pass __dso_handle directly.
26506 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
26507 (__dso_handle): Remove declaration.
26508 (at_quick_exit): Pass __dso_handle directly.
26509 * stdlib/atexit.c: Include <dso_handle.h>.
26510 (__dso_handle): Remove declaration.
26511 (atexit): Pass __dso_handle directly.
26512 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
26513 (__dso_handle): Removed.
26514
26515 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26516
26517 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
26518 using VDSO.
26519
26520 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
26521
26522 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
26523 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
26524 values to correct default value for given type.
26525
26526 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26527
26528 [BZ #22101]
26529 * elf/Makefile (tests): Add tst-debug1.
26530 ($(objpfx)tst-debug1): New.
26531 ($(objpfx)tst-debug1.out): Likewise.
26532 ($(objpfx)tst-debug1mod1.so): Likewise.
26533 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
26534 with p_filesz == 0.
26535 * elf/tst-debug1.c: New file.
26536
26537 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26538
26539 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
26540 Define using __ifunc.
26541
26542 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26543
26544 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
26545 exp2f() values.
26546
26547 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26548
26549 [BZ #22156]
26550 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
26551
26552 2017-09-26 Florian Weimer <fweimer@redhat.com>
26553
26554 * resolv/Makefile (tests-internal): Fix typo in comment.
26555
26556 2017-09-26 Florian Weimer <fweimer@redhat.com>
26557
26558 * resolv/nss_dns/dns-host.c: Fix typo in comment.
26559
26560 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26561
26562 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
26563 Use an union instead of a max_align_t array for __space,
26564 so that __space is the same size on all platforms.
26565 * malloc/scratch_buffer_grow_preserve.c
26566 (__libc_scratch_buffer_grow_preserve): Likewise.
26567
26568 [BZ #22183]
26569 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
26570 version to 2.
26571 * posix/Makefile (routines): Add glob-lstat-compat and
26572 glob64-lstat-compat.
26573 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
26574 * posix/glob-lstat-compat.c: New file.
26575 * posix/glob64-lstat-compat.c: Likewise.
26576 * posix/tst-glob_lstat_compat.c: Likewise.
26577 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
26578 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
26579 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
26580 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
26581 Likewise.
26582 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
26583 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
26584 * posix/glob.c (glob_lstat): New function.
26585 (glob): Rename to __glob and add versioned symbol to 2.27.
26586 (glob_in_dir): Use glob_lstat.
26587 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
26588 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
26589 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
26590 2.27.
26591 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
26592 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
26593 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
26594 gl_lstat on glob call.
26595 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
26596 and glob64 symbols.
26597 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26598 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
26599 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
26600 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
26601 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
26602 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
26603 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
26604 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
26605 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
26606 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26607 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26608 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
26609 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
26610 Likewise.
26611 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
26612 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
26613 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26614 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26615 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
26616 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26617 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26618 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
26619 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
26620 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
26621 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
26622 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
26623
26624 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
26625
26626 * configure.ac (AS): Require binutils 2.25 or later.
26627 * configure: Regenerated.
26628
26629 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
26630
26631 [BZ #22207]
26632 * stdlib/test-atexit-race-common.c (do_test): Minimize required
26633 VM size.
26634
26635 2017-09-25 DJ Delorie <dj@redhat.com>
26636
26637 [BZ #22161]
26638 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
26639 resetting timeout.
26640
26641 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
26642
26643 * sysdeps/ieee754/dbl-64/sincos32.h
26644 [SINCCOS32_H]: Remove define.
26645 [SINCOS32_H]: Define.
26646
26647 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26648
26649 * math/Versions (expf): New libm symbol at GLIBC_2.27.
26650 (exp2f): Likewise.
26651 * math/w_exp2f.c: New file.
26652 * math/w_expf.c: New file.
26653 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
26654 * math/w_expf_compat.c (__expf_compat): Likewise.
26655 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
26656 * sysdeps/ia64/fpu/e_expf.S: Likewise.
26657 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26658 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26659 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26660 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26661 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26662 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26663 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26664 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26665 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26666 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26667 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26668 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26669 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26670 Likewise.
26671 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26672 Likewise.
26673 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26674 Likewise.
26675 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26676 Likewise.
26677 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26678 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26679 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26680 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26681 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26682 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26683 Likewise.
26684 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26685 Likewise.
26686 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26687 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26688 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26689
26690 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26691
26692 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
26693 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
26694 (roundtoint, converttoint): Likewise.
26695 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
26696 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
26697 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
26698 * sysdeps/ieee754/flt-32/math_config.h: New file.
26699 * sysdeps/ieee754/flt-32/math_errf.c: New file.
26700 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
26701 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
26702 * sysdeps/i386/fpu/math_errf.c: New file.
26703 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
26704 * sysdeps/ia64/fpu/math_errf.c: New file.
26705 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
26706 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
26707
26708 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
26709
26710 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
26711 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
26712 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
26713 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
26714 to make sure that these symbols are defined.
26715 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
26716 of <limits.h>
26717 (__need_NULL): Do not define.
26718 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
26719 alignment.
26720 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
26721 CMGROUP_MAX, cmsgcred): Do not define.
26722 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
26723 NULL.
26724 * bits/socket.h: Likewise.
26725 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
26726 __gettimeofday instead of gettimeofday.
26727 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
26728 instead of settimeofday.
26729
26730 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26731
26732 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
26733 (asinhf): Define using libm_alias_float.
26734 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
26735 (atanf): Define using libm_alias_float.
26736 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
26737 (cbrtf): Define using libm_alias_float.
26738 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
26739 (ceilf): Define using libm_alias_float.
26740 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
26741 <libm-alias-float.h>.
26742 (copysignf): Define using libm_alias_float.
26743 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
26744 (cosf): Define using libm_alias_float.
26745 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
26746 (erff): Define using libm_alias_float.
26747 (erfcf): Likewise.
26748 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
26749 (expm1f): Define using libm_alias_float.
26750 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
26751 (fabsf): Define using libm_alias_float.
26752 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
26753 (floorf): Define using libm_alias_float.
26754 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
26755 (frexpf): Define using libm_alias_float.
26756 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
26757 libm_alias_float.
26758 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
26759 <libm-alias-float.h>.
26760 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
26761 libm_alias_float.
26762 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
26763 <libm-alias-float.h>.
26764 (getpayloadf): Define using libm_alias_float.
26765 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
26766 <libm-alias-float.h>.
26767 (llrintf): Define using libm_alias_float.
26768 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
26769 <libm-alias-float.h>.
26770 (llroundf): Define using libm_alias_float.
26771 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
26772 (logbf): Define using libm_alias_float.
26773 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
26774 (lrintf): Define using libm_alias_float.
26775 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
26776 (lroundf): Define using libm_alias_float.
26777 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
26778 (modff): Define using libm_alias_float.
26779 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
26780 <libm-alias-float.h>.
26781 (nearbyintf): Define using libm_alias_float.
26782 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
26783 <libm-alias-float.h>.
26784 (nextafterf): Define using libm_alias_float.
26785 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
26786 <libm-alias-float.h>.
26787 (nextupf): Define using libm_alias_float.
26788 * sysdeps/ieee754/flt-32/s_remquof.c: Include
26789 <libm-alias-float.h>.
26790 (remquof): Define using libm_alias_float.
26791 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
26792 (rintf): Define using libm_alias_float.
26793 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
26794 <libm-alias-float.h>.
26795 (roundevenf): Define using libm_alias_float.
26796 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
26797 (roundf): Define using libm_alias_float.
26798 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
26799 using libm_alias_float.
26800 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
26801 <libm-alias-float.h>.
26802 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
26803 Define using libm_alias_float.
26804 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
26805 <libm-alias-float.h>.
26806 (sincosf): Define using libm_alias_float.
26807 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
26808 (sinf): Define using libm_alias_float.
26809 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
26810 (tanf): Define using libm_alias_float.
26811 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
26812 (tanhf): Define using libm_alias_float.
26813 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
26814 <libm-alias-float.h>.
26815 (totalorderf): Define using libm_alias_float.
26816 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
26817 <libm-alias-float.h>.
26818 (totalordermagf): Define using libm_alias_float.
26819 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
26820 (truncf): Define using libm_alias_float.
26821 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
26822 libm_alias_float.
26823 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
26824 libm_alias_float.
26825
26826 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26827
26828 [BZ #22146]
26829 math/math.h: Let fpclassify use the builtin in C++ mode, even
26830 when optimazing for size.
26831
26832 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26833
26834 * csu/Makefile (generated): Do not add version-info.h.
26835 (before-compile): Likewise.
26836 (all-Banner-files): Remove variable.
26837 ($(objpfx)version-info.h): Remove rule.
26838 * csu/version.c (banner): Do not include "version-info.h".
26839 * libidn/Banner: Remove.
26840 * manual/contrib.texi (Simon Josefsson): New entry.
26841
26842 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26843
26844 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
26845 Remove conditionals on LDBL_MANT_DIG.
26846 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26847 (__ieee754_lgammal_r): Likewise.
26848
26849 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26850
26851 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
26852 _Float128 and L().
26853 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
26854 _Float128 and L(). Replace _Float128 with long double and L(x)
26855 with xL, throughout the file.
26856 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26857 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26858 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26859 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26860
26861 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26862
26863 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
26864 sysdeps/ieee754/ldbl-128ibm.
26865 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
26866 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
26867 of including it. Keep _Float128 and L() intact. These will be
26868 reviewed by a separate patch.
26869 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26870 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26871 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26872 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26873
26874 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26875
26876 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
26877 (__finitef128): Define to __redirect___finitef128.
26878 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
26879 (__isinff128): Define to __redirect___isinff128.
26880 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
26881 (__isnanf128): Define to __redirect___isnanf128.
26882
26883 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26884
26885 * sysdeps/powerpc/powerpc64le/Makefile
26886 (CFLAGS-tst-strtod-nan-locale.c): New variable.
26887 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
26888
26889 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
26890 Carlos O'Donell <carlos@redhat.com>
26891
26892 [BZ #22180]
26893 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
26894 * stdlib/test-dlclose-exit-race.c: New file.
26895 * stdlib/test-dlclose-exit-race-helper.c: New file.
26896 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
26897
26898 2017-09-21 Joseph Myers <joseph@codesourcery.com>
26899
26900 * crypt/Banner: Remove file.
26901 * nptl/Banner: Likewise.
26902 * resolv/Banner: Likewise.
26903 * soft-fp/Banner: Likewise.
26904 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
26905 ($(objpfx)version.d): Remove dependency on banner.h.
26906 ($(objpfx)version.os): Likewise.
26907 * nptl/version.c (banner): Do not include banner.h.
26908 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
26909 Jelinek and BIND code.
26910
26911 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
26912 Carlos O'Donell <carlos@redhat.com>
26913
26914 * support/xdlfcn.h: New file.
26915 * support/xdlfcn.c: New file.
26916 * support/Makefile (libsupport-routines): Add xdlfcn.
26917 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
26918
26919 2017-09-20 Joseph Myers <joseph@codesourcery.com>
26920
26921 [BZ #20142]
26922 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26923 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
26924 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
26925 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
26926 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
26927 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
26928 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
26929 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
26930
26931 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
26932 Ricky Zhou <rickyz@google.com>
26933 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
26934
26935 [BZ #14333]
26936 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
26937 Remove atomics.
26938 (__new_exitfn): Fail registration when we finished at_exit processing.
26939 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
26940 * stdlib/on_exit.c (__on_exit): Likewise.
26941 * stdlib/exit.c (__exit_funcs_done): New variable.
26942 (__run_exit_handlers): Use __exit_funcs_lock.
26943 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
26944 declarations.
26945 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
26946 (test-cxa_atexit-race, test-on_exit-race): New tests.
26947 * stdlib/test-atexit-race-common.c: New file.
26948 * stdlib/test-atexit-race.c: New file.
26949 * stdlib/test-at_quick_exit-race.c: New file.
26950 * stdlib/test-cxa_atexit-race.c: New file.
26951 * stdlib/test-on_exit-race.c: New file.
26952
26953 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
26954
26955 * benchtests/Makefile: Add exp2f and log2f benchmarks.
26956 * benchtests/exp2f-inputs: Copy of expf-inputs.
26957 * benchtests/log2f-inputs: Copy of logf-inputs.
26958
26959 2017-09-19 Joseph Myers <joseph@codesourcery.com>
26960
26961 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
26962 Explicitly take address of first element of array arguments in
26963 call to INLINE_SYSCALL.
26964
26965 2017-09-19 Andreas Schwab <schwab@suse.de>
26966
26967 [BZ #22134]
26968 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
26969 execveat first.
26970 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
26971 unimplemented.
26972 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
26973 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
26974 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
26975 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
26976 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
26977 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
26978 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
26979 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
26980 * posix/Makefile (tests): Add tst-fexecve.
26981 * posix/tst-fexecve.c: New file.
26982
26983 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
26984
26985 * benchtests/Makefile: Add logf benchmark.
26986 * benchtests/logf-inputs: Add reduced trace from wrf_r.
26987
26988 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
26989
26990 * benchtests/Makefile: Add expf benchmark.
26991 * benchtests/expf-inputs: Add reduced trace from wrf_r.
26992
26993 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
26994
26995 * csu/Makefile: Add -funwind-tables to libc-start.c.
26996 * debug/Makefile: Add -funwind-tables to backtrace.c.
26997 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
26998 * sysdeps/arm/Makefile: Likewise.
26999 * sysdeps/i386/Makefile: Likewise.
27000 * sysdeps/m68k/Makefile: Likewise.
27001 * sysdeps/mips/Makefile: Likewise.
27002 * sysdeps/nios2/Makefile: Likewise.
27003 * sysdeps/sh/Makefile: Likewise.
27004 * sysdeps/sparc/Makefile: Likewise.
27005
27006 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27007
27008 * benchtests/Makefile (bench-math): Add trunc and truncf.
27009 (CFLAGS-bench-trunc.c): New variable.
27010 (CFLAGS-bench-truncf.c): Likewise.
27011 * benchtests/trunc-inputs: New file.
27012 * benchtests/truncf-inputs: Likewise.
27013
27014 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27015
27016 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27017
27018 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27019
27020 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27021 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27022 redefine.
27023 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27024 (exp10l): Define as weak alias.
27025 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27026 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27027 and redefine.
27028 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27029 (remainderl): Define as weak alias.
27030
27031 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27032 (fmal): Define using libm_alias_ldouble.
27033 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27034 (acoshl): Define using libm_alias_ldouble.
27035 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27036 (acosl): Define using libm_alias_ldouble.
27037 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27038 (asinl): Define using libm_alias_ldouble.
27039 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27040 (atan2l): Define using libm_alias_ldouble.
27041 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27042 (atanhl): Define using libm_alias_ldouble.
27043 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27044 (coshl): Define using libm_alias_ldouble.
27045 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27046 (exp10l): Define using libm_alias_ldouble.
27047 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27048 (exp2l): Define using libm_alias_ldouble.
27049 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27050 (expl): Define using libm_alias_ldouble.
27051 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27052 (fmodl): Define using libm_alias_ldouble.
27053 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27054 (hypotl): Define using libm_alias_ldouble.
27055 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27056 (j0l): Define using libm_alias_ldouble.
27057 (y0l): Likewise.
27058 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27059 (j1l): Define using libm_alias_ldouble.
27060 (y1l): Likewise.
27061 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27062 (jnl): Define using libm_alias_ldouble.
27063 (ynl): Likewise.
27064 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27065 (log10l): Define using libm_alias_ldouble.
27066 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27067 (log2l): Define using libm_alias_ldouble.
27068 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27069 (logl): Define using libm_alias_ldouble.
27070 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27071 (powl): Define using libm_alias_ldouble.
27072 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27073 (remainderl): Define using libm_alias_ldouble.
27074 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27075 (sinhl): Define using libm_alias_ldouble.
27076 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27077 (sqrtl): Define using libm_alias_ldouble.
27078 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27079 (tgammal): Define using libm_alias_ldouble.
27080 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27081 (exp10l): Do not use long_double_symbol here.
27082 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27083 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27084 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27085 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27086 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27087 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27088 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27089 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27090 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27091 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27092 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27093 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27094 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27095 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27096 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27097 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27098 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27099 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27100 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27101 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27102 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27103 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27104
27105 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27106
27107 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27108 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27109
27110 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27111
27112 * io/read.c (read): Add libc_hidden_weak.
27113 * sysdeps/mach/hurd/read.c (read): Likewise.
27114 * io/write.c (write): Likewise.
27115 * sysdeps/mach/hurd/write.c (write): Likewise.
27116 * io/pread64.c (__pread64): Likewise.
27117 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27118 * posix/pread64.c (__pread64): Add libc_hidden_def.
27119
27120 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27121
27122 * benchtests/scripts/compare_strings.py: New option -g.
27123 (draw_graph): Print a message that a graph is being generated.
27124 (process_results): Generate graph only if -g is passed.
27125 (main): Process option -g.
27126
27127 * benchtests/scripts/compare_strings.py (process_results):
27128 Better spacing for output.
27129
27130 * benchtests/scripts/compare_strings.py: Use argparse.
27131 * benchtests/README: Document existence of compare_strings.py.
27132
27133 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27134
27135 * math/s_fma.c: Include <libm-alias-double.h>.
27136 (fma): Define using libm_alias_double.
27137 * math/s_nextafter.c: Include <libm-alias-double.h>.
27138 (nextafter): Define using libm_alias_double.
27139 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27140 (acos): Define using libm_alias_double.
27141 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27142 (aocsh): Define using libm_alias_double.
27143 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27144 (asin): Define using libm_alias_double.
27145 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27146 (atan2): Define using libm_alias_double.
27147 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27148 (atanh): Define using libm_alias_double.
27149 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27150 (cosh): Define using libm_alias_double.
27151 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27152 (exp10): Define using libm_alias_double.
27153 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27154 (exp2): Define using libm_alias_double.
27155 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27156 (exp): Define using libm_alias_double.
27157 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27158 (fmod): Define using libm_alias_double.
27159 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27160 (hypot): Define using libm_alias_double.
27161 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27162 (j0): Define using libm_alias_double.
27163 (y0): Likewise.
27164 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27165 (j1): Define using libm_alias_double.
27166 (y1): Likewise.
27167 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27168 (jn): Define using libm_alias_double.
27169 (yn): Likewise.
27170 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27171 (log10): Define using libm_alias_double.
27172 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27173 (log2): Define using libm_alias_double.
27174 * math/w_log_compat.c: Include <libm-alias-double.h>.
27175 (log): Define using libm_alias_double.
27176 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27177 (pow): Define using libm_alias_double.
27178 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27179 (remainder): Define using libm_alias_double.
27180 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27181 (sinh): Define using libm_alias_double.
27182 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27183 (sqrt): Define using libm_alias_double.
27184 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27185 (tgamma): Define using libm_alias_double.
27186 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27187 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27188 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27189 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27190 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27191 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27192 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27193 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27194 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27195 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27196 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27197 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27198 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27199 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27200 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27201 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27202 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27203 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27204 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27205 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27206 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27207 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27208 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27209 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27210 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27211
27212 * math/e_acoshl.c: Remove.
27213 * math/e_acosl.c: Likewise.
27214 * math/e_asinl.c: Likewise.
27215 * math/e_atan2l.c: Likewise.
27216 * math/e_atanhl.c: Likewise.
27217 * math/e_coshl.c: Likewise.
27218 * math/e_expl.c: Likewise.
27219 * math/e_fmodl.c: Likewise.
27220 * math/e_gammal_r.c: Likewise.
27221 * math/e_hypotl.c: Likewise.
27222 * math/e_j0l.c: Likewise.
27223 * math/e_j1l.c: Likewise.
27224 * math/e_jnl.c: Likewise.
27225 * math/e_lgammal_r.c: Likewise.
27226 * math/e_log10l.c: Likewise.
27227 * math/e_log2l.c: Likewise.
27228 * math/e_logl.c: Likewise.
27229 * math/e_powl.c: Likewise.
27230 * math/e_rem_pio2l.c: Likewise.
27231 * math/e_sinhl.c: Likewise.
27232 * math/e_sqrtf128.c: Likewise.
27233 * math/e_sqrtl.c: Likewise.
27234 * math/k_cosl.c: Likewise.
27235 * math/k_sinl.c: Likewise.
27236 * math/k_tanl.c: Likewise.
27237 * math/s_asinhl.c: Likewise.
27238 * math/s_atanl.c: Likewise.
27239 * math/s_cbrtl.c: Likewise.
27240 * math/s_erfl.c: Likewise.
27241 * math/s_expm1l.c: Likewise.
27242 * math/s_log1pl.c: Likewise.
27243 * math/s_tanhl.c: Likewise.
27244
27245 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27246
27247 [BZ #21745]
27248 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27249 [$(subdir) = math] (sysdep_calls): New variable. Has the
27250 previous contents of sysdep_routines, but re-sorted..
27251 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27252 sysdep_calls.
27253 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27254 defined in sysdep_calls and replace by the respective m_* names.
27255 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27256 (compat_symbol): Undefine to avoid duplicated compat symbols in
27257 libc.
27258
27259 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27260
27261 * math/s_fmaf.c: Include <libm-alias-float.h>.
27262 (fmaf): Define using libm_alias_float.
27263 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27264 (acosf): Define using libm_alias_float.
27265 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27266 (acoshf): Define using libm_alias_float.
27267 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27268 (asinf): Define using libm_alias_float.
27269 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27270 (atan2f): Define using libm_alias_float.
27271 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27272 (atanhf): Define using libm_alias_float.
27273 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27274 (coshf): Define using libm_alias_float.
27275 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27276 (exp10f): Define using libm_alias_float.
27277 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27278 (fmodf): Define using libm_alias_float.
27279 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27280 (hypotf): Define using libm_alias_float.
27281 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27282 (j0f): Define using libm_alias_float.
27283 (y0f): Likewise.
27284 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27285 (j1f): Define using libm_alias_float.
27286 (y1f): Likewise.
27287 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27288 (jnf): Define using libm_alias_float.
27289 (ynf): Likewise.
27290 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27291 (log10f): Define using libm_alias_float.
27292 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27293 (log2f): Define using libm_alias_float.
27294 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27295 (logf): Define using libm_alias_float.
27296 * math/w_powf_compat.c: Include <libm-alias-float.h>.
27297 (powf): Define using libm_alias_float.
27298 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
27299 (remainderf): Define using libm_alias_float.
27300 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
27301 (sinhf): Define using libm_alias_float.
27302 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
27303 (sqrtf): Define using libm_alias_float.
27304 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27305 (tgammaf): Define using libm_alias_float.
27306
27307 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27308
27309 * include/math.h (roundeven): Change hidden_proto call to
27310 __roundeven.
27311 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27312 alias.
27313 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27314 (y0): Rename to __y0 and define as weak alias.
27315 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27316 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27317 alias.
27318 (y0f): Rename to __y0f and define as weak alias.
27319 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27320 alias.
27321 [NO_LONG_DOUBLE] (__j1l): New strong alias.
27322 (y1): Rename to __y1 and define as weak alias.
27323 [NO_LONG_DOUBLE] (__y1l): New strong alias.
27324 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
27325 alias.
27326 (y1f): Rename to __y1f and define as weak alias.
27327 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
27328 alias.
27329 [NO_LONG_DOUBLE] (__jnl): New strong alias.
27330 (yn): Rename to __yn and define as weak alias.
27331 [NO_LONG_DOUBLE] (__ynl): New strong alias.
27332 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
27333 alias.
27334 (ynf): Rename to __ynf and define as weak alias.
27335 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
27336 (fromfp): Define as weak alias.
27337 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
27338 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
27339 (fromfpx): Define as weak alias.
27340 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
27341 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
27342 __getpayload and define as weak alias.
27343 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27344 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
27345 __roundeven and define as weak alias.
27346 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27347 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
27348 __setpayload.
27349 (setpayload): Define as weak alias.
27350 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
27351 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
27352 __setpayloadsig.
27353 (setpayloadsig): Define as weak alias.
27354 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
27355 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
27356 __totalorder and define as weak alias.
27357 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27358 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
27359 to __totalordermag and define as weak alias.
27360 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27361 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
27362 (ufromfp): Define as weak alias.
27363 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
27364 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
27365 __ufromfpx.
27366 (ufromfpx): Define as weak alias.
27367 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
27368 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
27369 Rename to __getpayload and define as weak alias.
27370 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27371 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
27372 Rename to __roundeven and define as weak alias.
27373 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27374 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
27375 Rename to __totalorder and define as weak alias.
27376 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27377 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
27378 (totalordermag): Rename to __totalordermag and define as weak
27379 alias.
27380 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27381 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
27382 macro.
27383 (__roundevenl): Likewise.
27384 (__totalorderl): Likewise.
27385 (__totalordermagl): Likewise
27386 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
27387 __fromfpf128.
27388 (fromfpf128): Define as weak alias.
27389 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
27390 __fromfpxf128.
27391 (fromfpxf128): Define as weak alias.
27392 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
27393 __setpayloadf128.
27394 (setpayloadf128): Define as weak alias.
27395 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
27396 __setpayloadsigf128.
27397 (setpayloadsigf128): Define as weak alias.
27398 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
27399 __ufromfpf128.
27400 (ufromfpf128): Define as weak alias.
27401 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
27402 __ufromfpxf128.
27403 (ufromfpxf128): Define as weak alias.
27404 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
27405 (fromfpf): Define as weak alias.
27406 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
27407 __fromfpxf.
27408 (fromfpxf): Define as weak alias.
27409 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
27410 __getpayloadf and define as weak alias.
27411 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
27412 __roundevenf and define as weak alias.
27413 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
27414 __setpayloadf.
27415 (setpayloadf): Define as weak alias.
27416 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
27417 __setpayloadsigf.
27418 (setpayloadsigf): Define as weak alias.
27419 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
27420 __totalorderf and define as weak alias.
27421 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
27422 Rename to __totalordermagf and define as weak alias.
27423 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
27424 __ufromfpf.
27425 (ufromfpf): Define as weak alias.
27426 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
27427 __ufromfpxf.
27428 (ufromfpxf): Define as weak alias.
27429 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
27430 __fromfpl.
27431 (fromfpl): Define as weak alias.
27432 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
27433 __fromfpxl.
27434 (fromfpxl): Define as weak alias.
27435 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
27436 to __getpayloadl and define as weak alias.
27437 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
27438 __roundevenl and define as weak alias.
27439 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
27440 __setpayloadl.
27441 (setpayloadl): Define as weak alias.
27442 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
27443 __setpayloadsigl.
27444 (setpayloadsigl): Define as weak alias.
27445 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
27446 to __totalorderl and define as weak alias.
27447 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
27448 Rename to __totalordermagl and define as weak alias.
27449 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
27450 __ufromfpl.
27451 (ufromfpl): Define as weak alias.
27452 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
27453 __ufromfpxl.
27454 (ufromfpxl): Define as weak alias.
27455 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
27456 __fromfpl.
27457 (fromfpl): Define as weak alias.
27458 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
27459 __fromfpxl.
27460 (fromfpxl): Define as weak alias.
27461 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
27462 Rename to __getpayloadl and define as weak alias.
27463 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
27464 to __roundevenl and define as weak alias. Call __roundeven
27465 instead of roundeven.
27466 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
27467 __setpayloadl.
27468 (setpayloadl): Define as weak alias.
27469 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
27470 __setpayloadsigl.
27471 (setpayloadsigl): Define as weak alias.
27472 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
27473 Rename to __totalorderl and define as weak alias.
27474 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
27475 Rename to __totalordermagl and define as weak alias.
27476 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
27477 __ufromfpl.
27478 (ufromfpl): Define as weak alias.
27479 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
27480 __ufromfpxl.
27481 (ufromfpxl): Define as weak alias.
27482 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
27483 __fromfpl.
27484 (fromfpl): Define as weak alias.
27485 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
27486 __fromfpxl.
27487 (fromfpxl): Define as weak alias.
27488 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
27489 __getpayloadl and define as weak alias.
27490 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
27491 __roundevenl and define as weak alias.
27492 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
27493 __setpayloadl.
27494 (setpayloadl): Define as weak alias.
27495 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
27496 __setpayloadsigl.
27497 (setpayloadsigl): Define as weak alias.
27498 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
27499 __totalorderl and define as weak alias.
27500 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
27501 Rename to __totalordermagl and define as weak alias.
27502 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
27503 __ufromfpl.
27504 (ufromfpl): Define as weak alias.
27505 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
27506 __ufromfpxl.
27507 (ufromfpxl): Define as weak alias.
27508
27509 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
27510
27511 * benchtests/bench-string.h (realloc_bufs): New function.
27512 (test_init): Call it.
27513 * benchtests/bench-memset-large.c (do_test): Likewise.
27514 * benchtests/bench-memset.c (do_test): Likewise.
27515
27516 * benchtests/bench-memset-large.c: Print output in JSON
27517 format.
27518 * benchtests/bench-memset.c: Likewise.
27519
27520 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27521
27522 [BZ #21084]
27523 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
27524 * iconvdata/Makefile: Add IBM858.
27525 * iconvdata/gconv-modules: Likewise.
27526 * iconvdata/tst-tables.sh: Likewise.
27527 * iconvdata/ibm858.c: New file.
27528 * localedata/charmaps/IBM858: Likewise.
27529
27530 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
27531
27532 [BZ #22023]
27533 * locales/niu_NZ (LC_TIME): copy "niu_NU".
27534 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
27535
27536 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27537
27538 [BZ #22112]
27539 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
27540 and add tel_int_fmt.
27541
27542 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27543
27544 * sysdeps/generic/libm-alias-float128.h: New file.
27545 * sysdeps/generic/math-type-macros-float128.h: Include
27546 <libm-alias-float128.h>.
27547 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27548
27549 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27550
27551 * sysdeps/generic/libm-alias-ldouble.h: New file.
27552 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
27553 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
27554 * sysdeps/generic/math-type-macros-ldouble.h: Include
27555 <libm-alias-ldouble.h>.
27556 [!declare_mgen_alias] (declare_mgen_alias): Define to use
27557 libm_alias_ldouble.
27558
27559 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
27560
27561 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
27562 * math/w_exp_compat.c: ... here.
27563 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
27564 * math/w_expf_compat.c: ... here.
27565 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
27566 * math/w_expl_compat.c: ... here.
27567 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
27568 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
27569 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
27570 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27571
27572 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27573
27574 * math/w_scalbln_template.c (strong_alias): Do not undefine and
27575 redefine.
27576 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
27577 macro.
27578 (ldexpl): Only define as compat symbol for libc, not libm.
27579 (scalbnl): Define as compat symbol for libc here.
27580 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
27581 define for [IS_IN (libc)].
27582 (__ldexpl_2): Remove alias.
27583 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
27584 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
27585 name in long_double_symbol call.
27586 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
27587 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
27588 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
27589 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
27590 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
27591 Remove macro.
27592 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
27593 Define as compat symbol.
27594
27595 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27596
27597 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
27598 * sysdeps/unix/sysv/linux/alpha/Makefile
27599 [$(subdir) = csu] (sysdep_routines): Remove rule.
27600
27601 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27602
27603 * sysdeps/generic/libm-alias-double.h: New file.
27604 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
27605 * sysdeps/generic/math-type-macros-double.h: Include
27606 <libm-alias-double.h>.
27607 [declare_mgen_alias] (declare_mgen_alias): Define to use
27608 libm_alias_double.
27609 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
27610 (M_LIBM_NEED_COMPAT): Remove macro.
27611 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
27612 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
27613 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
27614 code.
27615 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27616 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27617 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27618 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27619 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27620 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27621 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27622 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27623 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27624 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27625 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27626 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27627 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27628 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27629 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27630 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27631 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27632 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27633 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27634 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27635 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27636 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27637 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27638 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27639 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27640 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27641 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27642 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
27643 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
27644 macro.
27645 (declare_mgen_alias): New macro.
27646 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
27647 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
27648 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
27649 (M_LIBM_NEED_COMPAT): Remove macro.
27650 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
27651 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
27652 <first-versions.h>.
27653 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
27654 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
27655
27656 2017-09-12 Joseph Myers <joseph@codesourcery.com>
27657
27658 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
27659 (declare_mgen_alias_2): Remove.
27660 * sysdeps/generic/math-type-macros-double.h
27661 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
27662 Likewise.
27663 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
27664 alias.
27665 (ldexp): Define with declare_mgen_alias.
27666 (scalbn): Likewise.
27667
27668 2017-09-12 Steve Ellcey <sellcey@cavium.com>
27669
27670 * grp/initgroups.c: Include config.h.
27671 (DEFAULT_CONFIG): New macro.
27672 (internal_getgrouplist): Use DEFAULT_CONFIG.
27673 * nscd/initgrcache.c (addinitgroupsX): Likewise.
27674 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
27675 (DEFAULT_DEFCONFIG): New macro.
27676 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
27677 * nss/grp-lookup.c: Include config.h
27678 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
27679 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
27680 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
27681 * manual/nss.texi: Update default values section.
27682
27683 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
27684
27685 [BZ #21967]
27686 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
27687 New.
27688 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
27689 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27690 Handle MathVec_Prefer_No_AVX512.
27691 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
27692 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
27693 is set.
27694
27695 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
27696
27697 * posix/sched_primax.c (__sched_get_priority_max): Add
27698 libc_hidden_def.
27699 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
27700 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
27701 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
27702 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
27703 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
27704 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
27705 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
27706 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
27707 Add aliases.
27708
27709 2017-09-11 Joseph Myers <joseph@codesourcery.com>
27710
27711 * sysdeps/generic/libm-alias-float.h: New file.
27712 * sysdeps/generic/math-type-macros-float.h: Include
27713 <libm-alias-float.h>.
27714 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27715
27716 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
27717
27718 [BZ #22093]
27719 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
27720 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
27721 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
27722 (HWCAP_IMPORTANT): Likewise.
27723 (HWCAP_X86_64): New enum.
27724 (HWCAP_X86_AVX512_1): Updated.
27725 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
27726 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
27727 (modules-names): Add x86_64/tst-x86_64mod-1.
27728 (LDFLAGS-tst-x86_64mod-1.so): New.
27729 ($(objpfx)tst-x86_64-1): Likewise.
27730 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
27731 (tst-x86_64-1-clean): Likewise.
27732 * sysdeps/x86_64/tst-x86_64-1.c: New file.
27733 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
27734
27735 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
27736
27737 * po/sv.po: Update translations.
27738 * po/fr.po: Likewise.
27739
27740 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
27741
27742 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
27743 seconds.
27744 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
27745 seconds.
27746 * elf/rtld-Rules: Fix $(error) use.
27747
27748 2017-09-09 Mike FABIAN <mfabian@redhat.com>
27749
27750 [BZ #14925]
27751 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
27752 * locale/iso-639.def: Change “Bengali” to “Bangla”.
27753 * localedata/locales/bn_BD: “Bengali” was still used in some
27754 comments. Change it to “Bangla”.
27755
27756 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
27757
27758 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
27759
27760 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27761
27762 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
27763 thunderx2t99p1 to list of cpu names.
27764 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
27765 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
27766
27767 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27768
27769 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
27770 Use strcmp instead of tunable_is_name.
27771
27772 2017-09-08 Joseph Myers <joseph@codesourcery.com>
27773
27774 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27775 (F_GET_RW_HINT): New macro.
27776 [__USE_GNU] (F_SET_RW_HINT): Likewise.
27777 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
27778 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
27779 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
27780 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
27781 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
27782 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
27783 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
27784 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
27785
27786 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27787 (F_ADD_SEALS): New macro.
27788 [__USE_GNU] (F_GET_SEALS): Likewise.
27789 [__USE_GNU] (F_SEAL_SEAL): Likewise.
27790 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
27791 [__USE_GNU] (F_SEAL_GROW): Likewise.
27792 [__USE_GNU] (F_SEAL_WRITE): Likewise.
27793
27794 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27795
27796 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
27797 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
27798 * posix/glob_internal.h (__glob_pattern_type):
27799 * posix/glob.c (glob):
27800 * posix/glob_pattern_p.c (__glob_pattern_p):
27801 Use them.
27802
27803 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
27804 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
27805 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
27806 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
27807 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27808 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
27809 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
27810 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
27811 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27812 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
27813 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27814 * sysdeps/wordsize-64/glob.c: Likewise.
27815 * sysdeps/wordsize-64/glob64.c: Likewise.
27816 * sysdeps/wordsize-64/globfree.c: Likewise.
27817 * sysdeps/wordsize-64/globfree64.c: Likewise.
27818 * sysdeps/unix/sysv/linux/glob.c: New file.
27819 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
27820 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
27821 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
27822 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27823 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
27824 adds !GLOB_NO_OLD_VERSION as an extra condition.
27825 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
27826 using relative path instead of absolute one.
27827 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
27828 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
27829 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
27830 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
27831 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
27832 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
27833
27834 [BZ #1062]
27835 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
27836 (glob): Use the same scratch buffer for both getlogin_r and
27837 getpwnam_r. Don’t require preallocation of the login name. This
27838 simplifies storage allocation, and corrects the handling of
27839 long login names.
27840
27841 [BZ #1062]
27842 * posix/glob.c (glob): Port recent patches to platforms
27843 lacking getpwnam_r.
27844 (glob): Fix longstanding misuse of errno after getpwnam_r, which
27845 returns an error number rather than setting errno.
27846
27847 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
27848 instead of GCC extension.
27849 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
27850 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
27851 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
27852
27853 [BZ #866]
27854 [BZ #1062]
27855 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
27856 * posix/bug-glob1.c: Remove file.
27857 * posix/tst-glob_symlinks.c: New file.
27858 * posix/glob.c (__lstat64): New macro.
27859 (is_dir): New function.
27860 (glob, glob_in_dir): Match symlinks even if they are dangling.
27861 (link_stat, link_exists_p): Remove. All uses removed.
27862
27863 [BZ #1062]
27864 [BZ #19971]
27865 * posix/glob.c (struct readdir_result): Remove skip_entry member.
27866 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
27867 All uses removed.
27868
27869 [BZ #1062]
27870 CVE-2017-15671
27871 * posix/Makefile (routines): Add globfree, globfree64, and
27872 glob_pattern_p.
27873 * posix/flexmember.h: New file.
27874 * posix/glob_internal.h: Likewise.
27875 * posix/glob_pattern_p.c: Likewise.
27876 * posix/globfree.c: Likewise.
27877 * posix/globfree64.c: Likewise.
27878 * sysdeps/gnu/globfree64.c: Likewise.
27879 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
27880 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27881 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
27882 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27883 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27884 * sysdeps/wordsize-64/globfree.c: Likewise.
27885 * sysdeps/wordsize-64/globfree64.c: Likewise.
27886 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
27887 [NDEBUG): Remove comments.
27888 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
27889 (dirent_type): New type. Use uint_fast8_t not
27890 uint8_t, as C99 does not require uint8_t.
27891 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
27892 (struct readdir_result): Use dirent_type. Do not define skip_entry
27893 unless it is needed; this saves a byte on platforms lacking d_ino.
27894 (readdir_result_type, readdir_result_skip_entry):
27895 New functions, replacing ...
27896 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
27897 these functions, which were removed. This makes the callers
27898 easier to read. All callers changed.
27899 (D_INO_TO_RESULT): Now empty if there is no d_ino.
27900 (size_add_wrapv, glob_use_alloca): New static functions.
27901 (glob, glob_in_dir): Check for size_t overflow in several places,
27902 and fix some size_t checks that were not quite right.
27903 Remove old code using SHELL since Bash no longer
27904 uses this.
27905 (glob, prefix_array): Separate MS code better.
27906 (glob_in_dir): Remove old Amiga and VMS code.
27907 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
27908 separate files.
27909 (glob_in_dir): Do not rely on undefined behavior in accessing
27910 struct members beyond their bounds. Use a flexible array member
27911 instead
27912 (link_stat): Rename from link_exists2_p and return -1/0 instead of
27913 0/1. Caller changed.
27914 (glob): Fix memory leaks.
27915 * posix/glob64 (globfree64): Move to separate file.
27916 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
27917 (globfree64): Remove hidden alias.
27918 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
27919 oldglob.
27920 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
27921 separate file.
27922 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
27923 define.
27924 Move compat code to separate file.
27925 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
27926 separate file.
27927
27928 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
27929
27930 * resolv/tst-resolv-qtypes.c (domain): Changed to
27931 "const char domain[] =".
27932
27933 2017-09-07 Joseph Myers <joseph@codesourcery.com>
27934
27935 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
27936 version to 3.1.6.
27937
27938 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
27939 (TCP_MD5SIG_EXT): Likewise.
27940 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
27941 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
27942 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
27943
27944 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
27945
27946 2017-09-07 Mike FABIAN <mfabian@redhat.com>
27947
27948 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
27949
27950 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
27951
27952 [BZ #22100]
27953 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
27954
27955 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
27956
27957 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
27958 before assuming that the file is empty. Avoid testing buffer content
27959 when nread == 0.
27960
27961 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27962
27963 [BZ #18858]
27964 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
27965 Remove define.
27966 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
27967 Likewise.
27968 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
27969 Likewise.
27970 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
27971 Likewise.
27972 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
27973 Likewise.
27974 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
27975 Likewise.
27976 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
27977 Likewise.
27978
27979 2017-09-06 Florian Weimer <fweimer@redhat.com>
27980
27981 * malloc/dynarray_emplace_enlarge.c
27982 (__libc_dynarray_emplace_enlarge): Add missing else.
27983
27984 2017-09-06 Florian Weimer <fweimer@redhat.com>
27985
27986 [BZ #22096]
27987 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
27988 case of failure to obtain the global conf object.
27989
27990 2017-09-06 Florian Weimer <fweimer@redhat.com>
27991
27992 [BZ #22095]
27993 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
27994 dynarray allocation failure.
27995
27996 2017-09-06 Florian Weimer <fweimer@redhat.com>
27997
27998 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
27999 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28000 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28001 New functions.
28002 (response): Call them. Add 'p', '6' flag processing.
28003 (test_reverse): New function.
28004 (test_get2_any): Call it.
28005 (test_no_inet6): Add 'p' test.
28006 (test_inet6): Likewise.
28007
28008 2017-09-06 Florian Weimer <fweimer@redhat.com>
28009
28010 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28011 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28012 the QNAME.
28013 (test_gai): Adjust query names. Add additional tests.
28014 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28015 test_get2. Adjust query names. Add additional tests.
28016 (test_no_inet6): New function, extracted from threadfunc.
28017 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28018 Add additional tests.
28019
28020 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28021
28022 [BZ #22070]
28023 * localedata/unicode-gen/utf8_gen.py: Set the width for
28024 characters with Prepended_Concatenation_Mark property to 1
28025 * localedata/charmaps/UTF-8: Updated using the improved script.
28026
28027 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28028
28029 [BZ #21750]
28030 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28031 use the range notation for all ranges of neighbouring characters
28032 with the same width.
28033
28034 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28035
28036 * sysdeps/generic/math-type-macros-double.h: Include
28037 <math-svid-compat.h>.
28038 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28039 * sysdeps/generic/math-type-macros-float.h: Include
28040 <math-svid-compat.h>.
28041 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28042 * sysdeps/generic/math-type-macros-ldouble.h: Include
28043 <math-svid-compat.h>.
28044 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28045 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28046 condition.
28047 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28048 * math/w_acosf_compat.c: Likewise.
28049 * math/w_acosh_compat.c: Likewise.
28050 * math/w_acoshf_compat.c: Likewise.
28051 * math/w_acoshl_compat.c: Likewise.
28052 * math/w_acosl_compat.c: Likewise.
28053 * math/w_asin_compat.c: Likewise.
28054 * math/w_asinf_compat.c: Likewise.
28055 * math/w_asinl_compat.c: Likewise.
28056 * math/w_atan2_compat.c: Likewise.
28057 * math/w_atan2f_compat.c: Likewise.
28058 * math/w_atan2l_compat.c: Likewise.
28059 * math/w_atanh_compat.c: Likewise.
28060 * math/w_atanhf_compat.c: Likewise.
28061 * math/w_atanhl_compat.c: Likewise.
28062 * math/w_cosh_compat.c: Likewise.
28063 * math/w_coshf_compat.c: Likewise.
28064 * math/w_coshl_compat.c: Likewise.
28065 * math/w_exp10_compat.c: Likewise.
28066 * math/w_exp10f_compat.c: Likewise.
28067 * math/w_exp10l_compat.c: Likewise.
28068 * math/w_exp2_compat.c: Likewise.
28069 * math/w_exp2f_compat.c: Likewise.
28070 * math/w_exp2l_compat.c: Likewise.
28071 * math/w_fmod_compat.c: Likewise.
28072 * math/w_fmodf_compat.c: Likewise.
28073 * math/w_fmodl_compat.c: Likewise.
28074 * math/w_hypot_compat.c: Likewise.
28075 * math/w_hypotf_compat.c: Likewise.
28076 * math/w_hypotl_compat.c: Likewise.
28077 * math/w_j0_compat.c: Likewise.
28078 * math/w_j0f_compat.c: Likewise.
28079 * math/w_j0l_compat.c: Likewise.
28080 * math/w_j1_compat.c: Likewise.
28081 * math/w_j1f_compat.c: Likewise.
28082 * math/w_j1l_compat.c: Likewise.
28083 * math/w_jn_compat.c: Likewise.
28084 * math/w_jnf_compat.c: Likewise.
28085 * math/w_jnl_compat.c: Likewise.
28086 * math/w_lgamma_r_compat.c: Likewise.
28087 * math/w_lgammaf_r_compat.c: Likewise.
28088 * math/w_lgammal_r_compat.c: Likewise.
28089 * math/w_log10_compat.c: Likewise.
28090 * math/w_log10f_compat.c: Likewise.
28091 * math/w_log10l_compat.c: Likewise.
28092 * math/w_log2_compat.c: Likewise.
28093 * math/w_log2f_compat.c: Likewise.
28094 * math/w_log2l_compat.c: Likewise.
28095 * math/w_log_compat.c: Likewise.
28096 * math/w_logf_compat.c: Likewise.
28097 * math/w_logl_compat.c: Likewise.
28098 * math/w_pow_compat.c: Likewise.
28099 * math/w_powf_compat.c: Likewise.
28100 * math/w_powl_compat.c: Likewise.
28101 * math/w_remainder_compat.c: Likewise.
28102 * math/w_remainderf_compat.c: Likewise.
28103 * math/w_remainderl_compat.c: Likewise.
28104 * math/w_sinh_compat.c: Likewise.
28105 * math/w_sinhf_compat.c: Likewise.
28106 * math/w_sinhl_compat.c: Likewise.
28107 * math/w_sqrt_compat.c: Likewise.
28108 * math/w_sqrtf_compat.c: Likewise.
28109 * math/w_sqrtl_compat.c: Likewise.
28110 * math/w_tgamma_compat.c: Likewise.
28111 * math/w_tgammaf_compat.c: Likewise.
28112 * math/w_tgammal_compat.c: Likewise.
28113 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28114 [LIBM_SVID_COMPAT].
28115 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28116 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28117 [LIBM_SVID_COMPAT].
28118 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28119 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28120 [LIBM_SVID_COMPAT].
28121 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28122 * sysdeps/i386/fpu/w_sqrt.c: New file.
28123 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28124 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28125 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28126 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28127 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28128 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28129 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28130 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28131 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28132 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28133 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28134 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28135 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28136 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28137 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28138 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28139 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28140 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28141 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28142 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28143 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28144 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28145 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28146 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28147 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28148 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28149 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28150 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28151 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28152 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28153 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28154 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28155 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28156 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28157 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28158 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28159 * sysdeps/ia64/fpu/w_log.c: Likewise.
28160 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28161 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28162 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28163 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28164 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28165 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28166 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28167 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28168 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28169 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28170 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28171 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28172 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28173 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28174 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28175 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28176 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28177 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28178 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28179 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28180 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28181 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28182 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28183 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28184 [LIBM_SVID_COMPAT].
28185 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28186 * sysdeps/ieee754/k_standard.c: Likewise.
28187 * sysdeps/ieee754/k_standardf.c: Likewise.
28188 * sysdeps/ieee754/k_standardl.c: Likewise.
28189 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28190 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28191 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28192 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28193 long_double_symbol call on [LIBM_SVID_COMPAT].
28194 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28195 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28196 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28197 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28198 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28199 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28200 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28201 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28202 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28203 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28204 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28205 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28206 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28207 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28208 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28209 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28210 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28211 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28212 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28213 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28214 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28215 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28216
28217 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28218
28219 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28220 * malloc/tst-mallocstate.c: Convert from test-skeleton
28221 to test-driver. Ifdef code using TEST_COMPAT macro.
28222 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28223 * math/test-matherr.c: Likewise.
28224
28225 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28226
28227 [BZ #22086]
28228 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28229 comparing word with byte-swapped constant.
28230
28231 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28232
28233 [BZ #20498]
28234 * locale/iso-639.def: add Miskito.
28235 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28236 * localedata/locales/miq_NI: New file.
28237
28238 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28239
28240 [BZ #18822]
28241 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28242 (__mkdir): Likewise.
28243 * io/chmod.c (__chmod): Add libc_hidden_def.
28244 * io/mkdir.c (__mkdir): Likewise.
28245 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28246 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28247 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28248 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28249
28250 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28251
28252 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28253 version to 4.13.
28254
28255 [BZ #22082]
28256 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28257 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28258
28259 2017-09-04 Florian Weimer <fweimer@redhat.com>
28260
28261 * math/math.h: Issue warning if log is defined.
28262
28263 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28264
28265 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28266 kernel version to 4.13.
28267
28268 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28269
28270 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28271 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28272 parameter.
28273 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28274 just <bits/types.h>.
28275 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28276 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28277 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28278 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28279 * misc/preadv2.c: Include <errno.h>.
28280 * misc/preadv64v2.c: Include <errno.h>.
28281 * misc/pwritev2.c: Include <errno.h>.
28282 * misc/pwritev64v2.c: Include <errno.h>.
28283 * sysdeps/posix/preadv2.c: Include <errno.h>.
28284 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28285 Fix <unistd.h> inclusion.
28286 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28287 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28288 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28289 __strtoul_internal): New functions.
28290 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28291 * sysdeps/posix/system.c: Include <sigsetops.h>.
28292 * sysdeps/mach/hurd/i386/Makefile
28293 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28294 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28295 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28296 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
28297 __feraiseexcept_renamed to feraiseexcept instead of
28298 __GI_feraiseexcept.
28299 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
28300 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
28301 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
28302 RWF_NOWAIT): Define to 0 if undefined already.
28303 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
28304 boils down to 0.
28305 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28306 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28307
28308 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28309
28310 * manual/math.texi (pow10): Do not document.
28311 (pow10f): Likewise.
28312 (pow10l): Likewise.
28313 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28314 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28315 * math/libm-test-exp10.inc (pow10_test): Remove.
28316 (do_test): Do not call pow10.
28317 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28318 [NO_LONG_DOUBLE] (pow10l): Likewise.
28319 * math/w_exp10f_compat.c (pow10f): Likewise.
28320 * math/w_exp10l_compat.c (pow10l): Likewise.
28321 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
28322 (pow10): Make into compat symbol.
28323 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
28324 (pow10f): Make into compat symbol.
28325 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
28326 (pow10l): Make into compat symbol.
28327 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
28328 pow10.
28329 (CFLAGS-nldbl-pow10.c): Remove variable..
28330 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
28331 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
28332 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
28333 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
28334 Undefine and redefine.
28335 (pow10l): Make into compat symbol.
28336 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
28337 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
28338 * sysdeps/arm/libm-test-ulps: Likewise.
28339 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
28340 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
28341 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28342 * sysdeps/microblaze/libm-test-ulps: Likewise.
28343 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
28344 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28345 * sysdeps/nios2/libm-test-ulps: Likewise.
28346 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28347 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
28348 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
28349 * sysdeps/sh/libm-test-ulps: Likewise.
28350 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
28351 * sysdeps/tile/libm-test-ulps: Likewise.
28352 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28353
28354 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28355
28356 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
28357
28358 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28359
28360 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
28361 "../ChangeLog.old/ChangeLog.8".
28362 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
28363 "../ChangeLog.old/ChangeLog.14".
28364
28365 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28366
28367 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
28368 Threads Library.
28369
28370 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28371
28372 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
28373
28374 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28375
28376 * csu/version.c (banner): Remove "by Roland McGrath et al.".
28377 * nptl/Banner: Remove "by Ulrich Drepper et al.".
28378
28379 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28380
28381 * stdlib/tst-atexit-common.c (do_test): Test support for at least
28382 32 atexit handlers.
28383
28384 2017-09-01 Zack Weinberg <zackw@panix.com>
28385
28386 * math/math.h (HUGE_VAL): Improve commentary.
28387
28388 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28389 Andreas Schwab <schwab@suse.de>
28390
28391 [BZ #21530]
28392 * include/stdio.h (__gen_tempfd): New function.
28393 * stdio-common/Makefile (routines): Add gentempfd.
28394 * stdio-common/gentempfd.c: New file.
28395 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
28396 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
28397 unnamed file first.
28398
28399 2017-09-01 Florian Weimer <fweimer@redhat.com>
28400
28401 [BZ #21915]
28402 [BZ #21922]
28403 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
28404 result to determine success or failure, not the errno value.
28405 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
28406 (tst-nss-files-hosts-erange): Link with -ldl.
28407 * nss/tst-nss-files-hosts-erange.c: New file.
28408 * nss/tst-resolv-basic.c (response): Handle nodata.example.
28409 (do_test): Add NO_DATA tests.
28410 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
28411 (do_test): Call it.
28412
28413 2017-09-01 Florian Weimer <fweimer@redhat.com>
28414
28415 [BZ #21922]
28416 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
28417 coming from gethostbyname2_r.
28418
28419 2017-09-01 Florian Weimer <fweimer@redhat.com>
28420
28421 * support/namespace.h (struct support_chroot_configuration): Add
28422 hosts, host_conf.
28423 (struct support_chroot): Add path_hosts, path_host_conf.
28424 * support/support_chroot.c (write_file): New function.
28425 (support_chroot_create): Call it to process /etc/resolv.conf,
28426 /etc/hosts, /etc/host.conf.
28427 (support_chroot_free): Update.
28428
28429 2017-09-01 Florian Weimer <fweimer@redhat.com>
28430
28431 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
28432 status indicates it is set.
28433
28434 2017-09-01 Florian Weimer <fweimer@redhat.com>
28435
28436 [BZ #20532]
28437 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
28438 function lookup failures more reliable.
28439
28440 2017-09-01 Florian Weimer <fweimer@redhat.com>
28441
28442 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
28443 (getcanonname): Likewise.
28444 (gaih_inet): Likewise.
28445
28446 2017-09-01 Florian Weimer <fweimer@redhat.com>
28447
28448 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
28449 (getcanonname): Likewise.
28450 (gaih_inet): Likewise.
28451
28452 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28453 Richard Henderson <rth@twiddle.net>
28454
28455 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
28456 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
28457 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
28458 (IREG_SIZE, OREG_SIZE): New macros.
28459 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
28460 (IREG_SIZE, OREG_SIZE): New macros.
28461 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
28462 (IREG_SIZE): New macro.
28463 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
28464 (IREG_SIZE): New macro.
28465 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
28466 New includes.
28467 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
28468 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28469 (__CONCATX): Handle exceptions correctly on large values that may
28470 set FE_INVALID.
28471 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
28472 Initialize if not already set.
28473 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28474
28475 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28476
28477 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
28478 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
28479 Likewise.
28480 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
28481 Likewise.
28482 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
28483 Likewise.
28484 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
28485 Likewise.
28486 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
28487 Likewise.
28488 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
28489 Likewise.
28490 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
28491 Likewise.
28492 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
28493 (NO_CANCELLATION): Likewise.
28494 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
28495 Likewise.
28496 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
28497 Likewise.
28498 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
28499 Likewise.
28500 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
28501 (NO_CANCELLATION): Likewise.
28502 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
28503 (NO_CANCELLATION): Likewise.
28504 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
28505 Likewise
28506 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
28507 Likewise.
28508 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
28509 Likewise.
28510 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
28511 Likewise.
28512 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
28513 hidden prototype.
28514 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
28515 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
28516
28517 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28518
28519 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
28520 in resolver call.
28521
28522 2017-08-31 Florian Weimer <fweimer@redhat.com>
28523
28524 * include/libc-symbols.h (internal_function): Remove.
28525
28526 2017-08-31 Florian Weimer <fweimer@redhat.com>
28527
28528 * stdlib/fmtmsg.c (internal_addseverity): Remove
28529 internal_function.
28530
28531 2017-08-31 Florian Weimer <fweimer@redhat.com>
28532
28533 * stdio-common/printf_fp.c (group_number): Remove
28534 internal_function.
28535 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
28536
28537 2017-08-31 Florian Weimer <fweimer@redhat.com>
28538
28539 * posix/fnmatch.c (internal_function): Remove definition.
28540 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
28541 * posix/regcomp.c (peek_token, init_word_char)
28542 (duplicate_node_closure, fetch_token, peek_token)
28543 (peek_token_bracket, build_range_exp, build_collating_symbol):
28544 Likewise.
28545 * posix/regex_internal.c (re_string_construct_common)
28546 (create_ci_newstate, create_cd_newstate, re_string_allocate)
28547 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
28548 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
28549 (re_string_translate_buffer, re_string_reconstruct)
28550 (re_string_peek_byte_case, re_string_fetch_byte_case)
28551 (re_string_destruct, re_string_context_at, re_node_set_alloc)
28552 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
28553 (re_node_set_add_intersect, re_node_set_init_union)
28554 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
28555 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
28556 (re_dfa_add_node, calc_state_hash, re_acquire_state)
28557 (re_acquire_state_context): Likewise.
28558 * posix/regex_internal.h (internal_function): Remove definition.
28559 (re_string_realloc_buffers, build_wcs_buffer)
28560 (build_wcs_upper_buffer, build_upper_buffer)
28561 (re_string_translate_buffer, re_string_context_at)
28562 (re_string_char_size_at, re_string_wchar_at)
28563 (re_string_elem_size_at): Likewise.
28564 * posix/regexec.c (match_ctx_init, match_ctx_clean)
28565 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
28566 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
28567 (re_search_internal, re_search_2_stub, re_search_stub)
28568 (re_copy_regs, prune_impossible_nodes, check_matching)
28569 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
28570 (free_fail_stack_return, sift_states_iter_mb)
28571 (sift_states_backward, build_sifted_states)
28572 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
28573 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
28574 (check_subexp_limits, sift_states_bkref, merge_state_array)
28575 (find_recover_state, transit_state, merge_state_with_log)
28576 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
28577 (transit_state_mb, transit_state_bkref, get_subexp)
28578 (get_subexp_sub, find_subexp_node, check_arrival)
28579 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
28580 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
28581 (check_node_accept_bytes, find_collation_sequence_value)
28582 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
28583 (acquire_init_state_context, check_halt_node_context)
28584 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
28585 (sub_epsilon_src_nodes): Likewise.
28586 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
28587 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
28588 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
28589 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
28590 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
28591 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
28592 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
28593 * sysdeps/posix/ttyname.c (getttyname): Likewise.
28594 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
28595 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
28596 (PREADV): Likewise.
28597 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
28598 (PREADV): Likewise.
28599 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
28600 (PWRITEV): Likewise.
28601 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
28602 (PWRITEV): Likewise.
28603 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
28604 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
28605
28606 2017-08-31 Florian Weimer <fweimer@redhat.com>
28607
28608 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
28609 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
28610 Remove internal_function.
28611 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
28612 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
28613 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
28614 (__deallocate_stack, __libc_pthread_init)
28615 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
28616 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
28617 (__libc_disable_asynccancel, __librt_disable_asynccancel):
28618 Likewise.
28619 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
28620 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
28621 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
28622 Likewise.
28623 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
28624 (__pthread_mutex_unlock_usercnt): Likewise.
28625
28626 2017-08-31 Florian Weimer <fweimer@redhat.com>
28627
28628 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
28629 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
28630 (fts_safe_changedir): Remove internal_function.
28631 * io/ftw.c (internal_function): Remove definition.
28632 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
28633
28634 2017-08-31 Florian Weimer <fweimer@redhat.com>
28635
28636 * inet/deadline.c (__deadline_current_time)
28637 (__deadline_from_timeval, __deadline_to_ms): Remove
28638 internal_function.
28639 * inet/getnameinfo.c (nrl_domainname): Likewise.
28640 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
28641 * inet/inet6_option.c (add_pad): Likewise.
28642 * inet/net-internal.h (__deadline_current_time)
28643 (__deadline_from_timeval, __deadline_to_ms): Likewise.
28644 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
28645 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
28646 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
28647
28648 2017-08-31 Joseph Myers <joseph@codesourcery.com>
28649
28650 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
28651 include <bits/nan.h>.
28652 * math/Makefile (headers): Remove bits/nan.h.
28653 * bits/nan.h: Remove.
28654 * sysdeps/ieee754/bits/nan.h: Likewise.
28655 * sysdeps/mips/bits/nan.h: Likewise.
28656
28657 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
28658 not include <bits/inf.h>.
28659 * math/Makefile (headers): Remove bits/inf.h.
28660 * bits/inf.h: Remove.
28661 * sysdeps/ieee754/bits/inf.h: Likewise.
28662
28663 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
28664 bits/huge_vall.h or bits/huge_val_flt128.h.
28665 (HUGE_VAL): Define directly here.
28666 [__USE_ISOC99] (HUGE_VALF): Likewise.
28667 [__USE_ISOC99] (HUGE_VALL): Likewise.
28668 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28669 (HUGE_VAL_F128): Likewise.
28670 * math/Makefile (headers): Remove bits/huge_val.h,
28671 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
28672 * bits/huge_val.h: Remove.
28673 * bits/huge_val_flt128.h: Likewise.
28674 * bits/huge_valf.h: Likewise.
28675 * bits/huge_vall.h: Likewise.
28676 * sysdeps/ia64/bits/huge_vall.h: Likewise.
28677 * sysdeps/ieee754/bits/huge_val.h: Likewise.
28678 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
28679 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
28680 * sysdeps/sh/bits/huge_val.h: Likewise.
28681 * sysdeps/sparc/bits/huge_vall.h: Likewise.
28682 * sysdeps/x86/bits/huge_vall.h: Likewise.
28683
28684 2017-08-31 Florian Weimer <fweimer@redhat.com>
28685
28686 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
28687 internal_function.
28688 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
28689 Likewise.
28690 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
28691 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
28692 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
28693 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
28694 * elf/dl-fini.c (_dl_sort_fini): Likewise.
28695 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
28696 * elf/dl-libc.c (dlerror_run): Likewise.
28697 * elf/dl-load.c (add_name_to_object, decompose_rpath)
28698 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
28699 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
28700 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
28701 Likewise.
28702 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
28703 (_dl_higher_prime_number, _dl_strtoul): Likewise.
28704 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
28705 * elf/dl-profile.c (_dl_start_profile): Likewise.
28706 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
28707 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
28708 Likewise.
28709 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
28710 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
28711 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
28712 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
28713 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
28714 (_dl_allocate_tls_storage): Likewise.
28715 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
28716 (_dl_check_all_versions): Likewise.
28717 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
28718 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
28719 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
28720 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28721 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
28722 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
28723 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
28724 internal_function from __dl_start.
28725 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
28726 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
28727 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
28728 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
28729 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
28730 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
28731 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
28732 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
28733 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
28734 (_dl_next_ld_env_entry, _dl_important_hwcaps)
28735 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
28736 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
28737 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
28738 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
28739 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
28740 Likewise.
28741 (struct rtld_global_ro): Remove internal_function from the
28742 _dl_lookup_symbol_x member.
28743 (_dl_symbol_value): Remove. No longer defined anywhere.
28744 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
28745 internal_function.
28746 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28747 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28748 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
28749 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
28750 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
28751 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
28752 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
28753 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
28754 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
28755 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
28756 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28757 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28758
28759 2017-08-31 Florian Weimer <fweimer@redhat.com>
28760
28761 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
28762 Remove internal_function.
28763 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28764 Likewise.
28765 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28766 Likewise.
28767
28768 2017-08-31 Florian Weimer <fweimer@redhat.com>
28769
28770 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
28771 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
28772 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
28773
28774 2017-08-31 Florian Weimer <fweimer@redhat.com>
28775
28776 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
28777 (__gai_enqueue_request): Remove internal_function.
28778 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
28779 (__gai_remove_request, __gai_notify, __gai_notify_only)
28780 (__gai_sigqueue): Likewise.
28781 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
28782 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
28783 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
28784 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
28785 Likewise.
28786
28787 2017-08-31 Florian Weimer <fweimer@redhat.com>
28788
28789 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
28790 * include/dirent.h (__opendirat, __getdents, __getdents64)
28791 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
28792 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
28793 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
28794 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28795 Likewise.
28796 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
28797
28798 2017-08-31 Florian Weimer <fweimer@redhat.com>
28799
28800 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
28801 internal_function.
28802 (GETCWD_RETURN_TYPE): Likewise.
28803
28804 2017-08-31 Florian Weimer <fweimer@redhat.com>
28805
28806 * include/time.h (__tz_compute, __strptime_internal): Remove
28807 internal_function.
28808 * time/strptime_l.c (__strptime_internal): Likewise.
28809 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
28810
28811 2017-08-31 Florian Weimer <fweimer@redhat.com>
28812
28813 * iconv/gconv.c (__gconv): Remove internal_function.
28814 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
28815 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
28816 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
28817 (__gconv_release_cache): Likewise.
28818 * iconv/gconv_close.c (__gconv_close): Likewise.
28819 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
28820 (read_conf_file, __gconv_get_path): Likewise.
28821 * iconv/gconv_db.c (derivation_lookup, add_derivation)
28822 (__gconv_release_step, gen_steps, increment_counter)
28823 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
28824 (__gconv_close_transform, free_modules_db): Likewise.
28825 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
28826 Likewise.
28827 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
28828 (__gconv_find_transform, __gconv_lookup_cache)
28829 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
28830 (__gconv_close_transform, __gconv_release_cache)
28831 (__gconv_loaded_object, __gconv_release_shlib)
28832 (__gconv_compare_alias): Likewise.
28833 * iconv/gconv_open.c (__gconv_open): Likewise.
28834 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
28835 * iconv/iconvconfig.c (add_module): Likewise.
28836 * intl/dcigettext.c (plural_lookup, guess_category_value)
28837 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
28838 * intl/eval-plural.h (plural_eval): Likewise.
28839 * intl/finddomain.c (_nl_find_domain): Likewise.
28840 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
28841 (_nl_load_domain, _nl_find_msg): Likewise.
28842 (internal_function): Remove definition.
28843 * intl/loadinfo.h (internal_function): Likewise.
28844 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
28845 internal_function.
28846 * intl/localealias.c (internal_function): Remove definition.
28847 (read_alias_file): Remove internal_function.
28848 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
28849 * intl/plural-exp.h (internal_function): Remove definition.
28850 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
28851 internal_function.
28852 * intl/plural.c: Regenerate.
28853 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
28854 * locale/coll-lookup.c (__collidx_table_lookup)
28855 (__collseq_table_lookup): Likewise.
28856 * locale/coll-lookup.h (__collidx_table_lookup)
28857 (__collseq_table_lookup): Likewise.
28858 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
28859 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
28860 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
28861 (_nl_unload_locale): Likewise.
28862 * locale/localeinfo.h (struct __locale_data): Remove
28863 internal_function from cleanup member.
28864 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
28865 (_nl_remove_locale, _nl_load_locale_from_archive)
28866 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
28867 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
28868 (_nl_cleanup_time): Remove internal_function.
28869 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
28870 (_nl_parse_alt_digit): Likewise.
28871 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
28872 (_nl_select_era_entry): Likewise.
28873 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
28874 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28875 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28876 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28877 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28878
28879 2017-08-31 Florian Weimer <fweimer@redhat.com>
28880
28881 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
28882 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28883 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
28884 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
28885 Likewise.
28886 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
28887 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
28888 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
28889 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
28890 Likewise.
28891 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
28892
28893 2017-08-31 Florian Weimer <fweimer@redhat.com>
28894
28895 * misc/getttyent.c (skip, value): Remove internal_function.
28896 * misc/syslog.c (openlog_internal): Likewise.
28897 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
28898
28899 2017-08-31 Florian Weimer <fweimer@redhat.com>
28900
28901 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
28902 (__nss_rewrite_field): Remove internal_function.
28903 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
28904 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
28905 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
28906 * nss/nsswitch.c (nss_parse_file, nss_getline)
28907 (nss_parse_service_list, nss_new_service): Likewise.
28908 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
28909 * nss/valid_field.c (__nss_valid_field): Likewise.
28910 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
28911
28912 2017-08-31 Florian Weimer <fweimer@redhat.com>
28913
28914 * malloc/arena.c (__malloc_fork_lock_parent)
28915 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
28916 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
28917 internal_function from defintions.
28918 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
28919 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
28920 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
28921 internal_function from declarations.
28922 * malloc/malloc.c (internal_function): Do not define.
28923 (mem2mem_check): Remove internal_function from declaration.
28924 (munmap_chunk, mremap_chunk): Remove internal_function.
28925 * malloc/mtrace.c (tr_where): Likewise.
28926
28927 2017-08-31 Florian Weimer <fweimer@redhat.com>
28928
28929 * include/rpc/pmap_clnt.h (__get_socket): Remove
28930 internal_function.
28931 * sunrpc/auth_des.c (synchronize): Likewise.
28932 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
28933 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
28934 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
28935 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
28936 (key_call): Likewise.
28937 * sunrpc/pm_getport.c (__get_socket): Likewise.
28938 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
28939 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
28940 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
28941 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
28942 (invalidate): Likewise.
28943 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
28944 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
28945 (set_input_fragment, get_input_bytes): Likewise.
28946
28947 2017-08-31 Florian Weimer <fweimer@redhat.com>
28948
28949 * malloc/malloc.c (_int_free): Remove locked variable and related
28950 asserts.
28951
28952 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
28953
28954 [BZ #22051]
28955 * Makerules (build-module-helper-objlist): Filter out
28956 $(elf-objpfx)sofini.os.
28957 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
28958 needed.
28959
28960 2017-08-31 Florian Weimer <fweimer@redhat.com>
28961
28962 * libio/fcloseall.c: Assume weak_alias is defined.
28963 * libio/feof.c: Likewise.
28964 * libio/fileno.c: Likewise.
28965 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
28966 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
28967 definitions.
28968 (_IO_file_open): Call __open directly.
28969 (_IO_new_file_sync): Assume ESPIPE is defined.
28970 (_IO_file_seekoff_maybe_mmap): Call __read directly.
28971 (_IO_new_file_write): Call __write directly.
28972 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
28973 * libio/ftello64.c (__ftello64): Assume EIO is defined.
28974 * libio/genops.c: Assume _LIBC is defined.
28975 (save_for_backup): Remove internal_function.
28976 * libio/getc.c: Assume weak_alias is defined.
28977 * libio/getwc.c: Likewise.
28978 * libio/iofclose.c: Assume _LIBC is defined.
28979 * libio/iofdopen.c: Likewise.
28980 (_IO_fcntl): Remove macro definition.
28981 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
28982 Call __fcntl directly.
28983 * libio/iofflush.c: Assume weak_alias is defined.
28984 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
28985 defined.
28986 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
28987 * libio/iofgets.c: Likewise.
28988 * libio/iofopen.c: Assume _LIBC is defined.
28989 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
28990 * libio/iofputs.c: Assume weak_alias is defined.
28991 * libio/iofread.c: Likewise.
28992 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
28993 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
28994 * libio/ioftell.c: Assume weak_alias is defined.
28995 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
28996 * libio/iofwide.c: Assume _LIBC is defined.
28997 (_IO_fwide): Drop SHARED conditional because it is implied by
28998 SHLIB_COMPAT.
28999 * libio/iofwrite.c: Assume weak_alias is defined.
29000 * libio/iogetdelim.c: Likewise.
29001 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29002 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29003 (_IO_getwline): Call __wmemcpy directly.
29004 * libio/iopopen.c: Assume _LIBC is defined.
29005 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29006 (_IO_close): Remove macro definitions.
29007 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29008 _exit directly.
29009 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29010 directly.
29011 * libio/ioputs.c: Assume weak_alias is defined.
29012 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29013 * libio/iosetbuffer.c: Assume weak_alias is defined.
29014 * libio/iosetvbuf.c: Likewise.
29015 * libio/ioungetc.c: Likewise.
29016 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29017 libc_hidden_def, libc_hidden_weak, NULL are defined.
29018 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29019 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29020 defined.
29021 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29022 definitions.
29023 (_IO_old_file_init_internal): Drop SHARED conditional because it
29024 is implied by SHLIB_COMPAT.
29025 (_IO_old_file_fopen): Call __open directly.
29026 (_IO_old_file_sync): Assume ESPIPE is defined.
29027 (_IO_old_file_write): Call __write directly.
29028 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29029 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29030 Call __fcntl directly.
29031 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29032 (_IO_old_fgetpos): Assume EIO is defined.
29033 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29034 (_IO_old_fgetpos64): Assume EIO is defined.
29035 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29036 (_IO_old_fsetpos): Assume EIO is defined.
29037 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29038 (_IO_old_fsetpos64): Assume EIO is defined.
29039 * libio/oldiopopen.c: Assume _LIBC is defined.
29040 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29041 (_IO_close): Remove macro definitions.
29042 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29043 directly.
29044 (_IO_old_proc_close): Call __close, __waitpid directly.
29045 * libio/put.c: Assume weak_alias is defined.
29046 * libio/stdfiles.c: Assume _LIBC is defined.
29047 * libio/stdio.c: Likewise.
29048 * libio/wfileops.c: Likewise.
29049 (_IO_wfile_sync): Assume ESPIPE is defined.
29050 * libio/wgenops.c: Assume _LIBC is defined.
29051 (save_for_wbackup): Remove internal_function.
29052
29053 2017-08-31 Florian Weimer <fweimer@redhat.com>
29054
29055 * malloc/malloc.c (top_check): Change return type to void. Remove
29056 internal_function.
29057 * malloc/hooks.c (top_check): Likewise.
29058 (malloc_check, realloc_check, memalign_check): Adjust.
29059
29060 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29061
29062 [BZ #21457]
29063 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29064 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29065 sigcontext and namespace requirements.
29066 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29067 * sysdeps/m68k/sys/ucontext.h: Likewise.
29068 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29069 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29070 <bits/sigcontext.h>.
29071 (__ctx): Define earlier.
29072 (mcontext_t): Define structure contents rather than using struct
29073 sigcontext.
29074 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29075 __glibc_reserved1 instead of __reserved.
29076 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29077 <bits/sigcontext.h>.
29078 (__ctx): Define earlier.
29079 (mcontext_t): Define structure contents rather than using struct
29080 sigcontext.
29081 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29082 mcontext_t instead of struct sigcontext.
29083 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29084 <bits/sigcontext.h>.
29085 (__ctx): Define earlier.
29086 (mcontext_t): Define structure contents rather than using struct
29087 sigcontext.
29088 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29089 <bits/sigcontext.h>.
29090 (__ctx): Define earlier.
29091 (mcontext_t): Define structure contents rather than using struct
29092 sigcontext.
29093 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29094 mcontext_t instead of struct sigcontext.
29095 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29096 mcontext_t instead of struct sigcontext.
29097 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29098 <bits/sigcontext.h>.
29099 (__ctx): New macro.
29100 (struct __ia64_fpreg_mcontext): New type.
29101 (mcontext_t): Define structure contents rather than using struct
29102 sigcontext.
29103 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29104 (uc_sigmask): Define using __ctx.
29105 (uc_stack): Likewise.
29106 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29107 <bits/sigcontext.h>.
29108 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29109 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29110 <bits/sigcontext.h>.
29111 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29112 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29113 <bits/sigcontext.h>.
29114 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29115 <bits/sigcontext.h>.
29116 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29117 <bits/sigcontext.h>.
29118 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29119 <bits/sigcontext.h>.
29120 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29121 <bits/sigcontext.h>.
29122 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29123 <bits/sigcontext.h>.
29124 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29125 <bits/sigcontext.h>.
29126 (__ctx): Define earlier.
29127 (mcontext_t): Define structure contents rather than using struct
29128 sigcontext.
29129 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29130 <bits/sigcontext.h>. Include <bits/types.h>.
29131 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29132 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29133 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29134 (test-xfail-UNIX98/signal.h/conform): Likewise.
29135 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29136 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29137 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29138 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29139 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29140 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29141 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29142 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29143 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29144
29145 2017-08-30 Florian Weimer <fweimer@redhat.com>
29146
29147 * malloc/dynarray_emplace_enlarge.c
29148 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29149 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29150 * malloc/tst-dynarray.c (test_long_overflow): New function.
29151 (do_test): Call it.
29152
29153 2017-08-30 Florian Weimer <fweimer@redhat.com>
29154
29155 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29156 (set_arena_corrupt): Remove definitions.
29157 (mtrim): Do not check for corrupt arena.
29158 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29159 Likewise.
29160
29161 2017-08-30 Florian Weimer <fweimer@redhat.com>
29162
29163 [BZ #21754]
29164 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29165 check_action.
29166 (ptmalloc_init): Do not set or use check_action.
29167 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29168 call to malloc_printerr. Remove return statement.
29169 (free_check): Likewise. Remove arena unlock.
29170 (top_check): Update comment. Adjust call to malloc_printerr.
29171 Remove heap repair code.
29172 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29173 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29174 (sysmalloc): Adjust call to malloc_printerr.
29175 (munmap_chunk, __libc_realloc): Likewise. Remove return
29176 statement.
29177 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29178 Remove errout label and corresponding gotos.
29179 (_int_free): Likewise. Remove arena unlock.
29180 (do_set_mallopt_check): Do not set check_action.
29181 (malloc_printerr): Adjust parameter list. Do not mark arena as
29182 corrupt.
29183 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29184 comment.
29185 * manual/probes.texi (Memory Allocation Probes): Remove
29186 memory_mallopt_check_action.
29187
29188 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29189
29190 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29191 Use pointer to uint64_t instead of long int for sp.
29192
29193 2017-08-30 Florian Weimer <fweimer@redhat.com>
29194
29195 [BZ #21754]
29196 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29197 without printing a backtrace. Do not leak any information in the
29198 error message.
29199 * manual/memory.texi (Heap Consistency Checking): Update.
29200 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29201
29202 2017-08-30 Florian Weimer <fweimer@redhat.com>
29203
29204 Do not scale NPTL tests with available number of CPUs.
29205 * nptl/tst-cond16.c (count): Set to constant value of 8.
29206 * nptl/tst-cond18.c (count): Likewise.
29207
29208 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29209
29210 [BZ #22035]
29211 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29212 Define to take a second argument that is a macro that
29213 concatentates a suffix, not the suffix itself.
29214 (__CONCAT_d): New macro.
29215 (__CONCAT_f): Likewise.
29216 (__CONCAT_l): Likewise.
29217
29218 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29219
29220 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29221 by child.
29222
29223 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29224 Aurelien Jarno <aurelien@aurel32.net>
29225 Maciej W. Rozycki <macro@imgtec.com>
29226
29227 [BZ #21956]
29228 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29229 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29230 `mips16-syscall6' and `mips16-syscall7'.
29231 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29232 (CFLAGS-mips16-syscall7.c): Remove.
29233 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29234 Remove `__mips16_syscall5', `__mips16_syscall6' and
29235 `__mips16_syscall7'.
29236 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29237 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29238 `__mips_syscall_return'.
29239 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29240 (__mips16_syscall1): Likewise.
29241 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29242 (__mips16_syscall2): Likewise.
29243 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29244 (__mips16_syscall3): Likewise.
29245 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29246 (__mips16_syscall4): Likewise.
29247 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29248 Remove.
29249 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29250 Remove.
29251 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29252 Remove.
29253 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29254 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29255 `__mips16_syscall5'. Remove prototype.
29256 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29257 `__mips16_syscall6'. Remove prototype.
29258 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29259 `__mips16_syscall7'. Remove prototype.
29260 (__nomips16, __mips16_syscall_return): Move to...
29261 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29262 (__nomips16, __mips_syscall_return): ... here.
29263 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29264 `__mips16_syscall_return' to `__mips_syscall_return'.
29265 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29266 `internal_syscall##nr'.
29267 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29268 `internal_syscall##nr'.
29269 (FORCE_FRAME_POINTER): Remove.
29270 (__mips_syscall5): New prototype.
29271 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29272 (__mips_syscall6): New prototype.
29273 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29274 (__mips_syscall7): New prototype.
29275 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29276 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29277 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29278 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29279 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29280 (sysdep_routines): Add libc-do-syscall.
29281 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29282 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29283
29284 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29285
29286 [BZ #21672]
29287 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29288 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29289 (advise_stack_range): New function.
29290 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29291 stack non required to advise_stack_range at allocatestack.c
29292
29293 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29294
29295 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29296
29297 2017-08-29 Florian Weimer <fweimer@redhat.com>
29298
29299 [BZ #22026]
29300 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
29301 __end_fct. Mangle __end_fct after setting it to NULL.
29302 * iconv/Makefile (tests): Add tst-gconv-init-failure.
29303 (modules-names, modules-names-tests): Add
29304 tst-gconv-init-failure-mod.
29305 (gconv-modules): New target.
29306 (tst-gconv-init-failure-mod.so): Link against libsupport.
29307 (tst-gconv-init-failure): Depend on gconv-modules,
29308 tst-gconv-init-failure-mod.so.
29309 * iconv/tst-gconv-init-failure-mod.c: New file.
29310 * iconv/tst-gconv-init-failure.c: Likewise.
29311 * iconv/test-gconv-modules: Likewise.
29312
29313 2017-08-29 Florian Weimer <fweimer@redhat.com>
29314
29315 [BZ #22025]
29316 * iconv/gconv_db.c (free_derivation): Remove redundant
29317 parentheses.
29318 (gen_steps): Unconditionally mangle __btowc_fct after
29319 initialization.
29320 (increment_counter): Likewise. Do not call init_fct for internal
29321 modules.
29322
29323 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29324
29325 [BZ #22028]
29326 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29327 (_MSUF_): Remove macro.
29328 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
29329 Likewise.
29330 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29331 (__REDIRFROM_X): New macro.
29332 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
29333 Likewise.
29334 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
29335 (__REDIRTO_X): Likewise.
29336 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
29337 arguments.
29338 (__MATH_REDIRCALL_2): Likewise.
29339 (__MATH_REDIRCALL_INTERNAL): Likewise.
29340 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29341 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
29342 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
29343 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29344 * math/test-finite-macros.c: New file.
29345 * math/Makefile (tests): Add test-finite-macros.
29346 (CFLAGS-test-finite-macros.c): New variable.
29347
29348 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
29349 Jeff Law <law@redhat.com>
29350
29351 [BZ #22025]
29352 Mangle NULL pointers in iconv/gconv.
29353 * iconv/gconv_cache.c (find_module): Demangle init_fct before
29354 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
29355 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
29356 is non-NULL before demangling the end_fct. Check for NULL
29357 end_fct after demangling.
29358 (__gconv_release_step): Demangle the end_fct before checking
29359 it for NULL. Remove assert on __shlibc_handle != NULL.
29360 (gen_steps): Don't check btowc_fct for NULL before mangling.
29361 Demangle init_fct before checking for NULL.
29362 (increment_counter): Likewise.
29363 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
29364 end_fct for NULL before mangling.
29365 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
29366 for NULL.
29367
29368 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
29369
29370 [BZ #21971]
29371 * locale/iso-639.def: add Morisyen.
29372
29373 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29374
29375 [BZ #21930]
29376 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
29377 (iszero): New C++ implementation that does not use
29378 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
29379 signaling nans are enabled, since __builtin_types_compatible_p
29380 is a C-only feature.
29381 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
29382 defined, include ieee754_float128.h for access to the union and
29383 member ieee854_float128.ieee.
29384 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
29385 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
29386 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29387 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
29388 options of test-math-zero on powerpc64le.
29389
29390 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
29391
29392 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29393 Change double to float.
29394
29395 2017-08-28 Joseph Myers <joseph@codesourcery.com>
29396
29397 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
29398 unconditional.
29399 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
29400 conditional code; define contents only for [LIBM_SVID_COMPAT].
29401
29402 2017-08-28 Florian Weimer <fweimer@redhat.com>
29403
29404 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
29405 (abi-lp64_be-options): Remove.
29406 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
29407 (abi-hard-options): Likewise.
29408 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
29409 (abi-o32_hard-options, abi-o32_soft_2008-options)
29410 (abi-o32_hard_2008-options, abi-n32_soft-options)
29411 (abi-n32_hard-options, abi-n32_soft_2008-options)
29412 (abi-n32_hard_2008-options, abi-n64_soft-options)
29413 (abi-n64_hard-options, abi-n64_soft_2008-options)
29414 (abi-n64_hard_2008-options): Likewise.
29415 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
29416 (abi-64-v1-options, abi-64-v2-options): Likewise.
29417 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
29418 (abi-64-options): Likewise.
29419 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
29420 (abi-64-options): Likewise.
29421 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
29422 (abi-64-options): Likewise.
29423 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
29424 (abi-64-options, abi-x32-options): Likewise.
29425
29426 2017-08-28 Florian Weimer <fweimer@redhat.com>
29427
29428 Store supported list of SYS_* system calls in the source tree.
29429 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
29430 (bits/syscall.h): Generate from list file.
29431 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
29432 [$(subdir) = misc] (tests): Add tst-syscall-list.
29433 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
29434 [$(subdir) = misc] (tst-syscall-list-macros.list)
29435 [$(subdir) = misc] (tst-syscall-list-nr.list)
29436 (tst-syscall-list-sys.list): Helper targets for new
29437 tst-syscall-list test.
29438 [$(subdir) = misc] (tst-syscall-list.out): Run test script
29439 tst-syscall-list.sh.
29440 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
29441 target. Do not include bits/syscall.d.
29442 [$(subdir) = misc] (generated): Do not update.
29443 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
29444 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
29445 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
29446 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
29447
29448 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
29449
29450 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
29451 (tst-cxa_atexit, tst-on_exit): Likewise.
29452 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
29453 tst-cxa_atexit, and tst-on_exit.
29454 * stdlib/tst-atexit-common.c: New file.
29455 * stdlib/tst-atexit.c: New file.
29456 * stdlib/tst-at_quick_exit.c: New file.
29457 * stdlib/tst-cxa_atexit.c: New file.
29458 * stdlib/tst-on_exit.c: New file.
29459
29460 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29461
29462 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
29463 * mach/stack_chk_fail_local.c: New file.
29464 * hurd/stack_chk_fail_local.c: New file.
29465 * mach/Machrules ($(interface-library)-routines): Add
29466 stack_chk_fail_local.
29467 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
29468 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
29469 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
29470 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
29471 * hurd/Makefile (CFLAGS-hurdstartup.o,
29472 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
29473
29474 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
29475
29476 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
29477 (index_cpu_*, index_arch_*): Removed.
29478
29479 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29480
29481 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
29482 Use uint64_t instead of unsigned long.
29483
29484 2017-08-25 Joseph Myers <joseph@codesourcery.com>
29485
29486 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
29487 [__HAVE_DISTINCT_FLOAT128].
29488
29489 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
29490 of <bits/math-finite.h>.
29491 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
29492 inclusion of <bits/math-finite.h>.
29493 * math/bits/math-finite.h (__REDIRTO_X): Do not define
29494 conditionally on [__MATH_DECLARING_LDOUBLE && defined
29495 __NO_LONG_DOUBLE_MATH].
29496 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
29497 (__MATH_REDIRCALL_2): Likewise.
29498 (__MATH_REDIRCALL_INTERNAL): Likewise.
29499 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29500 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
29501 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29502
29503 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
29504 Remove file.
29505 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
29506 Likewise.
29507 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
29508 Likewise.
29509 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
29510 Likewise.
29511 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
29512 Likewise.
29513 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
29514 Likewise.
29515 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
29516 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
29517 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
29518 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
29519 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
29520 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
29521 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
29522 w_sqrtf_compat-ppc32.
29523
29524 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29525
29526 * math/math.h [defined __cplusplus] (issignaling): In the long
29527 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
29528 is not defined. Call __issignaling, otherwise.
29529
29530 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29531
29532 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
29533 syscall definitions and replace __builtin_expect with __glibc_likely.
29534 * sysdeps/unix/syscall-template.S: Update comment about cancellable
29535 syscall.
29536 (SYSCALL_CANCELLABLE): Removedefinition
29537 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
29538 definition.
29539 (PSEUDO_END): Likewise.
29540 [IS_IN (libpthread)] (CENABLE): Likewise.
29541 [IS_IN (libpthread)] (CDISABLE): Likewise.
29542 [IS_IN (libc)] (CENABLE): Likewise.
29543 [IS_IN (libc)] (CENABLE): Likewise.
29544 [IS_IN (librt)] (CDISABLE): Likewise.
29545 [IS_IN (librt)] (CDISABLE): Likewise.
29546 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29547 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
29548 definition.
29549 (PSEUDO_END): Likewise.
29550 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
29551 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
29552 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29553 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29554 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29555 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29556 (CENABLE): Likewise.
29557 (CDISABLE): Likewise.
29558 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29559 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
29560 defintion.
29561 (PSEUDO_END): Likewise.
29562 [IS_IN (libpthread)] (CENABLE): Likewise.
29563 [IS_IN (libpthread)] (CDISABLE): Likewise.
29564 [IS_IN (libc)] (CENABLE): Likewise.
29565 [IS_IN (libc)] (CENABLE): Likewise.
29566 [IS_IN (librt)] (CDISABLE): Likewise.
29567 [IS_IN (librt)] (CDISABLE): Likewise.
29568 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29569 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
29570 definition.
29571 (PSEUDO_END): Likewise.
29572 [IS_IN (libpthread)] (CENABLE): Likewise.
29573 [IS_IN (libpthread)] (CDISABLE): Likewise.
29574 [IS_IN (libc)] (CENABLE): Likewise.
29575 [IS_IN (libc)] (CENABLE): Likewise.
29576 [IS_IN (librt)] (CDISABLE): Likewise.
29577 [IS_IN (librt)] (CDISABLE): Likewise.
29578 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29579 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
29580 definition.
29581 (PSEUDO_END): Likewise.
29582 [IS_IN (libpthread)] (CENABLE): Likewise.
29583 [IS_IN (libpthread)] (CDISABLE): Likewise.
29584 [IS_IN (libc)] (CENABLE): Likewise.
29585 [IS_IN (libc)] (CENABLE): Likewise.
29586 [IS_IN (librt)] (CDISABLE): Likewise.
29587 [IS_IN (librt)] (CDISABLE): Likewise.
29588 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29589 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
29590 definition.
29591 (PSEUDO_END): Likewise.
29592 [IS_IN (libpthread)] (CENABLE): Likewise.
29593 [IS_IN (libpthread)] (CDISABLE): Likewise.
29594 [IS_IN (libc)] (CENABLE): Likewise.
29595 [IS_IN (libc)] (CENABLE): Likewise.
29596 [IS_IN (librt)] (CDISABLE): Likewise.
29597 [IS_IN (librt)] (CDISABLE): Likewise.
29598 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29599 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
29600 definition.
29601 (PSEUDO_END): Likewise.
29602 [IS_IN (libpthread)] (CENABLE): Likewise.
29603 [IS_IN (libpthread)] (CDISABLE): Likewise.
29604 [IS_IN (libc)] (CENABLE): Likewise.
29605 [IS_IN (libc)] (CENABLE): Likewise.
29606 [IS_IN (librt)] (CDISABLE): Likewise.
29607 [IS_IN (librt)] (CDISABLE): Likewise.
29608 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29609 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
29610 definition.
29611 (PSEUDO_END): Likewise.
29612 [IS_IN (libpthread)] (CENABLE): Likewise.
29613 [IS_IN (libpthread)] (CDISABLE): Likewise.
29614 [IS_IN (libc)] (CENABLE): Likewise.
29615 [IS_IN (libc)] (CENABLE): Likewise.
29616 [IS_IN (librt)] (CDISABLE): Likewise.
29617 [IS_IN (librt)] (CDISABLE): Likewise.
29618 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29619 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
29620 Remove definition.
29621 (PSEUDO_END): Likewise.
29622 [IS_IN (libpthread)] (CENABLE): Likewise.
29623 [IS_IN (libpthread)] (CDISABLE): Likewise.
29624 [IS_IN (libc)] (CENABLE): Likewise.
29625 [IS_IN (libc)] (CENABLE): Likewise.
29626 [IS_IN (librt)] (CDISABLE): Likewise.
29627 [IS_IN (librt)] (CDISABLE): Likewise.
29628 (SINGLE_THREAD_P): Likewise.
29629 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
29630 definition.
29631 (PSEUDO_END): Likewise.
29632 [IS_IN (libpthread)] (CENABLE): Likewise.
29633 [IS_IN (libpthread)] (CDISABLE): Likewise.
29634 [IS_IN (libc)] (CENABLE): Likewise.
29635 [IS_IN (libc)] (CENABLE): Likewise.
29636 [IS_IN (librt)] (CDISABLE): Likewise.
29637 [IS_IN (librt)] (CDISABLE): Likewise.
29638 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29639 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
29640 definition.
29641 (PSEUDO_END): Likewise.
29642 [IS_IN (libpthread)] (CENABLE): Likewise.
29643 [IS_IN (libpthread)] (CDISABLE): Likewise.
29644 [IS_IN (libc)] (CENABLE): Likewise.
29645 [IS_IN (libc)] (CENABLE): Likewise.
29646 [IS_IN (librt)] (CDISABLE): Likewise.
29647 [IS_IN (librt)] (CDISABLE): Likewise.
29648 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29649 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
29650 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
29651 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
29652 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
29653 definition.
29654 (PSEUDO_END): Likewise.
29655 [IS_IN (libpthread)] (CENABLE): Likewise.
29656 [IS_IN (libpthread)] (CDISABLE): Likewise.
29657 [IS_IN (libc)] (CENABLE): Likewise.
29658 [IS_IN (libc)] (CENABLE): Likewise.
29659 [IS_IN (librt)] (CDISABLE): Likewise.
29660 [IS_IN (librt)] (CDISABLE): Likewise.
29661 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29662 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
29663 definition.
29664 (PSEUDO_END): Likewise.
29665 [IS_IN (libpthread)] (CENABLE): Likewise.
29666 [IS_IN (libpthread)] (CDISABLE): Likewise.
29667 [IS_IN (libc)] (CENABLE): Likewise.
29668 [IS_IN (libc)] (CENABLE): Likewise.
29669 [IS_IN (librt)] (CDISABLE): Likewise.
29670 [IS_IN (librt)] (CDISABLE): Likewise.
29671 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29672 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
29673 definition.
29674 (PSEUDO_END): Likewise.
29675 [IS_IN (libpthread)] (CENABLE): Likewise.
29676 [IS_IN (libpthread)] (CDISABLE): Likewise.
29677 [IS_IN (libc)] (CENABLE): Likewise.
29678 [IS_IN (libc)] (CENABLE): Likewise.
29679 [IS_IN (librt)] (CDISABLE): Likewise.
29680 [IS_IN (librt)] (CDISABLE): Likewise.
29681 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29682 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
29683 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
29684 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
29685 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
29686 definition.
29687 (PSEUDO_END): Likewise.
29688 [IS_IN (libpthread)] (CENABLE): Likewise.
29689 [IS_IN (libpthread)] (CDISABLE): Likewise.
29690 [IS_IN (libc)] (CENABLE): Likewise.
29691 [IS_IN (libc)] (CENABLE): Likewise.
29692 [IS_IN (librt)] (CDISABLE): Likewise.
29693 [IS_IN (librt)] (CDISABLE): Likewise.
29694 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29695 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
29696 definition.
29697 (PSEUDO_END): Likewise.
29698 [IS_IN (libpthread)] (CENABLE): Likewise.
29699 [IS_IN (libpthread)] (CDISABLE): Likewise.
29700 [IS_IN (libc)] (CENABLE): Likewise.
29701 [IS_IN (libc)] (CENABLE): Likewise.
29702 [IS_IN (librt)] (CDISABLE): Likewise.
29703 [IS_IN (librt)] (CDISABLE): Likewise.
29704 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29705
29706 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
29707
29708 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
29709
29710 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29711
29712 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29713
29714 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29715
29716 [BZ #21982]
29717 * string/stratcliff.c (do_test): Declare size, nchars, inner,
29718 middle and outer with size_t instead of int. Repleace %d and
29719 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
29720 "MAX (outer, nchars - 64)" to support unsigned outer and
29721 nchars. Also exit loop when outer == 0.
29722
29723 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29724
29725 * include/fcntl.h (__fcntl_nocancel): Remove definition.
29726 * include/signal.h (__sigsuspend_nocancel): Likewise.
29727 * include/time.h (__nanosleep_nocancel): Likewise.
29728 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
29729 * login/utmp_file.c: Include non cancellable syscall header.
29730 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
29731 prototype.
29732
29733 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29734
29735 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
29736 .byte sequences with AVX512F instructions.
29737 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
29738 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
29739 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
29740 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
29741 Likewise.
29742 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29743 Likewise.
29744
29745 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
29746 Steve Ellcey <sellcey@cavium.com>
29747
29748 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
29749 Use PTR_REG macro in cmp instruction.
29750
29751 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29752
29753 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
29754 Change the return type of the ifunc resolver to match the return
29755 type of the target function.
29756
29757 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29758
29759 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
29760 (preadv64): Likewise.
29761 (pwrite64(: Likewise.
29762 (pwritev64): Likewise.
29763
29764 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
29765 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
29766 (LOAD_ARGS_0): Likewise.
29767 (LOAD_ARGS_1): Likewise.
29768 (LOAD_ARGS_2): Likewise.
29769 (LOAD_ARGS_3): Likewise.
29770 (LOAD_ARGS_4): Likewise.
29771 (LOAD_ARGS_5): Likewise.
29772 (LOAD_ARGS_6): Likewise.
29773 (LOAD_REGS_0): Likewise.
29774 (LOAD_REGS_1): Likewise.
29775 (LOAD_REGS_2): Likewise.
29776 (LOAD_REGS_3): Likewise.
29777 (LOAD_REGS_4): Likewise.
29778 (LOAD_REGS_5): Likewise.
29779 (LOAD_REGS_6): Likewise.
29780 (ASM_ARGS_0): Likewise.
29781 (ASM_ARGS_1): Likewise.
29782 (ASM_ARGS_2): Likewise.
29783 (ASM_ARGS_3): Likewise.
29784 (ASM_ARGS_4): Likewise.
29785 (ASM_ARGS_5): Likewise.
29786 (ASM_ARGS_6): Likewise.
29787 (LOAD_ARGS_TYPES_1): Likewise.
29788 (LOAD_ARGS_TYPES_2): Likewise.
29789 (LOAD_ARGS_TYPES_3): Likewise.
29790 (LOAD_ARGS_TYPES_4): Likewise.
29791 (LOAD_ARGS_TYPES_5): Likewise.
29792 (LOAD_ARGS_TYPES_6): Likewise.
29793 (LOAD_REGS_TYPES_1): Likewise.
29794 (LOAD_REGS_TYPES_2): Likewise.
29795 (LOAD_REGS_TYPES_3): Likewise.
29796 (LOAD_REGS_TYPES_4): Likewise.
29797 (LOAD_REGS_TYPES_5): Likewise.
29798 (LOAD_REGS_TYPES_6): Likewise.
29799 (TYPEFY): New define.
29800 (ARGIFY): Likewise.
29801 (internal_syscall0): Likewise.
29802 (internal_syscall1): Likewise.
29803 (internal_syscall2): Likewise.
29804 (internal_syscall3): Likewise.
29805 (internal_syscall4): Likewise.
29806 (internal_syscall5): Likewise.
29807 (internal_syscall6): Likewise.
29808 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
29809 (INTERNAL_SYSCALL_NCS): Remove define.
29810 (internal_syscall1): Add define.
29811
29812 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29813
29814 * math/w_remainder_compat.c: Remove duplicate inclusion of
29815 math-svid-compat.h.
29816 * math/w_remainderf_compat.c: Likewise.
29817 * math/w_remainderl_compat.c: Likewise.
29818
29819 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29820
29821 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29822
29823 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29824
29825 [BZ #21684]
29826 * math/tgmath.h (__floating_type): Simplify definitions.
29827 (__real_integer_type): New macro.
29828 (__complex_integer_type): Likewise.
29829 (__expr_is_real): Likewise.
29830 (__tgmath_real_type_sub): Update comment to describe handling of
29831 complex types.
29832 (__tgmath_complex_type_sub): New macro.
29833 (__tgmath_complex_type): Likewise.
29834 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29835 (__TGMATH_CF128): Use __expr_is_real.
29836 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
29837 __expr_is_real.
29838 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29839 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
29840 * math/gen-tgmath-tests.py (Type.create_type): Create complex
29841 integer types.
29842
29843 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29844
29845 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
29846 macro.
29847 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
29848 alias.
29849 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
29850 Likewise.
29851
29852 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
29853 nanosleep_not_cancel with __nanosleep_nocancel.
29854 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
29855 (__nanosleep_nocancel): New macro.
29856 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
29857 function.
29858 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
29859 macro.
29860 (__nanosleep_nocancel): New prototype.
29861
29862 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
29863 pause_not_cancel with __pause_nocancel.
29864 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
29865 (__pause_nocancel): New macro.
29866 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
29867 macro.
29868 (__pause_nocancel): New prototype.
29869 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
29870
29871 2017-08-22 Martin Sebor <msebor@redhat.com>
29872
29873 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
29874 to return a pointer to the same type as the target function.
29875
29876 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29877
29878 [BZ #18822]
29879 [BZ #21986]
29880 * include/printf.h (__printf_fphex): Add attribute_hidden.
29881 (__guess_grouping): New prototype.
29882 * stdio-common/printf_fp.c (__guess_grouping): Removed.
29883 * stdio-common/reg-printf.c (__register_printf_specifier): Add
29884 libc_hidden_proto and libc_hidden_def.
29885 * stdlib/strfmon_l.c (__guess_grouping): Removed.
29886 (__vstrfmon_l): Remove the third argument passed to
29887 __guess_grouping.
29888
29889 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29890
29891 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
29892 definition for issignaling that does not rely on __MATH_TG,
29893 since __MATH_TG uses __builtin_types_compatible_p, which is only
29894 available in C mode.
29895 (CFLAGS-test-math-issignaling.cc): New variable.
29896 * math/Makefile [CXX] (tests): Add test-math-issignaling.
29897 * math/test-math-issignaling.cc: New test for C++ implementation
29898 of type-generic issignaling.
29899 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29900 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
29901 options of test-math-issignaling on powerpc64le.
29902
29903 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29904
29905 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
29906 building libc.a.
29907 (hidden_proto): Likewise.
29908 (hidden_tls_proto): Likewise.
29909 (__hidden_proto): Likewise.
29910
29911 2017-08-22 Florian Weimer <fweimer@redhat.com>
29912
29913 math: Statically link tests of internal functionality.
29914 * math/Makefile (tests): Remove atest-exp, atest-sincos,
29915 atest-exp2.
29916 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
29917 (gmp-objs): Remove assignment.
29918 (atest-exp, atest-sincos, atest-exp2): Remove targets.
29919
29920 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29921
29922 [BZ #21987]
29923 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
29924 and copy to ...
29925 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
29926 ... here.
29927 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
29928 ... and here.
29929
29930 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
29931 variable definitions above inclusion of ../Rules.
29932
29933 2017-08-21 Joseph Myers <joseph@codesourcery.com>
29934
29935 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
29936 case calling __builtin_unreachable.
29937
29938 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29939
29940 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
29941 __waitpid_nocancel.
29942 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
29943 (__waitpid_nocancel): New macro.
29944 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
29945 macro.
29946 (__waitpid_nocancel): Replace macro with a function.
29947 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
29948 function.
29949
29950 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
29951 __fcntl_nocancel.
29952 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
29953 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
29954
29955 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
29956 __writev_nocancel_nostatus.
29957 (write_call_graph): Likewise.
29958 (write_bb_counts): Likewise.
29959 * resolv/herror.c (herror): Likewise.
29960 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
29961 macro.
29962 (__writev_nocancel_nostatus): New macro.
29963 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
29964 Remove macro.
29965 (__writev_nocancel_nostatus): New function.
29966
29967 2017-08-21 Joseph Myers <joseph@codesourcery.com>
29968
29969 Revert:
29970 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
29971
29972 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
29973 building libc.a.
29974 (hidden_proto): Likewise.
29975 (hidden_tls_proto): Likewise.
29976 (__hidden_proto): Likewise.
29977
29978 [BZ #21973]
29979 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
29980 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
29981 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
29982 Likewise.
29983 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
29984 Likewise.
29985 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
29986 Likewise.
29987 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
29988 Likewise.
29989 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
29990 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
29991 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
29992 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
29993 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
29994 GLIBC_2.0 sqrtl symbol.
29995
29996 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
29997 [__USE_MISC] (_LIB_VERSION): Likewise.
29998 [__USE_MISC] (struct exception): Likewise.
29999 [__USE_MISC] (matherr): Likewise.
30000 [__USE_MISC] (DOMAIN): Likewise.
30001 [__USE_MISC] (SING): Likewise.
30002 [__USE_MISC] (OVERFLOW): Likewise.
30003 [__USE_MISC] (UNDERFLOW): Likewise.
30004 [__USE_MISC] (TLOSS): Likewise.
30005 [__USE_MISC] (PLOSS): Likewise.
30006 [__USE_MISC] (HUGE): Likewise.
30007 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30008 * math/math-svid-compat.h: New file.
30009 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30010 and matherrl.
30011 * include/math.h [!_ISOMAC] (__matherr): Remove.
30012 * manual/arith.texi (FP Exceptions): Do not document matherr.
30013 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30014 (tests-internal): New variable.
30015 (install-lib): Do not add libieee.a.
30016 (non-lib.a): Likewise.
30017 (extra-objs): Do not add libieee.a and ieee-math.o.
30018 (CPPFLAGS-s_lib_version.c): Remove variable.
30019 ($(objpfx)libieee.a): Remove rule.
30020 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30021 * math/ieee-math.c: Remove.
30022 * math/libm-test-support.c (matherr): Remove.
30023 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30024 and license notices. Include <math-svid-compat.h> and
30025 <shlib-compat.h>.
30026 (matherr): Undefine as macro. Use compat_symbol_reference.
30027 (_LIB_VERSION): Likewise.
30028 * math/test-matherr-2.c: New file.
30029 * math/test-matherr-3.c: Likewise.
30030 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30031 declaration.
30032 (__kernel_standard_f): Likewise.
30033 (__kernel_standard_l): Likewise.
30034 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30035 <math_private.h>. Include <math-svid-compat.h>.
30036 (_LIB_VERSION): Undefine as macro.
30037 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30038 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30039 [LIBM_SVID_COMPAT], use compat_symbol.
30040 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30041 <math_private.h>. Include <math-svid-compat.h>.
30042 (matherr): Undefine as macro.
30043 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30044 compat_symbol.
30045 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30046 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30047 compat_symbol_reference.
30048 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30049 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30050 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30051 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30052 (MATHERR_D): Remove declaration.
30053 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30054 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30055 [LIBM_BUILD] (pmatherrf): Likewise.
30056 [LIBM_BUILD] (pmatherr): Likewise.
30057 [LIBM_BUILD] (pmatherrl): Likewise.
30058 (DOMAIN): Likewise.
30059 (SING): Likewise.
30060 (OVERFLOW): Likewise.
30061 (UNDERFLOW): Likewise.
30062 (TLOSS): Likewise.
30063 (PLOSS): Likewise.
30064 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30065 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30066 compat_symbol.
30067 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30068 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30069 compat_symbol.
30070 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30071 * math/w_acos_compat.c: Likewise.
30072 * math/w_acosf_compat.c: Likewise.
30073 * math/w_acosh_compat.c: Likewise.
30074 * math/w_acoshf_compat.c: Likewise.
30075 * math/w_acoshl_compat.c: Likewise.
30076 * math/w_acosl_compat.c: Likewise.
30077 * math/w_asin_compat.c: Likewise.
30078 * math/w_asinf_compat.c: Likewise.
30079 * math/w_asinl_compat.c: Likewise.
30080 * math/w_atan2_compat.c: Likewise.
30081 * math/w_atan2f_compat.c: Likewise.
30082 * math/w_atan2l_compat.c: Likewise.
30083 * math/w_atanh_compat.c: Likewise.
30084 * math/w_atanhf_compat.c: Likewise.
30085 * math/w_atanhl_compat.c: Likewise.
30086 * math/w_cosh_compat.c: Likewise.
30087 * math/w_coshf_compat.c: Likewise.
30088 * math/w_coshl_compat.c: Likewise.
30089 * math/w_exp10_compat.c: Likewise.
30090 * math/w_exp10f_compat.c: Likewise.
30091 * math/w_exp10l_compat.c: Likewise.
30092 * math/w_exp2_compat.c: Likewise.
30093 * math/w_exp2f_compat.c: Likewise.
30094 * math/w_exp2l_compat.c: Likewise.
30095 * math/w_fmod_compat.c: Likewise.
30096 * math/w_fmodf_compat.c: Likewise.
30097 * math/w_fmodl_compat.c: Likewise.
30098 * math/w_hypot_compat.c: Likewise.
30099 * math/w_hypotf_compat.c: Likewise.
30100 * math/w_hypotl_compat.c: Likewise.
30101 * math/w_j0_compat.c: Likewise.
30102 * math/w_j0f_compat.c: Likewise.
30103 * math/w_j0l_compat.c: Likewise.
30104 * math/w_j1_compat.c: Likewise.
30105 * math/w_j1f_compat.c: Likewise.
30106 * math/w_j1l_compat.c: Likewise.
30107 * math/w_jn_compat.c: Likewise.
30108 * math/w_jnf_compat.c: Likewise.
30109 * math/w_jnl_compat.c: Likewise.
30110 * math/w_lgamma_main.c: Likewise.
30111 * math/w_lgamma_r_compat.c: Likewise.
30112 * math/w_lgammaf_main.c: Likewise.
30113 * math/w_lgammaf_r_compat.c: Likewise.
30114 * math/w_lgammal_main.c: Likewise.
30115 * math/w_lgammal_r_compat.c: Likewise.
30116 * math/w_log10_compat.c: Likewise.
30117 * math/w_log10f_compat.c: Likewise.
30118 * math/w_log10l_compat.c: Likewise.
30119 * math/w_log2_compat.c: Likewise.
30120 * math/w_log2f_compat.c: Likewise.
30121 * math/w_log2l_compat.c: Likewise.
30122 * math/w_log_compat.c: Likewise.
30123 * math/w_logf_compat.c: Likewise.
30124 * math/w_logl_compat.c: Likewise.
30125 * math/w_pow_compat.c: Likewise.
30126 * math/w_powf_compat.c: Likewise.
30127 * math/w_powl_compat.c: Likewise.
30128 * math/w_remainder_compat.c: Likewise.
30129 * math/w_remainderf_compat.c: Likewise.
30130 * math/w_remainderl_compat.c: Likewise.
30131 * math/w_scalb_compat.c: Likewise.
30132 * math/w_scalbf_compat.c: Likewise.
30133 * math/w_scalbl_compat.c: Likewise.
30134 * math/w_sinh_compat.c: Likewise.
30135 * math/w_sinhf_compat.c: Likewise.
30136 * math/w_sinhl_compat.c: Likewise.
30137 * math/w_sqrt_compat.c: Likewise.
30138 * math/w_sqrtf_compat.c: Likewise.
30139 * math/w_sqrtl_compat.c: Likewise.
30140 * math/w_tgamma_compat.c: Likewise.
30141 * math/w_tgammaf_compat.c: Likewise.
30142 * math/w_tgammal_compat.c: Likewise.
30143 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30144 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30145 * sysdeps/ieee754/k_standard.c: Likewise.
30146 * sysdeps/ieee754/k_standardf.c: Likewise.
30147 * sysdeps/ieee754/k_standardl.c: Likewise.
30148 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30149 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30150 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30151 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30152 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30153 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30154 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30155 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30156 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30157 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30158 Likewise.
30159 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30160 Likewise.
30161 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30162 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30163 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30164 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30165
30166 2017-08-21 Florian Weimer <fweimer@redhat.com>
30167
30168 [BZ #21864]
30169 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30170 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30171 Move before inclusion of ../Rules.
30172
30173 2017-08-21 Florian Weimer <fweimer@redhat.com>
30174
30175 [BZ #21972]
30176 * assert/assert.h (assert): Use static_cast (bool) for C++.
30177 Use the ternary operator in the warning branch for GNU C.
30178 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30179 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30180 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30181 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30182 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30183
30184 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30185
30186 [BZ #18822]
30187 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30188 (__syscall_clock_gettime): Add attribute_hidden.
30189 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30190 (__start_context): Likewise.
30191
30192 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30193
30194 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30195 building libc.a.
30196 (hidden_proto): Likewise.
30197 (hidden_tls_proto): Likewise.
30198 (__hidden_proto): Likewise.
30199
30200 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30201
30202 * include/libc-symbols.h (attribute_hidden): Enable hidden
30203 visibility in libc.a compiled with PIE.
30204
30205 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30206
30207 [BZ #18822]
30208 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30209 Add attribute_hidden.
30210
30211 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30212
30213 [BZ #21864]
30214 * Makerules (all-nonlib): Add $(others-extras).
30215 * catgets/Makefile (others-extras): New.
30216 * elf/Makefile (others-extras): Likewise.
30217 * nss/Makefile (others-extras): Likewise.
30218
30219 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30220
30221 [BZ #18822]
30222 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30223 * elf/dl-open.c: Include <libc-internal.h>.
30224 (__libc_multiple_libcs): Removed.
30225 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30226 <hp-timing.h>.
30227 * include/libc-internal.h (__libc_multiple_libcs): New.
30228 * misc/sbrk.c: Include <libc-internal.h>.
30229 (__libc_multiple_libcs): Removed.
30230
30231 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30232
30233 [BZ #18822]
30234 * grp/initgroups.c (__nss_group_database): Removed.
30235 (__nss_initgroups_database): Likewise.
30236 * nscd/gai.c (__nss_hosts_database): Likewise.
30237 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30238 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30239 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30240 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30241 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30242 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30243 attribute_hidden.
30244 * nss/nsswitch.c (__nss_database_custom): Define only if
30245 USE_NSCD is defined.
30246 (__nss_configure_lookup): Use __nss_database_custom only if
30247 USE_NSCD is defined.
30248 * nss/nsswitch.h (__nss_database_custom): Declare only if
30249 USE_NSCD is defined. Add attribute_hidden.
30250 (__nss_setent): Add attribute_hidden.
30251 (__nss_endent): Likewise.
30252 (__nss_getent_r): Likewise.
30253 (__nss_getent): Likewise.
30254 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30255
30256 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30257
30258 [BZ #18822]
30259 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30260 libc_hidden_proto and libc_hidden_def.
30261
30262 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30263
30264 [BZ #18822]
30265 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30266 Add libc_hidden_proto.
30267 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30268 Add libc_hidden_def.
30269
30270 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30271
30272 [BZ #21974]
30273 * gmon/Makefile (routines): Remove bb_init_func and
30274 bb_exit_func.
30275 (elide-routines.os): Removed.
30276 * gmon/bb_exit_func.c: Likewise.
30277 * gmon/bb_init_func.c: Likewise.
30278 * include/sys/gmon.h (__bb): Likewise.
30279 (__bb_init_func): Likewise.
30280 (__bb_exit_func): Likewise.
30281 * sysdeps/alpha/bb_init_func.S: Likewise.
30282
30283 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30284
30285 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30286 * include/setjmp.h (____longjmp_chk): Here. Add
30287 attribute_hidden.
30288
30289 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30290
30291 [BZ #18822]
30292 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30293 attribute_hidden.
30294 (__strspn_sse2): Likewise.
30295
30296 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30297
30298 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
30299 (close_not_cancel_no_status): Likewise.
30300 (__close_nocancel): New macro.
30301 (__close_nocancel_nostatus): Likewise.
30302 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
30303 macro.
30304 (close_not_cancel): Likewise.
30305 (close_not_cancel_no_status): Likewise.
30306 (__close_nocancel): New prototype.
30307 (__close_nocancel_nostatus): New function.
30308 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30309 * catgets/open_catalog.c (__open_catalog): Replace
30310 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30311 * gmon/gmon.c (write_gmon): Likewise.
30312 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30313 * intl/loadmsgcat.c (close): Likewise.
30314 * io/ftw.c (open_dir_stream): Likewise.
30315 (ftw_startup): Likewise.
30316 * libio/fileops.c (_IO_file_open): Likewise.
30317 (_IO_file_close_mmap): Likewise.
30318 (_IO_file_close): Likewise.
30319 * libio/iopopen.c (_IO_dup2): Likewise.
30320 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30321 * locale/loadlocale.c (_nl_load_locale): Likewise.
30322 * login/utmp_file.c (pututline_file): Likewise.
30323 (endutent_file): Likewise.
30324 * misc/daemon.c (daemon): Likewise.
30325 * nscd/nscd_getai.c (__nscd_getai): Likewise.
30326 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30327 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30328 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30329 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30330 * nscd/nscd_helper.c (open_socket): Likewise.
30331 (__nscd_open_socket): Likewise.
30332 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
30333 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
30334 (__nscd_innetgr): Likewise.
30335 * nss/nss_db/db-open.c (internal_setent): Likewise.
30336 * resolv/res-close.c (__res_iclose): Likewise.
30337 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
30338 * sysdeps/posix/closedir.c (__closedir): Likewise.
30339 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
30340 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30341 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30342 (opendir_tail): Likewise.
30343 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30344 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
30345 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
30346 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
30347 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30348 (gethostid): Likewise.
30349 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30350 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30351 Likewise.
30352 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30353 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
30354 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30355 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30356 Likewise.
30357 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
30358 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
30359 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30360 Likewise.
30361 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
30362 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30363 Likewise.
30364 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30365 Likewise.
30366 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30367 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30368 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30369 __close_nocancel.
30370
30371 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
30372 (openat_not_cancel_3): Likewise.
30373 (openat64_not_cancel_3): Likewise).
30374 (openat_not_cancel_3): Likewise).
30375 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
30376 macro.
30377 (openat_not_cancel_3): Likewise.
30378 (openat64_not_cancel): Likewise.
30379 (openat64_not_cancel_3): Likewise.
30380 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
30381 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
30382 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
30383 __open{64}_nocancel.
30384 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30385 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30386 * sysdeps/posix/opendir.c (__opendirat): Likewise.
30387
30388 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30389
30390 [BZ #18822]
30391 * include/argz.h (__argz_create_sep): New function prototype.
30392 (__argz_append): Likewise.
30393 (__argz_add): Likewise.
30394 (__argz_add_sep): Likewise.
30395 (__argz_delete): Likewise.
30396 (__argz_insert): Likewise.
30397 (__argz_replace): Likewise.
30398 * string/argz.h (__argz_create_sep): Removed.
30399 (__argz_append): Likewise.
30400 (__argz_add): Likewise.
30401 (__argz_add_sep): Likewise.
30402 (__argz_delete): Likewise.
30403 (__argz_insert): Likewise.
30404 (__argz_replace): Likewise.
30405
30406 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30407
30408 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
30409 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
30410 (GNU_PROPERTY_STACK_SIZE): Likewie.
30411 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
30412 (GNU_PROPERTY_LOPROC): Likewise.
30413 (GNU_PROPERTY_HIPROC): Likewise.
30414 (GNU_PROPERTY_LOUSER): Likewise.
30415 (GNU_PROPERTY_HIUSER): Likewise.
30416 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
30417 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
30418 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
30419 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
30420 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
30421 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
30422 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
30423 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
30424 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
30425 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
30426 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
30427 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
30428 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
30429 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
30430 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
30431 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
30432 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
30433 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
30434 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
30435 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
30436 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
30437 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
30438 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
30439
30440 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30441
30442 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
30443 in C++ mode.
30444
30445 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30446
30447 [BZ #21930]
30448 * math/math.h (isinf): Check if in C or C++ mode before using
30449 __builtin_types_compatible_p, since this is a C mode feature.
30450
30451 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30452
30453 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
30454 (__write_nocancel): New macro.
30455 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
30456 Rewrite as a function prototype.
30457 (write_not_cancel): Remove macro.
30458 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
30459 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
30460 (write_gmon): Likewise.
30461 * libio/fileops.c (_IO_new_file_write): Likewise.
30462 * login/utmp_file.c (pututline_file): Likewise.
30463 (updwtmp_file): Likewise.
30464 * stdio-common/psiginfo.c (psiginfo): Likewise.
30465 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30466 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30467 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30468 Likewise.
30469 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30470 Likewise.
30471
30472 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
30473 (__read_nocancel): New macro.
30474 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30475 __read_nocancel.
30476 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
30477 macro.
30478 (__read_nocancel): New prototype.
30479 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
30480 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
30481 with __read_nocancel.
30482 * intl/loadmsgcat.c (read): Likewise.
30483 * libio/fileops.c (_IO_file_read): Likewise.
30484 * locale/loadlocale.c (_nl_load_locale): Likewise.
30485 * login/utmp_file.c (getutent_r_file): Likewise.
30486 (internal_getut_r): Likewise.
30487 (getutline_r_file): Likewise.
30488 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30489 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
30490 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30491 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30492 Likewise.
30493 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
30494 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30495 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30496 Likewise.
30497 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30498 Likewise.
30499 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30500 Likewise.
30501 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30502 Likewise.
30503 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30504
30505 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30506
30507 [BZ #21966]
30508 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
30509 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
30510 usable.
30511
30512 2017-08-17 DJ Delorie <dj@redhat.com>
30513
30514 * bug17079.c: Update to new test harness.
30515 * test-digits-dots.c: Likewise.
30516 * test-netdb.c: Likewise.
30517 * tst-field.c: Likewise.
30518 * tst-nss-getpwent.c: Likewise.
30519 * tst-nss-static.c: Likewise.
30520 * tst-nss-test1.c: Likewise.
30521 * tst-nss-test2.c: Likewise.
30522 * tst-nss-test3.c: Likewise.
30523 * tst-nss-test4.c: Likewise.
30524 * tst-nss-test5.c: Likewise.
30525
30526 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30527
30528 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
30529 (open_not_cancel_2): Likewise.
30530 (open_nocancel): New macro.
30531 (open64_nocancel): Likewise.
30532 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
30533 (open_not_cancel_2): Likewise.
30534 (__open_nocancel): New prototype.
30535 (__open64_nocancel): Likewise.
30536 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30537 __open_nocancel.
30538 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
30539 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
30540 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
30541 with __open_nocancel.
30542 * csu/check_fds.c (check_one_fd): Likewise.
30543 * gmon/gmon.c (write_gmon): Likewise.
30544 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
30545 * intl/loadmsgcat.c (open): Likewise.
30546 * libio/fileops.c (_IO_file_open): Likewise.
30547 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30548 * locale/loadlocale.c (_nl_load_locale): Likewise.
30549 * login/utmp_file.c (setutent_file): Likewise.
30550 * misc/daemon.c (daemon): Likewise.
30551 * nss/nss_db/db-open.c (internal_setent): Likewise.
30552 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30553 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
30554 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30555 (__opendir): Likewise.
30556 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30557 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30558 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30559 (gethostid): Likewise.
30560 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30561 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30562 Likewise.
30563 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30564 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
30565 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30566 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30567 Likewise.
30568 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30569 Likewise.
30570 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30571 Likewise.
30572 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
30573 Likewise.
30574 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30575 Likewise.
30576 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30577 Likewise.
30578 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30579 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30580
30581 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
30582
30583 * benchtests/bench-skeleton.c (main): Add support for
30584 latency benchmarking.
30585 * benchtests/scripts/bench.py: Add support for latency benchmarking.
30586
30587 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
30588
30589 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
30590 the startup object.
30591
30592 2017-08-17 Florian Weimer <fweimer@redhat.com>
30593
30594 * include/sys/socket.h (__opensock): Remove internal_function.
30595 * socket/opensock.c (__opensock): Likewise.
30596 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
30597
30598 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30599
30600 [BZ #21944]
30601 * signal/bits/types/__sigval_t.h: New file.
30602 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
30603 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
30604 and define sigval_t using __sigval_t.
30605 * include/bits/types/__sigval_t.h: New file.
30606 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
30607 instead of <bits/types/__sigval_t.h>.
30608 (struct sigevent): Use __sigval_t instead of sigval_t.
30609 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
30610 instead of <bits/types/__sigval_t.h>.
30611 (siginfo_t): Use __sigval_t instead of sigval_t.
30612 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
30613 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30614 (struct sigevent): Use __sigval_t instead of sigval_t.
30615 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
30616 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30617 (siginfo_t): Use __sigval_t instead of sigval_t.
30618 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
30619
30620 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30621
30622 * NEWS: Remove "[Add new features here]" for 2.27.
30623
30624 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30625
30626 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
30627 libc.so.
30628
30629 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30630
30631 * NEWS: Mention x86-64 FMA optimization.
30632
30633 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30634
30635 [BZ #21912]
30636 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30637 Add e_expf-fma.
30638 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
30639 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
30640 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
30641
30642 2017-08-16 Andreas Schwab <schwab@suse.de>
30643
30644 [BZ #16750]
30645 CVE-2009-5064
30646 * elf/ldd.bash.in: Never run file directly.
30647
30648 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
30649
30650 [BZ #21955]
30651 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
30652 (L(SP_INF_0)): Likewise.
30653
30654 2017-08-15 Florian Weimer <fweimer@redhat.com>
30655
30656 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
30657 run-built-tests.
30658
30659 2017-08-15 Florian Weimer <fweimer@redhat.com>
30660
30661 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
30662 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
30663 BROKEN_THREAD_SIGNALS code.
30664 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
30665 request_list): Remove caller_pid member used for
30666 BROKEN_THREAD_SIGNALS.
30667 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
30668 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30669 Remove BROKEN_THREAD_SIGNALS support.
30670 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
30671 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
30672
30673 2017-08-15 Florian Weimer <fweimer@redhat.com>
30674
30675 * gmon/Makefile (tests): Add tst-gmon.
30676 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
30677 Set.
30678 (tests-special): Add tst-gmon-prof.out.
30679 (tst-gmon.out): Depend on clean-tst-gmon-data.
30680 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
30681 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
30682 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
30683 startup object.
30684 * aclocal.m4 (GPROF): Set and substitute.
30685 * config.amke.in (GPROF): Set.
30686 * configure: Regenerate.
30687
30688 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
30689
30690 * elf/elf.h A (NT_PPC_TAR): New macro.
30691 (NT_PPC_PPR): Likewise.
30692 (NT_PPC_DSCR): Likewise.
30693 (NT_PPC_EBB): Likewise.
30694 (NT_PPC_PMU): Likewise.
30695 (NT_PPC_TM_CGPR): Likewise.
30696 (NT_PPC_TM_CFPR): Likewise.
30697 (NT_PPC_TM_CVMX): Likewise.
30698 (NT_PPC_TM_CVSX): Likewise.
30699 (NT_PPC_TM_SPR): Likewise.
30700 (NT_PPC_TM_CTAR): Likewise.
30701 (NT_PPC_TM_CPPR): Likewise.
30702 (NT_PPC_TM_CDSCR): Likewise.
30703
30704 2017-08-15 Florian Weimer <fweimer@redhat.com>
30705
30706 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
30707 regparm (2) instead of internal_function.
30708 (_MCOUNT_DECL): Adjust.
30709
30710 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
30711
30712 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
30713 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
30714
30715 2017-08-14 Joseph Myers <joseph@codesourcery.com>
30716
30717 * conform/data/sys/wait.h-data (si_value): Do not expect for
30718 XPG42.
30719
30720 2017-08-14 Florian Weimer <fweimer@redhat.com>
30721
30722 [BZ #21962]
30723 NSS: Create stubs for accidentally exported lookup functions.
30724 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
30725 Remove declaration.
30726 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
30727 (ether_hostton): Call __nss_ethers_lookup2 instead.
30728 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
30729 (ether_ntohost): Call __nss_ethers_lookup2 instead.
30730 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
30731 (setup): Call __nss_netgroup_lookup2 instead.
30732 * nss/Makefile (routines): Add compat-lookup.
30733 * nss/Versions (GLIBC_2.27): Add symbol version.
30734 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
30735 (DB_COMPAT_FCT): Remove.
30736 * nss/compat-lookup.c: New file.
30737 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
30738 from databases.def.
30739 * nss/service-lookup.c (NO_COMPAT): Remove definition.
30740 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
30741 (netname2user): Call __nss_publickey_lookup2 instead.
30742 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
30743 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
30744 instead.
30745
30746 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30747 Sergei Trofimovich <slyfox@inbox.ru>
30748
30749 [BZ #21908]
30750 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
30751 Rename to MMAP2_PAGE_UNIT.
30752 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
30753 __OFF_T_MATCHES_OFF64_T is not defined.
30754 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
30755 uint64_t.
30756 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
30757 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
30758
30759 2017-08-14 Florian Weimer <fweimer@redhat.com>
30760
30761 i386: Do not set internal_function.
30762 * config.h.in (USE_REGPARMS, internal_function): Remove.
30763 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
30764 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
30765
30766 2017-08-14 Florian Weimer <fweimer@redhat.com>
30767
30768 * elf/dl-init.c (_dl_init): Remove internal_function.
30769 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
30770 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
30771
30772 2017-08-14 Florian Weimer <fweimer@redhat.com>
30773
30774 * elf/rtld.c (_dl_start): Remove internal_function.
30775 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
30776 _dl_start.
30777
30778 2017-08-14 Florian Weimer <fweimer@redhat.com>
30779
30780 * elf/dl-fini.c (_dl_fini): Remove internal_function
30781 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
30782
30783 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
30784
30785 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
30786 (bit_cpu_SHSTK): Likewise.
30787 (index_cpu_IBT): Likewise.
30788 (index_cpu_SHSTK): Likewise.
30789 (reg_IBT): Likewise.
30790 (reg_SHSTK): Likewise.
30791 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30792 Handle index_cpu_IBT and index_cpu_SHSTK.
30793
30794 2017-08-14 Mike FABIAN <mfabian@redhat.com>
30795
30796 [BZ #19982]
30797 * po/fr.po: Fix spelling mistake.
30798
30799 2017-08-13 Florian Weimer <fweimer@redhat.com>
30800
30801 * elf/dl-addr.c (_dl_addr): Remove internal_function.
30802 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
30803 (_dl_catch_error, _dl_receive_error): Likewise.
30804 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
30805 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
30806 (_dl_deallocate_tls): Likewise.
30807 * include/dlfcn.h (_dl_addr): Likewise.
30808 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
30809 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
30810 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
30811 Likewise.
30812
30813 2017-08-13 Florian Weimer <fweimer@redhat.com>
30814
30815 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
30816 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
30817 internal_function.
30818 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
30819
30820 2017-08-13 Florian Weimer <fweimer@redhat.com>
30821
30822 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
30823 internal_function.
30824 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
30825 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
30826 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
30827 internal_function from _dl_make_stack_executable_hook member.
30828 (_dl_make_stack_executable): Remove internal_function.
30829 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
30830 Likewise.
30831 * sysdeps/unix/sysv/linux/dl-execstack.c
30832 (_dl_make_stack_executable): Likewise.
30833
30834 2017-08-13 Florian Weimer <fweimer@redhat.com>
30835
30836 * sysdeps/unix/sysv/linux/netlinkaccess.h
30837 (__netlink_assert_response): Remove internal_function.
30838 * sysdeps/unix/sysv/linux/netlink_assert_response.c
30839 (__netlink_assert_response): Likewise.
30840
30841 2017-08-13 Florian Weimer <fweimer@redhat.com>
30842
30843 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
30844 internal_function.
30845 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
30846
30847 2017-08-13 Florian Weimer <fweimer@redhat.com>
30848
30849 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
30850 internal_function.
30851 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
30852 * inet/netgroup.h (__internal_setnetgrent)
30853 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30854 * inet/getnetgrent_r.c (__internal_setnetgrent)
30855 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30856 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
30857 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
30858 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
30859 * nss/nsswitch.h (db_lookup_function): Likewise.
30860
30861 2017-08-13 Florian Weimer <fweimer@redhat.com>
30862
30863 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
30864 Remove internal_function.
30865 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
30866 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
30867 message argument on the stack.
30868 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
30869 Likeweise.
30870
30871 2017-08-12 Mike FABIAN <mfabian@redhat.com>
30872
30873 Adapt test case data to the changes in the thousands
30874 separators.
30875
30876 [BZ #20756]
30877 * localedata/tst-langinfo.sh: Adapt test case data.
30878 * stdlib/tst-strfmon_l.c: Likewise.
30879 * stdlib/tst-strtod4.c: Likewise.
30880 * stdlib/tst-strtod5i.c: Likewise.
30881
30882 2017-08-11 Florian Weimer <fweimer@redhat.com>
30883
30884 [BZ #21242]
30885 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
30886 Suppress pedantic warning resulting from statement expression.
30887 (__ASSERT_FUNCTION): Add missing __extension__.
30888
30889 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30890
30891 * benchtests/bench-memmove-large.c: Print output in JSON
30892 format.
30893 * benchtests/bench-memmove.c: Likewise.
30894
30895 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
30896 * benchtests/bench-memchr.c (do_one_test): Likewise.
30897 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
30898 * benchtests/bench-memcpy.c (do_one_test): Likewise.
30899 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
30900 * benchtests/bench-memmove.c (do_one_test): Likewise.
30901 * benchtests/bench-memset-large.c (do_one_test): Likewise.
30902 * benchtests/bench-memset.c (do_one_test): Likewise.
30903 * benchtests/bench-string.h (test_init): Remove memsets.
30904
30905 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
30906
30907 * manual/lang.texi
30908 (Computing the Width of an Integer Data Type): Rename section to
30909 "Width of an Integer Type". Remove inaccurate statement regarding
30910 lack of C language facilities for determining width of integer
30911 types, and reorder content to improve flow and context of
30912 discussion.
30913
30914 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
30915
30916 * lang.texi (va_copy): Change standard from ISO to C99.
30917 (__va_copy): Add standard and header annotation.
30918 Update description for clarity of origins and current use.
30919
30920 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30921
30922 [BZ #21941]
30923 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
30924 xssqrtqp requires operands to be in Vector Registers
30925 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
30926 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
30927 (__ieee754_sqrtf128): Likewise.
30928
30929 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
30930
30931 * sysdeps/aarch64/memcmp.S (memcmp):
30932 Rewrite of optimized memcmp.
30933
30934 2017-08-10 Florian Weimer <fweimer@redhat.com>
30935
30936 Introduce ld.so exceptions.
30937 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
30938 (_dl_exception_create, _dl_exception_create_format)
30939 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
30940 (_dl_catch_exception): Declare.
30941 (_dl_catch_error): Update comment.
30942 * elf/dl-error-skeleton.c (struct catch): Replace objname,
30943 errstring, malloced members with exception member.
30944 (_dl_out_of_memory): Remove.
30945 (fatal_error): New function, extracted from _dl_signal_error.
30946 (_dl_signal_exception, _dl_signal_cexception): New functions.
30947 (_dl_signal_error): Call _dl_exception_create to allocate an
30948 exception object.
30949 (_dl_catch_exception): New function, based on _dl_catch_error.
30950 (_dl_catch_error): Implement using _dl_catch_exception.
30951 * elf/dl-exception.c: New file.
30952 * elf/Makefile (dl-routines): Add dl-exception.
30953 (elide-routines.os): Likewise.
30954 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
30955 _dl_exception_create_format, _dl_exception_free.
30956 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
30957 _dl_signal_exception.
30958 * elf/dl-lookup.c (make_string): Remove.
30959 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
30960 _dl_signal_cexception, _dl_exception_free.
30961 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
30962 _dl_signal_exception.
30963 * elf/dl-sym.c (do_sym): Likewise.
30964 * elf/dl-version.c (make_string): Remove.
30965 (match_symbol): Use _dl_exception_create_format,
30966 _dl_signal_cexception, _dl_exception_free.
30967 (_dl_check_map_versions): Likewise.
30968 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
30969 _dl_catch_exception.
30970 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
30971 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
30972 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
30973 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
30974 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
30975 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
30976 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
30977 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
30978 Likewise.
30979 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
30980 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
30981 (ld.so): Likewise.
30982 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
30983 (ld.so): Likewise.
30984 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
30985 Likewise.
30986 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
30987 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
30988 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
30989 Likewise.
30990 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
30991 Likewise.
30992 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
30993
30994 2017-08-10 Florian Weimer <fweimer@redhat.com>
30995
30996 * inet/net-internal.h (__inet6_scopeid_pton): Remove
30997 attribute_hidden, internal_function.
30998 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
30999 internal_function.
31000
31001 2017-08-10 Florian Weimer <fweimer@redhat.com>
31002
31003 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31004 function which calls __builtin_unreachable.
31005
31006 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31007
31008 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31009 Indian monetary formatting
31010 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31011 test cases.
31012
31013 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31014
31015 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31016 Fix typo in comment.
31017
31018 [BZ #21928]
31019 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31020 PTRACE_SEIZE_DEVEL): Remove.
31021 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31022 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31023 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31024 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31025 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31026
31027 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31028
31029 * posix/bits/types.h (__qaddr_t): Remove.
31030
31031 [BZ #21457]
31032 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31033 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31034 __glibc_reserved1.
31035 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31036 (ucontext_t): Use __ctx with uc_flags.
31037 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31038 (__ctxt): Likewise.
31039 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31040 __glibc_reserved1.
31041 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31042 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31043 __glibc_reserved1.
31044 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31045 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31046 __glibc_reserved1.
31047 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31048 macro.
31049 (ucontext_t): Use __ctx with uc_flags.
31050 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31051 (ucontext_t): Use __ctx with uc_flags.
31052 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31053 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31054 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31055 (ucontext_t): Use __ctx with uc_flags.
31056 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31057 undefine further down.
31058 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31059 __glibc_reserved1.
31060 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31061 undefine further down.
31062 (ucontext_t): Use __ctx with uc_flags.
31063 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31064 undefine further down.
31065 (ucontext_t): Use __ctx with uc_flags.
31066 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31067 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31068 Rename uc_pad to __glibc_reserved1.
31069 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31070 undefine further down.
31071 (ucontext_t): Use __ctx with uc_flags.
31072 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31073 further down.
31074 (ucontext_t): Use __ctx with uc_flags.
31075 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31076 __ctx with uc_flags.
31077 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31078 (ucontext_t): Use __ctx with uc_flags.
31079 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31080 __ctx with uc_flags.
31081
31082 2017-08-09 Florian Weimer <fweimer@redhat.com>
31083
31084 [BZ #21932]
31085 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31086 before early return.
31087
31088 2017-08-09 Andreas Schwab <schwab@suse.de>
31089
31090 [BZ #21041]
31091 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31092 renamed alias.
31093
31094 [BZ #21041]
31095 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31096 tst-compat-forwarder.
31097 (modules-names): Add tst-compat-forwarder-mod.
31098 ($(objpfx)tst-compat-forwarder): Depend on
31099 $(objpfx)tst-compat-forwarder-mod.so.
31100 * nptl/tst-compat-forwarder.c: New file.
31101 * nptl/tst-compat-forwarder-mod.c: New file.
31102
31103 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31104
31105 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31106 comments.
31107
31108 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31109 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31110 memcpy_falkor.
31111 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31112 Bump.
31113 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31114 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31115 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31116 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31117 Add falkor.
31118 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31119 New macro.
31120
31121 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31122
31123 [BZ #759]
31124 * manual/setjmp.texi (getcontex): Document uc_stack value
31125 compatibility differences.
31126
31127 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31128
31129 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31130 (old_malloc_hook): Likewise.
31131 (old_memalign_hook): Likewise.
31132 (old_realloc_hook): Likewise.
31133 (struct hdr): Likewise.
31134 (flood): Likewise.
31135 (freehook): Likewise.
31136 (mallochook): Likewise.
31137 (memalignhook): Likewise.
31138 (reallochook): Likewise.
31139 (mprobe): Likewise.
31140 * malloc/mtrace.c (mallwatch): Likewise.
31141 (tr_old_free_hook): Likewise.
31142 (tr_old_malloc_hook): Likewise.
31143 (tr_old_realloc_hook): Likewise.
31144 (tr_old_memalign_hook): Likewise.
31145 (tr_where): Likewise.
31146 (lock_and_info): Likewise.
31147 (tr_freehook): Likewise.
31148 (tr_mallochook): Likewise.
31149 (tr_reallochook): Likewise.
31150 (tr_memalignhook): Likewise.
31151 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31152 * misc/mmap.c (__mmap): Likewise.
31153 * misc/mmap64.c (__mmap64): Likewise.
31154 * misc/mprotect.c (__mprotect): Likewise.
31155 * misc/msync.c (msync): Likewise.
31156 * misc/munmap.c (__munmap): Likewise.
31157 * posix/posix_madvise.c (posix_madvise): Likewise.
31158 * socket/send.c (__send): Likewise.
31159 * socket/sendto.c (__sendto): Likewise.
31160 * socket/setsockopt.c (__setsockopt): Likewise.
31161 * string/memcmp.c (__ptr_t): Remove macro.
31162 (MEMCMP): Use void * instead of ptr_t.
31163 * string/memrchr.c (__ptr_t): Remove macro.
31164 (__memrchr): Use void * instead of ptr_t.
31165 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31166 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31167 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31168 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31169 * sysdeps/mach/msync.c (msync): Likewise.
31170 * sysdeps/mach/munmap.c (__munmap): Likewise.
31171 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31172 Likewise.
31173 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31174 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31175 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31176 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31177 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31178 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31179 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31180 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31181 Likewise.
31182 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31183 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31184 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31185 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31186 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31187 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31188 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31189 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31190 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31191 Likewise.
31192 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31193 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31194 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31195 (MEMCMP): Use void * instead of ptr_t.
31196 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31197 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31198
31199 2017-08-08 Florian Weimer <fweimer@redhat.com>
31200
31201 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31202 return statement.
31203
31204 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31205
31206 [BZ #21913]
31207 * csu/libc-tls.c: Include <startup.h> first.
31208 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31209 * elf/dl-tunables.c: Include <startup.h> first.
31210 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31211 * sysdeps/generic/startup.h: New file.
31212 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31213 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31214 (I386_USE_SYSENTER): New. Defined to 0.
31215
31216 2017-08-08 Andreas Schwab <schwab@suse.de>
31217
31218 [BZ #21041]
31219 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31220 * nptl/pt-system.c (system): Likewise.
31221
31222 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31223
31224 [BZ #21780]
31225 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31226 EOPNOTSUPP.
31227 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31228 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31229 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31230 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31231 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31232 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31233 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31234
31235 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31236
31237 [BZ #21899]
31238 * bits/sigaction.h (struct sigaction): Define sa_handler and
31239 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31240 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31241 [__USE_XOPEN_EXTENDED].
31242 (SA_RESTART): Likewise.
31243 (SA_NODEFER): Likewise.
31244 (SA_RESETHAND): Likewise.
31245 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31246 (struct sigaction): Define sa_handler and sa_sigaction using union
31247 also for [__USE_XOPEN_EXTENDED].
31248 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31249 [__USE_XOPEN_EXTENDED].
31250 (SA_RESTART): Likewise.
31251 (SA_NODEFER): Likewise.
31252 (SA_RESETHAND): Likewise.
31253 * sysdeps/unix/sysv/linux/bits/sigaction.h
31254 (struct sigaction): Define sa_handler and sa_sigaction using union
31255 also for [__USE_XOPEN_EXTENDED].
31256 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31257 [__USE_XOPEN_EXTENDED].
31258 (SA_RESTART): Likewise.
31259 (SA_NODEFER): Likewise.
31260 (SA_RESETHAND): Likewise.
31261 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31262 (struct sigaction): Define sa_handler and sa_sigaction using union
31263 also for [__USE_XOPEN_EXTENDED].
31264 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31265 [__USE_XOPEN_EXTENDED].
31266 (SA_RESTART): Likewise.
31267 (SA_NODEFER): Likewise.
31268 (SA_RESETHAND): Likewise.
31269 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31270 (struct sigaction): Define sa_handler and sa_sigaction using union
31271 also for [__USE_XOPEN_EXTENDED].
31272 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31273 [__USE_XOPEN_EXTENDED].
31274 (SA_RESTART): Likewise.
31275 (SA_NODEFER): Likewise.
31276 (SA_RESETHAND): Likewise.
31277 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31278 (struct sigaction): Define sa_handler and sa_sigaction using union
31279 also for [__USE_XOPEN_EXTENDED].
31280 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31281 [__USE_XOPEN_EXTENDED].
31282 (SA_RESTART): Likewise.
31283 (SA_NODEFER): Likewise.
31284 (SA_RESETHAND): Likewise.
31285 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
31286 (struct sigaction): Define sa_handler and sa_sigaction using union
31287 also for [__USE_XOPEN_EXTENDED].
31288 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31289 [__USE_XOPEN_EXTENDED].
31290 (SA_RESTART): Likewise.
31291 (SA_NODEFER): Likewise.
31292 (SA_RESETHAND): Likewise.
31293 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
31294 (struct sigaction): Define sa_handler and sa_sigaction using union
31295 also for [__USE_XOPEN_EXTENDED].
31296 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31297 [__USE_XOPEN_EXTENDED].
31298 (SA_RESTART): Likewise.
31299 (SA_NODEFER): Likewise. Define directly rather than as alias.
31300 (SA_RESETHAND): Likewise.
31301 (SA_INTERRUPT): Define only for [__USE_MISC].
31302 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
31303 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
31304 [__USE_MISC].
31305 (SA_STACK): Define only for [__USE_MISC].
31306 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
31307 (struct sigaction): Define sa_handler and sa_sigaction using union
31308 also for [__USE_XOPEN_EXTENDED].
31309 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31310 [__USE_XOPEN_EXTENDED].
31311 (SA_RESTART): Likewise.
31312 (SA_NODEFER): Likewise.
31313 (SA_RESETHAND): Likewise.
31314 (SA_NOPTRACE): Define only for [__USE_MISC].
31315
31316 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31317 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31318 (struct catalog_info): Likewise.
31319 * inet/htontest.c (lo): Likewise.
31320 (foo): Likewise.
31321 * inet/inet_lnaof.c (inet_lnaof): Likewise.
31322 * inet/inet_net.c (inet_network): Likewise.
31323 * inet/inet_netof.c (inet_netof): Likewise.
31324 * inet/rcmd.c (__ivaliduser): Likewise.
31325 (iruserok): Likewise.
31326 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
31327 * locale/programs/locale-spec.c (locale_special): Likewise.
31328 * nis/nis_findserv.c (struct findserv_req): Likewise.
31329 (__nis_findfastest_with_timeout): Likewise.
31330 * nss/test-netdb.c (test_network): Likewise.
31331 * resolv/inet_neta.c (inet_neta): Likewise.
31332 * resolv/ns_date.c (ns_datetosecs): Likewise.
31333 (SECS_PER_DAY): Likewise.
31334 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
31335 Likewise.
31336 * resolv/res_comp.c (__putlong): Likewise.
31337 (__putshort): Likewise.
31338 (_getlong): Likewise.
31339 (_getshort): Likewise.
31340 * resolv/res_debug.c (p_time): Likewise.
31341 (precsize_ntoa): Likewise.
31342 (precsize_aton): Likewise.
31343 (latlon2ul): Likewise.
31344 (loc_aton): Likewise.
31345 (loc_ntoa): Likewise.
31346 * resolv/res_hconf.c (struct netaddr): Likewise.
31347 (_res_hconf_reorder_addrs): Likewise.
31348 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
31349 (clnttcp_control): Likewise.
31350 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31351 (clntudp_control): Likewise.
31352 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
31353 (clntunix_control): Likewise.
31354 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
31355 * sunrpc/rpc/auth.h (union des_block): Likewise.
31356 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
31357 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
31358 (xdrrec_create): Likewise.
31359 (xdrrec_endofrecord): Likewise.
31360 (flush_out): Likewise.
31361 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
31362 (xdrstdio_putlong): Likewise.
31363 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
31364 Likewise.
31365
31366 * misc/sys/cdefs.h (__long_double_t): Remove.
31367 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
31368 instead of __long_double_t,
31369 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
31370
31371 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
31372
31373 * benchtests/scripts/compare_strings.py: Avoid display error when
31374 running on a text terminal.
31375
31376 * benchtests/scripts/compare_strings.py (main): Add an
31377 optional -base option.
31378 (process_results): New argument base_func.
31379
31380 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
31381 hardcoding memcpy.
31382 * benchtests/bench-memcpy-large.c (test_name): Likewise.
31383 * benchtests/bench-memcpy-random.c (test_name): Likewise.
31384
31385 2017-08-07 Andreas Schwab <schwab@suse.de>
31386
31387 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
31388 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
31389 * intl/Makefile ($(objpfx)tst-gettext.out)
31390 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
31391 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
31392 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
31393 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
31394 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
31395 * posix/Makefile ($(objpfx)globtest.out)
31396 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
31397 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
31398 ($(objpfx)tst-printf.out): Likewise.
31399 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
31400 ($(objpfx)tst-setcontext3.out): Likewise.
31401
31402 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
31403
31404 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31405 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
31406 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
31407 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
31408 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
31409 and mptan-fma.
31410 (CFLAGS-doasin-fma.c): New.
31411 (CFLAGS-dosincos-fma.c): Likewise.
31412 (CFLAGS-e_asin-fma.c): Likewise.
31413 (CFLAGS-e_atan2-fma.c): Likewise.
31414 (CFLAGS-e_exp-fma.c): Likewise.
31415 (CFLAGS-e_log-fma.c): Likewise.
31416 (CFLAGS-e_pow-fma.c): Likewise.
31417 (CFLAGS-halfulp-fma.c): Likewise.
31418 (CFLAGS-mpa-fma.c): Likewise.
31419 (CFLAGS-mpatan-fma.c): Likewise.
31420 (CFLAGS-mpatan2-fma.c): Likewise.
31421 (CFLAGS-mpexp-fma.c): Likewise.
31422 (CFLAGS-mplog-fma.c): Likewise.
31423 (CFLAGS-mpsqrt-fma.c): Likewise.
31424 (CFLAGS-mptan-fma.c): Likewise.
31425 (CFLAGS-s_atan-fma.c): Likewise.
31426 (CFLAGS-sincos32-fma.c): Likewise.
31427 (CFLAGS-slowexp-fma.c): Likewise.
31428 (CFLAGS-slowpow-fma.c): Likewise.
31429 (CFLAGS-s_sin-fma.c): Likewise.
31430 (CFLAGS-s_tan-fma.c): Likewise.
31431 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
31432 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
31433 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
31434 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
31435 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
31436 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
31437 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
31438 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
31439 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
31440 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
31441 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
31442 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
31443 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
31444 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
31445 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
31446 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
31447 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
31448 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
31449 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
31450 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
31451 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
31452 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
31453 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
31454 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
31455 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
31456 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31457 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31458 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
31459 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31460 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31461 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31462
31463 2017-08-04 Joseph Myers <joseph@codesourcery.com>
31464
31465 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
31466 (min_of_type_f): New macro.
31467 (min_of_type_): Likewise.
31468 (min_of_type_l): Likewise.
31469 (min_of_type_f128): Likewise.
31470 (min_of_type): Define using __MATH_TG and taking an expression
31471 argument.
31472 (math_check_force_underflow): Pass expression instead of type to
31473 min_of_type.
31474 (math_check_force_underflow_nonneg): Likewise.
31475
31476 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31477
31478 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31479 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
31480 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
31481
31482 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31483
31484 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31485 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
31486 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
31487 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
31488 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
31489 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
31490 memcpy_chk-nonshared, mempcpy_chk-nonshared,
31491 memmove_chk-nonshared and memset_chk-nonshared
31492 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
31493 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
31494 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
31495 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
31496 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
31497 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
31498 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
31499 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
31500 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
31501 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
31502 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
31503 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
31504 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
31505 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
31506 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
31507 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
31508 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
31509 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
31510 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
31511 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
31512 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
31513 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
31514 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
31515 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
31516 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
31517 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
31518 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
31519 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
31520 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
31521 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
31522 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
31523 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
31524 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
31525 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31526 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31527 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
31528 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
31529 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
31530 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
31531 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
31532 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
31533 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
31534 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
31535 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
31536 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
31537 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
31538 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
31539 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
31540 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
31541 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
31542 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
31543 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
31544 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
31545 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
31546 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
31547 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
31548 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
31549 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
31550 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
31551 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
31552 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
31553 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
31554 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
31555 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
31556 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
31557 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
31558 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
31559 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
31560 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
31561 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
31562 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
31563 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
31564 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
31565 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
31566 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
31567 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
31568 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31569 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31570 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31571 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31572 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31573 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31574 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31575 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31576 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
31577 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
31578 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
31579 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
31580 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31581 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31582 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31583 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31584 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31585 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31586 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
31587 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
31588 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
31589 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
31590 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
31591 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
31592 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
31593 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
31594 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
31595 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
31596 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
31597 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
31598 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
31599 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
31600
31601 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31602
31603 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
31604 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
31605 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
31606 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
31607 svml_d_log2_core-sse2, svml_d_log4_core-sse,
31608 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
31609 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
31610 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
31611 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
31612 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
31613 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
31614 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
31615 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
31616 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
31617 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
31618 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
31619 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
31620 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
31621 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
31622 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
31623 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
31624 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
31625 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
31626 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
31627 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
31628 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
31629 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
31630 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
31631 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
31632 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
31633 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
31634 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
31635 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
31636 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
31637 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
31638 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
31639 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
31640 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
31641 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
31642 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
31643 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
31644 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
31645 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
31646 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
31647 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
31648 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
31649 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
31650 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
31651 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
31652 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
31653 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
31654 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
31655 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
31656 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
31657 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
31658 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
31659 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
31660 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
31661 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
31662 ...
31663 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
31664 Don't include <sysdep.h> nor <init-arch.h>.
31665 (_ZGVbN2v_cos): Removed.
31666 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
31667 ...
31668 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
31669 Don't include <sysdep.h> nor <init-arch.h>.
31670 (_ZGVdN4v_cos): Removed.
31671 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
31672 ...
31673 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
31674 Don't include <sysdep.h> nor <init-arch.h>.
31675 (_ZGVeN8v_cos): Removed.
31676 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
31677 ...
31678 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
31679 Don't include <sysdep.h> nor <init-arch.h>.
31680 (_ZGVbN2v_exp): Removed.
31681 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
31682 ...
31683 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
31684 Don't include <sysdep.h> nor <init-arch.h>.
31685 (_ZGVdN4v_exp): Removed.
31686 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
31687 ...
31688 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
31689 Don't include <sysdep.h> nor <init-arch.h>.
31690 (_ZGVeN8v_exp): Removed.
31691 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
31692 ...
31693 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
31694 Don't include <sysdep.h> nor <init-arch.h>.
31695 (_ZGVbN2v_log): Removed.
31696 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
31697 ...
31698 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
31699 Don't include <sysdep.h> nor <init-arch.h>.
31700 (_ZGVdN4v_log): Removed.
31701 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
31702 ...
31703 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
31704 Don't include <sysdep.h> nor <init-arch.h>.
31705 (_ZGVeN8v_log): Removed.
31706 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
31707 ...
31708 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
31709 Don't include <sysdep.h> nor <init-arch.h>.
31710 (_ZGVbN2vv_pow): Removed.
31711 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
31712 ...
31713 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
31714 Don't include <sysdep.h> nor <init-arch.h>.
31715 (_ZGVdN4vv_pow): Removed.
31716 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
31717 ...
31718 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
31719 Don't include <sysdep.h> nor <init-arch.h>.
31720 (_ZGVeN8vv_pow): Removed.
31721 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
31722 ...
31723 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
31724 Don't include <sysdep.h> nor <init-arch.h>.
31725 (_ZGVbN2v_sin): Removed.
31726 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
31727 ...
31728 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
31729 Don't include <sysdep.h> nor <init-arch.h>.
31730 (_ZGVbN4v_sin): Removed.
31731 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
31732 ...
31733 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
31734 Don't include <sysdep.h> nor <init-arch.h>.
31735 (_ZGVbN8v_sin): Removed.
31736 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
31737 ...
31738 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
31739 Don't include <sysdep.h> nor <init-arch.h>.
31740 (_ZGVbN2vvv_sincos): Removed.
31741 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
31742 ...
31743 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
31744 Don't include <sysdep.h> nor <init-arch.h>.
31745 (_ZGVdN4vvv_sincos): Removed.
31746 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
31747 ...
31748 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
31749 Don't include <sysdep.h> nor <init-arch.h>.
31750 (_ZGVeN8vvv_sincos): Removed.
31751 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
31752 ...
31753 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
31754 Don't include <sysdep.h> nor <init-arch.h>.
31755 (_ZGVeN16v_cosf): Removed.
31756 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
31757 ...
31758 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
31759 Don't include <sysdep.h> nor <init-arch.h>.
31760 (_ZGVbN4v_cosf): Removed.
31761 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
31762 ...
31763 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
31764 Don't include <sysdep.h> nor <init-arch.h>.
31765 (_ZGVdN8v_cosf): Removed.
31766 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
31767 ...
31768 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
31769 Don't include <sysdep.h> nor <init-arch.h>.
31770 (_ZGVeN16v_expf): Removed.
31771 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
31772 ...
31773 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
31774 Don't include <sysdep.h> nor <init-arch.h>.
31775 (_ZGVbN4v_expf): Removed.
31776 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
31777 ...
31778 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
31779 Don't include <sysdep.h> nor <init-arch.h>.
31780 (_ZGVdN8v_expf): Removed.
31781 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
31782 ...
31783 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
31784 Don't include <sysdep.h> nor <init-arch.h>.
31785 (_ZGVeN16v_logf): Removed.
31786 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
31787 ...
31788 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
31789 Don't include <sysdep.h> nor <init-arch.h>.
31790 (_ZGVbN4v_logf): Removed.
31791 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
31792 ...
31793 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
31794 Don't include <sysdep.h> nor <init-arch.h>.
31795 (_ZGVdN8v_logf): Removed.
31796 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
31797 ...
31798 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
31799 Don't include <sysdep.h> nor <init-arch.h>.
31800 (_ZGVeN16vv_powf): Removed.
31801 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
31802 ...
31803 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
31804 Don't include <sysdep.h> nor <init-arch.h>.
31805 (_ZGVbN4vv_powf): Removed.
31806 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
31807 ...
31808 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
31809 Don't include <sysdep.h> nor <init-arch.h>.
31810 (_ZGVdN8vv_powf): Removed.
31811 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
31812 ...
31813 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
31814 Don't include <sysdep.h> nor <init-arch.h>.
31815 (_ZGVeN16vvv_sincosf): Removed.
31816 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
31817 ...
31818 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
31819 Don't include <sysdep.h> nor <init-arch.h>.
31820 (_ZGVbN4vvv_sincosf): Removed.
31821 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
31822 ...
31823 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
31824 Don't include <sysdep.h> nor <init-arch.h>.
31825 (_ZGVdN8vvv_sincosf): Removed.
31826 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
31827 ...
31828 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
31829 Don't include <sysdep.h> nor <init-arch.h>.
31830 (_ZGVeN16v_sinf): Removed.
31831 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
31832 ...
31833 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
31834 Don't include <sysdep.h> nor <init-arch.h>.
31835 (_ZGVbN4v_sinf): Removed.
31836 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
31837 ...
31838 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
31839 Don't include <sysdep.h> nor <init-arch.h>.
31840 (_ZGVdN8v_sinf): Removed.
31841
31842 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31843
31844 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31845 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
31846 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
31847 s_rint-sse4_1 and s_rintf-sse4_1.
31848 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
31849 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
31850 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
31851 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
31852 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
31853 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
31854 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
31855 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
31856 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
31857 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
31858 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
31859 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31860 (__ceil): Removed.
31861 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
31862 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
31863 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31864 (__ceilf): Removed.
31865 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
31866 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
31867 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31868 (__floor): Removed.
31869 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
31870 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
31871 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31872 (__floorf): Removed.
31873 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
31874 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
31875 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31876 (__nearbyint): Removed.
31877 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
31878 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
31879 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31880 (__nearbyintf): Removed.
31881 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
31882 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
31883 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31884 (__rint): Removed.
31885 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
31886 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
31887 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31888 (__rintf): Removed.
31889
31890 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31891
31892 * sysdeps/i386/start.S (_start): Check Check PIC instead of
31893 SHARED. Avoid dynamic relocation against main in static PIE.
31894
31895 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31896
31897 [BZ #21815]
31898 * elf/Makefile (CFLAGS-tst-prelink.c): New.
31899 (LDFLAGS-tst-prelink): Likewise.
31900
31901 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31902
31903 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
31904 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
31905 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
31906 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
31907 (INTERNAL_SYSCALL_NCS): Likewise.
31908 (LOADARGS_1): Likewise.
31909 (LOADARGS_5): Likewise.
31910 (RESTOREARGS_1): Likewise.
31911 (RESTOREARGS_5): Likewise.
31912
31913 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31914
31915 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
31916 (MEMPCPY_SYMBOL): Likewise.
31917 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
31918 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
31919 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
31920 in libc.a.
31921 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
31922 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
31923 Likewise.
31924 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
31925 (__hidden_ver1): Don't use in libc.a.
31926 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
31927 (__mempcpy): Don't create a weak alias in libc.a.
31928 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
31929 libc.a.
31930 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
31931 (__hidden_ver1): Don't use in libc.a.
31932
31933 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31934
31935 * config.make.in (have-insert): New.
31936 * configure.ac (libc_cv_insert): New. Set to yes if linker
31937 supports INSERT in linker script.
31938 (AC_SUBST(libc_cv_insert): New.
31939 * configure: Regenerated.
31940 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
31941 if $(have-insert) == yes.
31942
31943 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31944
31945 * elf/Makefile (tests): Add vismain only if
31946 $(have-protected-data) == yes.
31947 (tests-pie): Likewise.
31948
31949 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31950
31951 [BZ #21871]
31952 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
31953 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
31954
31955 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31956
31957 [BZ #21790]
31958 * sysdeps/i386/i586/memset.S
31959 (__memset_zero_constant_len_parameter): Removed.
31960 * sysdeps/i386/i686/memset.S
31961 (__memset_zero_constant_len_parameter): Likewise.
31962 * sysdeps/i386/i686/multiarch/memset_chk.S
31963 (__memset_zero_constant_len_parameter): Likewise.
31964 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
31965 Likewise.
31966
31967 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
31968
31969 * stdlib/getentropy.c (getentropy): Change return type to int.
31970
31971 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
31972
31973 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
31974
31975 2017-08-03 Joseph Myers <joseph@codesourcery.com>
31976
31977 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
31978 u_intN_t.
31979 * math/s_nexttowardf.c (__nexttowardf): Likewise.
31980 * sysdeps/generic/math_private.h (ieee_double_shape_type):
31981 Likewise.
31982 (ieee_float_shape_type): Likewise.
31983 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
31984 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
31985 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
31986 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
31987 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
31988 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
31989 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
31990 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
31991 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
31992 Likewise.
31993 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
31994 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
31995 (__ieee754_yn): Likewise.
31996 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
31997 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
31998 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
31999 Likewise.
32000 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32001 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32002 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32003 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32004 (__erfc): Likewise.
32005 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32006 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32007 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32008 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32009 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32010 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32011 Likewise.
32012 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32013 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32014 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32015 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32016 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32017 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32018 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32019 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32020 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32021 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32022 (__issignaling): Likewise.
32023 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32024 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32025 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32026 Likewise.
32027 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32028 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32029 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32030 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32031 Likewise.
32032 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32033 Likewise.
32034 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32035 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32036 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32037 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32038 (__erfcf): Likewise.
32039 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32040 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32041 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32042 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32043 Likewise.
32044 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32045 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32046 Likewise.
32047 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32048 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32049 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32050 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32051 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32052 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32053 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32054 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32055 Likewise.
32056 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32057 Likewise.
32058 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32059 Likewise.
32060 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32061 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32062 Likewise.
32063 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32064 Likewise.
32065 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32066 (__ieee754_ynl): Likewise.
32067 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32068 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32069 Likewise.
32070 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32071 Likewise.
32072 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32073 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32074 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32075 Likewise.
32076 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32077 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32078 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32079 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32080 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32081 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32082 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32083 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32084 Likewise.
32085 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32086 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32087 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32088 Likewise.
32089 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32090 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32091 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32092 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32093 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32094 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32095 Likewise.
32096 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32097 Likewise.
32098 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32099 Likewise.
32100 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32101 Likewise.
32102 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32103 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32104 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32105 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32106 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32107 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32108 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32109 Likewise.
32110 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32111 Likewise.
32112 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32113 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32114 Likewise.
32115 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32116 (__ieee754_remainderl): Likewise.
32117 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32118 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32119 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32120 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32121 Likewise.
32122 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32123 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32124 Likewise.
32125 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32126 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32127 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32128 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32129 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32130 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32131 Likewise.
32132 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32133 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32134 (__ieee754_y0l): Likewise.
32135 (pzero): Likewise.
32136 (qzero): Likewise.
32137 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32138 (__ieee754_y1l): Likewise.
32139 (pone): Likewise.
32140 (qone): Likewise.
32141 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32142 (__ieee754_ynl): Likewise.
32143 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32144 (__ieee754_lgammal_r): Likewise.
32145 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32146 Likewise.
32147 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32148 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32149 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32150 (__erfcl): Likewise.
32151 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32152 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32153 Likewise.
32154 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32155 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32156 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32157 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32158 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32159 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32160 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32161 Likewise.
32162 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32163 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32164 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32165 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32166 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32167 Likewise.
32168 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32169 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32170 Likewise.
32171 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32172 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32173 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32174 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32175 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32176
32177 2017-08-03 Florian Weimer <fweimer@redhat.com>
32178
32179 [BZ #21885]
32180 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32181 on memory allocation failure.
32182
32183 2017-08-03 Alan Modra <amodra@gmail.com>
32184
32185 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32186 tst-tlsopt-powerpc.c with function name change and no test harness.
32187 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32188 Call tls_get_addr_opt_test.
32189 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32190 (modules-names): Add mod-tlsopt-powerpc.
32191 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32192 (tst-tlsopt-powerpc): Depend on .so.
32193 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32194 define. Expand use in TLS_GD and TLS_LD.
32195
32196 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32197
32198 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32199 function.
32200 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32201
32202 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32203
32204 [BZ #21686]
32205 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32206 comparing size with that of double.
32207 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32208 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32209 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32210 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32211 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32212 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32213 unsigned __int128 types.
32214
32215 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32216
32217 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32218 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32219 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32220 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32221 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32222
32223 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32224
32225 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32226
32227 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32228
32229 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32230 of SHARED.
32231 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32232 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32233 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32234 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32235 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32236 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32237 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32238
32239 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32240
32241 [BZ #21685]
32242 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32243 bit-field expressions passed to sizeof or typeof.
32244 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32245 (__TGMATH_F128): Likewise.
32246 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32247 (__TGMATH_CF128): Likewise.
32248 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32249 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32250 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32251 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32252 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32253 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32254 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32255 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32256 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32257 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32258 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32259 (__TGMATH_UNARY_IMAG): Likewise.
32260 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32261 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32262 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32263 type.
32264 (define_vars_for_type): Handle bit_field type specially.
32265 (Tests.__init__): Declare structure with bit-field element.
32266
32267 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32268
32269 [BZ #21791]
32270 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32271 (MEMCPY_CHK): Define only if SHARED is defined.
32272 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32273 Likewise.
32274 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32275 Likewise.
32276
32277 See ChangeLog.18 for earlier changes.