]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Avoid readline conflicts in pexpect
[thirdparty/glibc.git] / ChangeLog
1 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * scripts/test_printers_common.py: Set TERM to a known harmless
4 value.
5
6 2019-02-14 Joseph Myers <joseph@codesourcery.com>
7
8 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
9 (xdr_u_int): Likewise.
10 (xdr_enum): Likewise.
11 (xdr_bytes): Reword fall-through comment.
12 (xdr_string): Likewise.
13
14 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15
16 [BZ #2421]
17 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
18 (tests): Add tst-join8 tst-join9.
19 * nptl/lll_timedwait_tid.c: Remove file.
20 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
21 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
22 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
23 * nptl/pthread_join_common.c (timedwait_tid): New function.
24 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
25 is set.
26 * nptl/tst-join5.c (thread_join): New function.
27 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
28 check.
29 * nptl/tst-join8.c: New file.
30 * nptl/tst-join9.c: Likewise.
31 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
32 lll_futex_timed_wait_cancel): Add generic macros.
33 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
34 Remove definitions.
35 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
36 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
37 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
38 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
39 Remove function.
40 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
41 Likewise.
42 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
43 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
44 (lll_futex_timed_wait_cancel): New macro.
45
46 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
47
48 * benchtests/Makefile: Add malloc-simple benchmark.
49 * benchtests/bench-malloc-simple.c: New benchmark.
50
51 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
52
53 * benchtests/bench-memmove.c (do_one_test): Remove unused
54 ORIG_SRC.
55 (do_test): Adjust.
56 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
57 ORIG_SRC.
58 (do_test): Adjust.
59
60 2019-01-13 Jim Wilson <jimw@sifive.com>
61
62 [BZ #24040]
63 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
64 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
65 (func): New.
66 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
67 call func directly.
68 * nptl/Makefile (tests): Add tst-unwind-thread.
69 (CFLAGS-tst-unwind-thread.c): Define.
70 * nptl/tst-unwind-thread.c: New file.
71 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
72 as undefined.
73
74 2019-02-13 Joseph Myers <joseph@codesourcery.com>
75
76 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
77 comment wording.
78 * nis/nis_call.c (__do_niscall3): Likewise.
79
80 * catgets/gencat.c (normalize_line): Use braces around empty
81 'else' body.
82 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
83 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
84 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
85 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
86 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
87 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
88 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
89 definition.
90
91 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
92 execlp returns.
93
94 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
95
96 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
97 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
98 * benchtests/bench-strchr.c (stupid_strchr): Remove.
99 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
100 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
101 * benchtests/bench-strlen.c (builtin_strlen): Remove.
102 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
103 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
104 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
105 * benchtests/bench-strspn.c (stupid_strspn): Remove.
106 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
107 * benchtests/bench-bcopy.c: Delete file.
108 * benchtests/bench-bzero.c: Likewise.
109 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
110 (simple_memccpy): Remove.
111 (generic_memccpy): Add function.
112 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
113 * benchtests/bench-memmove.c (simple_bcopy): Remove.
114 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
115 (generic_mempcpy): Add new function.
116 * benchtests/bench-memset.c (simple_bzero): Remove.
117 (builtin_bzero): Remove.
118 (builtin_memset): Remove.
119 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
120 (generic_rawmemchr): Add new function.
121
122 2019-02-12 Florian Weimer <fweimer@redhat.com>
123
124 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
125
126 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
127
128 [BZ #24122]
129 * elf/Makefile (tests): Add tst-audit13.
130 (modules-names): Add tst-audit13mod1.
131 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
132 rule.
133 * elf/tst-audit13.c: New file.
134 * elf/tst-audit13mod1.c: Likewise.
135
136 2019-02-12 Florian Weimer <fweimer@redhat.com>
137
138 [BZ #24122]
139 * elf/rtld.c (unload_audit_module): New function.
140 (report_audit_module_load_error): Likewise.
141 (load_audit_module): Likewise. Extracted from dl_main. Call
142 _dl_close if the laversion symbol cannot be found. Use early
143 returns for error handling. Add malloc error check. Check for a
144 zero return value from la_version. Remove spurious comment about
145 static TLS initialization. Remove useless casts.
146 (notify_audit_modules_of_loaded_object): New function. Extracted
147 from dl_main.
148 (load_audit_module): Likewise.
149 (dl_main): Call load_audit_modules.
150
151 2019-02-12 Joseph Myers <joseph@codesourcery.com>
152
153 * elf/dl-exception.c (_dl_exception_create_format): Add
154 fall-through comments.
155 * elf/ldconfig.c (parse_conf_include): Likewise.
156 * elf/rtld.c (print_statistics): Likewise.
157 * locale/programs/charmap.c (parse_charmap): Likewise.
158 * misc/mntent_r.c (__getmntent_r): Likewise.
159 * posix/wordexp.c (parse_arith): Likewise.
160 (parse_backtick): Likewise.
161 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
162 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
163 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
164
165 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
166
167 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
168 Use float instead of double.
169
170 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
171
172 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
173
174 2019-02-08 Joseph Myers <joseph@codesourcery.com>
175
176 * sysdeps/powerpc/bits/mathinline.h: Remove.
177
178 2019-02-08 Florian Weimer <fweimer@redhat.com>
179
180 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
181 * math/bits/math-finite.h: Move to ...
182 * bits/math-finite.h: ... here.
183
184 2019-02-08 Florian Weimer <fweimer@redhat.com>
185
186 * sysdeps/generic/bits/unistd_ext.h: Move to ...
187 * bits/unistd_ext.h: here.
188
189 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
190
191 [BZ #21915]
192 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
193 * nss/tst-nss-files-hosts-long.c: New file.
194 * nss/tst-nss-files-hosts-long.root: New directory.
195 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
196 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
197
198 2019-02-08 Florian Weimer <fweimer@redhat.com>
199
200 * include/bits/unistd_ext.h: Remove file.
201 * posix/bits/unistd_ext.h: Move to ...
202 * sysdeps/generic/bits/unistd_ext.h: ... here.
203
204 2019-02-08 Florian Weimer <fweimer@redhat.com>
205
206 * include/bits/unistd_ext.h: New file.
207
208 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
209
210 * time/tst-strftime2.c: Use array_length macros instead of magic
211 numbers.
212
213 2019-02-08 Florian Weimer <fweimer@redhat.com>
214
215 [BZ #24161]
216 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
217 argument.
218 * nptl/register-atfork.c (__run_fork_handlers): Only perform
219 locking if the new do_locking argument is true.
220 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
221 __run_fork_handlers.
222
223 2019-02-08 Florian Weimer <fweimer@redhat.com>
224
225 [BZ #6399]
226 Linux: Add gettid system call wrapper.
227 * posix/Makefile (headers): Add bits/unistd_ext.h.
228 * posix/bits/unistd_ext.h: New file.
229 * posix/unistd.h: Include it.
230 * manual/process.texi (Process Identification): Document gettid.
231 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
232 tst-gettid, tst-gettid-kill.
233 (tst-gettid): Link with $(shared-thread-library).
234 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
235 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
236 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
237 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
238 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
239 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
240 Add gettid.
241 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
242 Likewise.
243 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
244 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
245 Likewise.
246 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
247 Likewise.
248 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
249 Likewise.
250 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
251 Likewise.
252 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
253 Likewise.
254 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
255 Likewise.
256 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
257 Likewise.
258 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
259 (GLIBC_2.30): Likewise.
260 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
261 (GLIBC_2.30): Likewise.
262 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
263 (GLIBC_2.30): Likewise.
264 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
265 (GLIBC_2.30): Likewise.
266 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
267 Likewise.
268 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
269 (GLIBC_2.30): Likewise.
270 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
271 (GLIBC_2.30): Likewise.
272 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
273 (GLIBC_2.30): Likewise.
274 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
275 (GLIBC_2.30): Likewise.
276 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
277 Likewise.
278 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
279 Likewise.
280 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
281 Likewise.
282 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
283 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
284 Likewise.
285 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
286 Likewise.
287 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
288 Likewise.
289 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
290 Likewise.
291 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
292
293 2019-02-07 Florian Weimer <fweimer@redhat.com>
294
295 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
296 compatibility symbols.
297
298 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
299
300 [BZ #24180]
301 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
302 Add compiler barriers and comments.
303
304 2019-02-07 Florian Weimer <fweimer@redhat.com>
305
306 * include/array_length.h (array_length): Do not use a statement
307 expression and _Static_assert, so that array_length can be used at
308 file scope and as a constant expression.
309
310 2019-02-07 Florian Weimer <fweimer@redhat.com>
311
312 * support/xdlfcn.h (xdlmopen): Declare.
313 * support/xdlmopen.c: New file.
314 * support/Makefile (libsupport-routines): Add xdlmopen.
315
316 2019-02-06 Joseph Myers <joseph@codesourcery.com>
317
318 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
319 before return type, without separate inline.
320 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
321 * elf/dl-tunables.h (tunable_is_name): Likewise.
322 * malloc/malloc.c (do_set_trim_threshold): Likewise.
323 (do_set_top_pad): Likewise.
324 (do_set_mmap_threshold): Likewise.
325 (do_set_mmaps_max): Likewise.
326 (do_set_mallopt_check): Likewise.
327 (do_set_perturb_byte): Likewise.
328 (do_set_arena_test): Likewise.
329 (do_set_arena_max): Likewise.
330 (do_set_tcache_max): Likewise.
331 (do_set_tcache_count): Likewise.
332 (do_set_tcache_unsorted_limit): Likewise.
333 * nis/nis_subr.c (count_dots): Likewise.
334 * nptl/allocatestack.c (advise_stack_range): Likewise.
335 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
336 (do_sin): Likewise.
337 (reduce_sincos): Likewise.
338 (do_sincos): Likewise.
339 * sysdeps/unix/sysv/linux/x86/elision-conf.c
340 (do_set_elision_enable): Likewise.
341 (TUNABLE_CALLBACK_FNDECL): Likewise.
342
343 2019-02-06 Florian Weimer <fweimer@redhat.com>
344
345 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
346 (xdlsym): Use dlerror to detect a NULL symbol.
347
348 2019-02-06 Florian Weimer <fweimer@redhat.com>
349
350 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
351 <stap-probe.h>.
352 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
353
354 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
355
356 * libio/tst-bz24153.c (wide): Use wide char format specifier.
357
358 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
359
360 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
361 __wmemcmp and weak alias to wmemcmp.
362
363 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
364
365 [BZ #23403]
366 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
367 TLS_TCB_AT_TP tls variant.
368 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
369 Add alignment checks.
370 * support/Makefile (libsupport-routines): Add xposix_memalign and
371 xpthread_setstack.
372 * support/support.h: Add xposix_memalign.
373 * support/xthread.h: Add xpthread_attr_setstack.
374 * support/xposix_memalign.c: New File.
375 * support/xpthread_attr_setstack.c: Likewise.
376
377 2019-02-05 Florian Weimer <fweimer@redhat.com>
378
379 [BZ #24164]
380 arm: Use "nr" constraint for Systemtap probes, to avoid the
381 compiler using memory operands for constants, due to the "o"
382 alternative in the default "nor" constraint.
383 * include/stap-probe.h [USE_STAP_PROBE]: Include
384 <stap-probe-machine.h>
385 * sysdeps/generic/stap-probe-machine.h: New file.
386 * sysdeps/arm/stap-probe-machine.h: Likewise.
387
388 2019-02-04 Joseph Myers <joseph@codesourcery.com>
389
390 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
391 with 0, not tcache->entries[tc_idx].
392
393 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
394 once.
395
396 2019-02-04 Andreas Schwab <schwab@suse.de>
397
398 [BZ #16976]
399 [BZ #17396]
400 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
401 looking up collating elements match against (wide) character
402 sequence instead of name. Correct alignment adjustment.
403 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
404 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
405 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
406 (LOCALES): Add cs_CZ.ISO-8859-2.
407 * posix/tst-fnmatch4.c: New file.
408 * posix/tst-fnmatch5.c: New file.
409 * include/wchar.h (__wmemcmp): Declare.
410 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
411 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
412 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
413 * sysdeps/s390/wmemcmp.c: Likewise.
414
415 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
416
417 [BZ #24155]
418 CVE-2019-7309
419 * NEWS: Updated for CVE-2019-7309.
420 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
421 upper 32 bits of RDX register for x32. Use unsigned Jcc
422 instructions, instead of signed.
423 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
424 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
425
426 2019-02-04 Florian Weimer <fweimer@redhat.com>
427
428 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
429 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
430 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
431 Likewise.
432 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
433 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
434 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
435 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
436 Likewise.
437 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
438 Likewise.
439 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
440 Likewise.
441 (posix_spawn_file_actions_addopen): Likewise.
442 (posix_spawn_file_actions_addclose): Likewise.
443 (posix_spawn_file_actions_adddup2): Likewise.
444 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
445 qualifiers.
446 (posix_spawn_file_actions_addfchdir_np): Likewise.
447
448 2019-02-04 David Newall <glibc@davidnewall.com>
449
450 elf: Implement --preload option for the dynamic linker.
451 * elf/rtld.c (preloadarg): New variable.
452 (handle_preload_list): Pass through “where” argument to
453 do_preload.
454 (dl_main): Handle "--preload" and add second call to
455 handle_preload_list.
456 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
457 (tst-rtld-preload-OBJS): Set variable.
458 (tst-rtld-preload.out): New target.
459 * elf/tst-rtld-preload.sh: New file.
460
461 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
462
463 * Makefile (testrun.sh): Exit in case of incorrect argument.
464
465 2019-02-04 Florian Weimer <fweimer@redhat.com>
466
467 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
468 alignment gaps.
469
470 2019-02-03 Florian Weimer <fweimer@redhat.com>
471
472 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
473 implicit overflow checks.
474
475 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
476
477 * stdlib/isomac.c: Include <unistd.h>.
478
479 2019-02-03 Florian Weimer <fweimer@redhat.com>
480
481 * include/time.h (__tzfile_default): Use int, not long int, for
482 the GMT offsets.
483 * time/tzfile.c (struct ttinfo): Change type of the offset member
484 to int.
485 (__tzfile_read): Remove useless cast.
486 (__tzfile_default): Adjust prototype.
487 * time/tzset.c (tz_rule): Change type of the offset member to int.
488 (parse_offset): Change the type of the sign variable to int.
489
490 2019-02-03 Florian Weimer <fweimer@redhat.com>
491
492 [BZ #24153]
493 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
494 * libio/getchar.c (getchar): Likewise.
495 * libio/getchar_u.c (getchar_unlocked): Likewise.
496 * libio/getwchar.c (getwchar): Likewise.
497 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
498 * libio/iogets.c (_IO_gets): Likewise.
499 * libio/vscanf.c (_IO_vscanf): Likewise.
500 * libio/vwscanf.c (__vwscanf): Likewise.
501 * libio/tst-bz24153.c: New file.
502 * libio/Makefile (tests): Add it.
503
504 2019-02-02 Florian Weimer <fweimer@redhat.com>
505
506 [BZ #14829]
507 * manual/resource.texi (Basic Scheduling Functions): Add
508 portability note. Change process to task throughout the section.
509 Remove incorrect comment about sched_yield as it affects
510 tasks/threads, not entire processes.
511 * sysdeps/unix/sysv/linux/bits/posix_opt.h
512 (_POSIX_PRIORITY_SCHEDULING): Update comment.
513
514 2019-02-01 Joseph Myers <joseph@codesourcery.com>
515
516 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
517 * configure: Regenerated.
518 * manual/install.texi (Tools for Compilation): Update minimum GCC
519 version.
520 * INSTALL: Regenerated.
521
522 2019-02-01 Florian Weimer <fweimer@redhat.com>
523
524 * support/support_test_compare_string.c
525 (support_test_compare_string): Use "string" in error message.
526 * support/tst-test_compare_string.c (do_test): Adjust.
527
528 2019-02-01 Florian Weimer <fweimer@redhat.com>
529
530 * support/support_format_address_family.c
531 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
532
533 2019-02-01 Florian Weimer <fweimer@redhat.com>
534
535 * manual/socket.texi (Internet Address Formats): Clarify the byte
536 order of struct sockaddr_in, struct sockaddr_in6. Document
537 sin6_flowinfo and sin6_scope_id.
538
539 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
540
541 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
542 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
543 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
544 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
545 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
546 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
547
548 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
549
550 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
551 [!MEMCHR](MEMCHR): Set to __memchr.
552 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
553 Add memchr_generic and memchr_nosimd.
554 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
555 (__libc_ifunc_impl_list): Add memchr ifuncs.
556 * sysdeps/aarch64/multiarch/memchr.c: New file.
557 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
558 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
559
560 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
561
562 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
563 Add memset_emag.
564 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
565 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
566 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
567 Add IS_EMAG check for ifunc dispatch.
568 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
569 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
570
571 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
572
573 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
574 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
575 Add emag.
576 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
577 New macro.
578
579 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
580
581 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
582
583 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
584
585 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
586 syscall-template file.
587
588 2019-01-31 Carlos O'Donell <carlos@redhat.com>
589 Torvald Riegel <triegel@redhat.com>
590 Rik Prohaska <prohaska7@gmail.com>
591
592 [BZ# 23844]
593 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
594 tst-rwlock-trywrlock-stall.
595 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
596 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
597 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
598 Set __wrphase_fute to 1 only if we started the write phase.
599 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
600 * nptl/tst-rwlock-trywrlock-stall.c: New file.
601 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
602 * support/xpthread_rwlock_destroy.c: New file.
603 * support/xthread.h: Declare xpthread_rwlock_destroy.
604
605 2019-02-01 Joseph Myers <joseph@codesourcery.com>
606
607 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
608 version to 4.0.2.
609
610 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
611
612 [BZ #24051]
613 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
614 * libio/fileops.c (_IO_new_file_underflow): Likewise
615 * libio/wfileops.c (_IO_wfile_underflow): Likewise
616 * libio/putchar.c (putchar): Likewise.
617 * libio/putchar_u.c (putchar_unlocked): Likewise.
618 * libio/putwchar.c (putchar): Likewise.
619 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
620 * libio/tst-bz24051.c: New test.
621 * libio/Makefile (tests): Add tst-bz24051
622
623 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
624
625 regex: fix read overrun [BZ #24114]
626 Problem found by AddressSanitizer, reported by Hongxu Chen in:
627 https://debbugs.gnu.org/34140
628 * posix/regexec.c (proceed_next_node):
629 Do not read past end of input buffer.
630
631 2019-01-31 Florian Weimer <fweimer@redhat.com>
632
633 [BZ #24059]
634 * nss/nss_files/files-alias.c (get_next_alias): Handle
635 continuation line without newline at the end.
636 * nss/tst-nss-files-alias-truncated.c: New file.
637 * nss/Makefile [$(build-shared)] (tests): Add
638 tst-nss-files-alias-truncated.
639 (tst-nss-files-alias-truncated): Link with libnss_files.so.
640 * support/namespace.h (struct support_chroot_configuration): Add
641 aliases member.
642 (struct support_chroot): Add path_aliases member.
643 * support/support_chroot.c (support_chroot_create): Handle
644 aliases.
645 (support_chroot_free): Free path_aliases.
646
647 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
648
649 * version.h (RELEASE): Set to "development".
650 (VERSION): Set to "2.29.9000".
651 * NEWS: Add section for 2.30.
652
653 * version.h (RELEASE): Set to "stable".
654 (VERSION): Set to "2.29".
655 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
656
657 * NEWS: Add the list of bugs fixed in 2.29.
658 * manual/contrib.texi: Update contributors list with some more
659 names.
660 * manual/install.texi: Update latest versions of packages
661 tested.
662 * INSTALL: Regenerated.
663
664 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
665
666 * po/be.po: Update translations.
667 * po/bg.po: Likewise.
668 * po/ca.po: Likewise.
669 * po/cs.po: Likewise.
670 * po/da.po: Likewise.
671 * po/de.po: Likewise.
672 * po/el.po: Likewise.
673 * po/eo.po: Likewise.
674 * po/es.po: Likewise.
675 * po/fi.po: Likewise.
676 * po/fr.po: Likewise.
677 * po/gl.po: Likewise.
678 * po/hr.po: Likewise.
679 * po/hu.po: Likewise.
680 * po/ia.po: Likewise.
681 * po/id.po: Likewise.
682 * po/it.po: Likewise.
683 * po/ja.po: Likewise.
684 * po/ko.po: Likewise.
685 * po/lt.po: Likewise.
686 * po/nb.po: Likewise.
687 * po/nl.po: Likewise.
688 * po/pl.po: Likewise.
689 * po/pt_BR.po: Likewise.
690 * po/ru.po: Likewise.
691 * po/rw.po: Likewise.
692 * po/sk.po: Likewise.
693 * po/sl.po: Likewise.
694 * po/sv.po: Likewise.
695 * po/tr.po: Likewise.
696 * po/uk.po: Likewise.
697 * po/vi.po: Likewise.
698 * po/zh_CN.po: Likewise.
699 * po/zh_TW.po: Likewise.
700
701 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
702
703 [BZ #24130]
704 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
705 of $f3 register on $y_is_neg path.
706
707 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
708
709 [BZ #24110]
710 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
711 sigaltstack.ss_flags.
712
713 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
714
715 [BZ #23758]
716 * manual/time.texi (strftime): Document "%Ey".
717 * time/strftime_l.c (__strftime_internal): Set the default width
718 padding with zero of "%Ey" to 2.
719
720 [BZ #24096]
721 * manual/time.texi (strftime): Document "%EC" and "%EY".
722 * time/Makefile (tests): Add tst-strftime2.
723 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
724 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
725 override padding for "%Ey".
726 If an optional flag ('_' or '-') is specified to "%EY", interpret the
727 "%Ey" in the subformat as if decorated with that flag.
728 * time/tst-strftime2.c: New file.
729
730 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
731
732 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
733 are not defined.
734
735 [BZ #24122]
736 * elf/Makefile (tests): Add tst-audit13.
737 (modules-names): Add tst-audit13mod1.
738 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
739 rule.
740 * elf/rtld.c (dl_main): Handle invalid audit module version.
741 * elf/tst-audit13.c: New file.
742 * elf/tst-audit13mod1.c: Likewise.
743
744 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
745
746 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
747 returned by __hurd_at_flags.
748 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
749 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
750 directly instead of __hurd_file_name_lookup.
751
752 2019-01-21 Joseph Myers <joseph@codesourcery.com>
753
754 * scripts/build-many-glibcs.py (Context.checkout): Default
755 binutils version to 2.32 branch.
756
757 2019-01-21 Florian Weimer <fweimer@redhat.com>
758
759 [BZ #20018]
760 CVE-2016-10739
761 resolv: Reject trailing characters in host names
762 * include/arpa/inet.h (__inet_aton_exact): Declare.
763 (inet_aton): Remove hidden prototype. No longer used internally.
764 * nscd/gai.c (__inet_aton): Do not define.
765 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
766 * nss/digits_dots.c (__inet_aton): Likewise.
767 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
768 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
769 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
770 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
771 (tst-resolv-trailing): Likewise.
772 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
773 libc.
774 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
775 Make static. Add endp parameter.
776 (__inet_aton_exact): New function.
777 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
778 (__inet_addr): Call inet_aton_end.
779 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
780 not just IPv6. Call __inet_aton_exact.
781 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
782 (tests): Make const. Add additional test cases with trailing
783 characters.
784 (do_test): Use array_length.
785 * resolv/tst-inet_aton_exact.c: New file.
786 * resolv/tst-resolv-trailing.c: Likewise.
787 * resolv/tst-resolv-nondecimal.c: Likewise.
788 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
789
790 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
791
792 [BZ# 24097]
793 CVE-2019-6488
794 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
795 Clear the upper 32 bits of RSI register.
796 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
797 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
798 and tst-size_t-wcsnlen.
799 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
800 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
801
802 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
803
804 [BZ# 24097]
805 CVE-2019-6488
806 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
807 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
808 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
809 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
810 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
811
812 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
813
814 [BZ# 24097]
815 CVE-2019-6488
816 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
817 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
818 * sysdeps/x86_64/strcmp.S: Likewise.
819 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
820 tst-size_t-strncmp and tst-size_t-wcsncmp.
821 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
822 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
823 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
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/memset-avx512-no-vzeroupper.S: Use
830 RDX_LP for length. Clear the upper 32 bits of RDX register.
831 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
832 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
833 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
834 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
835
836 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
837
838 [BZ# 24097]
839 CVE-2019-6488
840 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
841 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
842 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
843 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
844
845 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
846
847 [BZ# 24097]
848 CVE-2019-6488
849 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
850 length. Clear the upper 32 bits of RDX register.
851 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
852 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
853 Likewise.
854 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
855 Likewise.
856 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
857 tst-size_t-wmemchr.
858 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
859
860 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
861
862 [BZ# 24097]
863 CVE-2019-6488
864 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
865 length. Clear the upper 32 bits of RDX register.
866 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
867 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
868 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
869 tst-size_t-wmemcmp.
870 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
871 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
872
873 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
874
875 [BZ# 24097]
876 CVE-2019-6488
877 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
878 upper 32 bits of RDX register.
879 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
880 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
881 tst-size_t-wmemchr.
882 * sysdeps/x86_64/x32/test-size_t.h: New file.
883 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
884 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
885
886 2019-01-18 Florian Weimer <fweimer@redhat.com>
887
888 [BZ #24112]
889 resolv: Do not send queries for non-host-names in nss_dns.
890 * resolv/nss_dns/dns-host.c (check_name): New function.
891 (_nss_dns_gethostbyname2_r): Use it.
892 (_nss_dns_gethostbyname_r): Likewise.
893 (_nss_dns_gethostbyname4_r): Likewise.
894
895 2019-01-21 Florian Weimer <fweimer@redhat.com>
896
897 * resolv/inet_addr.c: Reformat to GNU style.
898 (__inet_addr, __inet_aton): Update comment.
899
900 2019-01-18 Florian Weimer <fweimer@redhat.com>
901
902 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
903 ("malloc: Use current (C11-style) atomics for fastbin access").
904 This commit introduces a substantial performance regression on
905 POWER and Aarch64.
906 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
907 (REMOVE_FB): Define.
908 (_int_malloc): Use it and reindent.
909 (_int_free): Use CAS loop with
910 catomic_compare_and_exchange_val_rel.
911 (malloc_consolidate): Use atomic_exchange_acq.
912
913
914 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
915
916 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
917 -Wl,-z,now.
918 (LDFLAGS-tst-minsigstksz-2): Likewise.
919 (LDFLAGS-tst-minsigstksz-3): Likewise.
920 (LDFLAGS-tst-minsigstksz-3a): Likewise.
921 (LDFLAGS-tst-minsigstksz-4): Likewise.
922
923 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
924
925 * manual/time.texi (strftime): Fix the wording to "alternative" rather
926 than "alternate".
927
928 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
929
930 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
931
932 2019-01-16 Zack Weinberg <zackw@panix.com>
933
934 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
935 (xget_sigstack_location): New test support functions.
936 * support/xsigstack.c: New file, implementing them.
937 * support/tst-xsigstack.c: New test for them.
938 * support/Makefile: Update.
939
940 * signal/tst-minsigstksz-1.c
941 * signal/tst-minsigstksz-2.c
942 * signal/tst-minsigstksz-3.c
943 * signal/tst-minsigstksz-3a.c
944 * signal/tst-minsigstksz-4.c: New tests.
945 * signal/Makefile: Run them.
946
947 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
948
949 * po/libc.pot: Regenerate.
950
951 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
952
953 * math/libm-test-fma.inc (fma_test_data): Set
954 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
955
956 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
957
958 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
959 (do_test): Changed __vector __int128_t to __vector unsigned int.
960
961 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
962
963 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
964 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
965 stpcpy-avx2 and stpncpy-avx2.
966 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
967 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
968 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
969 and __stpncpy_avx2.
970 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
971 ifunc-strcpy.h}: rename header for a more generic name.
972 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
973 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
974 AVX unaligned load is fast and vzeroupper is preferred.
975 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
976 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
977 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
978 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
979 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
980 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
981
982 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
983
984 * argp/argp-help.c: Fix typo in comment.
985 * misc/sys/cdefs.h: Likewise.
986 * posix/regexec.c (sift_states_iter_mb): Likewise.
987 * socket/sockatmark.c: Likewise.
988 * socket/sys/socket.h: Likewise.
989 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
990 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
991 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
992 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
993 * sysdeps/unix/sockatmark.c: Likewise.
994 * time/strptime_l.c: Likewise.
995
996 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
997
998 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
999 missing space after the cast of "_NL_CURRENT".
1000
1001 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1002
1003 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1004 ifdef to fix read of VSCR.
1005 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1006 tst-ucontext-ppc64-vscr.c to test list.
1007 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1008
1009 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1010
1011 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1012 fall-through.
1013
1014 2019-01-09 Jim Wilson <jimw@sifive.com>
1015
1016 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1017
1018 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1019
1020 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1021 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1022 __memcpy_falkor for ares.
1023 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1024 Add new define.
1025 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1026 Add ares cpu.
1027
1028 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1029
1030 [BZ #24066]
1031 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1032 4_FP_W_TYPEs are used for IEEE quad precision.
1033 * soft-fp/extendhftf2.c: Likewise.
1034 * soft-fp/extendsftf2.c: Likewise.
1035 * soft-fp/extendxftf2.c: Likewise.
1036 * soft-fp/trunctfdf2.c: Likewise.
1037 * soft-fp/trunctfhf2.c: Likewise.
1038 * soft-fp/trunctfsf2.c: Likewise.
1039 * soft-fp/trunctfxf2.c: Likewise.
1040 * sysdeps/alpha/ots_cvttx.c: Likewise.
1041 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1042 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1043 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1044 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1045 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1046 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1047 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1048 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1049 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1050 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1051 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1052 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1053 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1054 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1055 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1056 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1057 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1058
1059 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1060
1061 [BZ #24024]
1062 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1063 code with -fmath-errno.
1064 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1065 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1066 * string/test-strerror-errno.c: New file.
1067
1068 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1069
1070 [BZ #24046]
1071 * localedata/locales/en_US (date_fmt): Add, set to
1072 "%a %d %b %Y %r %Z".
1073
1074 2019-01-07 Florian Weimer <fweimer@redhat.com>
1075
1076 [BZ #24063]
1077 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1078 instead of @var{errno}.
1079 (Parsing of Integers): Likewise.
1080 (Parsing of Floats): Likewise.
1081 * manual/filesys.texi (Working with Directory Trees): Likewise.
1082 (Temporary Files): Likewise.
1083 * manual/job.texi (Terminal Access Functions): Likewise.
1084 * manual/llio.texi (Synchronizing I/O): Likewise.
1085 * manual/math.texi (SVID Random): Likewise.
1086 * manual/message.texi (The catgets Functions): Likewise.
1087 (Translation with gettext): Likewise.
1088 (Locating gettext catalog): Likewise.
1089 (Charset conversion in gettext): Likewise.
1090 * manual/nss.texi (NSS Module Function Internals): Likewise.
1091 * manual/search.texi (Hash Search Function): Likewise.
1092 * manual/setjmp.texi (System V contexts): Likewise.
1093 * manual/time.texi (Sleeping): Likewise.
1094 * manual/users.texi (Lookup User): Likewise.
1095 (Lookup Group): Likewise.
1096
1097 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1098
1099 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1100 fix typo.
1101
1102 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1103
1104 [BZ #19444]
1105 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1106 __builtin_unreachable for default case in switch.
1107 (__ieee754_yn): Likewise.
1108 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1109 (__ieee754_ynl): Likewise.
1110 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1111 (__ieee754_ynl): Likewise.
1112 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1113 (__ieee754_ynl): Likewise.
1114
1115 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1116
1117 * manual/maint.texi: Use @{ and @}.
1118
1119 2019-01-04 Florian Weimer <fweimer@redhat.com>
1120
1121 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1122 function.
1123 (do_in_chroot_1): Call it.
1124 (run_chroot_tests):
1125 Improve error reporting in case it is not possible to create a
1126 collision for the PTY name required by the test.
1127
1128 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1129
1130 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1131 lll_wait_tid with timeout.
1132 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1133 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1134 futex_reltimed_wait_cancelable for cancelabla mode.
1135 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1136 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1137 macros.
1138 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1139 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1140 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1141 SYSCALL_CANCEL_NCS): New macro.
1142 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1143 (lll_timedwait_tid): Remove macro.
1144 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1145 Likewise.
1146 (lll_timedwait_tid): Likewise.
1147 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1148 Likewise.
1149 (lll_timedwait_tid): Likewise.
1150 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1151 Likewise.
1152 (lll_timedwait_tid): Likewise.
1153 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1154 Use INTERNAL_SYSCALL_CANCEL.
1155 * sysdeps/unix/sysv/linux/futex-internal.h
1156 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1157 instead of __pthread_{enable,disable}_asynccancel.
1158 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1159 (lll_futex_wait_cancel): New macro.
1160
1161 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1162 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1163
1164 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1165 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1166
1167 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1168 in backtrace analysis.
1169 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1170 side-effects.
1171 (tf_send): Likewise.
1172
1173 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1174 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1175 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1176 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1177 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1178 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1179 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1180 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1181 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1182 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1183 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1184 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1185 Likewise.
1186 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1187 tst-cancel-wrappers.sh.
1188 (generated): Remove tst-cancel-wrappers.out.
1189 (tst-cancel-wrappers.out): Remove rule.
1190 * nptl/tst-cancel-wrappers.sh: Remove file.
1191
1192 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1193
1194 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1195 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1196 Update.
1197
1198 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1199
1200 [BZ #23640]
1201 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1202 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1203 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1204 close-on-exec reset for adddup2 file action.
1205 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1206
1207 2019-01-03 Zack Weinberg <zackw@panix.com>
1208
1209 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1210 parameter. Only use deprecated scanf when __USE_GNU is defined
1211 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1212 than 201103L, whichever is relevant for the language being compiled.
1213
1214 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1215 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1216 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1217 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1218 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1219
1220 * libio/iovsscanf.c
1221 * libio/fwscanf.c
1222 * libio/iovswscanf.c
1223 * libio/swscanf.c
1224 * libio/vscanf.c
1225 * libio/vwscanf.c
1226 * libio/wscanf.c
1227 * stdio-common/fscanf.c
1228 * stdio-common/scanf.c
1229 * stdio-common/vfscanf.c
1230 * stdio-common/vfwscanf.c
1231 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1232 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1233 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1234 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1235 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1236 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1237 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1238 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1239 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1240 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1241 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1242 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1243 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1244 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1245 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1246
1247 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1248 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1249 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1250 not sscanf.
1251 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1252 with a preprocessor macro.
1253
1254 * stdio-common/bug21.c, stdio-common/scanf14.c:
1255 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1256 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1257 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1258 to xscanf, xfscanf, xsscanf.
1259
1260 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1261 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1262 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1263 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1264 xfscanf, xsscanf.
1265 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1266 override feature selection macros or provide definitions of u_char etc.
1267 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1268 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1269 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1270 with -std=gnu89.
1271
1272 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1273
1274 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1275 bits/termios-misc.h.
1276 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1277 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1278 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1279 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1280 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1281 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1282
1283 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
1284 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1285 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
1286 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
1287 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
1288 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
1289 termios-misc.h.
1290 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
1291 (sysdep_headers): Add termios-misc.h.
1292
1293 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1294 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1295 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1296
1297 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1298 termios-tcflow.h.
1299 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1300 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1301 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1302 TCSAFLUSH): Move to termios-tcflow.h.
1303 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1304 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1305 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1306 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1307
1308 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1309 termios-c_lflag.h.
1310 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
1311 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
1312 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
1313 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
1314 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
1315 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
1316 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
1317 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
1318 Likewise.
1319 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1320 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1321 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1322 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1323
1324 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1325 termios-c_cflag.h.
1326 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
1327 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
1328 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
1329 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
1330 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
1331 termios-c_cflag.h.
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 [BZ #23783]
1338 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1339 termios-baud.h.
1340 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
1341 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
1342 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
1343 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
1344 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
1345 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
1346 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
1347 __MAX_BAUD): Move to termios-baud.h.
1348 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
1349 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
1350 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1351 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1352 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1353
1354 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
1355 termios-c_oflag.h.
1356 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
1357 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
1358 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
1359 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
1360 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
1361 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
1362 termios-c_oflag.h.
1363 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
1364 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
1365 FFR1): Likewise.
1366 [USE_MISC] (XTABS): Likewise.
1367 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1368 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1369 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1370 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
1371
1372 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1373 termios-c_iflag.h.
1374 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
1375 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
1376 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
1377 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
1378 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
1379 IUTF8): Move to termios-c_iflag.h.
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-cc.h.
1387 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
1388 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
1389 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
1390 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
1391 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
1392 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
1393 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
1394 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
1395 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1396 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1397 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1398 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1399
1400 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
1401 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
1402 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
1403 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
1404 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1405 termios-struct.h.
1406 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
1407 termios-struct.h.
1408 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
1409 Likewise.
1410 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
1411 Likewise.
1412 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
1413 Likewise.
1414 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
1415 Likewise.
1416 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
1417 _HAVE_C_OSPEED): Define.
1418 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
1419 _HAVE_C_OSPEED): Likewise.
1420 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
1421 _HAVE_C_OSPEED): Likewise.
1422 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
1423 (cfsetospeed): Check for define value instead of existence.
1424 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
1425 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1426 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
1427 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1428 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
1429
1430 [BZ #17783]
1431 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
1432 Define.
1433 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1434 (TIOCSER_TEMT): Likewise.
1435 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
1436 (TEOCSER_TEMT): Likewise.
1437
1438 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
1439
1440 [BZ #24011]
1441 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
1442
1443 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1444
1445 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1446
1447 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1448
1449 * sysdeps/htl/pt-barrierattr-setpshared.c
1450 (pthread_barrierattr_setpshared): Add stub warning.
1451 * sysdeps/htl/pt-condattr-setpshared.c
1452 (pthread_condattr_setpshared): Likewise.
1453 * sysdeps/htl/pt-mutexattr-setpshared.c
1454 (pthread_mutexattr_setpshared): Likewise.
1455 * sysdeps/htl/pt-rwlockattr-setpshared.c
1456 (pthread_rwlockattr_setpshared): Likewise.
1457 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
1458 (pthread_mutexattr_setpshared): Likewise.
1459
1460 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1461
1462 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
1463 constants to match with Linux 4.20.
1464
1465 * sysdeps/mips/mips32/libm-test-ulps: Update.
1466 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
1467
1468 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
1469
1470 [BZ #24034]
1471 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
1472 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
1473 than __typeof (...) for the a_ptr variable.
1474
1475 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1476
1477 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
1478 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
1479 * libio/Makefile (tests): Add tst-sprintf-ub and
1480 tst-sprintf-chk-ub.
1481 (CFLAGS-tst-sprintf-ub.c): New variable.
1482 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
1483 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
1484 destination buffer and check for overflows in fortified mode.
1485 * libio/libioP.h (PRINTF_CHK): New macro.
1486 * libio/tst-sprintf-chk-ub.c: New file.
1487 * libio/tst-sprintf-ub.c: Likewise.
1488
1489 2019-01-02 Florian Weimer <fweimer@redhat.com>
1490
1491 [BZ #24018]
1492 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
1493 failure.
1494
1495 2019-01-02 Florian Weimer <fweimer@redhat.com>
1496
1497 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
1498
1499 2019-01-01 Joseph Myers <joseph@codesourcery.com>
1500
1501 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
1502 macro.
1503
1504 * sysdeps/unix/sysv/linux/netpacket/packet.h
1505 (PACKET_IGNORE_OUTGOING): New macro.
1506
1507 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
1508 macro.
1509
1510 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1511 version to 4.20.
1512 (riscv_flush_icache): New syscall.
1513
1514 * manual/texinfo.tex: Update to version 2018-12-28.17 with
1515 trailing whitespace removed.
1516 * scripts/config.guess: Update to version 2019-01-01.
1517 * scripts/config.sub: Update to version 2019-01-01.
1518 * scripts/move-if-change: Update from gnulib.
1519
1520 * NEWS: Update copyright dates.
1521 * catgets/gencat.c (print_version): Likewise.
1522 * csu/version.c (banner): Likewise.
1523 * debug/catchsegv.sh: Likewise.
1524 * debug/pcprofiledump.c (print_version): Likewise.
1525 * debug/xtrace.sh (do_version): Likewise.
1526 * elf/ldconfig.c (print_version): Likewise.
1527 * elf/ldd.bash.in: Likewise.
1528 * elf/pldd.c (print_version): Likewise.
1529 * elf/sotruss.sh: Likewise.
1530 * elf/sprof.c (print_version): Likewise.
1531 * iconv/iconv_prog.c (print_version): Likewise.
1532 * iconv/iconvconfig.c (print_version): Likewise.
1533 * locale/programs/locale.c (print_version): Likewise.
1534 * locale/programs/localedef.c (print_version): Likewise.
1535 * login/programs/pt_chown.c (print_version): Likewise.
1536 * malloc/memusage.sh (do_version): Likewise.
1537 * malloc/memusagestat.c (print_version): Likewise.
1538 * malloc/mtrace.pl: Likewise.
1539 * manual/libc.texinfo: Likewise.
1540 * nptl/version.c (banner): Likewise.
1541 * nscd/nscd.c (print_version): Likewise.
1542 * nss/getent.c (print_version): Likewise.
1543 * nss/makedb.c (print_version): Likewise.
1544 * posix/getconf.c (main): Likewise.
1545 * scripts/test-installation.pl: Likewise.
1546 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1547
1548 * All files with FSF copyright notices: Update copyright dates
1549 using scripts/update-copyrights.
1550 * locale/programs/charmap-kw.h: Regenerated.
1551 * locale/programs/locfile-kw.h: Likewise.
1552
1553 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1554
1555 * timezone/zdump.c: Update from tzcode 2018i.
1556 * timezone/zic.c: Likewise.
1557
1558 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
1559
1560 regex: improve Gnulib port to AIX
1561 From the glibc point of view, this removes duplicate macro
1562 definitions and is obviously safe.
1563 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
1564 * posix/regex_internal.h:
1565 (__attribute__, __attribute_warn_unused_result__):
1566 Remove; already defined elsewhere.
1567
1568 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
1569
1570 [BZ #24027]
1571 * malloc/malloc.c (_int_realloc): Always call memcpy for the
1572 copying operation. (ncopies had the wrong type, resulting in an
1573 integer wraparound and too few elements being copied.)
1574
1575 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
1576
1577 [BZ #24022]
1578 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
1579 <asm/syscalls.h> exists with __has_include__ before including it.
1580
1581 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1582
1583 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1584 version to 4.20.
1585
1586 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
1587
1588 * hurd/lookup-retry: Include <unistd.h>.
1589 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
1590 Release it on return. Handle "pid" magical lookup retry.
1591
1592 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1593
1594 [BZ #10496]
1595 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
1596 (t_fmt_ampm): Likewise.
1597 * localedata/locales/aa_ER (t_fmt): Likewise.
1598 (t_fmt_ampm): Likewise.
1599 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
1600 (t_fmt_ampm): Likewise.
1601 * localedata/locales/aa_ET (t_fmt): Likewise.
1602 (t_fmt_ampm): Likewise.
1603 * localedata/locales/am_ET (t_fmt): Likewise.
1604 (t_fmt_ampm): Likewise.
1605 * localedata/locales/byn_ER (t_fmt): Likewise.
1606 (t_fmt_ampm): Likewise.
1607 * localedata/locales/om_ET (t_fmt): Likewise.
1608 (t_fmt_ampm): Likewise.
1609 * localedata/locales/sid_ET (t_fmt): Likewise.
1610 (t_fmt_ampm): Likewise.
1611 * localedata/locales/so_DJ (t_fmt): Likewise.
1612 (t_fmt_ampm): Likewise.
1613 * localedata/locales/so_ET (t_fmt): Likewise.
1614 (t_fmt_ampm): Likewise.
1615 * localedata/locales/so_SO (t_fmt): Likewise.
1616 (t_fmt_ampm): Likewise.
1617 * localedata/locales/ti_ER (t_fmt): Likewise.
1618 (t_fmt_ampm): Likewise.
1619 * localedata/locales/ti_ET (t_fmt): Likewise.
1620 (t_fmt_ampm): Likewise.
1621 * localedata/locales/tig_ER (t_fmt): Likewise.
1622 (t_fmt_ampm): Likewise.
1623 * localedata/locales/wal_ET (t_fmt): Likewise.
1624 (t_fmt_ampm): Likewise.
1625
1626 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
1627 * localedata/locales/ar_IN (t_fmt): Likewise.
1628 * localedata/locales/bhb_IN (t_fmt): Likewise.
1629 * localedata/locales/bho_IN (t_fmt): Likewise.
1630 * localedata/locales/bi_VU (t_fmt): Likewise.
1631 * localedata/locales/bn_BD (t_fmt): Likewise.
1632 * localedata/locales/bn_IN (t_fmt): Likewise.
1633 * localedata/locales/brx_IN (t_fmt): Likewise.
1634 * localedata/locales/doi_IN (t_fmt): Likewise.
1635 * localedata/locales/en_HK (t_fmt): Likewise.
1636 (t_fmt_ampm): Likewise.
1637 * localedata/locales/en_IN (t_fmt): Likewise.
1638 * localedata/locales/en_PH (t_fmt): Likewise.
1639 * localedata/locales/gu_IN (t_fmt): Likewise.
1640 * localedata/locales/hi_IN (t_fmt): Likewise.
1641 * localedata/locales/hif_FJ (t_fmt): Likewise.
1642 * localedata/locales/hne_IN (t_fmt): Likewise.
1643 * localedata/locales/kn_IN (t_fmt): Likewise.
1644 * localedata/locales/kok_IN (t_fmt): Likewise.
1645 * localedata/locales/ks_IN (t_fmt): Likewise.
1646 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
1647 * localedata/locales/mag_IN (t_fmt): Likewise.
1648 * localedata/locales/mai_IN (t_fmt): Likewise.
1649 * localedata/locales/mjw_IN (t_fmt): Likewise.
1650 * localedata/locales/ml_IN (t_fmt): Likewise.
1651 * localedata/locales/mni_IN (t_fmt): Likewise.
1652 * localedata/locales/mr_IN (t_fmt): Likewise.
1653 * localedata/locales/ms_MY (t_fmt): Likewise.
1654 * localedata/locales/pa_IN (t_fmt): Likewise.
1655 * localedata/locales/raj_IN (t_fmt): Likewise.
1656 * localedata/locales/sa_IN (t_fmt): Likewise.
1657 * localedata/locales/sat_IN (t_fmt): Likewise.
1658 * localedata/locales/sd_IN (t_fmt): Likewise.
1659 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
1660 * localedata/locales/tcy_IN (t_fmt): Likewise.
1661 * localedata/locales/the_NP (t_fmt): Likewise.
1662 * localedata/locales/to_TO (t_fmt): Likewise.
1663 * localedata/locales/ur_IN (t_fmt): Likewise.
1664
1665 * localedata/locales/hif_FJ (d_t_fmt): Set to
1666 "%A %d %b %Y %I:%M:%S %p".
1667 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
1668
1669 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
1670 * localedata/locales/ar_BH (t_fmt): Likewise.
1671 * localedata/locales/ar_DZ (t_fmt): Likewise.
1672 * localedata/locales/ar_EG (t_fmt): Likewise.
1673 * localedata/locales/ar_IQ (t_fmt): Likewise.
1674 * localedata/locales/ar_JO (t_fmt): Likewise.
1675 * localedata/locales/ar_KW (t_fmt): Likewise.
1676 * localedata/locales/ar_LB (t_fmt): Likewise.
1677 * localedata/locales/ar_LY (t_fmt): Likewise.
1678 * localedata/locales/ar_OM (t_fmt): Likewise.
1679 * localedata/locales/ar_QA (t_fmt): Likewise.
1680 * localedata/locales/ar_SD (t_fmt): Likewise.
1681 * localedata/locales/ar_SS (t_fmt): Likewise.
1682 * localedata/locales/ar_SY (t_fmt): Likewise.
1683 * localedata/locales/ar_TN (t_fmt): Likewise.
1684 * localedata/locales/ar_YE (t_fmt): Likewise.
1685
1686 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
1687 (t_fmt_ampm): Likewise.
1688 * localedata/locales/gez_ET (t_fmt): Likewise.
1689 (t_fmt_ampm): Likewise.
1690
1691 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
1692 (t_fmt_ampm): Likewise.
1693 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
1694
1695 * localedata/locales/zh_HK (t_fmt):
1696 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
1697
1698 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
1699 because this locale does not use the 12-hour clock.
1700 (t_fmt): Set to "%Z %H:%M:%S".
1701 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
1702
1703 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
1704 because this locale does not use the 12-hour clock.
1705 (t_fmt): Set to "%H:%M:%S %Z".
1706 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
1707
1708 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
1709 because this locale does not use the 12-hour clock.
1710 (t_fmt): Set to "%T".
1711 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
1712 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
1713
1714 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
1715 because this locale does not use the 12-hour clock.
1716 (t_fmt): Set to "%H:%M:%S %Z".
1717 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
1718
1719 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
1720 because this locale does not use the 12-hour clock.
1721 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
1722 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
1723
1724 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1725
1726 [BZ #10496]
1727 [BZ #23724]
1728 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
1729 (t_fmt_ampm): Likewise.
1730 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
1731 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
1732 (d_fmt): Set to "%-d.%-m.%y".
1733
1734 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1735
1736 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
1737 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
1738 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
1739 Likewise.
1740 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
1741 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
1742 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
1743 function.
1744 * support/blob_repeat.c (check_mul_overflow_size_t,
1745 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
1746
1747 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
1748
1749 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
1750
1751 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
1752
1753 regex: simplify Gnulib port
1754 This simplifies the code, by removing stuff intended for porting
1755 to Gnulib but no longer needed there.
1756 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
1757 uses of libc_hidden_def, weak_alias.
1758 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
1759 _Restrict_ except for public-facing headers.
1760 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
1761 Remove; already defined elsewhere.
1762 * posix/regex.c, posix/regex_internal.h:
1763 Use __GNUC_PREREQ instead of rolling our own.
1764 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
1765
1766 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
1767
1768 * benchtests/bench-strlen.c (generic_strlen): New function.
1769 (memchr_strlen): New function.
1770
1771 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1772
1773 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
1774 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
1775 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
1776
1777 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1778
1779 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1780
1781 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1782
1783 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
1784 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
1785 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
1786 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
1787 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
1788 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
1789 <sysdeps/ieee754/flt-32/s_sincosf.c>.
1790
1791 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1792
1793 [BZ #24023]
1794 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
1795 PLT reference in libc.so.
1796 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
1797 _Q_lltoq and _Q_qtod PLT references in libc.so.
1798
1799 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
1800
1801 * benchtests/bench-memchr.c: Cleanup defines.
1802 * benchtests/bench-memcmp.c: Likewise.
1803 * benchtests/bench-memset.c: Likewise.
1804 * benchtests/bench-memset-large.c: Likewise.
1805 * benchtests/bench-memset-walk.c: Likewise.
1806 * benchtests/bench-stpcpy.c: Likewise.
1807 * benchtests/bench-stpncpy.c: Likewise.
1808 * benchtests/bench-strcat.c: Likewise.
1809 * benchtests/bench-strchr.c: Likewise.
1810 * benchtests/bench-strcmp.c: Likewise.
1811 * benchtests/bench-strcpy.c: Likewise.
1812 * benchtests/bench-strcspn.c: Likewise.
1813 * benchtests/bench-string.h: Likewise.
1814 * benchtests/bench-strlen.c: Likewise.
1815 * benchtests/bench-strncat.c: Likewise.
1816 * benchtests/bench-strncmp.c: Likewise.
1817 * benchtests/bench-strncpy.c: Likewise.
1818 * benchtests/bench-strnlen.c: Likewise.
1819 * benchtests/bench-strpbrk.c: Likewise.
1820 * benchtests/bench-strrchr.c: Likewise.
1821 * benchtests/bench-strspn.c: Likewise.
1822
1823 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1824
1825 * stdlib/longlong.h: Update from GCC.
1826
1827 [BZ #23993]
1828 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
1829 * configure: Regenerated.
1830 * manual/install.texi (Tools for Compilation): Update minimum GCC
1831 version.
1832 * INSTALL: Regenerated.
1833
1834 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
1835
1836 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
1837
1838 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
1839
1840 * malloc/malloc.c (mremap_chunk): Additional checks.
1841
1842 2018-12-21 Mao Han <han_mao@c-sky.com>
1843
1844 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
1845 * scripts/build-many-glibcs.py: Add C-SKY targets.
1846 * sysdeps/csky/Implies: New file.
1847 * sysdeps/csky/Makefile: Likewise.
1848 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
1849 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
1850 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
1851 * sysdeps/csky/abiv2/memcmp.S: Likewise.
1852 * sysdeps/csky/abiv2/memcpy.S: Likewise.
1853 * sysdeps/csky/abiv2/memmove.S: Likewise.
1854 * sysdeps/csky/abiv2/memset.S: Likewise.
1855 * sysdeps/csky/abiv2/setjmp.S: Likewise.
1856 * sysdeps/csky/abiv2/start.S: Likewise.
1857 * sysdeps/csky/abiv2/strcmp.S: Likewise.
1858 * sysdeps/csky/abiv2/strcpy.S: Likewise.
1859 * sysdeps/csky/abiv2/strlen.S: Likewise.
1860 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
1861 * sysdeps/csky/abort-instr.h: Likewise.
1862 * sysdeps/csky/atomic-machine.h: Likewise.
1863 * sysdeps/csky/bits/endian.h: Likewise.
1864 * sysdeps/csky/bits/fenv.h: Likewise.
1865 * sysdeps/csky/bits/link.h: Likewise.
1866 * sysdeps/csky/bits/setjmp.h: Likewise.
1867 * sysdeps/csky/bsd-_setjmp.S: Likewise.
1868 * sysdeps/csky/bsd-setjmp.S: Likewise.
1869 * sysdeps/csky/configure: Likewise.
1870 * sysdeps/csky/configure.ac: Likewise.
1871 * sysdeps/csky/dl-machine.h: Likewise.
1872 * sysdeps/csky/dl-procinfo.c: Likewise.
1873 * sysdeps/csky/dl-procinfo.h: Likewise.
1874 * sysdeps/csky/dl-sysdep.h: Likewise.
1875 * sysdeps/csky/dl-tls.h: Likewise.
1876 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
1877 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
1878 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
1879 * sysdeps/csky/fpu/fegetenv.c: Likewise.
1880 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
1881 * sysdeps/csky/fpu/fegetmode.c: Likewise.
1882 * sysdeps/csky/fpu/fegetround.c: Likewise.
1883 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
1884 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
1885 * sysdeps/csky/fpu/fenv_private.h: Likewise.
1886 * sysdeps/csky/fpu/fesetenv.c: Likewise.
1887 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
1888 * sysdeps/csky/fpu/fesetmode.c: Likewise.
1889 * sysdeps/csky/fpu/fesetround.c: Likewise.
1890 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
1891 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
1892 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
1893 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
1894 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
1895 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
1896 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
1897 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
1898 * sysdeps/csky/fpu_control.h: Likewise.
1899 * sysdeps/csky/gccframe.h: Likewise.
1900 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
1901 * sysdeps/csky/ldsodefs.h: Likewise.
1902 * sysdeps/csky/libc-tls.c: Likewise.
1903 * sysdeps/csky/linkmap.h: Likewise.
1904 * sysdeps/csky/machine-gmon.h: Likewise.
1905 * sysdeps/csky/memusage.h: Likewise.
1906 * sysdeps/csky/nofpu/Implies: Likewise.
1907 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
1908 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
1909 * sysdeps/csky/nptl/Makefile: Likewise.
1910 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
1911 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
1912 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
1913 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
1914 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
1915 * sysdeps/csky/nptl/tls.h: Likewise.
1916 * sysdeps/csky/preconfigure: Likewise.
1917 * sysdeps/csky/sfp-machine.h: Likewise.
1918 * sysdeps/csky/sotruss-lib.c: Likewise.
1919 * sysdeps/csky/stackinfo.h: Likewise.
1920 * sysdeps/csky/sysdep.h: Likewise.
1921 * sysdeps/csky/tininess.h: Likewise.
1922 * sysdeps/csky/tst-audit.h: Likewise.
1923 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
1924 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
1925 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
1926 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
1927 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
1928 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
1929 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
1930 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
1931 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
1932 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
1933 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
1934 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
1935 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
1936 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
1937 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
1938 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
1939 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
1940 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
1941 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
1942 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
1943 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
1944 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
1945 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
1946 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
1947 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
1948 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
1949 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
1950 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
1951 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
1952 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
1953 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
1954 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
1955 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
1956 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
1957 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
1958 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
1959 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
1960 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
1961 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
1962 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
1963 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
1964 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
1965 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
1966 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
1967
1968 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
1969
1970 * include/time.h (__difftime64): Add.
1971 * time/difftime.c (subtract): convert to 64-bit time.
1972 * time/difftime.c (__difftime64): Add.
1973 * time/difftime.c (__difftime): Wrap around __difftime64.
1974
1975 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
1976
1977 * manual/examples/add.c: Remove redundant "if not".
1978 * manual/examples/argp-ex1.c: Likewise.
1979 * manual/examples/argp-ex2.c: Likewise.
1980 * manual/examples/argp-ex3.c: Likewise.
1981 * manual/examples/argp-ex4.c: Likewise.
1982 * manual/examples/atexit.c: Likewise.
1983 * manual/examples/db.c: Likewise.
1984 * manual/examples/dir.c: Likewise.
1985 * manual/examples/dir2.c: Likewise.
1986 * manual/examples/execinfo.c: Likewise.
1987 * manual/examples/filecli.c: Likewise.
1988 * manual/examples/filesrv.c: Likewise.
1989 * manual/examples/fmtmsgexpl.c: Likewise.
1990 * manual/examples/genpass.c: Likewise.
1991 * manual/examples/inetcli.c: Likewise.
1992 * manual/examples/inetsrv.c: Likewise.
1993 * manual/examples/isockad.c: Likewise.
1994 * manual/examples/longopt.c: Likewise.
1995 * manual/examples/memopen.c: Likewise.
1996 * manual/examples/memstrm.c: Likewise.
1997 * manual/examples/mkdirent.c: Likewise.
1998 * manual/examples/mkfsock.c: Likewise.
1999 * manual/examples/mkisock.c: Likewise.
2000 * manual/examples/mygetpass.c: Likewise.
2001 * manual/examples/pipe.c: Likewise.
2002 * manual/examples/popen.c: Likewise.
2003 * manual/examples/rprintf.c: Likewise.
2004 * manual/examples/search.c: Likewise.
2005 * manual/examples/select.c: Likewise.
2006 * manual/examples/setjmp.c: Likewise.
2007 * manual/examples/sigh1.c: Likewise.
2008 * manual/examples/sigusr.c: Likewise.
2009 * manual/examples/stpcpy.c: Likewise.
2010 * manual/examples/strdupa.c: Likewise.
2011 * manual/examples/strftim.c: Likewise.
2012 * manual/examples/subopt.c: Likewise.
2013 * manual/examples/swapcontext.c: Likewise.
2014 * manual/examples/termios.c: Likewise.
2015 * manual/examples/testopt.c: Likewise.
2016 * manual/examples/testpass.c: Likewise.
2017 * manual/examples/timeval_subtract.c: Likewise.
2018
2019 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2020
2021 * sysdeps/x86/fpu/math_private.h: New file.
2022 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2023
2024 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2025 definition.
2026 (cosh): Likewise.
2027 (tanh): Likewise.
2028
2029 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2030
2031 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2032 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2033 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2034 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2035 fields.
2036 (_dl_show_auxv): Give a special treatment to
2037 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2038 and AT_L3_CACHEGEOMETRY.
2039 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2040 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2041 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2042 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2043
2044 2018-12-19 Andreas Schwab <schwab@suse.de>
2045
2046 * nscd/connections.c (check_use): Don't abort on invalid len.
2047
2048 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2049
2050 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2051 values in the 64bit value cases.
2052
2053 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2054
2055 * include/time.h
2056 (__ctime64_r): Add.
2057 * time/ctime_r.c
2058 (__ctime64_r): Add.
2059 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2060
2061 * include/time.h
2062 (__ctime64): Add.
2063 * time/gmtime.c
2064 (__ctime64): Add.
2065 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2066
2067 * include/time.h
2068 (__gmtime64_r): Add.
2069 * time/gmtime.c
2070 (__gmtime64_r): Add.
2071 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2072
2073 * include/time.h
2074 (__gmtime64): Add.
2075 * time/gmtime.c
2076 (__gmtime64): Add.
2077 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2078
2079 * include/time.h
2080 (__localtime64_r): Add.
2081 * time/localtime.c
2082 (__localtime64_r): Add.
2083 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2084
2085 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2086
2087 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2088 kernel_sigction definition.
2089
2090 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2091
2092 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2093
2094 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2095 __syscall_rt_sigaction.
2096 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2097 (kernel_sigaction): Use Linux generic defintion.
2098 (STUB): Define.
2099 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2100 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2101 (__syscall_rt_sigaction): Remove implementation.
2102 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2103 hidden.
2104 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2105 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2106 INTERNAL_SYSCALL): Remove definitions.
2107 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2108 action and signal set size.
2109 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2110 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2111
2112 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2113 James Clarke <jrtc27@jrtc27.com>
2114
2115 [BZ #23967]
2116 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2117 Define if SA_RESTORER is defined.
2118 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2119 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2120 already defined.
2121 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2122 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2123 definitions.
2124 (HAS_SA_RESTORER): Define.
2125 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2126 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2127 (HAS_SA_RESTORER): Define.
2128 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2129 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2130 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2131 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2132 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2133
2134 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2135
2136 * sysdeps/unix/sysv/linux/kernel-features.h
2137 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2138 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2139 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2140 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2141 (__ASSUME_ST_INO_64_BIT): Likewise.
2142 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2143 <kernel-features.h>.
2144 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2145 Remove conditional code.
2146 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2147 <kernel-features.h>.
2148 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2149 Remove conditional code.
2150 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2151 <kernel-features.h>.
2152 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2153 Remove conditional code.
2154 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2155 <kernel-features.h>.
2156 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2157 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2158
2159 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2160
2161 * sysdeps/s390/multiarch/ifunc-resolve.h
2162 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2163 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2164 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2165 Delete macro definition.
2166 (s390_libc_ifunc_init): Rename to
2167 s390_libc_ifunc_expr_stfle_init.
2168 * sysdeps/s390/bzero: Use
2169 s390_libc_ifunc_expr_stfle_init instead of
2170 s390_libc_ifunc_init.
2171 * sysdeps/s390/memcmp.c: Likewise.
2172 * sysdeps/s390/memcpy.c: Likewise.
2173 * sysdeps/s390/mempcpy.c: Likewise.
2174 * sysdeps/s390/memset.c: Likewise.
2175
2176 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2177
2178 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2179 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2180
2181 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2182
2183 * sysdeps/s390/multiarch/Makefile
2184 (sysdep_routines): Remove wmemcmp variants.
2185 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2186 * sysdeps/s390/multiarch/ifunc-impl-list.c
2187 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2188 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2189 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2190 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2191 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2192 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2193 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2194 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2195
2196 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2197
2198 * sysdeps/s390/multiarch/Makefile
2199 (sysdep_routines): Remove wmemset variants.
2200 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2201 * sysdeps/s390/multiarch/ifunc-impl-list.c
2202 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2203 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2204 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2205 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2206 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2207 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2208 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2209 * sysdeps/s390/ifunc-wmemset.h: New file.
2210
2211 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2212
2213 * sysdeps/s390/multiarch/Makefile
2214 (sysdep_routines): Remove wmemchr variants.
2215 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2216 * sysdeps/s390/multiarch/ifunc-impl-list.c
2217 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2218 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2219 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2220 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2221 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2222 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2223 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2224 * sysdeps/s390/ifunc-wmemchr.h: New file.
2225
2226 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2227
2228 * sysdeps/s390/multiarch/Makefile
2229 (sysdep_routines): Remove wcscspn variants.
2230 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2231 * sysdeps/s390/multiarch/ifunc-impl-list.c
2232 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2233 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2234 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2235 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2236 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2237 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2238 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2239 * sysdeps/s390/ifunc-wcscspn.h: New file.
2240
2241 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2242
2243 * sysdeps/s390/multiarch/Makefile
2244 (sysdep_routines): Remove wcspbrk variants.
2245 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2246 * sysdeps/s390/multiarch/ifunc-impl-list.c
2247 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2248 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2249 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2250 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2251 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2252 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2253 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2254 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2255
2256 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2257
2258 * sysdeps/s390/multiarch/Makefile
2259 (sysdep_routines): Remove wcsspn variants.
2260 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2261 * sysdeps/s390/multiarch/ifunc-impl-list.c
2262 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2263 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2264 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2265 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2266 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2267 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2268 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2269 * sysdeps/s390/ifunc-wcsspn.h: New file.
2270
2271 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2272
2273 * sysdeps/s390/multiarch/Makefile
2274 (sysdep_routines): Remove wcsrchr variants.
2275 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2276 * sysdeps/s390/multiarch/ifunc-impl-list.c
2277 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2278 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2279 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2280 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2281 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2282 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2283 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
2284 * sysdeps/s390/ifunc-wcsrchr.h: New file.
2285
2286 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2287
2288 * sysdeps/s390/multiarch/Makefile
2289 (sysdep_routines): Remove wcschrnul variants.
2290 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
2291 * sysdeps/s390/multiarch/ifunc-impl-list.c
2292 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2293 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2294 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2295 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2296 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2297 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2298 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2299 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2300
2301 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2302
2303 * sysdeps/s390/multiarch/Makefile
2304 (sysdep_routines): Remove wcschr variants.
2305 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2306 * sysdeps/s390/multiarch/ifunc-impl-list.c
2307 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
2308 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
2309 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
2310 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
2311 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
2312 * sysdeps/s390/multiarch/wcschr.c: Move to ...
2313 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
2314 * sysdeps/s390/ifunc-wcschr.h: New file.
2315
2316 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2317
2318 * sysdeps/s390/multiarch/Makefile
2319 (sysdep_routines): Remove wcsncmp variants.
2320 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
2321 * sysdeps/s390/multiarch/ifunc-impl-list.c
2322 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
2323 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
2324 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
2325 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
2326 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
2327 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
2328 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
2329 * sysdeps/s390/ifunc-wcsncmp.h: New file.
2330
2331 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2332
2333 * sysdeps/s390/multiarch/Makefile
2334 (sysdep_routines): Remove wcscmp variants.
2335 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
2336 * sysdeps/s390/multiarch/ifunc-impl-list.c
2337 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
2338 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
2339 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
2340 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
2341 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
2342 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
2343 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
2344 * sysdeps/s390/ifunc-wcscmp.h: New file.
2345
2346 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2347
2348 * sysdeps/s390/multiarch/Makefile
2349 (sysdep_routines): Remove wcsncat variants.
2350 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
2351 * sysdeps/s390/multiarch/ifunc-impl-list.c
2352 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
2353 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
2354 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
2355 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
2356 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
2357 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
2358 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
2359 * sysdeps/s390/ifunc-wcsncat.h: New file.
2360
2361 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2362
2363 * sysdeps/s390/multiarch/Makefile
2364 (sysdep_routines): Remove wcscat variants.
2365 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
2366 * sysdeps/s390/multiarch/ifunc-impl-list.c
2367 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
2368 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
2369 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
2370 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
2371 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
2372 * sysdeps/s390/multiarch/wcscat.c: Move to ...
2373 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
2374 * sysdeps/s390/ifunc-wcscat.h: New file.
2375
2376 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2377
2378 * sysdeps/s390/multiarch/Makefile
2379 (sysdep_routines): Remove wcpncpy variants.
2380 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
2381 * sysdeps/s390/multiarch/ifunc-impl-list.c
2382 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
2383 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
2384 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
2385 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
2386 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
2387 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
2388 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
2389 * sysdeps/s390/ifunc-wcpncpy.h: New file.
2390
2391 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2392
2393 * sysdeps/s390/multiarch/Makefile
2394 (sysdep_routines): Remove wcsncpy variants.
2395 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
2396 * sysdeps/s390/multiarch/ifunc-impl-list.c
2397 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
2398 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
2399 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
2400 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
2401 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
2402 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
2403 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
2404 * sysdeps/s390/ifunc-wcsncpy.h: New file.
2405
2406 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2407
2408 * sysdeps/s390/multiarch/Makefile
2409 (sysdep_routines): Remove wcpcpy variants.
2410 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
2411 * sysdeps/s390/multiarch/ifunc-impl-list.c
2412 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
2413 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
2414 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
2415 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
2416 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
2417 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
2418 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
2419 * sysdeps/s390/ifunc-wcpcpy.h: New file.
2420
2421 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2422
2423 * sysdeps/s390/multiarch/Makefile
2424 (sysdep_routines): Remove wcscpy variants.
2425 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
2426 * sysdeps/s390/multiarch/ifunc-impl-list.c
2427 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
2428 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
2429 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
2430 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
2431 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
2432 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
2433 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
2434 * sysdeps/s390/ifunc-wcscpy.h: New file.
2435
2436 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2437
2438 * sysdeps/s390/multiarch/Makefile
2439 (sysdep_routines): Remove wcsnlen variants.
2440 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
2441 * sysdeps/s390/multiarch/ifunc-impl-list.c
2442 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
2443 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
2444 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
2445 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
2446 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
2447 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
2448 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
2449 * sysdeps/s390/ifunc-wcsnlen.h: New file.
2450
2451 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2452
2453 * sysdeps/s390/multiarch/Makefile
2454 (sysdep_routines): Remove wcslen variants.
2455 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
2456 * sysdeps/s390/multiarch/ifunc-impl-list.c
2457 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
2458 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
2459 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
2460 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
2461 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
2462 * sysdeps/s390/multiarch/wcslen.c: Move to ...
2463 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
2464 * sysdeps/s390/ifunc-wcslen.h: New file.
2465
2466 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2467
2468 * sysdeps/s390/multiarch/Makefile
2469 (sysdep_routines): Remove memrchr variants.
2470 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
2471 * sysdeps/s390/multiarch/ifunc-impl-list.c
2472 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
2473 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
2474 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
2475 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
2476 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
2477 * sysdeps/s390/multiarch/memrchr.c: Move to ...
2478 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
2479 * sysdeps/s390/ifunc-memrchr.h: New file.
2480
2481 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2482
2483 * sysdeps/s390/multiarch/Makefile
2484 (sysdep_routines): Remove memccpy variants.
2485 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
2486 * sysdeps/s390/multiarch/ifunc-impl-list.c
2487 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
2488 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
2489 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
2490 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
2491 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
2492 * sysdeps/s390/multiarch/memccpy.c: Move to ...
2493 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
2494 * sysdeps/s390/ifunc-memccpy.h: New file.
2495
2496 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2497
2498 * sysdeps/s390/multiarch/Makefile
2499 (sysdep_routines): Remove rawmemchr variants.
2500 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
2501 * sysdeps/s390/multiarch/ifunc-impl-list.c
2502 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
2503 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
2504 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
2505 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
2506 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
2507 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
2508 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
2509 * sysdeps/s390/ifunc-rawmemchr.h: New file.
2510
2511 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2512
2513 * sysdeps/s390/multiarch/Makefile
2514 (sysdep_routines): Remove memchr variants.
2515 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
2516 * sysdeps/s390/multiarch/ifunc-impl-list.c
2517 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
2518 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
2519 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
2520 * sysdeps/s390/multiarch/memchr.c: Move to ...
2521 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
2522 * sysdeps/s390/ifunc-memchr.h: New file.
2523 * sysdeps/s390/s390-64/memchr.S: Move to ...
2524 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
2525 for 31/64bit and ifunc handling.
2526 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
2527 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
2528 * sysdeps/s390/s390-32/memchr.S: Likewise.
2529
2530 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2531
2532 * sysdeps/s390/multiarch/Makefile
2533 (sysdep_routines): Remove strcspn variants.
2534 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
2535 * sysdeps/s390/multiarch/ifunc-impl-list.c
2536 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
2537 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
2538 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
2539 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
2540 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
2541 * sysdeps/s390/multiarch/strcspn.c: Move to ...
2542 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
2543 * sysdeps/s390/ifunc-strcspn.h: New file.
2544
2545 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2546
2547 * sysdeps/s390/multiarch/Makefile
2548 (sysdep_routines): Remove strpbrk variants.
2549 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
2550 * sysdeps/s390/multiarch/ifunc-impl-list.c
2551 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
2552 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
2553 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
2554 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
2555 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
2556 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
2557 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
2558 * sysdeps/s390/ifunc-strpbrk.h: New file.
2559
2560 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2561
2562 * sysdeps/s390/multiarch/Makefile
2563 (sysdep_routines): Remove strspn variants.
2564 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
2565 * sysdeps/s390/multiarch/ifunc-impl-list.c
2566 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
2567 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
2568 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
2569 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
2570 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
2571 * sysdeps/s390/multiarch/strspn.c: Move to ...
2572 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
2573 * sysdeps/s390/ifunc-strspn.h: New file.
2574
2575 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2576
2577 * sysdeps/s390/multiarch/Makefile
2578 (sysdep_routines): Remove strrchr variants.
2579 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
2580 * sysdeps/s390/multiarch/ifunc-impl-list.c
2581 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
2582 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
2583 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
2584 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
2585 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
2586 * sysdeps/s390/multiarch/strrchr.c: Move to ...
2587 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
2588 * sysdeps/s390/ifunc-strrchr.h: New file.
2589
2590 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2591
2592 * sysdeps/s390/multiarch/Makefile
2593 (sysdep_routines): Remove strchrnul variants.
2594 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
2595 * sysdeps/s390/multiarch/ifunc-impl-list.c
2596 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
2597 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
2598 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
2599 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
2600 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
2601 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
2602 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
2603 * sysdeps/s390/ifunc-strchrnul.h: New file.
2604
2605 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2606
2607 * sysdeps/s390/multiarch/Makefile
2608 (sysdep_routines): Remove strchr variants.
2609 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
2610 * sysdeps/s390/multiarch/ifunc-impl-list.c
2611 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
2612 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
2613 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
2614 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
2615 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
2616 * sysdeps/s390/multiarch/strchr.c: Move to ...
2617 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
2618 * sysdeps/s390/ifunc-strchr.h: New file.
2619
2620 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2621
2622 * sysdeps/s390/multiarch/Makefile
2623 (sysdep_routines): Remove strncmp variants.
2624 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
2625 * sysdeps/s390/multiarch/ifunc-impl-list.c
2626 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
2627 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
2628 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
2629 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
2630 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
2631 * sysdeps/s390/multiarch/strncmp.c: Move to ...
2632 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
2633 * sysdeps/s390/ifunc-strncmp.h: New file.
2634
2635 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2636
2637 * sysdeps/s390/multiarch/Makefile
2638 (sysdep_routines): Remove strcmp variants.
2639 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
2640 * sysdeps/s390/multiarch/ifunc-impl-list.c
2641 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
2642 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
2643 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
2644 * sysdeps/s390/multiarch/strcmp.c: Move to ...
2645 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
2646 * sysdeps/s390/ifunc-strcmp.h: New file.
2647 * sysdeps/s390/s390-64/strcmp.S: Move to ...
2648 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
2649 for 31/64bit and ifunc handling.
2650 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
2651 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
2652 * sysdeps/s390/s390-32/strcmp.S: Likewise.
2653
2654 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2655
2656 * sysdeps/s390/multiarch/Makefile
2657 (sysdep_routines): Remove strncat variants.
2658 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
2659 * sysdeps/s390/multiarch/ifunc-impl-list.c
2660 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
2661 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
2662 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
2663 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
2664 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
2665 * sysdeps/s390/multiarch/strncat.c: Move to ...
2666 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
2667 * sysdeps/s390/ifunc-strncat.h: New file.
2668
2669 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2670
2671 * sysdeps/s390/multiarch/Makefile
2672 (sysdep_routines): Remove strcat variants.
2673 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
2674 * sysdeps/s390/multiarch/ifunc-impl-list.c
2675 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
2676 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
2677 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
2678 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
2679 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
2680 * sysdeps/s390/multiarch/strcat.c: Move to ...
2681 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
2682 * sysdeps/s390/ifunc-strcat.h: New file.
2683
2684 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2685
2686 * sysdeps/s390/multiarch/Makefile
2687 (sysdep_routines): Remove stpncpy variants.
2688 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
2689 * sysdeps/s390/multiarch/ifunc-impl-list.c
2690 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
2691 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
2692 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
2693 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
2694 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
2695 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
2696 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
2697 * sysdeps/s390/ifunc-stpncpy.h: New file.
2698
2699 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2700
2701 * sysdeps/s390/multiarch/Makefile
2702 (sysdep_routines): Remove strncpy variants.
2703 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
2704 * sysdeps/s390/multiarch/ifunc-impl-list.c
2705 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
2706 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
2707 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
2708 * sysdeps/s390/multiarch/strncpy.c: Move to ...
2709 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
2710 * sysdeps/s390/ifunc-strncpy.h: New file.
2711 * sysdeps/s390/s390-64/strncpy.S: Move to ...
2712 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
2713 and adjust ifunc handling.
2714 * sysdeps/s390/s390-32/strncpy.S: Move to ...
2715 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
2716 and adjust ifunc handling.
2717 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
2718 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
2719
2720 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2721
2722 * sysdeps/s390/multiarch/Makefile
2723 (sysdep_routines): Remove stpcpy variants.
2724 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
2725 * sysdeps/s390/multiarch/ifunc-impl-list.c
2726 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
2727 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
2728 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
2729 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
2730 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
2731 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
2732 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
2733 * sysdeps/s390/ifunc-stpcpy.h: New file.
2734
2735 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2736
2737 * sysdeps/s390/multiarch/Makefile
2738 (sysdep_routines): Remove strcpy variants.
2739 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
2740 * sysdeps/s390/multiarch/ifunc-impl-list.c
2741 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
2742 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
2743 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
2744 * sysdeps/s390/multiarch/strcpy.c: Move to ...
2745 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
2746 * sysdeps/s390/ifunc-strcpy.h: New file.
2747 * sysdeps/s390/s390-64/strcpy.S: Move to ...
2748 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
2749 for 31/64bit and ifunc handling.
2750 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
2751 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
2752 * sysdeps/s390/s390-32/strcpy.S: Likewise.
2753
2754 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2755
2756 * sysdeps/s390/multiarch/Makefile
2757 (sysdep_routines): Remove strnlen variants.
2758 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
2759 * sysdeps/s390/multiarch/ifunc-impl-list.c
2760 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
2761 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
2762 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
2763 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
2764 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
2765 * sysdeps/s390/multiarch/strnlen.c: Move to ...
2766 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
2767 * sysdeps/s390/ifunc-strnlen.h: New file.
2768
2769 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2770
2771 * sysdeps/s390/multiarch/Makefile
2772 (sysdep_routines): Remove strlen variants.
2773 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
2774 * sysdeps/s390/multiarch/ifunc-impl-list.c
2775 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
2776 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
2777 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
2778 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
2779 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
2780 * sysdeps/s390/multiarch/strlen.c: Move to ...
2781 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
2782 * sysdeps/s390/ifunc-strlen.h: New file.
2783
2784 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2785
2786 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
2787 * sysdeps/s390/multiarch/ifunc-impl-list.c
2788 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
2789 * sysdeps/s390/ifunc-memmem.h: New file.
2790 * sysdeps/s390/memmem.c: Likewise.
2791 * sysdeps/s390/memmem-c.c: Likewise.
2792 * sysdeps/s390/memmem-vx.c: Likewise.
2793
2794 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2795
2796 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
2797 * sysdeps/s390/multiarch/ifunc-impl-list.c
2798 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
2799 * sysdeps/s390/ifunc-strstr.h: New file.
2800 * sysdeps/s390/strstr.c: Likewise.
2801 * sysdeps/s390/strstr-c.c: Likewise.
2802 * sysdeps/s390/strstr-vx.c: Likewise.
2803
2804 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2805
2806 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
2807 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
2808 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
2809 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
2810 New defines.
2811 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
2812 * sysdeps/s390/memmove-c.c: New file.
2813 * sysdeps/s390/memmove.c: Likewise.
2814 * sysdeps/s390/multiarch/ifunc-impl-list.c
2815 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
2816
2817 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2818
2819 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
2820 * sysdeps/s390/configure.ac: Add check for z13 support.
2821 * sysdeps/s390/configure: Regenerated.
2822
2823 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2824
2825 * sysdeps/s390/memcopy.h: New file.
2826
2827 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2828
2829 * sysdeps/s390/s390-32/bcopy.S: Remove.
2830 * sysdeps/s390/s390-64/bcopy.S: Likewise.
2831
2832 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2833
2834 * sysdeps/s390/ifunc-memcpy.h: New File.
2835 * sysdeps/s390/memcpy.S: Move to ...
2836 * sysdeps/s390/memcpy-z900.S ... here.
2837 Move implementations from memcpy-s390x.s to here.
2838 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
2839 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2840 Remove memcpy/mempcpy variants.
2841 * sysdeps/s390/Makefile (sysdep_routines):
2842 Add memcpy/mempcpy variants.
2843 * sysdeps/s390/multiarch/ifunc-impl-list.c
2844 (__libc_ifunc_impl_list): Adjust ifunc variants for
2845 memcpy and mempcpy.
2846 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
2847 to ...
2848 * sysdeps/s390/memcpy.c: ... here.
2849 Adjust ifunc variants for memcpy.
2850 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
2851 * sysdeps/s390/mempcpy.c: ... here.
2852 Adjust ifunc variants for mempcpy.
2853 * sysdeps/s390/mempcpy.S: Delete file.
2854
2855 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2856
2857 * sysdeps/s390/s390-64/memcpy.S: Move to ...
2858 * sysdeps/s390/memcpy.S: ... here.
2859 Adjust to be usable for 31/64bit.
2860 * sysdeps/s390/s390-32/memcpy.S: Delete File.
2861 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
2862 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
2863 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2864 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
2865 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
2866 Adjust to be usable for 31/64bit.
2867 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
2868 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
2869 * sysdeps/s390/multiarch/memcpy.c: ... here.
2870 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
2871
2872 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2873
2874 * sysdeps/s390/ifunc-memcmp.h: New File.
2875 * sysdeps/s390/memcmp.S: Move to ...
2876 * sysdeps/s390/memcmp-z900.S ... here.
2877 Move implementations from memcmp-s390x.s to here.
2878 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
2879 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2880 Remove memcmp variants.
2881 * sysdeps/s390/Makefile (sysdep_routines):
2882 Add memcmp variants.
2883 * sysdeps/s390/multiarch/ifunc-impl-list.c
2884 (__libc_ifunc_impl_list): Adjust ifunc variants for
2885 memcmp.
2886 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
2887 to ...
2888 * sysdeps/s390/memcmp.c: ... here.
2889 Adjust ifunc variants for memcmp.
2890
2891 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2892
2893 * sysdeps/s390/s390-64/memcmp.S: Move to ...
2894 * sysdeps/s390/memcmp.S: ... here.
2895 Adjust to be usable for 31/64bit.
2896 * sysdeps/s390/s390-32/memcmp.S: Delete File.
2897 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
2898 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
2899 Remove memcmp.
2900 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2901 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
2902 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
2903 Adjust to be usable for 31/64bit.
2904 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
2905 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
2906 * sysdeps/s390/multiarch/memcmp.c: ... here.
2907 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
2908
2909 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2910
2911 * sysdeps/s390/s390-32/bzero.S: Delete file.
2912 * sysdeps/s390/s390-64/bzero.S: Likewise.
2913 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
2914 * sysdeps/s390/bzero.c: New file.
2915 * sysdeps/s390/memset-z900.S: Add bzero entry points.
2916 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
2917 * sysdeps/s390/multiarch/ifunc-impl-list.c
2918 (__libc_ifunc_impl_list): Add bzero ifunc variants.
2919
2920 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2921
2922 * sysdeps/s390/ifunc-memset.h: New File.
2923 * sysdeps/s390/memset.S: Move to ...
2924 * sysdeps/s390/memset-z900.S ... here.
2925 Move implementations from memset-s390x.s to here.
2926 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
2927 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2928 Remove memset variants.
2929 * sysdeps/s390/Makefile (sysdep_routines):
2930 Add memset variants.
2931 * sysdeps/s390/multiarch/ifunc-impl-list.c
2932 (__libc_ifunc_impl_list): Adjust ifunc variants for
2933 memset.
2934 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
2935 to ...
2936 * sysdeps/s390/memset.c: ... here.
2937 Adjust ifunc variants for memset.
2938
2939 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2940
2941 * sysdeps/s390/s390-64/memset.S: Move to ...
2942 * sysdeps/s390/memset.S: ... here.
2943 Adjust to be usable for 31/64bit.
2944 * sysdeps/s390/s390-32/memset.S: Delete File.
2945 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
2946 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
2947 Remove memset.
2948 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2949 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
2950 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
2951 Adjust to be usable for 31/64bit.
2952 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
2953 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
2954 * sysdeps/s390/multiarch/memset.c: ... here.
2955 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
2956
2957 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2958
2959 * sysdeps/s390/multiarch/ifunc-resolve.h
2960 (s390_libc_ifunc_init, s390_libc_ifunc,
2961 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
2962
2963 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2964
2965 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
2966 * sysdeps/s390/configure.ac: Add check for z10 support.
2967 * sysdeps/s390/configure: Regenerated.
2968
2969 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
2970
2971 * sysdeps/i386/atomic-machine.h: Merged with ...
2972 * sysdeps/x86_64/atomic-machine.h: To ...
2973 * sysdeps/x86/atomic-machine.h: This. New file.
2974
2975 2018-12-18 Florian Weimer <fweimer@redhat.com>
2976
2977 Rewrite locale/gen-translit.pl in Python.
2978 * locale/Makefile (generated): Add C-translit.h.
2979 (before-compile): Add $(objpfx)C-translit.h.
2980 (C-translit.h): Move to $(objpfx). Create target directory.
2981 Build using Python script.
2982 * locale/gen-translit.py: New file.
2983 * locale/gen-translit.pl: Remove file.
2984 * locale/C-translit.h.in: Change comment character to '#' for
2985 easier parsing without a C preprocessor.
2986 * locale/C-translit.h: Remove generated file.
2987 * manual/install.texi (Tools for Compilation): Do not mention
2988 C-translit.h.
2989 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
2990 Remove locale/C-translit.h.
2991 * scripts/update-copyrights: Likewise.
2992 * INSTALL: Regenerate.
2993
2994 2018-12-18 Florian Weimer <fweimer@redhat.com>
2995
2996 [BZ #23995]
2997 * localedata/locales/bi_VU: Remove executable bit from file.
2998
2999 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3000
3001 * include/time.h
3002 (__localtime64): Add.
3003 * manual/maint.texi: Document Y2038 symbol handling.
3004 * time/localtime.c
3005 (__localtime64): Add.
3006 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3007
3008 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3009
3010 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3011 Do not clobber r12.
3012
3013 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3014 to allow extra macros from first or second sources.
3015 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3016 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3017 (tests-special): Add $(objpfx)tst-mman-consts.out.
3018 ($(objpfx)tst-mman-consts.out): New makefile target.
3019
3020 2018-12-17 Mao Han <han_mao@c-sky.com>
3021
3022 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3023 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3024 without stat64 system call support.
3025 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3026 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3027 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3028 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3029 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3030 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3031 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3032 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3033 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3034 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3035 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3036
3037 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3038
3039 regex: fix storage-exhaustion error
3040 [BZ #18040]
3041 * posix/regexec.c (get_subexp):
3042 Do not continue if storage is exhausted.
3043
3044 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3045
3046 regex: fix heap-use-after-free error
3047 [BZ #18040]
3048 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3049 https://debbugs.gnu.org/32592
3050 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3051 call extend_buffers which reallocates the re_string_t internal buffer.
3052 Local variable 'buf' was not updated in such case, resulting in
3053 use-after-free.
3054 * posix/regexec.c (get_subexp): Update 'buf' after call to
3055 get_subexp_sub.
3056
3057 2018-12-15 Florian Weimer <fweimer@redhat.com>
3058
3059 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3060 (minimum_stride_size): Use it.
3061 (support_blob_repeat_allocate): Likewise.
3062
3063 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3064
3065 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3066 definition.
3067 (acosh): Likewise.
3068 (atanh): Likewise.
3069
3070 2018-12-14 Florian Weimer <fweimer@redhat.com>
3071
3072 * manual/process.texi (Process Creation Concepts): Remove
3073 documentation of process (ID) lifetime. List more process
3074 creation functions. Reference Process Identification section.
3075 (Process Identification): Add information about process ID
3076 lifetime. Describe Linux thread/task IDs.
3077 * manual/signal.texi (Signaling Another Process): Mention that the
3078 signal is always sent to the process.
3079
3080 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3081
3082 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3083 and tst-ldbl-efgcvt.
3084 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3085 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3086 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3087 (fcvt_tests, output_error, output_r_error, do_test): Use the
3088 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3089 select the type of floating-point variables and arguments; to
3090 produce extra tests for double and conversion specifiers for
3091 printf; and to set the names of called functions.
3092 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3093 in tst-efgcvt-template.c.
3094 * misc/tst-ldbl-efgcvt.c: Likewise.
3095
3096 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3097
3098 * nss/Makefile (tst-nss-test3.out): New rule.
3099
3100 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3101
3102 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3103 clobber sp.
3104
3105 2018-12-13 fanjinke <fanjinke@hygon.cn>
3106
3107 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3108 "HygonGenuine".
3109
3110 2018-12-13 Andreas Schwab <schwab@suse.de>
3111
3112 [BZ #23861]
3113 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3114 (__pthread_rwlock_rdlock_full): Update expected value for
3115 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3116 * nptl/tst-rwlock-pwn.c: New file.
3117 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3118
3119 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3120
3121 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3122 definition.
3123
3124 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3125
3126 * benchtests/scripts/compare_bench.py (do_compare): write to
3127 stderr in casestat is not present.
3128 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3129 stderr in case timings field is not present. Also string showing
3130 the output filename goes into the stderr.
3131
3132 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3133
3134 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3135 and ZeroDivisorError exceptions.
3136 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3137 argument to loop through user provided statistics.
3138 * benchtests/scripts/compare_bench.py (main): Include the --stats
3139 argument.
3140
3141 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3142
3143 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3144 instead of return.
3145
3146 2018-12-12 Florian Weimer <fweimer@redhat.com>
3147
3148 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3149 clause to copyright header.
3150
3151 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3152
3153 [BZ #23614]
3154 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3155 registers saved in the stack frame.
3156 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3157 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3158
3159 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3160
3161 * include/bits/monetary-ldbl.h: New file.
3162 * include/bits/printf-ldbl.h: Likewise.
3163 * include/bits/stdio-ldbl.h: Likewise.
3164 * include/bits/stdlib-ldbl.h: Likewise.
3165 * include/bits/syslog-ldbl.h: Likewise.
3166 * include/bits/wchar-ldbl.h: Likewise.
3167
3168 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3169
3170 * libio/libio.h: Remove redirection for _IO_vfprintf.
3171
3172 2018-12-11 Andreas Schwab <schwab@suse.de>
3173
3174 * Makerules: Remove all references to abilist-pattern.
3175 (update-all-abi): Simplify find expression.
3176
3177 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3178
3179 [BZ #23961]
3180 * math/auto-libm-test-in: Add new test case.
3181 * math/auto-libm-test-out-pow: Regenerated.
3182 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3183
3184 2018-12-10 DJ Delorie <dj@redhat.com>
3185
3186 [BZ #23948]
3187 * support/test-container.c: Move postclean step to before we
3188 change namespaces.
3189
3190 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3191
3192 * scripts/gen-as-const.py (main): Handle --python option.
3193 * scripts/gen-py-const.awk: Remove.
3194 * Makerules (py-const-script): Use gen-as-const.py.
3195 ($(py-const)): Likewise.
3196 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3197 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3198 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3199 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3200 ~PTHREAD_MUTEX_NO_ELISION_NP.
3201 * manual/README.pretty-printers: Update reference to
3202 gen-py-const.awk.
3203
3204 * scripts/glibcextract.py: New file.
3205 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3206 or tempfile. Import glibcexctract.
3207 (compute_c_consts): Remove. Moved to glibcextract.py.
3208 (gen_test): Update reference to compute_c_consts.
3209 (main): Likewise.
3210 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3211 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3212 * sysdeps/unix/sysv/linux/Makefile
3213 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3214 Redirect stderr as well as stdout.
3215
3216 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3217
3218 [BZ #19767]
3219 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3220 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3221 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3222 ALWAYS_USE_VSYSCALL.
3223 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3224 ALWAYS_USE_VSYSCALL.
3225 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3226 ALWAYS_USE_VSYSCALL.
3227
3228 2018-12-10 Florian Weimer <fweimer@redhat.com>
3229
3230 [BZ #23972]
3231 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3232 offset instead of count for clarity. Fix typo in comment.
3233 (__old_getdents64): Keep track of previous offset. Use it to call
3234 handle_overflow.
3235 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3236 that d_off is never zero.
3237
3238 2018-12-10 Andreas Schwab <schwab@suse.de>
3239
3240 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3241 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3242 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3243 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3244 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3245
3246 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3247
3248 * timezone/private.h: Update from tzcode 2018g.
3249 * timezone/tzfile.h: Likewise.
3250 * timezone/tzselect.ksh: Likewise.
3251 * timezone/zdump.c: Likewise.
3252 * timezone/zic.c: Likewise.
3253
3254 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3255
3256 [BZ #23490]
3257 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3258 (do_test): Adjust buffer size and fix format.
3259
3260 2018-12-07 DJ Delorie <dj@redhat.com>
3261
3262 [BZ #23907]
3263 * malloc/tst-tcfree3.c: New.
3264 * malloc/Makefile: Add it.
3265
3266 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3267
3268 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3269
3270 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3271
3272 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3273 used as a mask for the mode argument of __vfscanf_internal and
3274 __vfwscanf_internal.
3275 * stdio-common/vfscanf-internal.c
3276 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3277 (__strtof128_internal): Define to __wcstof128_internal.
3278 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3279 __strtof128_internal or __wcstof128_internal when the format of
3280 long double is the same as _Float128.
3281
3282 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3283
3284 * include/unistd.h (__confstr): Add prototype and hidden prototype.
3285 * posix/confstr.c (confstr): Rename to __confstr.
3286 (__confstr): Add hidden def.
3287 (confstr): Add weak alias for __confstr.
3288 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
3289 confstr.
3290
3291 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3292
3293 * NEWS: Mention getcpu.
3294 * include/sched.h (__getcpu): New libc_hidden_proto.
3295 * manual/resource.texi: Document getcpu.
3296 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3297 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3298 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3299 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3300 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3301 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3302 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3303 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3304 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3305 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3306 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3307 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3308 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3309 Likewise.
3310 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3311 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3312 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3313 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3314 Likewise.
3315 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3316 Likewise.
3317 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3318 Likewise.
3319 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3320 Likewise.
3321 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3322 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3323 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3324 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3325 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3326 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3327 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3328 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3329 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
3330 * sysdeps/unix/sysv/linux/getcpu.c: New file.
3331 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
3332 Also check getcpu.
3333
3334 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3335
3336 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
3337 functions.
3338 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
3339
3340 2018-12-07 Florian Weimer <fweimer@redhat.com>
3341
3342 [BZ #17405]
3343 * posix/Makefile (routines): Add spawn_faction_addfchdir.
3344 * posix/Versions (GLIBC_2.29): Export
3345 posix_spawn_file_actions_addfchdir_np.
3346 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
3347 * posix/spawn_faction_destroy.c
3348 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
3349 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
3350 and the field action.fchdir_action.
3351 * posix/tst-spawn-chdir.c (add_chdir): New function.
3352 (do_test): Add do_fchdir loop. Call add_chdir.
3353 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
3354 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3355 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
3356 posix_spawn_file_actions_addfchdir_np.
3357 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
3358 Likewise.
3359 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
3360 Likewise.
3361 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
3362 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
3363 Likewise.
3364 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
3365 Likewise.
3366 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
3367 Likewise.
3368 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
3369 Likewise.
3370 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
3371 Likewise.
3372 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
3373 Likewise.
3374 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3375 (GLIBC_2.29): Likewise.
3376 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3377 (GLIBC_2.29): Likewise.
3378 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3379 (GLIBC_2.29): Likewise.
3380 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3381 (GLIBC_2.29): Likewise.
3382 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
3383 Likewise.
3384 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3385 (GLIBC_2.29): Likewise.
3386 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3387 (GLIBC_2.29): Likewise.
3388 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
3389 (GLIBC_2.29): Likewise.
3390 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
3391 (GLIBC_2.29): Likewise.
3392 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
3393 Likewise.
3394 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
3395 Likewise.
3396 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
3397 Likewise.
3398 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
3399 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
3400 Likewise.
3401 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
3402 Likewise.
3403 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
3404 Likewise.
3405 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
3406 Likewise.
3407
3408 2018-12-06 Joseph Myers <joseph@codesourcery.com>
3409
3410 * manual/texinfo.tex: Update to version 2018-09-21.20 with
3411 trailing whitespace removed.
3412 * scripts/config.guess: Update to version 2018-11-28.
3413 * scripts/config.sub: Update to version 2018-11-28.
3414 * scripts/install-sh: Update to version 2018-03-11.20.
3415 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
3416 * scripts/move-if-change: Update to version 2018-03-07 03:47.
3417
3418 2018-12-07 Florian Weimer <fweimer@redhat.com>
3419
3420 [BZ #23927]
3421 CVE-2018-19591
3422 * inet/tst-if_index-long.c: New file.
3423 * inet/Makefile (tests): Add tst-if_index-long.
3424
3425 2018-12-07 Florian Weimer <fweimer@redhat.com>
3426
3427 * support/check.h (support_record_failure_is_failed): Declare.
3428 * support/descriptors.h: New file.
3429 * support/support_descriptors.c: Likewise.
3430 * support/tst-support_descriptors.c: Likewise.
3431 * support/support_record_failure.c
3432 (support_record_failure_is_failed): New function.
3433 * support/Makefile (libsupport-routines): Add support_descriptors.
3434 (tests): Add tst-support_descriptors.
3435
3436 2018-12-05 Zack Weinberg <zackw@panix.com>
3437 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3438
3439 * stdio-common/vfprintf-internal.c
3440 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
3441 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
3442 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
3443 and __no_long_double.
3444 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
3445 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
3446 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
3447 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
3448 and __nldbl_*syslog* functions.
3449 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
3450 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
3451 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
3452 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
3453 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
3454 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
3455 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
3456 (__nldbl_vwprintf, __nldbl_wprintf):
3457 Directly call the appropriate __v*printf_internal routine, passing
3458 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
3459 variable names.
3460 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
3461 (__nldbl___printf_chk, __nldbl___snprintf_chk)
3462 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
3463 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
3464 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
3465 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3466 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
3467 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
3468 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
3469 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
3470 Likewise, and also pass PRINTF_FORTIFY when appropriate.
3471 (__nldbl_syslog, __nldbl_vsyslog):
3472 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
3473 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3474 appropriate.
3475 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3476 appropriate.
3477
3478 2018-12-05 Zack Weinberg <zackw@panix.com>
3479 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3480
3481 [BZ #11319]
3482 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
3483 Moved here from debug/vsprintf_chk.c.
3484 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
3485 and completion logic for the strfile to match exactly what
3486 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
3487 _IO_str_init_static_internal instead of maxlen-1.
3488 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3489 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
3490 __vsprintf_internal.
3491
3492 * debug/vsprintf_chk.c (__vsprintf_chk)
3493 * debug/sprintf_chk.c (__sprintf_chk):
3494 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
3495 'flags' argument is positive, and slen as maxlen. No need to lock
3496 the FILE and/or construct a temporary FILE. Minimize and normalize
3497 header inclusions and variable names. Do not libc_hidden_def anything.
3498
3499 * debug/asprintf_chk.c (__asprintf_chk)
3500 * debug/dprintf_chk.c (__dprintf_chk)
3501 * debug/fprintf_chk.c (__fprintf_chk)
3502 * debug/fwprintf_chk.c (__fwprintf_chk)
3503 * debug/printf_chk.c (__printf_chk)
3504 * debug/snprintf_chk.c (__snprintf_chk)
3505 * debug/swprintf_chk.c (__swprintf_chk)
3506 * debug/vasprintf_chk.c (__vasprintf_chk)
3507 * debug/vdprintf_chk.c (__vdprintf_chk)
3508 * debug/vfprintf_chk.c (__vfprintf_chk)
3509 * debug/vfwprintf_chk.c (__vfwprintf_chk)
3510 * debug/vprintf_chk.c (__vprintf_chk)
3511 * debug/vsnprintf_chk.c (__vsnprintf_chk)
3512 * debug/vswprintf_chk.c (__vswprintf_chk)
3513 * debug/vwprintf_chk.c (__vwprintf_chk)
3514 * debug/wprintf_chk.c (__wprintf_chk):
3515 Directly call the corresponding vxxprintf_internal function, passing
3516 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
3517 the FILE and/or construct a temporary FILE. Minimize and normalize
3518 header inclusions and variable names. Do not libc_hidden_def anything.
3519
3520 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
3521 __obstack_vprintf_internal.
3522 (__obstack_vprintf_chk): Convert into a wrapper that calls
3523 __obstack_vprintf_internal (these two functions already had the
3524 same code) and move to new file...
3525 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
3526 file.
3527 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
3528 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
3529 * debug/Makefile (routines): Add vobprintf_chk.
3530
3531 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3532 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3533 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
3534 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3535 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
3536 (__nldbl___obstack_vfprintf_chk):
3537 Directly call the corresponding vxxprintf_internal function,
3538 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
3539 duplicate comparison of slen with 0 or maxlen from the corresponding
3540 non-__nldbl function.
3541
3542 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
3543 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
3544 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
3545 Remove libc_hidden_proto.
3546
3547 * stdio-common/vfprintf-internal.c
3548 (__vfprintf_internal, __vfwprintf_internal):
3549 Do not check _IO_FLAGS2_FORTIFY.
3550 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
3551 * libio/libioP.h: Update prototype of __vsprintf_internal and add
3552 a comment explaining why it has the maxlen argument.
3553 (_IO_acquire_lock_clear_flags2_fct): Remove.
3554 (_IO_acquire_lock_clear_flags2): Remove.
3555 (_IO_release_lock): Remove conditional statement which will
3556 now never execute.
3557 (_IO_acquire_lock): Remove variable which is now unused.
3558 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3559 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3560
3561 * stdio-common/Makefile (tests): Add tst-bz11319 and
3562 tst-bz11319-fortify2.
3563 (CFLAGS-tst-bz11319-fortify2.c): New macro.
3564 * stdio-common/tst-bz11319-fortify2.c: New file.
3565 * stdio-common/tst-bz11319.c: Likewise.
3566
3567 2018-12-05 Zack Weinberg <zackw@panix.com>
3568 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3569
3570 * misc/syslog.c: Include libioP.h, not iolibio.h.
3571 (__vsyslog_internal): New function with the former body of
3572 __vsyslog_chk; takes mode_flags argument same as
3573 __v*printf_internal. Call __vfprintf_internal directly.
3574
3575 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
3576 Remove libc_hidden_def.
3577 (__syslog, __syslog_chk): Use __vsyslog_internal.
3578 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
3579
3580 * include/sys/syslog.h: Add multiple inclusion guard.
3581 Add prototype for __vsyslog_internal.
3582 Remove declaration and libc_hidden_proto for __vsyslog_chk.
3583
3584 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
3585 Use __vsyslog_internal.
3586
3587 2018-12-05 Zack Weinberg <zackw@panix.com>
3588 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3589
3590 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
3591 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
3592 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
3593 New functions.
3594 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
3595 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
3596
3597 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
3598 Include wctype.h here if COMPILE_WPRINTF is defined.
3599 Define __vfprintf_internal or __vfwprintf_internal, depending
3600 on COMPILE_WPRINTF.
3601 Temporarily, on entry to this function, update mode_flags
3602 according to the environmental settings corresponding to
3603 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
3604 Throughout, check mode_flags instead of __ldbl_is_dbl and
3605 _IO_FLAGS2_FORTIFY on the destination FILE.
3606 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
3607 Include vfprintf-internal.c. Don't include wctype.h.
3608 * stdio-common/vfprintf.c: New file. Just define __vfprintf
3609 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
3610 and vfprintf.
3611 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
3612 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
3613 and vfwprintf.
3614 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
3615
3616 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
3617 and add mode_flags argument; use __vfprintf_internal.
3618 (__vdprintf): New function. Alias vdprintf to this.
3619 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
3620 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
3621 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
3622 (__obstack_printf): Use __obstack_printf_internal.
3623 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
3624 public aliases __vsnprintf and vsnprintf.
3625 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
3626 called internally.
3627 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
3628 public aliases _IO_vsprintf and vsprintf.
3629 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
3630 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
3631 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
3632 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
3633 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
3634
3635 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
3636 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
3637 * stdio-common/fprintf.c, stdio-common/fxprintf.c
3638 * stdio-common/printf.c: Use __vfprintf_internal.
3639
3640 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
3641 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
3642 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
3643
3644 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
3645 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
3646 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
3647 __vfwprintf_internal.
3648
3649 * libio/libio.h: Remove libc_hidden_proto and declaration for
3650 _IO_vfprintf.
3651 Remove declaration of _IO_vfwprintf.
3652 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
3653 _IO_vsprintf.
3654 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
3655 _IO_obstack_printf.
3656 * include/stdio.h: Add prototype for __vasprintf.
3657 (__vsnprintf): Remove declaration, because there are no more
3658 internal calls.
3659 * include/wchar.h (__vfwprintf, __vswprintf): Remove
3660 declaration, because there are no more internal calls.
3661
3662 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
3663 __vsnprintf_internal, instead of _IO_vsnprintf.
3664 * argp/argp-help.c (__argp_error, __argp_failure): Use
3665 __vasprintf_internal, instead of _IO_vasprintf.
3666 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
3667 redefine, because there are no more internal calls.
3668
3669 2018-12-05 Zack Weinberg <zackw@panix.com>
3670 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3671
3672 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
3673 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
3674 Include libio/strfile.h instead of libioP.h.
3675 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
3676 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
3677 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
3678 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
3679 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
3680 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
3681 necessary. Do not set __no_long_double. Normalize variable names.
3682 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
3683 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
3684 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
3685 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
3686 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
3687 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
3688 Call __vfscanf_internal / __vfwscanf_internal directly, passing
3689 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
3690 Do not set __no_long_double. Normalize variable names.
3691
3692 2018-12-05 Zack Weinberg <zackw@panix.com>
3693 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3694
3695 * stdio-common/isoc99_scanf.c
3696 * stdio-common/isoc99_fscanf.c
3697 * stdio-common/isoc99_sscanf.c
3698 * stdio-common/isoc99_vscanf.c
3699 * stdio-common/isoc99_vfscanf.c
3700 * stdio-common/isoc99_vsscanf.c
3701 * wcsmbs/isoc99_wscanf.c
3702 * wcsmbs/isoc99_fwscanf.c
3703 * wcsmbs/isoc99_swscanf.c
3704 * wcsmbs/isoc99_vwscanf.c
3705 * wcsmbs/isoc99_vfwscanf.c
3706 * wcsmbs/isoc99_vswscanf.c:
3707 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
3708 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
3709 No need to lock and unlock the FILE passed to that function.
3710
3711 * stdio-common/vfscanf-internal.c
3712 (__vfscanf_internal, __vfwscanf_internal):
3713 Don't look at _IO_FLAGS2_SCANF_STD.
3714 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
3715 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
3716 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
3717
3718 2018-12-05 Zack Weinberg <zackw@panix.com>
3719 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3720
3721 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
3722 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
3723 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
3724 * libio/strfile.h: Add multiple inclusion guard.
3725 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
3726
3727 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
3728 consistency with the other version of this file.
3729 (ldbl_compat_symbol): New macro.
3730 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
3731 New macro.
3732
3733 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
3734 Define __vfscanf_internal or __vfwscanf_internal, depending on
3735 COMPILE_WSCANF; don't define any other public symbols.
3736 Remove errval and code to set errp.
3737 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
3738 as the mode_flags argument.
3739 (encode_error, conv_error, input_error): Don't set errval.
3740 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
3741 Include vfscanf-internal.c.
3742 * stdio-common/vfscanf.c: New file defining the public entry
3743 point vfscanf, which calls __vfscanf_internal.
3744 * stdio-common/vfwscanf.c: New file defining the public entry
3745 point vfwscanf, which calls __vfwscanf_internal.
3746
3747 * stdio-common/iovfscanf.c: New file.
3748 * stdio-common/iovfwscanf.c: Likewise.
3749
3750 * stdio-common/Makefile (routines): Add vfscanf-internal,
3751 vfwscanf-internal, iovfscanf, iovfwscanf.
3752 * stdio-common/Versions: Mention GLIBC_2.29, so that
3753 it can be used in SHLIB_COMPAT expressions.
3754 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
3755 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
3756 Call __vfscanf_internal, instead of _IO_vfscanf.
3757 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
3758 _IO_vfscanf.
3759 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
3760 _IO_vfwscanf.
3761
3762 * libio/iovsscanf.c: Clean up includes, when possible. Use
3763 _IO_strfile_read or _IO_strfile_readw, when needed. Call
3764 __vfscanf_internal or __vfwscanf_internal directly.
3765 * libio/iovswscanf.c: Likewise.
3766 * libio/swscanf.c: Likewise.
3767 * libio/vscanf.c: Likewise.
3768 * libio/vwscanf.c: Likewise.
3769 * libio/wscanf.c: Likewise.
3770 * stdio-common/isoc99_fscanf.c: Likewise.
3771 * stdio-common/isoc99_scanf.c: Likewise.
3772 * stdio-common/isoc99_sscanf.c: Likewise.
3773 * stdio-common/isoc99_vfscanf.c: Likewise.
3774 * stdio-common/isoc99_vscanf.c: Likewise.
3775 * stdio-common/isoc99_vsscanf.c: Likewise.
3776 * stdio-common/scanf.c: Likewise.
3777 * stdio-common/sscanf.c: Likewise.
3778 * wcsmbs/isoc99_fwscanf.c: Likewise.
3779 * wcsmbs/isoc99_swscanf.c: Likewise.
3780 * wcsmbs/isoc99_vfwscanf.c: Likewise.
3781 * wcsmbs/isoc99_vswscanf.c: Likewise.
3782 * wcsmbs/isoc99_vwscanf.c: Likewise.
3783 * wcsmbs/isoc99_wscanf.c: Likewise.
3784
3785 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
3786
3787 * include/time.h
3788 (__tz_compute): Replace time_t with __time64_t.
3789 (__tz_convert): Replace time_t* with __time64_t.
3790 (__offtime): Replace time_t* with __time64_t.
3791 * time/gmtime.c
3792 (__gmtime_r): Adjust call to __tz_convert.
3793 (gmtime): Likewise.
3794 * time/localtime.c
3795 (__localtime_r): Likewise.
3796 (localtime): Likewise.
3797 * time/offtime.c: Replace time_t with __time64_t.
3798 * time/tzset.c: Likewise.
3799
3800 2018-12-04 Joseph Myers <joseph@codesourcery.com>
3801
3802 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
3803 dynamic linker unless [$(run-built-tests) = yes].
3804
3805 2018-12-03 DJ Delorie <dj@delorie.com>
3806
3807 * support/test-container.c (check_for_unshare_hints): New.
3808 (main): Call it if unshare fails. Add support for "su" scriptlet
3809 command.
3810
3811 2018-12-03 Joseph Myers <joseph@codesourcery.com>
3812
3813 * scripts/gen-as-const.py (compute_c_consts): Take an argument
3814 'START' to indicate that start text should be output.
3815 (gen_test): Likewise.
3816 (main): Generate 'START' for first symbol or '--' line, or at end
3817 of input if not previously generated.
3818
3819 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
3820
3821 [BZ #19767]
3822 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
3823 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
3824 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
3825 ALWAYS_USE_VSYSCALL.
3826
3827 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3828
3829 [BZ #23913]
3830 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
3831 new_argv by one.
3832
3833 2018-12-03 Carlos O'Donell <carlos@redhat.com>
3834
3835 [BZ #23923]
3836 * locale/programs/localedef.c: Declare boolean hard_links default true.
3837 (options): Add --no-hard-links option.
3838 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
3839 * locale/programs/localedef.h: Declare prototype for hard_links.
3840 * locale/programs/locfile.c (write_locale_data): Don't use hard
3841 links if hard_links is false.
3842
3843 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
3844
3845 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
3846 cpu_features_basic.
3847 (__cache_sysconf): Likewise.
3848 (init_cacheinfo): Likewise.
3849 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
3850 populate COMMON_CPUID_INDEX_80000007 and
3851 COMMON_CPUID_INDEX_80000008.
3852 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
3853 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
3854 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
3855 (init_cpu_features): Use _Static_assert on
3856 index_arch_Fast_Unaligned_Load.
3857 __get_cpuid_registers and __get_arch_feature. Updated for
3858 cpu_features_basic. Set stepping in cpu_features.
3859 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
3860 (FEATURE_INDEX_2): New.
3861 (FEATURE_INDEX_MAX): Changed to enum.
3862 (COMMON_CPUID_INDEX_D_ECX_1): New.
3863 (COMMON_CPUID_INDEX_80000007): Likewise.
3864 (COMMON_CPUID_INDEX_80000008): Likewise.
3865 (cpuid_registers): Likewise.
3866 (cpu_features_basic): Likewise.
3867 (CPU_FEATURE_USABLE): Likewise.
3868 (bit_arch_XXX_Usable): Likewise.
3869 (cpu_features): Use cpuid_registers and cpu_features_basic.
3870 (bit_arch_XXX): Reweritten.
3871 (bit_cpu_XXX): Likewise.
3872 (index_cpu_XXX): Likewise.
3873 (reg_XXX): Likewise.
3874 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
3875 <support/check.h>.
3876 (CHECK_CPU_FEATURE): New.
3877 (CHECK_CPU_FEATURE_USABLE): Likewise.
3878 (cpu_kinds): Likewise.
3879 (do_test): Print vendor, family, model and stepping. Check
3880 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
3881 (TEST_FUNCTION): Removed.
3882 Include <support/test-driver.c> instead of
3883 "../../test-skeleton.c".
3884 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
3885 Check POPCNT instead of POPCOUNT.
3886 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
3887
3888 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3889
3890 * scripts/gen-as-const.py (main): Avoid emitting empty line when
3891 there is no element in `consts'.
3892
3893 2018-12-01 Florian Weimer <fweimer@redhat.com>
3894
3895 * support/support_capture_subprocess.c
3896 (support_capture_subprocess): Check that pipe descriptors have
3897 expected values. Close original pipe descriptors in subprocess.
3898
3899 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3900
3901 [BZ #23032]
3902 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
3903 attr with __pthread_default_barrierattr.
3904 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
3905 attr with __pthread_default_condattr.
3906 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
3907 attr with __pthread_default_mutexattr.
3908 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
3909 attr with __pthread_default_rwlockattr.
3910
3911 2018-12-01 Kemi Wang <kemi.wang@intel.com>
3912
3913 * manual/tunables.texi (POSIX Thread Tunables): New node.
3914 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
3915 * nptl/nptl-init.c: Include pthread_mutex_conf.h
3916 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
3917 __pthread_tunables_init.
3918 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
3919 (max_adaptive_count): Define.
3920 * nptl/pthread_mutex_conf.c: New file.
3921 * nptl/pthread_mutex_conf.h: New file.
3922 * sysdeps/generic/adaptive_spin_count.h: New file.
3923 * sysdeps/nptl/dl-tunables.list: New file.
3924 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
3925 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
3926 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
3927 Likewise.
3928
3929 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3930
3931 [BZ #20544]
3932 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
3933 * stdlib/on_exit.c (__on_exit): Likewise.
3934 * stdlib/Makefile (tests): Add tst-bz20544.
3935 * stdlib/tst-bz20544.c: New test.
3936
3937 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
3938
3939 [BZ #19767]
3940 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
3941 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
3942 New.
3943
3944 2018-11-30 Florian Weimer <fweimer@redhat.com>
3945
3946 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
3947 Extend error logging.
3948 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
3949 symbol.
3950
3951 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3952
3953 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
3954 __sigismember instead of sigismember.
3955 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
3956 cancel_handler): New definitions.
3957 (do_system): Use posix_spawn instead of fork and execl and remove
3958 reentracy code.
3959 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
3960 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
3961 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
3962 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
3963 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
3964 * sysdeps/unix/sysv/linux/system.c: Likewise.
3965
3966 [BZ #22834]
3967 [BZ #17490]
3968 * NEWS: Add new semantic for atfork with popen and system.
3969 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
3970 fork and execl.
3971
3972 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3973
3974 [BZ #23690]
3975 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
3976 modification order when accessing reloc_result->addr.
3977 * include/link.h (reloc_result): Add field init.
3978 * nptl/Makefile (tests): Add tst-audit-threads.
3979 (modules-names): Add tst-audit-threads-mod1 and
3980 tst-audit-threads-mod2.
3981 Add rules to build tst-audit-threads.
3982 * nptl/tst-audit-threads-mod1.c: New file.
3983 * nptl/tst-audit-threads-mod2.c: Likewise.
3984 * nptl/tst-audit-threads.c: Likewise.
3985 * nptl/tst-audit-threads.h: Likewise.
3986
3987 2018-11-30 Joseph Myers <joseph@codesourcery.com>
3988
3989 * scripts/gen-as-const.py: New file.
3990 * scripts/gen-as-const.awk: Remove.
3991 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
3992 gen-as-const.py.
3993 ($(objpfx)test-as-const-%.c): Likewise.
3994
3995 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
3996
3997 * elf/dl-exception.c: Include <_itoa.h>.
3998
3999 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4000
4001 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4002 returned by __f_setlk.
4003
4004 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4005 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4006
4007 * elf/Makefile (tests-internal): Add tst-create_format1.
4008 * elf/dl-exception.c (_dl_exception_create_format): Support
4009 %x, %lx and %zx.
4010 * elf/tst-create_format1.c: New file.
4011
4012 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4013
4014 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4015 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4016 gnulib.)
4017 * argp/argp-help.c (__argp_failure): Likewise.
4018
4019 2018-11-29 Mao Han <han_mao@c-sky.com>
4020
4021 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4022 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4023 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4024 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4025 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4026 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4027 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4028 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4029 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4030 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4031 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4032 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4033 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4034 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4035 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4036 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4037 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4038 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4039 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4040 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4041 (R_CKCORE_TLS_TPOFF32): New defines.
4042
4043 2018-11-29 Florian Weimer <fweimer@redhat.com>
4044
4045 * posix/Makefile (before-compile): Remove testcases.h and
4046 ptestcases.h.
4047 (generated): Add testcases.h and ptestcases.h.
4048 (testcases.h, ptestcases.h): Move to $(objpfx).
4049 (runtests.o): Add dependency on testcases.h.
4050 (runptests.o): Add dependency on ptestcases.h.
4051 * posix/testcases.h, posix/ptestcases.h: Remove files.
4052 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4053 not touch posix/testcases.h and posix/ptestcases.h.
4054
4055 2018-11-28 Florian Weimer <fweimer@redhat.com>
4056
4057 support: Add signal support to support_capture_subprocess_check.
4058 * support/capture_subprocess.h (support_capture_subprocess_check):
4059 Adjust comment and rename parameter.
4060 * support/support_capture_subprocess_check.c
4061 (print_actual_status): New function.
4062 (support_capture_subprocess_check): Support negative
4063 status_or_signal. Call print_actual_status.
4064 * support/tst-support_capture_subprocess.c (do_test): Call
4065 support_capture_subprocess_check.
4066 * libio/tst-vtables-common.c (termination_status)
4067 (init_termination_status): Remove.
4068 (check_for_termination): Adjust support_capture_subprocess_check
4069 call.
4070 (do_test): Remove call to init_termination_status.
4071
4072 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4073
4074 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4075 source directory instead of a copy.
4076 (CommandList.create_copy_dir): Remove.
4077
4078 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4079
4080 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4081
4082 2018-11-28 Florian Weimer <fweimer@redhat.com>
4083
4084 * support/support.h (support_quote_string): Do not use str
4085 parameter name.
4086
4087 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4088
4089 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4090 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4091
4092 2018-11-27 Florian Weimer <fweimer@redhat.com>
4093
4094 * support/support.h (support_quote_string): Declare.
4095 * support/support_quote_string.c: New file.
4096 * support/tst-support_quote_string.c: Likewise.
4097 * support/Makefile (libsupport-routines): Add
4098 support_quote_string.
4099 (tests): Add tst-support_quote_string.
4100
4101 2018-11-27 Florian Weimer <fweimer@redhat.com>
4102
4103 [BZ #23927]
4104 CVE-2018-19591
4105 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4106 descriptor leak in case of ENODEV error.
4107
4108 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4109
4110 [BZ #19767]
4111 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4112 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4113 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4114
4115 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4116
4117 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4118 Error for unknown lines.
4119
4120 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4121
4122 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4123 Touch additional files.
4124
4125 2018-11-26 Florian Weimer <fweimer@redhat.com>
4126
4127 [BZ #23907]
4128 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4129 double-frees.
4130
4131 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4132
4133 [BZ #19767]
4134 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4135 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4136 SHARED. Include sysdep.h.
4137 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4138 ALWAYS_USE_VSYSCALL.
4139 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4140 ALWAYS_USE_VSYSCALL.
4141
4142 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4143
4144 [BZ #19767]
4145 * nptl/Makefile (tests-static): Add tst-cond11-static.
4146 (tests): Likewise.
4147 * nptl/tst-cond11-static.c: New File.
4148 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4149 tst-affinity-static.
4150 (tests): Likewise.
4151 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4152 instead of SHARED.
4153 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4154 (USE_VSYSCALL): Likewise.
4155 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4156 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4157 instead of SHARED.
4158 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4159 SHARED.
4160 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4161 New.
4162
4163 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4164
4165 [BZ #23915]
4166 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4167 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4168 Undefine.
4169
4170 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4171
4172 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4173 (tst-cet-legacy-1a-ARGS): New.
4174 ($(objpfx)tst-cet-legacy-1a): New target.
4175 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4176
4177 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4178
4179 * conform/conformtest.py (CompileSubTest.__init__): Set
4180 self.run_early to False.
4181 (ExecuteSubTest.__init__): Likewise.
4182 (HeaderTests.run): Try running all non-optional, non-XFAILed
4183 compilation tests in a single execution of the compiler.
4184
4185 * conform/conformtest.py (CompileSubTest): New class.
4186 (ExecuteSubTest): Likewise.
4187 (ElementTest.run): Rename to gen_subtests. Append tests to
4188 self.subtests instead of running them.
4189 (ConstantTest.run): Likewise.
4190 (SymbolTest.run): Likewise.
4191 (TypeTest.run): Likewise.
4192 (TagTest.run): Likewise.
4193 (FunctionTest.run): Likewise.
4194 (VariableTest.run): Likewise.
4195 (MacroFunctionTest.run): Likewise.
4196 (MacroStrTest.run): Likewise.
4197 (HeaderTests.handle_test_line): Generate subtests for tests.
4198 (HeaderTests.run): Run subtests for tests.
4199
4200 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4201
4202 * math/Versions (GLIBC_2.29): Add pow.
4203 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4204 symbol.
4205 * math/w_pow.c: New file.
4206 * sysdeps/i386/fpu/w_pow.c: New file.
4207 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4208 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4209 and add necessary aliases.
4210 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4211 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4212 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4213 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4214 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4215 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4216 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4217 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4218 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4219 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4220 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4221 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4222 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4223 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4224 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4225 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4226 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4227 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4228 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4229 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4230 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4231 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4232 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4233 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4234 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4235 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4236 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4237 __pow.
4238 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4239 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4240 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4241
4242 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4243
4244 * math/Versions (GLIBC_2.29): Add log2.
4245 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4246 symbol.
4247 * math/w_log2.c: New file.
4248 * sysdeps/i386/fpu/w_log2.c: New file.
4249 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4250 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4251 and add necessary aliases.
4252 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4253 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4254 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4255 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4256 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4257 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4258 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4259 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4260 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4261 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4262 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4263 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4264 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4265 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4266 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4267 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4268 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4269 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4270 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4271 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4272 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4273 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4274 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4275 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4276 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4277 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4278
4279 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4280
4281 * math/Versions (GLIBC_2.29): Add log.
4282 * math/w_log_compat.c (__log_compat): Change to versioned compat
4283 symbol.
4284 * math/w_log.c: New file.
4285 * sysdeps/i386/fpu/w_log.c: New file.
4286 * sysdeps/ia64/fpu/e_log.S: Update.
4287 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
4288 and add necessary aliases.
4289 * sysdeps/ieee754/dbl-64/w_log.c: New file.
4290 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
4291 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4292 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4293 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4294 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4295 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4296 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4297 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4298 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4299 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4300 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4301 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4302 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4303 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4304 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4305 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4306 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4307 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4308 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4309 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4310 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4311 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4312 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4313 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4314 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4315 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
4316 __log.
4317 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
4318 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
4319 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
4320 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
4321
4322 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4323
4324 * math/Versions (GLIBC_2.29): Add exp and exp2.
4325 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
4326 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
4327 * math/w_exp_compat.c (__exp_compat): Likewise.
4328 * math/w_exp.c: New file.
4329 * math/w_exp2.c: New file.
4330 * sysdeps/i386/fpu/w_exp.c: New file.
4331 * sysdeps/i386/fpu/w_exp2.c: New file.
4332 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
4333 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4334 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
4335 and add necessary aliases.
4336 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
4337 and add necessary aliases.
4338 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
4339 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
4340 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
4341 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
4342 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4343 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4344 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4345 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4346 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4347 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4348 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4349 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4350 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4351 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4352 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4353 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4354 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4355 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4356 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4357 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4358 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4359 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4360 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4361 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4362 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4363 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4364 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4365 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4366 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
4367 (__ieee754_exp): Rename to __exp.
4368 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
4369 (__ieee754_exp): Rename to __exp.
4370 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
4371 (__ieee754_exp): Rename to __exp.
4372 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
4373 __exp.
4374 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
4375
4376 2018-11-20 DJ Delorie <dj@redhat.com>
4377
4378 * malloc/malloc.c (tcache_entry): Add key field.
4379 (tcache_put): Set it.
4380 (tcache_get): Likewise.
4381 (_int_free): Check for double free in tcache.
4382 * malloc/tst-tcfree1.c: New.
4383 * malloc/tst-tcfree2.c: New.
4384 * malloc/Makefile: Run the new tests.
4385 * manual/probes.texi: Document memory_tcache_double_free probe.
4386
4387 * dlfcn/dlerror.c (check_free): Prevent double frees.
4388
4389 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
4390
4391 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
4392
4393 2018-11-20 Joseph Myers <joseph@codesourcery.com>
4394
4395 * conform/conformtest.py (ElementTest.run): Use unique identifiers
4396 in tests. Use names for format arguments.
4397 (ConstantTest.run): Likewise.
4398 (SymbolTest.run): Likewise.
4399 (TypeTest.run): Likewise.
4400 (TagTest.run): Likewise.
4401 (FunctionTest.run): Likewise.
4402 (VariableTest.run): Likewise.
4403 (MacroFunctionTest.run): Likewise.
4404 (MacroStrTest.run): Likewise.
4405 (HeaderTests.__init__): Set self.num_tests.
4406 (HeaderTests.handle_test_line): Set test.num. Increment
4407 self.num_tests.
4408
4409 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4410
4411 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
4412 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
4413 SEEK_SET.
4414
4415 2018-11-19 Mao Han <han_mao@c-sky.com>
4416
4417 * scripts/config.guess: Update to version 2018-08-29.
4418 * scripts/config.sub: Update to version 2018-08-29.
4419
4420 2018-11-19 Florian Weimer <fweimer@redhat.com>
4421
4422 support: Print timestamps in timeout handler.
4423 * support/support_test_main.c (print_timestamp): New function.
4424 (signal_handler): Use it to print the termination time and the
4425 time of the last write to standard output.
4426
4427 2018-11-16 Zack Weinberg <zackw@panix.com>
4428 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4429
4430 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
4431 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
4432 argument.
4433 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
4434 and add flags argument. Check flags instead of __ldbl_is_dbl when
4435 deciding whether to set is_long_double.
4436 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
4437 passing zero for flags argument.
4438 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
4439
4440 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4441 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
4442 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
4443 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
4444 variable names. Remove libc_hidden_def/libc_hidden_proto from
4445 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
4446 longer called from within the library.
4447 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
4448 for __nldbl___vstrfmon_l, declare it explicitly.
4449
4450 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
4451
4452 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
4453
4454 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
4455 macros
4456 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
4457 F_SETLK64, F_SETLKW64, respectively.
4458 * sysdeps/mach/hurd/f_setlk.c: New file.
4459 * sysdeps/mach/hurd/f_setlk.h: New file.
4460 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
4461 f_setlk.
4462 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
4463 (__libc_fcntl): Move non-flock operations to...
4464 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
4465 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
4466
4467 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
4468
4469 mktime: DEBUG_MKTIME cleanup
4470 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
4471 And it’s no longer needed now that glibc and Gnulib both have
4472 their own testing mechanisms for mktime.
4473 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
4474
4475 mktime: fix non-EOVERFLOW errno handling
4476 [BZ#23789]
4477 mktime was not properly reporting failures when the underlying
4478 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
4479 them like EOVERFLOW failures, and set errno to EOVERFLOW.
4480 The problem could happen on non-glibc platforms, with Gnulib.
4481 * time/mktime.c (guess_time_tm): Remove, replacing with ...
4482 (tm_diff): ... this simpler function, which does not change errno.
4483 All callers changed to deal with errno themselves.
4484 (ranged_convert, __mktime_internal): Return failure immediately if
4485 the underlying function reports any failure other than EOVERFLOW.
4486 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
4487 gap code fails.
4488
4489 mktime: fix bug with Y2038 DST transition
4490 [BZ#23789]
4491 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
4492 mishandle a DST transition that jumps over the Y2038 boundary.
4493 No such DST transitions are known so this is only a theoretical
4494 bug, but we might as well do things right.
4495
4496 mktime: make more room for overflow
4497 [BZ#23789]
4498 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
4499 This is so that we can add tm_diff results to a previous guess,
4500 which will be useful in a later patch.
4501
4502 mktime: simplify offset guess
4503 [BZ#23789]
4504 * time/mktime.c (__mktime_internal): Omit excess precision.
4505
4506 mktime: new test for mktime failure
4507 [BZ#23789]
4508 Based on a test suggested by Albert Aribaud in:
4509 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
4510 * time/Makefile (tests): Add bug-mktime4.
4511 * time/bug-mktime4.c: New file.
4512
4513 mktime: fix EOVERFLOW bug
4514 [BZ#23789]
4515 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
4516 Include libc-config.h, not config.h, for __set_errno.
4517 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
4518
4519 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4520
4521 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
4522 __attribute_copy__ to copy attributes from name. Drop static qualifier
4523 to avoid warnings about leaf attribute not having effect on static
4524 functions.
4525
4526 2018-11-13 Florian Weimer <fweimer@redhat.com>
4527
4528 * malloc/malloc.c (fastbin_push_entry): New function.
4529 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
4530 (REMOVE_FB): Remove macro.
4531 (_int_malloc): Use fastbin_pop_entry and reindent.
4532 (_int_free): Use fastbin_push_entry.
4533 (malloc_consolidate): Use atomic_exchange_acquire.
4534
4535 2018-11-13 Joseph Myers <joseph@codesourcery.com>
4536
4537 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
4538 alias attribute, not with strong_alias.
4539
4540 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
4541 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
4542 with additional parameter thread.
4543 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
4544 in terms of __hidden_ver2.
4545 (hidden_tls_def): New macro.
4546 (libc_hidden_tls_def): Likewise.
4547 (rtld_hidden_tls_def): Likewise.
4548 (libm_hidden_tls_def): Likewise.
4549 (libmvec_hidden_tls_def): Likewise.
4550 (libresolv_hidden_tls_def): Likewise.
4551 (librt_hidden_tls_def): Likewise.
4552 (libdl_hidden_tls_def): Likewise.
4553 (libnss_files_hidden_tls_def): Likewise.
4554 (libnsl_hidden_tls_def): Likewise.
4555 (libnss_nisplus_hidden_tls_def): Likewise.
4556 (libutil_hidden_tls_def): Likewise.
4557 (libutil_hidden_tls_def): Likweise.
4558 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
4559 libc_hidden_tls_def.
4560 (__sim_disabled_exceptions_thread): Likewise.
4561 (__sim_round_mode_thread): Likewise.
4562
4563 * sysdeps/sparc/sparc-ifunc.h [SHARED]
4564 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
4565 copy attributes from name.
4566
4567 2018-11-12 Joseph Myers <joseph@codesourcery.com>
4568
4569 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
4570 Use __attribute_copy__ to copy attributes from name.
4571
4572 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
4573 with __hidden_ver1 call.
4574 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
4575 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
4576 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
4577 (__cosf): Do not declare here.
4578 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
4579 (__sincosf): Do not declare here.
4580 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
4581 (__sinf): Do not declare here.
4582
4583 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
4584 (__BIG_ENDIAN): Likewise.
4585 (__BYTE_ORDER): Likewise.
4586 (strong_alias): Likewise.
4587 (_strong_alias): Likewise.
4588
4589 2018-11-12 Florian Weimer <fweimer@redhat.com>
4590
4591 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
4592 function. Move after the definition of in_smallbin_range. Do not
4593 use __builtin_expect for paths that lead to a noreturn function.
4594 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
4595 because it is unclear whether this is in fact an unlikely
4596 condition.
4597 (_int_malloc, _int_free): Adjust.
4598 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
4599 variables.
4600 * malloc/arena.c (heap_trim): Likewise.
4601
4602 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4603
4604 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
4605 it, free it if needed.
4606 (reauthenticate): Test and use ccwdir.
4607 (child_init_port): In non-resetids case, test and use ccwdir.
4608 (child_chdir): New nested function to set ccwdir.
4609 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
4610 * hurd/hurd/port.h (_hurd_port_move): New function.
4611 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
4612 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
4613 * hurd/Versions (_hurd_port_move): Export function.
4614 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
4615 symbol.
4616 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
4617 of dtablesize for allocating dtable_cloexec.
4618
4619 2018-11-09 Martin Sebor <msebor@redhat.com>
4620
4621 * include/libc-symbols.h (__attribute_copy__): Define macro unless
4622 it's already defined.
4623 (_strong_alias): Use __attribute_copy__.
4624 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
4625 * misc/sys/cdefs.h (__attribute_copy__): New macro.
4626 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
4627 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
4628 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
4629 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
4630 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
4631 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
4632 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
4633 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
4634 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
4635 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
4636 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
4637 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
4638 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
4639 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
4640 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
4641 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
4642 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
4643
4644 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4645
4646 * misc/tst-efgcvt.c: Include support/check.h and
4647 support/test-driver.c. Do not include test-skeleton.c.
4648 (error_count): Remove.
4649 (output_error): Replace increments to error_count with calls to
4650 support_record_failure.
4651 (output_r_error): Likewise.
4652 (special): Likewise.
4653 (do_test): Unconditionally return zero.
4654 (TEST_FUNCTION): Remove.
4655
4656 2018-11-09 Joseph Myers <joseph@codesourcery.com>
4657
4658 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
4659 not $(@D)/scratch.
4660 ($(linknamespace-header-tests)): Likewise.
4661
4662 * conform/conformtest.py: New file.
4663 * conform/conformtest.pl: Remove.
4664 * conform/GlibcConform.pm: Likewise.
4665 * conform/glibcconform.py (KEYWORDS_C90): New constant.
4666 (KEYWORDS_C99): Likewise.
4667 (KEYWORDS): Likewise.
4668 * conform/Makefile ($(conformtest-header-tests)): Use
4669 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
4670 option. Use --header instead of --headers.
4671 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
4672 function entries.
4673 * conform/data/spawn.h-data: Likewise.
4674 * conform/data/fcntl.h-data (openat): Add space after function
4675 name.
4676 * conform/data/wchar.h-data (wcscasecmp): Likewise.
4677 (wcscasecmp_l): Likewise.
4678 * conform/data/termios.h-data (c_cc): Add space after element
4679 name.
4680
4681 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4682
4683 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
4684 instead of manually comparing and reporting mismatching strings.
4685 * misc/tst-ldbl-error.c (do_one_test): Likewise.
4686 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
4687
4688 2018-11-08 Joseph Myers <joseph@codesourcery.com>
4689
4690 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
4691 __ASSUME_SOCKETCALL.
4692 * sysdeps/unix/sysv/linux/i386/kernel-features.h
4693 (__ASSUME_SOCKETCALL): Remove.
4694 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4695 (__ASSUME_SOCKETCALL): Likewise.
4696 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4697 (__ASSUME_SOCKETCALL): Likewise.
4698 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4699 (__ASSUME_SOCKETCALL): Likewise.
4700 * sysdeps/unix/sysv/linux/s390/kernel-features.h
4701 (__ASSUME_SOCKETCALL): Likewise.
4702 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4703 (__ASSUME_SOCKETCALL): Likewise.
4704 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4705 (__ASSUME_SOCKETCALL): Likewise.
4706
4707 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
4708
4709 [BZ #23509]
4710 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
4711 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
4712 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
4713 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
4714 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
4715 lc_unknown.
4716
4717 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
4718
4719 [BZ #17630]
4720 * resolv/tst-resolv-network.c: Add test for getnetbyname.
4721
4722 2018-11-07 Joseph Myers <joseph@codesourcery.com>
4723
4724 [BZ #23867]
4725 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4726 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4727 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4728 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4729
4730 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4731
4732 * support/support_test_compare_string.c
4733 (support_test_compare_string): Fix printf format.
4734
4735 2018-11-07 Florian Weimer <fweimer@redhat.com>
4736
4737 Implement TEST_COMPARE_STRING.
4738 * support/check.h (TEST_COMPARE_STRING): Define.
4739 (support_test_compare_string): Declare.
4740 * support/Makefile (libsupport-routines): Add
4741 support_test_compare_string.
4742 (tests): Add tst-test_compare_string.
4743 * support/support_test_compare_string.c: New file.
4744 * support/tst-test_compare_string.c: Likewise.
4745
4746 2018-11-07 Andreas Schwab <schwab@suse.de>
4747
4748 [BZ #23864]
4749 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
4750 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
4751 Undef.
4752
4753 2018-11-06 Joseph Myers <joseph@codesourcery.com>
4754
4755 [BZ #23862]
4756 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4757 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
4758 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
4759 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
4760 Likewise.
4761
4762 2018-11-06 Florian Weimer <fweimer@redhat.com>
4763
4764 [BZ #17405]
4765 * posix/Makefile (routines): Add spawn_faction_addchdir.
4766 (tests): Add tst-spawn-chdir.
4767 * posix/Versions (GLIBC_2.29): Add
4768 posix_spawn_file_actions_addchdir_np.
4769 * posix/spawn_faction_addchdir.c: New file.
4770 * posix/spawn_faction_destroy.c
4771 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
4772 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
4773 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
4774 chdir_action.
4775 * posix/tst-spawn-chdir.c: New file.
4776 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
4777 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4778 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4779 posix_spawn_file_actions_addchdir_np.
4780 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4781 Likewise.
4782 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4783 Likewise.
4784 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4785 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4786 Likewise.
4787 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4788 Likewise.
4789 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4790 Likewise.
4791 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4792 Likewise.
4793 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4794 Likewise.
4795 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4796 Likewise.
4797 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4798 (GLIBC_2.29): Likewise.
4799 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4800 (GLIBC_2.29): Likewise.
4801 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4802 (GLIBC_2.29): Likewise.
4803 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4804 (GLIBC_2.29): Likewise.
4805 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4806 Likewise.
4807 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4808 (GLIBC_2.29): Likewise.
4809 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4810 (GLIBC_2.29): Likewise.
4811 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4812 (GLIBC_2.29): Likewise.
4813 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4814 (GLIBC_2.29): Likewise.
4815 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4816 Likewise.
4817 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4818 Likewise.
4819 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4820 Likewise.
4821 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4822 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4823 Likewise.
4824 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4825 Likewise.
4826 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4827 Likewise.
4828 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4829 Likewise.
4830
4831 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4832
4833 * misc/Makefile (tests): Add tst-ldbl-error.
4834 * misc/tst-ldbl-error.c: New file.
4835
4836 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4837
4838 * misc/Makefile (tests): Add tst-ldbl-warn.
4839 * misc/tst-ldbl-warn.c: New file.
4840
4841 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4842
4843 * argp/Makefile (tests): Add tst-ldbl-argp.
4844 * argp/tst-ldbl-argp.c: New file.
4845
4846 2018-11-05 Arjun Shankar <arjun@redhat.com>
4847
4848 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
4849 __gconv_path_elem and call __gconv_get_path unconditionally.
4850
4851 2018-11-05 Andreas Schwab <schwab@suse.de>
4852
4853 [BZ #22927]
4854 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
4855 creating the first helper thread failed.
4856
4857 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4858
4859 * sysdeps/mach/hurd/msync.c: New file.
4860
4861 2018-11-02 Florian Weimer <fweimer@redhat.com>
4862
4863 * support/shell-container.c (copy_func): Call
4864 support_copy_file_range instead of copy_file_range to support
4865 cross-device copies.
4866
4867 2018-11-02 Florian Weimer <fweimer@redhat.com>
4868
4869 * support/test-container.c: Include <libc-pointer-arith.h> for
4870 ALIGN_UP.
4871
4872 2018-11-01 Zong Li <zong@andestech.com>
4873
4874 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
4875 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
4876 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
4877 (__FP_FRAC_SET_8): Add implementation for RV32 use.
4878
4879 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
4880 variable to avoid overlap arguments.
4881
4882 2018-11-01 Joseph Myers <joseph@codesourcery.com>
4883
4884 * posix/bug-regex22.c (main): Use puts with distinct error
4885 messages for unexpected success of re_compile_pattern, not printf
4886 with NULL argument to %s.
4887
4888 * stdio-common/bug22.c: Include <libc-diag.h>.
4889 (do_test): Disable -Wformat-overflow= warnings around fprintf
4890 calls outputting more than INT_MAX characters.
4891 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
4892 around printf call with NULL %s argument.
4893
4894 [BZ #23848]
4895 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
4896 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
4897 Undefine.
4898 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4899 (__ASSUME_RECVMSG_SYSCALL): Likewise.
4900 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4901 (__ASSUME_SENDTO_SYSCALL): Likewise.
4902 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4903 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
4904 [!__arch64__].
4905 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4906 (__ASSUME_CONNECT_SYSCALL): Likewise.
4907 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4908 (__ASSUME_RECVFROM_SYSCALL): Likewise.
4909 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
4910 Define.
4911 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
4912 Likewise.
4913 [__LINUX_KERNEL_VERSION >= 0x040400]
4914 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
4915 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
4916 Remove.
4917 (listen): Likewise.
4918 (setsockopt): Likewise.
4919
4920 2018-11-01 Fredrik Noring <noring@nocrew.org>
4921
4922 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
4923 with the ISA override.
4924
4925 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
4926
4927 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
4928 #endif.
4929
4930 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
4931
4932 * manual/errno.texi (EIEIO): Document how translators should
4933 translate the error message.
4934 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
4935 printing trailing whitespaces refused by git.
4936 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
4937 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
4938 * hurd/Makefile (user-interfaces): Add pci.
4939
4940 2018-10-30 Joseph Myers <joseph@codesourcery.com>
4941
4942 * conform/linknamespace.py: New file.
4943 * conform/linknamespace.pl: Remove file.
4944 * conform/Makefile ($(linknamespace-header-tests)): Use
4945 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
4946 option.
4947
4948 2018-10-30 Florian Weimer <fweimer@redhat.com>
4949
4950 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
4951 memory leaks.
4952
4953 2018-10-30 Florian Weimer <fweimer@redhat.com>
4954
4955 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
4956
4957 2018-10-30 Florian Weimer <fweimer@redhat.com>
4958
4959 * stdlib/tst-strtod-overflow.c (do_test): Switch to
4960 support_blob_repeat.
4961
4962 2018-10-30 Florian Weimer <fweimer@redhat.com>
4963
4964 Avoid spurious test failures in stdlib/test-bz22786.
4965 * support/Makefile (libsupport-routines): Add blob_repeat.
4966 (tests): Add tst-support_blob_repeat.
4967 * support/blob_repeat.h: New file.
4968 * support/blob_repeat.c: Likewise.
4969 * support/tst-support_blob_repeat.c: Likewise.
4970 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
4971 support_blob_repeat_allocate.
4972
4973 2018-10-30 Andreas Schwab <schwab@suse.de>
4974
4975 [BZ #23125]
4976 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
4977 Don't use tail call.
4978 * elf/tst-unwind-main.c: New file.
4979 * elf/Makefile (tests): Add tst-unwind-main.
4980 (CFLAGS-tst-unwind-main.c): Define.
4981
4982 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
4983
4984 [BZ #23791]
4985 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
4986 n_cs_precedes to 0.
4987 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
4988
4989 2018-10-29 Joseph Myers <joseph@codesourcery.com>
4990
4991 * conform/glibcconform.py: Do not import shutil.
4992 (list_exported_functions): Use tempfile.TemporaryDirectory instead
4993 of mkdtemp.
4994
4995 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
4996 critic_missing for versions before 3.4.
4997 * configure: Regenerated.
4998 * manual/install.texi (Tools for Compilation): Document
4999 requirement for Python to build glibc.
5000 * INSTALL: Regenerated.
5001 * Rules [PYTHON]: Make code unconditional.
5002 * benchtests/Makefile [PYTHON]: Likewise.
5003 * conform/Makefile [PYTHON]: Likewise.
5004 * manual/Makefile [PYTHON]: Likewise.
5005 * math/Makefile [PYTHON]: Likewise.
5006
5007 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5008
5009 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5010 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5011 answer to interrupt_operation, return EIEIO instead of EINTR.
5012 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5013 _hurd_intr_rpc_msg_about_to global point to start of controlled
5014 assembly snippet. Make it check canceled flag.
5015 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5016 the _hurd_intr_rpc_msg_about_to point.
5017 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5018 issue, remove cancel flag check.
5019
5020 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5021
5022 * scripts/build-many-glibcs.py: Remove compatibility for missing
5023 os.cpu_count and re.fullmatch.
5024
5025 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5026
5027 [BZ #23822]
5028 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5029 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5030 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5031
5032 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5033
5034 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5035 macro.
5036
5037 2018-10-25 Florian Weimer <fweimer@redhat.com>
5038
5039 [BZ #23562]
5040 [BZ #23821]
5041 XFAIL siginfo_t si_band conform test on sparc64.
5042 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5043 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5044 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5045 (conformtest-xfail-conds): Add sparc64-linux.
5046 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5047 sparc64.
5048 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5049
5050 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5051
5052 * elf/elf.h (NT_MIPS_DSP): New macro.
5053 (NT_MIPS_FP_MODE): Likewise.
5054
5055 2018-10-25 Zong Li <zong@andestech.com>
5056
5057 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5058 name by adding the file extension (.so).
5059
5060 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5061
5062 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5063 (test-xfail-ISO11/threads.h/linknamespace,
5064 test-xfail-ISO11/threads.h/conform): Add.
5065
5066 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5067
5068 * math/gen-libm-test.py: Import os.
5069 (ALL_FLOATS_MANUAL): New constant.
5070 (ALL_FLOATS_SUFFIX): Likewise.
5071 (Ulps.all_functions): New function.
5072 (real_all_ulps): Likewise.
5073 (generate_err_table_sub): Likewise.
5074 (generate_err_table): Likewise.
5075 (main): Handle -s and -m options.
5076 * manual/libm-err-tab.pl: Remove.
5077 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5078 instead of libm-err-tab.pl.
5079 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5080 != no].
5081 * manual/install.texi (Tools for Compilation): Document
5082 requirement for Python to build manual.
5083 * INSTALL: Regenerated.
5084
5085 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5086
5087 * bits/time64.h: New file.
5088 * include/time.h: Replace internal_time_t with __time64_t.
5089 * posix/bits/types (__time64_t): Add.
5090 * stdlib/Makefile: Add bits/time64.h to includes.
5091 * time/tzfile.c: Replace internal_time_t with __time64_t.
5092
5093 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5094
5095 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5096 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5097 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5098 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5099 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5100 prototype.
5101 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5102 * posix/spawn_faction_addclose.c
5103 (__posix_spawn_file_actions_addclose): Add hidden definition.
5104 * posix/spawn_faction_adddup2.c
5105 (__posix_spawn_file_actions_adddup2): Likewise.
5106 * posix/spawn_faction_destroy.c
5107 (__posix_spawn_file_actions_destroy): Likewise.
5108 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5109 Likewise.
5110 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5111 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5112 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5113 Likewise.
5114 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5115 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5116 Likewise.
5117
5118 2018-10-24 Andreas Schwab <schwab@suse.de>
5119
5120 [BZ #18093]
5121 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5122 format cache.
5123 * elf/cache.c (print_cache): Likewise.
5124
5125 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5126
5127 * bits/timesize.h: New file.
5128 * stdlib/Makefile (headers): Add bits/timesize.h.
5129 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5130 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5131 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5132 (__SEM_PAD_AFTER_TIME): Likewise.
5133 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5134 (__SHM_PAD_AFTER_TIME): Likewise.
5135 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5136 (__MSQ_PAD_BEFORE_TIME): Likewise.
5137 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5138 (__SEM_PAD_BEFORE_TIME): Likewise.
5139 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5140 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5141 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5142 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5143 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5144 (__MSQ_PAD_BEFORE_TIME): Likewise.
5145 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5146 (__SEM_PAD_BEFORE_TIME): Likewise.
5147 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5148 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5149 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5150 (__MSQ_PAD_BEFORE_TIME): Likewise.
5151 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5152 (__SEM_PAD_BEFORE_TIME): Likewise.
5153 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5154 (__SHM_PAD_BEFORE_TIME): Likewise.
5155 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5156 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5157 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5158
5159 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5160
5161 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5162 USE_RDTSCP is defined.
5163 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5164 USE_RDTSCP is defined.
5165
5166 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5167
5168 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5169 defined.
5170
5171 [BZ #23709]
5172 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5173 independently of other flags.
5174
5175 2018-10-23 Florian Weimer <fweimer@redhat.com>
5176
5177 * time/tst-mktime2.c (N_STRINGS): Remove.
5178 (set_timezone): New function.
5179 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5180 (mktime_test1): Report localtime failure and check errno value.
5181 Use TEST_COMPARE.
5182 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5183 (do_test): Remove alarm call. Use set_timezone and array_length.
5184
5185 2018-10-23 Andreas Schwab <schwab@suse.de>
5186
5187 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5188 (__start_context): Use END instead of PSEUDO_END.
5189
5190 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5191
5192 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5193 version to 4.19.
5194
5195 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5196 version to 4.19.
5197
5198 [BZ #23793]
5199 * wcsmbs/c32rtomb.c: New file.
5200 * wcsmbs/mbrtoc32.c: Likewise.
5201 * wcsmbs/tst-c32-state.c: Likewise.
5202 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5203 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5204 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5205 (tests): Add tst-c32-state.
5206 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5207 $(gen-locales).
5208
5209 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5210
5211 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5212 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5213
5214 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5215
5216 [BZ #23794]
5217 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5218 pair and return 0 in that case, and use saved character to
5219 interpret following character.
5220 * wcsmbs/tst-c16-surrogate.c: New file.
5221 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5222 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5223 Depend on $(gen-locales)
5224
5225 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5226
5227 [BZ #23562]
5228 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5229 (struct siginfo_t): Use correct type for si_band.
5230
5231 2018-10-19 Florian Weimer <fweimer@redhat.com>
5232
5233 [BZ #23689]
5234 * resource/bits/types/struct_rusage.h (struct rusage): Update
5235 comment on struct. Remove extraneous field comment.
5236
5237 2018-10-18 David S. Miller <davem@davemloft.net>
5238
5239 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5240 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5241 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5242 sysdep_routines in subdir elf.
5243 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5244 version for __vdso_clock_gettime.
5245 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5246 Define.
5247 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5248 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5249
5250 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5251
5252 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5253
5254 * sysdeps/i386/init-arch.h: Removed.
5255 * sysdeps/i386/i586/init-arch.h: Likewise.
5256 * sysdeps/i386/i686/init-arch.h: Likewise.
5257 * sysdeps/i386/i686/hp-timing.h: Likewise.
5258 * sysdeps/x86_64/hp-timing.h: Likewise.
5259 * sysdeps/i386/isa.h: New file.
5260 * sysdeps/i386/i586/isa.h: Likewise.
5261 * sysdeps/i386/i686/isa.h: Likewise.
5262 * sysdeps/x86_64/isa.h: Likewise.
5263 * sysdeps/x86/hp-timing.h: New file.
5264 * sysdeps/x86/init-arch.h: Include <isa.h>.
5265
5266 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5267
5268 * math/libm-test-pow.inc (pow_test_data): Do not allow
5269 divide-by-zero exception for pow(+/- 0, -Inf).
5270
5271 2018-10-17 Zack Weinberg <zackw@panix.com>
5272
5273 * manual/job.texi (Job Control is Optional): Remove node, as
5274 job control has not been optional in quite some time.
5275 (Job Control): Mention briefly that systems older than
5276 POSIX.1-2001 might not support job control.
5277 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5278 defined on systems conforming to POSIX.1-2001.
5279
5280 2018-10-17 Arjun Shankar <arjun@redhat.com>
5281
5282 [BZ #22062]
5283 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
5284 indentation.
5285 * (__gconv_read_conf): Mark function static.
5286 * (once): New static variable.
5287 * (__gconv_load_conf): New function.
5288 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
5289 * iconv/gconv_db.c (once): Remove static variable.
5290 * (__gconv_compare_alias): Use __gconv_load_conf instead of
5291 __gconv_read_conf.
5292 * (__gconv_find_transform): Likewise.
5293 * iconv/tst-iconv-mt.c: New test.
5294 * iconv/Makefile: Add tst-iconv_mt.
5295
5296 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5297
5298 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5299 bits/shm-pad.h.
5300 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5301 (shmatt_t): Define as __syscall_ulong_t.
5302 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5303 and [__SHM_PAD_AFTER_TIME].
5304 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5305 Define shm_segsz and associated padding based on
5306 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5307 Use __syscall_ulong_t instead of unsigned long int.
5308 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
5309 unsigned long int.
5310 [__USE_MISC] (struct shm_info): Likewise.
5311 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
5312 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
5313 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
5314 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
5315 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
5316 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5317 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
5318 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5319 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5320 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5321 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
5322
5323 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5324 bits/shmlba.h.
5325 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
5326 (SHMLBA): Remove macro.
5327 (__getpagesize): Remove function declaration.
5328 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
5329 <bits/shmlba.h>.
5330 (SHMLBA): Remove macro.
5331 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
5332 <bits/shmlba.h>.
5333 (SHMLBA): Remove macro.
5334 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
5335 <bits/shmlba.h>.
5336 (SHMLBA): Remove macro.
5337 (__getpagesize): Remove function declaration.
5338 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
5339 <bits/shmlba.h>.
5340 (SHMLBA): Remove macro.
5341 (__getshmlba): Remove function declaration.
5342 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
5343 (SHMLBA): Remove macro.
5344 (__getpagesize): Remove function declaration.
5345 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
5346 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5347 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5348 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
5349 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
5350 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
5351 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
5352 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
5353 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
5354 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
5355
5356 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
5357
5358 [BZ #23275]
5359 * nptl/tst-mutex10.c: New File.
5360 * nptl/Makefile (tests): Add tst-mutex10.
5361 (tst-mutex10-ENV): New variable.
5362 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
5363 Ensure that elision path is used if elision is available.
5364 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
5365 Likewise.
5366 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
5367 Likewise.
5368 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
5369 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
5370 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
5371 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
5372 Likewise.
5373 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
5374 (__pthread_mutex_cond_lock_adjust): Likewise.
5375 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
5376 Likewise.
5377 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
5378 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
5379 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5380 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
5381 Add comments.
5382 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
5383 Use atomic_load_relaxed and atomic_store_relaxed.
5384 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
5385 Use atomic_store_relaxed.
5386
5387 2018-10-17 Andreas Schwab <schwab@suse.de>
5388
5389 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
5390 * crypt/badsalttest.c (TIMEOUT): Likewise.
5391 * crypt/sha256c-test.c (TIMEOUT): Likewise.
5392 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
5393 * io/test-lfs.c (TIMEOUT): Likewise.
5394 * libio/tst-atime.c (TIMEOUT): Likewise.
5395 * localedata/tst-leaks.c (TIMEOUT): Likewise.
5396 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
5397 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
5398 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
5399 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
5400 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
5401 * nptl/tst-cond11.c (TIMEOUT): Likewise.
5402 * nptl/tst-cond14.c (TIMEOUT): Likewise.
5403 * nptl/tst-cond15.c (TIMEOUT): Likewise.
5404 * nptl/tst-cond24.c (TIMEOUT): Likewise.
5405 * nptl/tst-cond25.c (TIMEOUT): Likewise.
5406 * nptl/tst-kill2.c (TIMEOUT): Likewise.
5407 * nptl/tst-kill3.c (TIMEOUT): Likewise.
5408 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
5409 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
5410 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
5411 * nptl/tst-once2.c (TIMEOUT): Likewise.
5412 * nptl/tst-once3.c (TIMEOUT): Likewise.
5413 * nptl/tst-once4.c (TIMEOUT): Likewise.
5414 * nptl/tst-robust8.c (TIMEOUT): Likewise.
5415 * nptl/tst-robust9.c (TIMEOUT): Likewise.
5416 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
5417 * nptl/tst-sem14.c (TIMEOUT): Likewise.
5418 * nptl/tst-sem6.c (TIMEOUT): Likewise.
5419 * nptl/tst-signal3.c (TIMEOUT): Likewise.
5420 * nptl/tst-spin4.c (TIMEOUT): Likewise.
5421 * nptl/tst-tls3.c (TIMEOUT): Likewise.
5422 * nptl/tst-tls4.c (TIMEOUT): Likewise.
5423 * posix/tst-chmod.c (TIMEOUT): Likewise.
5424 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
5425 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
5426 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
5427 * posix/tst-regex2.c (TIMEOUT): Likewise.
5428 * posix/tst-waitid.c (TIMEOUT): Likewise.
5429 * rt/tst-aio.c (TIMEOUT): Likewise.
5430 * rt/tst-aio10.c (TIMEOUT): Likewise.
5431 * rt/tst-aio4.c (TIMEOUT): Likewise.
5432 * rt/tst-aio5.c (TIMEOUT): Likewise.
5433 * rt/tst-aio6.c (TIMEOUT): Likewise.
5434 * rt/tst-aio64.c (TIMEOUT): Likewise.
5435 * rt/tst-aio7.c (TIMEOUT): Likewise.
5436 * rt/tst-aio9.c (TIMEOUT): Likewise.
5437 * rt/tst-clock.c (TIMEOUT): Likewise.
5438 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
5439 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
5440 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
5441 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
5442 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
5443 * rt/tst-timer4.c (TIMEOUT): Likewise.
5444 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
5445 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
5446 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
5447 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
5448 * time/tst-ftime.c (TIMEOUT): Likewise.
5449 * timezone/tst-tzset.c (TIMEOUT): Likewise.
5450
5451 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5452
5453 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
5454 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
5455 for thunderX2.
5456
5457 2018-10-15 Joseph Myers <joseph@codesourcery.com>
5458
5459 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5460 bits/sem-pad.h.
5461 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
5462 instead of <bits/wordsize.h>.
5463 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
5464 and [__SEM_PAD_AFTER_TIME].
5465 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
5466 __syscall_ulong_t instead of unsigned long int.
5467 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
5468 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
5469 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
5470 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
5471 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
5472 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
5473 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
5474 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
5475 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
5476 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
5477 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
5478
5479 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
5480
5481 regex: simplify by using intprops.h
5482 [BZ#23744]
5483 * posix/regex_internal.h [_LIBC]: Include intprops.h.
5484 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
5485 intprops.h defines them.
5486
5487 regex: __builtin_expect → __glibc_unlikely
5488 [BZ#23744]
5489 This refactoring was prompted by a problem when the regex code is
5490 used as part of Gnulib and when the builder’s compiler does not grok
5491 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
5492 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
5493 Although this refactoring does not fix the problem directly,
5494 we might as well have Gawk use the now-preferred glibc style for when
5495 __builtin_expect is unavailable.
5496 * posix/regex_internal.h (BE): Remove.
5497 All uses replaced by __glibc_unlikely or __glibc_likely.
5498
5499 2018-10-11 Joseph Myers <joseph@codesourcery.com>
5500
5501 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5502 bits/msq-pad.h.
5503 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
5504 instead of <bits/wordsize.h>.
5505 (msgqnum_t): Define as __syscall_ulong_t.
5506 (msglen_t): Likewise.
5507 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
5508 and [__MSQ_PAD_AFTER_TIME].
5509 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
5510 __syscall_ulong_t instead of unsigned long int.
5511 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
5512 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
5513 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
5514 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
5515 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
5516 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
5517 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
5518 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
5519 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
5520 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
5521 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
5522
5523 2018-10-10 Joseph Myers <joseph@codesourcery.com>
5524
5525 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
5526 (struct shmid_ds): Condition padding after time fields on
5527 [__WORDSIZE == 32].
5528 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
5529 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
5530 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5531
5532 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
5533 (struct semid_ds): Condition padding after time fields on
5534 [__WORDSIZE == 32].
5535 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
5536 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
5537 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
5538 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
5539
5540 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
5541 (struct msqid_ds): Condition padding after time fields on
5542 [__WORDSIZE == 32].
5543 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
5544 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
5545 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
5546 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
5547
5548 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5549
5550 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
5551
5552 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5553
5554 * libio/tst-readline.c (TIMEOUT): Define.
5555
5556 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
5557
5558 mktime fix for Gnulib + coreutils
5559 [BZ#23745]
5560 This fix affects only Gnulib. Problem discovered when
5561 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
5562 * time/mktime.c:
5563 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
5564 Do not define since it is not used. Defining an unused static
5565 function prompts a warning from GCC when Coreutils is configured
5566 with --enable-gcc-warnings.
5567
5568 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5569
5570 * benchtests/scripts/compare_bench.py (main): set float type on
5571 threshold argument.
5572
5573 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
5574
5575 [BZ #23740]
5576 * localedata/locales/kl_GL (mon): Update, the relative case.
5577 (alt_mon): Add, fill with month names in the nominative case.
5578 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
5579 (d_fmt): Set to "%b %d %Y".
5580
5581 2018-10-04 Joseph Myers <joseph@codesourcery.com>
5582
5583 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
5584 <bits/mman-linux.h>.
5585 (PROT_READ): Don't define here.
5586 (PROT_WRITE): Likewise.
5587 (PROT_EXEC): Likewise.
5588 (PROT_NONE): Likewise.
5589 (PROT_GROWSDOWN): Likewise.
5590 (PROT_GROWSUP): Likewise.
5591 (MAP_SHARED): Likewise.
5592 (MAP_PRIVATE): Likewise.
5593 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
5594 [__USE_MISC] (MAP_FILE): Likewise.
5595 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
5596 [__USE_MISC] (MAP_ANON): Likewise.
5597 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
5598 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
5599 (MCL_CURRENT): Likewise.
5600 (MCL_FUTURE): Likewise.
5601 (MCL_ONFAULT): Likewise.
5602 [__USE_MISC] (MADV_NORMAL): Likewise.
5603 [__USE_MISC] (MADV_RANDOM): Likewise.
5604 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
5605 [__USE_MISC] (MADV_WILLNEED): Likewise.
5606 [__USE_MISC] (MADV_DONTNEED): Likewise.
5607 [__USE_MISC] (MADV_FREE): Likewise.
5608 [__USE_MISC] (MADV_REMOVE): Likewise.
5609 [__USE_MISC] (MADV_DONTFORK): Likewise.
5610 [__USE_MISC] (MADV_DOFORK): Likewise.
5611 [__USE_MISC] (MADV_HWPOISON): Likewise.
5612 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
5613 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
5614 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
5615 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
5616 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
5617 (__MAP_ANONYMOUS): New macro.
5618 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
5619 <bits/mman-linux.h> inclusion.
5620 (MAP_FIXED): Likewise.
5621 (MS_SYNC): Likewise.
5622 (MS_ASYNC): Likewise.
5623 (MS_INVALIDATE): Likewise.
5624 [__USE_MISC] (MADV_MERGEABLE): Likewise.
5625 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
5626 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
5627 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
5628 [__USE_MISC] (MADV_DONTDUMP): Likewise.
5629 [__USE_MISC] (MADV_DODUMP): Likewise.
5630 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
5631 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
5632
5633 [BZ #23735]
5634 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
5635 Define.
5636 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
5637 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
5638 Add test-nldbl-redirect.
5639 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
5640 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
5641 $(objpfx)libnldbl_nonshared.a.
5642
5643 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
5644
5645 * support/support.h (support_objdir_elf_ldso): New variable.
5646 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
5647 * support/Makefile (CFLAGS-support_paths.c): Add definition
5648 for OBJDIR_ELF_LDSO_PATH.
5649 * support/test-container.c (main): Search for the ld.so
5650 which is also used by the testsuite.
5651
5652 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
5653
5654 [BZ #20209]
5655 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
5656 should be "sap" rather than "sab".
5657 (day): Fix spelling of Sunday, should be "sapaat" rather than
5658 "sabaat".
5659
5660 2018-10-02 Joseph Myers <joseph@codesourcery.com>
5661
5662 * math/libm-test-fma.inc (fma_test_data): Add more tests.
5663
5664 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
5665
5666 [BZ #19444]
5667 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
5668 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
5669 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
5670
5671 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5672
5673 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
5674
5675 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
5676
5677 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
5678 Add -mrtm.
5679 (CFLAGS-elision-unlock.c): Likewise.
5680 (CFLAGS-elision-timed.c): Likewise.
5681 (CFLAGS-elision-trylock.c): Likewise.
5682 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
5683
5684 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5685
5686 [BZ #21037]
5687 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
5688 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
5689 new fd_to_filename interface.
5690 * libio/freopen64.c (freopen64): Likewise.
5691 * libio/tst-memstream.h: New file.
5692 * libio/tst-memstream4.c: Likewise.
5693 * libio/tst-wmemstream4.c: Likewise.
5694 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
5695 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
5696 and remove internal dynamic allocation.
5697
5698 2018-10-01 Joseph Myers <joseph@codesourcery.com>
5699
5700 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
5701 (MREMAP_MAYMOVE): Do not define here.
5702 [__USE_GNU] (MREMAP_FIXED): Likewise.
5703 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
5704 (MREMAP_MAYMOVE): Define here instead.
5705 [__USE_GNU] (MREMAP_FIXED): Likewise.
5706 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
5707 (MREMAP_MAYMOVE): Remove.
5708 [__USE_GNU] (MREMAP_FIXED): Likewise.
5709
5710 2018-09-28 Joseph Myers <joseph@codesourcery.com>
5711
5712 * math/fromfp.h: Do not include <math_private.h>.
5713 * math/s_cacosh_template.c: Likewise.
5714 * math/s_casin_template.c: Likewise.
5715 * math/s_casinh_template.c: Likewise.
5716 * math/s_ccos_template.c: Likewise.
5717 * math/s_cproj_template.c: Likewise.
5718 * math/s_fdim_template.c: Likewise.
5719 * math/s_fmaxmag_template.c: Likewise.
5720 * math/s_fminmag_template.c: Likewise.
5721 * math/s_iseqsig_template.c: Likewise.
5722 * math/s_ldexp_template.c: Likewise.
5723 * math/s_nextdown_template.c: Likewise.
5724 * math/w_log1p_template.c: Likewise.
5725 * math/w_scalbln_template.c: Likewise.
5726 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
5727 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
5728 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
5729 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
5730 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
5731 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
5732 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
5733 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
5734 * sysdeps/i386/fpu/s_atanl.c: Likewise.
5735 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
5736 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
5737 * sysdeps/i386/fpu/s_fdim.c: Likewise.
5738 * sysdeps/i386/fpu/s_logbl.c: Likewise.
5739 * sysdeps/i386/fpu/s_rintl.c: Likewise.
5740 * sysdeps/i386/fpu/s_significandl.c: Likewise.
5741 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
5742 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
5743 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5744 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5745 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
5746 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
5747 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5748 * sysdeps/ieee754/k_standardf.c: Likewise.
5749 * sysdeps/ieee754/k_standardl.c: Likewise.
5750 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5751 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
5752 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
5753 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
5754 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
5755 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
5756 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5757 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
5758 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
5759 * sysdeps/ieee754/s_signgam.c: Likewise.
5760 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
5761 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
5762 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
5763 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
5764 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
5765 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
5766 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5767 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
5768 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
5769 * sysdeps/riscv/rvd/s_finite.c: Likewise.
5770 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
5771 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
5772 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
5773 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
5774 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
5775 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
5776 * sysdeps/riscv/rvf/fegetround.c: Likewise.
5777 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
5778 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
5779 * sysdeps/riscv/rvf/fesetround.c: Likewise.
5780 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
5781 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
5782 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
5783 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
5784 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
5785 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
5786 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
5787 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
5788 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
5789 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
5790 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
5791 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
5792 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
5793 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
5794 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5795 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
5796 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
5797 <math_private.h>.
5798 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
5799
5800 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
5801
5802 [BZ #23716]
5803 * sysdeps/i386/dl-cet.c: Removed.
5804 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
5805 prototype.
5806 (_dl_runtime_profile_shstk): Likewise.
5807 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
5808 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
5809
5810 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5811
5812 [BZ #23579]
5813 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
5814 do_test_with_invalid_iov): New tests.
5815 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
5816 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
5817 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
5818 errno is ENOSYS.
5819 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
5820 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
5821 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
5822
5823 2018-09-27 Joseph Myers <joseph@codesourcery.com>
5824
5825 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5826 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
5827 (MATH_REDIRECT_BINARY_ARGS): New macro.
5828 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
5829 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
5830 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
5831 header inclusion.
5832 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
5833 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5834 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
5835 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5836 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5837 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5838 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5839 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
5840 Likewise.
5841 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
5842 Likewise.
5843 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
5844 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
5845 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
5846 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
5847 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
5848 Likewise.
5849 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
5850 Likewise.
5851 * sysdeps/generic/math_private_calls.h
5852 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
5853 Do not declare and define as an inline function.
5854 * math/divtc3.c (__divtc3): Use copysign functions instead of
5855 __copysign variants.
5856 * math/multc3.c (__multc3): Likewise.
5857 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
5858 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
5859 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
5860 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
5861 Likewise.
5862 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
5863 (__ieee754_yn): Likewise.
5864 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
5865 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
5866 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
5867 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
5868 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
5869 (__sin): Likewise.
5870 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
5871 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5872 Likewise.
5873 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
5874 Likewise.
5875 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
5876 Likewise.
5877 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
5878 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
5879 Likewise.
5880 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
5881 (__ieee754_ynf): Likewise.
5882 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
5883 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
5884 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
5885 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
5886 Likewise.
5887 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
5888 (__ieee754_ynl): Likewise.
5889 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
5890 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
5891 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
5892 Likewise.
5893 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
5894 (__ieee754_ynl): Likewise.
5895 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
5896 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
5897 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
5898 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
5899 Likewise.
5900 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
5901 (__ieee754_ynl)
5902 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
5903 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
5904 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
5905 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
5906 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
5907
5908 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5909 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
5910 using MATH_REDIRECT.
5911 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
5912 header inclusion.
5913 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
5914 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5915 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5916 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
5917 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5918 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
5919 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
5920 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
5921 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
5922 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
5923 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
5924 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5925 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5926 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
5927 (round): Redirect to __round.
5928 (__roundl): Call round instead of __round.
5929 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
5930 Remove macro.
5931 [_ARCH_PWR5X] (__roundf): Likewise.
5932 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
5933 functions instead of __round variants.
5934 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
5935 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
5936 Likewise.
5937 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
5938 Likewise.
5939 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
5940 Likewise.
5941 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
5942 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
5943 __lroundl.
5944 (__ieee754_expl): Call roundl instead of __roundl.
5945
5946 2018-09-27 Andreas Schwab <schwab@suse.de>
5947
5948 [BZ #23717]
5949 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
5950 (do_test): Make st1 static.
5951
5952 2018-09-26 Andreas Schwab <schwab@suse.de>
5953
5954 [BZ #23707]
5955 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
5956 * elf/Makefile (tests): Add tst-unwind-ctor.
5957 (modules-names): Add tst-unwind-ctor-lib.
5958 ($(objpfx)tst-unwind-ctor): Depend on
5959 $(objpfx)tst-unwind-ctor-lib.so.
5960
5961 2018-09-26 Joseph Myers <joseph@codesourcery.com>
5962
5963 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
5964 file. Most contents moved from ....
5965 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
5966 and include <bits/mman-map-flags-generic.h>.
5967 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5968 (sysdep_headers): Add bits/mman-map-flags-generic.h.
5969 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
5970 <bits/mman-map-flags-generic.h>.
5971 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
5972 macros defined in <bits/mman-map-flags-generic.h>.
5973 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
5974 <bits/mman-map-flags-generic.h>.
5975 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
5976 defined in <bits/mman-map-flags-generic.h>.
5977
5978 2018-09-26 Andreas Schwab <schwab@suse.de>
5979
5980 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
5981 output.
5982
5983 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
5984 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5985 Fangrui Song <maskray@google.com>
5986
5987 [BZ #20480]
5988 * config.make.in (have-textrel_ifunc): New define.
5989 * configure.ac: Add check if linker supports textrel relocation with
5990 ifunc.
5991 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
5992 tst-ifunc-textrel.
5993 (CFLAGS-tst-ifunc-textrel.c): New rule.
5994 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
5995 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
5996 * elf/tst-ifunc-textrel.c: New file.
5997
5998 2018-09-25 Joseph Myers <joseph@codesourcery.com>
5999
6000 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6001 <bits/procfs-prregset.h>.
6002 (prgregset_t): Define using __prgregset_t.
6003 (prfpregset_t): Define using __prfpregset_t.
6004 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6005 (sysdep_headers): Add bits/procfs-prregset.h.
6006 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6007 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6008 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6009 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6010
6011 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6012 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6013 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6014 pr_uid and pr_gid.
6015 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6016 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6017 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6018 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6019 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6020 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6021 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6022 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6023 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6024 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6025 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6026 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6027 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6028 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6029 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6030 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6031 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6032 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6033 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6034 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6035 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6036 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6037 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6038 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6039
6040 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6041 AArch64 version. Include <bits/procfs.h>.
6042 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6043 (sysdep_headers): Add bits/procfs.h.
6044 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6045 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6046 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6047 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6048 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6049 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6050 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6051 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6052 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6053 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6054 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6055 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6056 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6057 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6058 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6059 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6060 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6061
6062 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6063
6064 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6065 Use libsupport.
6066
6067 2018-09-25 Arjun Shankar <arjun@redhat.com>
6068
6069 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6070 (__gconv_max_path_elem_len): Likewise.
6071 (__gconv_nmodules): Likewise.
6072 (__gconv_get_path): Likewise.
6073 (path_elem): Move to ...
6074 * iconv/gconv_conf.c: ... here.
6075 (__gconv_get_path): Mark function static.
6076 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6077 * iconv/gconv_open.c: ... here.
6078
6079 2018-09-24 Andreas Schwab <schwab@suse.de>
6080
6081 * scripts/haveversions.awk: New file.
6082 * Makerules ($(common-objpfx)Versions.def)
6083 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6084 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6085 Move rules ...
6086 * Makeconfig ($(common-objpfx)Versions.def)
6087 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6088 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6089 ... here.
6090 ($(common-objpfx)Versions.mk): New rule. Include it.
6091 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6092 Emit error if build-obsolete-nsl = yes.
6093 * manual/install.texi (Configuring and compiling): Describe
6094 --enable-obsolete-nsl as unavaiable after version 2.28.
6095 * INSTALL: Regenerate.
6096
6097 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6098
6099 * NEWS: Add note about new TLE support on powerpc64le.
6100 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6101 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6102 __ununsed1.
6103 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6104 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6105 * sysdeps/powerpc/powerpc32/sysdep.h,
6106 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6107 ABORT_TRANSACTION): Remove macros.
6108 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6109 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6110 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6111 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6112 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6113 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6114 usage.
6115 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6116
6117 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6118
6119 [BZ #10425]
6120 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6121 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6122 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6123 which is the same as in it_IT.
6124 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6125 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6126
6127 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6128
6129 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6130 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6131 using MATH_REDIRECT.
6132 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6133 header inclusion.
6134 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6135 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6136 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6137 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6138 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6139 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6140 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6141 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6142 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6143 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6144 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6145 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6146 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6147 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6148 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6149 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6150 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6151 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6152 (ceil): Redirect to __ceil.
6153 (floor): Redirect to __floor.
6154 (trunc): Redirect to __trunc.
6155 (__truncl): Call trunc instead of __trunc.
6156 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6157 Remove macro.
6158 [_ARCH_PWR5X] (__truncf): Likewise.
6159 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6160 trunc functions instead of __trunc variants.
6161 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6162 Likewise.
6163 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6164 Likewise.
6165 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6166 Likewise.
6167 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6168 Likewise.
6169
6170 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6171 [__i586__ || __pentium__].
6172 [__i486__]: Handle explicitly.
6173 (HAS_CPUID): Define to 1 if above macros are undefined.
6174 (HAS_I586): Likewise.
6175 (HAS_I686): Likewise.
6176
6177 2018-09-20 Florian Weimer <fweimer@redhat.com>
6178
6179 * misc/tst-gethostid.c: New file.
6180 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6181 (tst-gethostid): Link with -ldl.
6182
6183 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6184
6185 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6186 value from gethostbyname_r.
6187
6188 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6189
6190 * stdlib/tst-setcontext9.c (f1): Rename to...
6191 (f1a): ... this.
6192 (f1b): New function implementing lower half of f1 in alternate stack.
6193
6194 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6195
6196 Fix mktime localtime offset confusion
6197 [BZ #23603]
6198 * include/time.h (__mktime_internal): The localtime offset is now
6199 of type long int instead of time_t. This is the longstanding type
6200 in glibc, and it is more than enough to represent difference
6201 between localtime and gmtime even if it is 32 bits and time_t is
6202 64. Changing it now will let us avoid an unnecessary change when
6203 time_t is widened to 64 bits on 32-bit platforms.
6204 * time/mktime-internal.h (mktime_offset_t): Now long int.
6205
6206 Merge mktime, timegm from upstream Gnulib
6207 [BZ #23603][BZ #16346]
6208 This fixes some obscure problems with integer overflow.
6209 Although it looks scary, it is almost all a byte-for-byte copy
6210 from Gnulib, and the Gnulib code has been tested reasonably well.
6211 * include/intprops.h: New file, copied from Gnulib.
6212 * include/verify.h, time/mktime-internal.h:
6213 New tiny files, simplified from Gnulib.
6214 * time/mktime.c: Copy from Gnulib. This has the following changes:
6215 Do not include config.h if DEBUG_MKTIME is nonzero.
6216 Include stdbool.h, intprops.h, verify.h.
6217 Include string.h only if needed.
6218 Include stdlib.h on MS-Windows.
6219 Include mktime-internal.h.
6220 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6221 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6222 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6223 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6224 simplify later conditionals; default the others to zero. Use
6225 these conditionals to express only the code needed on the current
6226 platform. In uses of these conditionals, explicitly spell out how
6227 _LIBC affects things, so it’s easier to review from a glibc
6228 viewpoint.
6229 (WRAPV): Remove; no longer needed now that we have
6230 systematic overflow checking.
6231 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6232 compartmentalize tzset issues. Move system-dependent tzsettish
6233 code here from mktime.
6234 (verify): Remove; now done by verify.h. All uses changed.
6235 (long_int): Use a more-conservative definition, to avoid
6236 integer overflow.
6237 (SHR): Remove, replacing with ...
6238 (shr): New function, which means we needn’t worry about side
6239 effects in args, and conversion analysis is simpler.
6240 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6241 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6242 (time_t_avg, time_t_add_ok): Remove.
6243 (mktime_min, mktime_max): New constants.
6244 (leapyear, isdst_differ): Use bool for booleans.
6245 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6246 Use long_int, not time_t, for mktime differences.
6247 (long_int_avg): New function, replacing time_t_avg.
6248 INT_ADD_WRAPV replaces time_t_add_ok.
6249 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6250 All uses changed.
6251 (convert_time): New function.
6252 (ranged_convert): Use it.
6253 (__mktime_internal): Last arg now points to mktime_offset_t, not
6254 time_t. All uses changed. This is a no-op on glibc, where
6255 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6256 offset guess. Directly check for integer overflow instead of
6257 using a heuristic that works only 99.9...% of the time.
6258 Access *OFFSET only once, to avoid an unlikely race if the
6259 compiler delays a load and if this cascades into a signed integer
6260 overflow.
6261 (mktime): Move tzsettish code to my_tzset, and move
6262 localtime_offset to within mktime so that it doesn’t
6263 need a separate ifdef.
6264 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6265 instead of localtime.
6266 * time/timegm.c: Copy from Gnulib. This has the following changes:
6267 Include mktime-internal.h.
6268 [!_LIBC]: Include config.h and time.h. Do not include
6269 timegm.h or time_r.h. Make __mktime_internal a macro,
6270 and include mktime-internal.h to get its declaration.
6271 (timegm): Temporary is now mktime_offset_t, not time_t.
6272 This affects only Gnulib.
6273
6274 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6275
6276 [BZ #23637]
6277 * string/test-strstr.c (pr23637): New function.
6278 (test_main): Add tests with longer needles.
6279 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6280 * string/strstr.c (AVAILABLE): Likewise.
6281
6282 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6283
6284 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
6285
6286 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6287
6288 * NEWS: Mention pow improvements.
6289 * math/Makefile (type-double-routines): Add e_pow_log_data.
6290 * sysdeps/generic/math_private.h (__exp1): Remove.
6291 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6292 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6293 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6294 contraction.
6295 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6296 (exp_inline): Remove.
6297 (__ieee754_exp): Only single double input is handled.
6298 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6299 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6300 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6301 (__pow_log_data): Define.
6302 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6303 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6304 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6305 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6306 contraction.
6307 (CFLAGS-e_pow-fma4.c): Likewise.
6308
6309 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
6310
6311 Simplify tzfile fstat failure code
6312 [BZ #21716]
6313 * time/tzfile.c (__tzfile_read): Simplify slightly.
6314
6315 Fix tzfile low-memory assertion failure
6316 [BZ #21716]
6317 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
6318 when registering time zone abbreviations.
6319
6320 2018-09-18 Joseph Myers <joseph@codesourcery.com>
6321
6322 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
6323 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
6324 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6325 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6326 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
6327 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
6328 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
6329 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6330 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6331
6332 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
6333 __ceil.
6334 (__ceill): Call ceil instead of __ceil.
6335 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
6336 __floor.
6337 (__floorl): Call floor instead of __floor.
6338
6339 2018-09-17 Joseph Myers <joseph@codesourcery.com>
6340
6341 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6342 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
6343 using MATH_REDIRECT.
6344 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
6345 header inclusion.
6346 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
6347 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6348 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6349 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
6350 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6351 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6352 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6353 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6354 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
6355 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
6356 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
6357 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
6358 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6359 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6360 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6361 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6362 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6363 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6364 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
6365 Remove macro.
6366 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
6367 functions instead of __ceil variants.
6368 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6369 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6370 Likewise.
6371 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6372 Likewise.
6373 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6374 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6375 Likewise.
6376 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6377 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6378
6379 [BZ #21286]
6380 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
6381 constant.
6382 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
6383 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
6384 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
6385 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
6386 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
6387 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
6388 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
6389 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
6390 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
6391 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
6392 (ILL_BADIADDR): Remove constant.
6393 (TRAP_BRANCH): Likewise.
6394 (TRAP_HWBKPT): Likewise.
6395
6396 2018-09-14 Joseph Myers <joseph@codesourcery.com>
6397
6398 [BZ #23656]
6399 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
6400 Remove [_MIPS_SIM = _ABIN32] conditional case.
6401 (struct elf_prpsinfo): Likewise.
6402
6403 [BZ #23649]
6404 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
6405 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
6406 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
6407 Likewise.
6408 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
6409 elf_prpsinfo): Likewise.
6410 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
6411 elf_prpsinfo): Likewise.
6412 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
6413 Likewise.
6414
6415 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6416 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
6417 using MATH_REDIRECT.
6418 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
6419 header inclusion.
6420 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
6421 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6422 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6423 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6424 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6425 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6426 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
6427 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6428 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6429 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6430 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
6431 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
6432 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
6433 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
6434 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
6435 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
6436 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6437 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
6438 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6439 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
6440 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
6441 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
6442 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
6443 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
6444 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
6445 * sysdeps/x86_64/fpu/math_private.h: Remove file.
6446 * math/e_scalb.c (invalid_fn): Use rint functions instead of
6447 __rint variants.
6448 * math/e_scalbf.c (invalid_fn): Likewise.
6449 * math/e_scalbl.c (invalid_fn): Likewise.
6450 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6451 Likewise.
6452 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6453 Likewise.
6454 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6455 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
6456 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6457 Likewise.
6458 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6459 Likewise.
6460 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6461 Likewise.
6462 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
6463 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
6464
6465 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6466 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
6467 New macro.
6468 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6469 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
6470 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6471 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
6472 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6473 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
6474 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6475 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
6476 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6477 && !NO_MATH_REDIRECT] (floor): Likewise.
6478 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
6479 header inclusion.
6480 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
6481 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6482 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6483 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
6484 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6485 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6486 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6487 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
6488 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
6489 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
6490 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
6491 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
6492 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6493 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6494 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
6495 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
6496 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
6497 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
6498 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
6499 Remove macro.
6500 [_ARCH_PWR5X] (__floorf): Likewise.
6501 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
6502 inline function.
6503 [__SSE4_1__] (__floorf): Likewise.
6504 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
6505 instead of __floor variants.
6506 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
6507 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
6508 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
6509 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
6510 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
6511 * math/w_tgamma_compat.c (__tgamma): Likewise.
6512 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
6513 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
6514 * math/w_tgammal_compat.c (__tgammal): Likewise.
6515 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
6516 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
6517 Likewise.
6518 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
6519 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
6520 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
6521 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6522 Likewise.
6523 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
6524 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
6525 Likewise.
6526 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
6527 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
6528 Likewise.
6529 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
6530 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
6531 Likewise.
6532 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
6533 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6534 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
6535 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
6536 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6537 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6538
6539 2018-09-12 Joseph Myers <joseph@codesourcery.com>
6540
6541 * elf/Makefile (modules-names-tests): New variable.
6542
6543 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6544
6545 * NEWS: Mention log2 improvements.
6546 * math/Makefile (type-double-routines): Add e_log2_data.
6547 * sysdeps/i386/fpu/e_log2_data.c: New file.
6548 * sysdeps/ia64/fpu/e_log2_data.c: New file.
6549 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
6550 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
6551 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
6552 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
6553 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
6554
6555 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6556
6557 * NEWS: Mention log improvement.
6558 * math/Makefile (type-double-routines): Add e_log_data.
6559 * sysdeps/i386/fpu/e_log_data.c: New file.
6560 * sysdeps/ia64/fpu/e_log_data.c: New file.
6561 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
6562 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
6563 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
6564 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
6565 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
6566 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
6567
6568 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
6569 Xuepeng Guo <xuepeng.guo@intel.com>
6570
6571 [BZ #23606]
6572 * sysdeps/i386/start.S: Include <sysdep.h>
6573 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
6574 enabled. Add cfi_undefined (eip).
6575
6576 2018-09-11 Joseph Myers <joseph@codesourcery.com>
6577
6578 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
6579 (MOVQ): Likewise.
6580 (EXTRACT_WORDS64): Likewise.
6581 (INSERT_WORDS64): Likewise.
6582 (GET_FLOAT_WORD): Likewise.
6583 (SET_FLOAT_WORD): Likewise.
6584
6585 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
6586 argument.
6587 (Config.build_gcc): Use --disable-libsanitizer for first GCC
6588 build, but not for second build if --full-gcc. Use
6589 --enable-languages=all for second build if --full-gcc.
6590 (get_parser): Add --full-gcc option.
6591 (main): Update call to Context.
6592
6593 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
6594
6595 [BZ #10797]
6596 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
6597 Single Quotation Mark).
6598 (thousands_sep): Likewise.
6599 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
6600 * localedata/locales/it_IT (thousands_sep): Use ".".
6601 (grouping): Use "3;3".
6602
6603 2018-09-10 Joseph Myers <joseph@codesourcery.com>
6604
6605 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
6606 x86_64 and i686 configs using --enable-obsolete-rpc
6607 --enable-obsolete-nsl.
6608
6609 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6610
6611 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6612
6613 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6614
6615 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
6616 Increment size of new_argv by one.
6617
6618 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
6619
6620 [BZ #17426]
6621 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
6622 * localedata/locales/ar_IN (d_fmt): Likewise.
6623 * localedata/locales/bhb_IN (d_fmt): Likewise.
6624 * localedata/locales/bho_IN (d_fmt): Likewise.
6625 * localedata/locales/bn_BD (d_fmt): Likewise.
6626 * localedata/locales/bn_IN (d_fmt): Likewise.
6627 * localedata/locales/doi_IN (d_fmt): Likewise.
6628 * localedata/locales/gu_IN (d_fmt): Likewise.
6629 * localedata/locales/hi_IN (d_fmt): Likewise.
6630 * localedata/locales/hne_IN (d_fmt): Likewise.
6631 * localedata/locales/kn_IN (d_fmt): Likewise.
6632 * localedata/locales/mag_IN (d_fmt): Likewise.
6633 * localedata/locales/mai_IN (d_fmt): Likewise.
6634 * localedata/locales/mjw_IN (d_fmt): Likewise.
6635 * localedata/locales/ml_IN (d_fmt): Likewise.
6636 * localedata/locales/mni_IN (d_fmt): Likewise.
6637 * localedata/locales/mr_IN (d_fmt): Likewise.
6638 * localedata/locales/pa_IN (d_fmt): Likewise.
6639 * localedata/locales/raj_IN (d_fmt): Likewise.
6640 * localedata/locales/sat_IN (d_fmt): Likewise.
6641 * localedata/locales/sd_IN (d_fmt): Likewise.
6642 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
6643 * localedata/locales/ta_IN (d_fmt): Likewise.
6644 * localedata/locales/ta_LK (d_fmt): Likewise.
6645 * localedata/locales/tcy_IN (d_fmt): Likewise.
6646 * localedata/locales/ur_IN (d_fmt): Likewise.
6647
6648 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
6649 * localedata/locales/ks_IN (d_fmt): Likewise.
6650 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
6651
6652 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
6653 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
6654 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
6655 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
6656
6657 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
6658
6659 * NEWS: Mention exp and exp2 improvements.
6660 * math/Makefile (libm-support): Remove t_exp.
6661 (type-double-routines): Add math_err and e_exp_data.
6662 * sysdeps/aarch64/libm-test-ulps: Update.
6663 * sysdeps/arm/libm-test-ulps: Update.
6664 * sysdeps/i386/fpu/e_exp_data.c: New file.
6665 * sysdeps/i386/fpu/math_err.c: New file.
6666 * sysdeps/i386/fpu/t_exp.c: Remove.
6667 * sysdeps/ia64/fpu/e_exp_data.c: New file.
6668 * sysdeps/ia64/fpu/math_err.c: New file.
6669 * sysdeps/ia64/fpu/t_exp.c: Remove.
6670 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
6671 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
6672 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
6673 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
6674 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
6675 * sysdeps/ieee754/dbl-64/math_config.h: New file.
6676 * sysdeps/ieee754/dbl-64/math_err.c: New file.
6677 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
6678 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
6679 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
6680 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
6681 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
6682 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
6683 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
6684 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6685 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6686
6687 2018-09-05 Joseph Myers <joseph@codesourcery.com>
6688
6689 * sysdeps/alpha/fpu/math_private.h: Remove.
6690
6691 * sysdeps/generic/math_private.h
6692 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
6693 Move this inline function ....
6694 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
6695 * include/math.h [!_ISOMAC]: To here....
6696
6697 2018-09-04 Joseph Myers <joseph@codesourcery.com>
6698
6699 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
6700 code ....
6701 [!FE_HAVE_ROUNDING_MODES]: And this code ....
6702 * include/fenv.h [!_ISOMAC]: ... to here.
6703 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
6704 (feraiseexcept): Likewise.
6705 * math/fromfp.h: Do not include <fenv_private.h>.
6706 * math/s_cexp_template.c: Likewise.
6707 * math/s_csin_template.c: Likewise.
6708 * math/s_csinh_template.c: Likewise.
6709 * math/s_ctan_template.c: Likewise.
6710 * math/s_ctanh_template.c: Likewise.
6711 * math/s_iseqsig_template.c: Likewise.
6712 * math/w_acos_compat.c: Likewise.
6713 * math/w_acosf_compat.c: Likewise.
6714 * math/w_acosl_compat.c: Likewise.
6715 * math/w_asin_compat.c: Likewise.
6716 * math/w_asinf_compat.c: Likewise.
6717 * math/w_asinl_compat.c: Likewise.
6718 * math/w_j0_compat.c: Likewise.
6719 * math/w_j0f_compat.c: Likewise.
6720 * math/w_j0l_compat.c: Likewise.
6721 * math/w_j1_compat.c: Likewise.
6722 * math/w_j1f_compat.c: Likewise.
6723 * math/w_j1l_compat.c: Likewise.
6724 * math/w_jn_compat.c: Likewise.
6725 * math/w_jnf_compat.c: Likewise.
6726 * math/w_log10_compat.c: Likewise.
6727 * math/w_log10f_compat.c: Likewise.
6728 * math/w_log10l_compat.c: Likewise.
6729 * math/w_log2_compat.c: Likewise.
6730 * math/w_log2f_compat.c: Likewise.
6731 * math/w_log2l_compat.c: Likewise.
6732 * math/w_log_compat.c: Likewise.
6733 * math/w_logf_compat.c: Likewise.
6734 * math/w_logl_compat.c: Likewise.
6735 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6736 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6737 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6738 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6739 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6740 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6741 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6742 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6743 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6744 * sysdeps/ieee754/k_standardl.c: Likewise.
6745 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6746 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6747 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6748 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6749 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6750 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6751 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6752 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6753 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6754 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6755 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6756 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6757 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6758 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6759 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6760 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6761 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6762 * math/w_ilogb_template.c: Include <fenv.h> instead of
6763 <fenv_private.h>.
6764 * math/w_llogb_template.c: Likewise.
6765 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6766 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6767
6768 2018-09-03 Joseph Myers <joseph@codesourcery.com>
6769
6770 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
6771 * math/fromfp.h: Include <fenv_private.h>.
6772 * math/math-narrow.h: Likewise.
6773 * math/s_cexp_template.c: Likewise.
6774 * math/s_csin_template.c: Likewise.
6775 * math/s_csinh_template.c: Likewise.
6776 * math/s_ctan_template.c: Likewise.
6777 * math/s_ctanh_template.c: Likewise.
6778 * math/s_iseqsig_template.c: Likewise.
6779 * math/w_acos_compat.c: Likewise.
6780 * math/w_acosf_compat.c: Likewise.
6781 * math/w_acosl_compat.c: Likewise.
6782 * math/w_asin_compat.c: Likewise.
6783 * math/w_asinf_compat.c: Likewise.
6784 * math/w_asinl_compat.c: Likewise.
6785 * math/w_ilogb_template.c: Likewise.
6786 * math/w_j0_compat.c: Likewise.
6787 * math/w_j0f_compat.c: Likewise.
6788 * math/w_j0l_compat.c: Likewise.
6789 * math/w_j1_compat.c: Likewise.
6790 * math/w_j1f_compat.c: Likewise.
6791 * math/w_j1l_compat.c: Likewise.
6792 * math/w_jn_compat.c: Likewise.
6793 * math/w_jnf_compat.c: Likewise.
6794 * math/w_llogb_template.c: Likewise.
6795 * math/w_log10_compat.c: Likewise.
6796 * math/w_log10f_compat.c: Likewise.
6797 * math/w_log10l_compat.c: Likewise.
6798 * math/w_log2_compat.c: Likewise.
6799 * math/w_log2f_compat.c: Likewise.
6800 * math/w_log2l_compat.c: Likewise.
6801 * math/w_log_compat.c: Likewise.
6802 * math/w_logf_compat.c: Likewise.
6803 * math/w_logl_compat.c: Likewise.
6804 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6805 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6806 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6807 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6808 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6809 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6810 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6811 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6812 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6813 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6814 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6815 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6816 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
6817 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
6818 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6819 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6820 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6821 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6822 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6823 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6824 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6825 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
6826 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6827 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
6828 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6829 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6830 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
6831 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
6832 * sysdeps/ieee754/float128/float128_private.h: Likewise.
6833 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6834 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6835 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6836 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
6837 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6838 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6839 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6840 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6841 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6842 * sysdeps/ieee754/k_standardl.c: Likewise.
6843 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6844 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6845 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6846 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6847 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
6848 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
6849 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6850 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6851 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6852 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6853 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6854 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6855 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
6856 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6857 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6858 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
6859 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
6860 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
6861 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
6862 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6863 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6864 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6865 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6866 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6867 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
6868 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
6869 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6870 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
6871 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
6872 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6873 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6874 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6875 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6876 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6877 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6878 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
6879 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6880 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6881 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6882 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6883 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6884 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6885 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6886 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6887 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6888 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6889 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6890 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6891 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6892 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6893 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6894 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6895 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6896 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6897 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6898 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6899 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6900 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6901 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6902 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6903 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6904 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6905 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6906 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6907 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6908 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6909 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6910 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6911 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6912 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6913 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6914
6915 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6916
6917 [BZ #20271]
6918 * include/stdio.h (__libc_fatal): Mention newline in comment.
6919 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
6920 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
6921 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6922 * nss/nsswitch.c (__nss_next2): Likewise.
6923 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
6924 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
6925 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
6926 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
6927 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
6928 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
6929 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
6930 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
6931 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
6932 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
6933 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
6934 * sysdeps/unix/sysv/linux/netlink_assert_response.c
6935 (__netlink_assert_response): Likewise.
6936
6937 2018-08-31 Joseph Myers <joseph@codesourcery.com>
6938
6939 * conform/glibcconform.py: New file.
6940 * conform/list-header-symbols.py: Likewise.
6941 * conform/list-header-symbols.pl: Remove.
6942 * conform/Makefile (tests-special): Only add linknamespace tests
6943 if [PYTHON].
6944 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
6945
6946 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
6947
6948 [BZ #23597]
6949 * support/Makefile (libsupport-routines): Add
6950 support_copy_file_range and xcopy_file_range.
6951 * support/support.h: Include <sys/types.h>.
6952 (support_copy_file_range): New prototype.
6953 * support/support_copy_file_range.c: New file. Copied and
6954 modified from io/copy_file_range-compat.c.
6955 * support/test-container.c (copy_one_file): Call xcopy_file_rang
6956 instead of copy_file_range.
6957 * support/xcopy_file_range.c: New file.
6958 * support/xunistd.h (xcopy_file_range): New prototype.
6959
6960 2018-08-30 Carlos O'Donell <carlos@redhat.com>
6961
6962 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
6963 xpthread_create and xpthread_join.
6964
6965 2018-08-30 Florian Weimer <fweimer@redhat.com>
6966
6967 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
6968
6969 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
6970
6971 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
6972 if malloc fails.
6973
6974 2018-08-29 Joseph Myers <joseph@codesourcery.com>
6975
6976 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
6977 and minus_oflow as non-finite.
6978
6979 2018-08-28 Joseph Myers <joseph@codesourcery.com>
6980
6981 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
6982 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
6983 moved to fenv_private.h except for ...
6984 (TOINT_INTRINSICS): Kept in math_private.h.
6985 (roundtoint): Likewise.
6986 (converttoint): Likewise.
6987 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
6988 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
6989 * sysdeps/arm/math_private.h: Remove.
6990 * sysdeps/generic/fenv_private.h: New file. Contents moved from
6991 ....
6992 * sysdeps/generic/math_private.h: ... this file. Include
6993 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
6994 Include <fenv_private.h>. Remove functions and macros moved to
6995 fenv_private.h.
6996 * sysdeps/i386/fpu/math_private.h: Remove.
6997 * sysdeps/mips/math_private.h: Move to ....
6998 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
6999 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7000 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7001 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7002 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7003 * sysdeps/powerpc/fpu/math_private.h: Do not include
7004 <fenv_private.h>.
7005 * sysdeps/riscv/rvf/math_private.h: Move to ....
7006 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7007 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7008 <fenv_private.h>.
7009 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7010 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7011 * sysdeps/sparc/fpu/math_private.h: Remove.
7012 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7013 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7014 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7015 <fenv_private.h>.
7016 * sysdeps/x86_64/fpu/math_private.h: Do not include
7017 <sysdeps/i386/fpu/fenv_private.h>.
7018
7019 2018-08-28 Florian Weimer <fweimer@redhat.com>
7020
7021 [BZ #23578]
7022 * posix/tst-regcomp-truncated.c: New file.
7023 * posix/Makefile (tests): Add it.
7024 (tst-regcomp-truncated.out): Depend on generated locales.
7025
7026 2018-08-28 Florian Weimer <fweimer@redhat.com>
7027
7028 * support/test-container.c (main): Treat unshare failure with
7029 EPERM as an unsupported test.
7030
7031 2018-08-28 Florian Weimer <fweimer@redhat.com>
7032
7033 [BZ #23520]
7034 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7035 * nscd/netgroupcache.c
7036 (addgetnetgrentX): Add tofreep parameter. Do not free
7037 heap-allocated buffer.
7038 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7039 (addgetnetgrentX_ignore): New function.
7040 (addgetnetgrent): Call it.
7041 (readdgetnetgrent): Likewise.
7042
7043 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7044
7045 * string/memmem.c: Use memcmp for first match.
7046
7047 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7048
7049 [BZ #17426]
7050 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7051
7052 2018-08-27 DJ Delorie <dj@redhat.com>
7053
7054 * support/Makefile (others): Don't list programs explicitly as a
7055 dependency of "others".
7056
7057 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7058
7059 * sysdeps/generic/math-tests-trap-force.h: New file.
7060 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7061 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7062 * sysdeps/powerpc/math-tests.h: Remove file.
7063 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7064
7065 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7066 Torvald Riegel <triegel@redhat.com>
7067
7068 [BZ #23538]
7069 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7070 Update r to include the set wake-request flag if waiters are
7071 remaining after spinning.
7072
7073 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7074
7075 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7076
7077 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7078
7079 [BZ #23578]
7080 regex: fix uninitialized memory access
7081 I introduced this bug into gnulib in commit
7082 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7083 eventually it was merged into glibc. The bug was found by
7084 project-repo <bugs@feusi.co> and reported here:
7085 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7086 Diagnosis and draft fix reported by Assaf Gordon here:
7087 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7088 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7089 * posix/regex_internal.c (build_wcs_upper_buffer):
7090 Fix bug when mbrtowc returns 0.
7091
7092 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7093
7094 * po/be.po: Update translation.
7095
7096 2018-08-24 DJ Delorie <dj@delorie.com>
7097
7098 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7099 $(libunwind).
7100
7101 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7102
7103 [BZ #23400]
7104 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7105 create temporary files in source tree.
7106
7107 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7108
7109 * sysdeps/generic/math-tests-trap.h: New file.
7110 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7111 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7112 * sysdeps/aarch64/math-tests.h: Remove file.
7113 * sysdeps/arm/math-tests.h: Likewise.
7114 * sysdeps/riscv/math-tests.h: Likewise.
7115 * sysdeps/aarch64/math-tests-trap.h: New file.
7116 * sysdeps/arm/math-tests-trap.h: Likewise.
7117 * sysdeps/riscv/math-tests-trap.h: Likewise.
7118
7119 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7120
7121 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7122 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7123 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7124 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7125 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7126 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7127 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7128 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7129 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7130 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7131 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7132 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7133 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7134 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7135 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7136 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7137 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7138 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7139
7140 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7141
7142 * sysdeps/generic/math-tests-exceptions.h: New file.
7143 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7144 (EXCEPTION_TESTS_float): Do not define here.
7145 (EXCEPTION_TESTS_double): Likewise.
7146 (EXCEPTION_TESTS_long_double): Likewise.
7147 (EXCEPTION_TESTS_float128): Likewise.
7148 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7149 Likewise.
7150 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7151 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7152 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7153 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7154 * sysdeps/mips/math-tests.h: Likewise.
7155 * sysdeps/nios2/math-tests.h: Likewise.
7156 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7157 (EXCEPTION_TESTS_float): Do not define here.
7158 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7159 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7160 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7161
7162 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7163
7164 * NEWS: Move optimized sinf entry to 2.29.
7165
7166 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7167
7168 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7169
7170 2018-08-22 DJ Delorie <dj@redhat.com>
7171
7172 * Makefile (testroot.pristine): New rules to initialize the
7173 test-in-container "testroot".
7174 * Makerules (all-testsuite): Add tests-container.
7175 * Rules (tests-expected): Add tests-container.
7176 (binaries-all-tests): Likewise.
7177 (tests-container): New, run these tests in the testroot container.
7178 * support/Makefile (others): Add *-container, support_paths.c,
7179 xmkdirp, and links-dso-program.
7180 * support/links-dso-program-c.c: New.
7181 * support/links-dso-program.cc: New.
7182 * support/test-container.c: New.
7183 * support/shell-container.c: New.
7184 * support/echo-container.c: New.
7185 * support/true-container.c: New.
7186 * support/xmkdirp.c: New.
7187 * support/xsymlink.c: New.
7188 * support/support_paths.c: New.
7189 * support/support.h: Add support paths prototypes.
7190 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7191
7192 * nss/tst-nss-test3.c: Convert to test-in-container.
7193 * nss/tst-nss-test3.root/: New.
7194
7195 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7196
7197 regex: port Gnulib code to z/OS POSIX environment
7198 Problem reported by Arnold Robbins in:
7199 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7200 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7201 Undef.
7202
7203 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7204
7205 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7206 (ROUNDING_TESTS_double): Remove.
7207 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7208 (ROUNDING_TESTS_double): Remove.
7209 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7210 (ROUNDING_TESTS_double): Remove.
7211 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7212 (ROUNDING_TESTS_float): Remove.
7213 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7214 (ROUNDING_TESTS_float): Remove.
7215 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7216 (ROUNDING_TESTS_float): Remove.
7217 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7218 !TEST_MATHVEC here.
7219 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7220 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7221
7222 * sysdeps/generic/math-tests-rounding.h: New file.
7223 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7224 (ROUNDING_TESTS_float): Do not define here.
7225 (ROUNDING_TESTS_double): Likewise.
7226 (ROUNDING_TESTS_long_double): Likewise.
7227 (ROUNDING_TESTS_float128): Likewise.
7228 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7229 (ROUNDING_TESTS_double): Undefine before defining.
7230 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7231 (ROUNDING_TESTS_double): Undefine before defining.
7232 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7233 (ROUNDING_TESTS_double): Undefine before defining.
7234 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7235 (ROUNDING_TESTS_float): Undefine before defining.
7236 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7237 (ROUNDING_TESTS_float): Undefine before defining.
7238 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7239 (ROUNDING_TESTS_float): Undefine before defining.
7240 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7241 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7242 not define here.
7243 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7244 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7245 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7246 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7247 (ROUNDING_TESTS_float): Do not define here.
7248 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7249 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7250 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7251 (ROUNDING_TESTS_float): Likewise.
7252 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7253 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7254 * sysdeps/mips/math-tests.h [__mips_soft_float]
7255 (ROUNDING_TESTS_float): Likewise.
7256 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7257 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7258 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7259 (ROUNDING_TESTS_double): Likewise.
7260 (ROUNDING_TESTS_long_double): Likewise.
7261
7262 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7263
7264 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7265 (PF_XDP): New macro.
7266 (AF_XDP): New macro.
7267 (SOL_XDP): New macro.
7268
7269 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7270
7271 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7272 (TCP_INQ): Likewise.
7273 (TCP_CM_INQ): Likewise.
7274 (TCP_REPAIR_ON): Likewise.
7275 (TCP_REPAIR_OFF): Likewise.
7276 (TCP_REPAIR_OFF_NO_WP): Likewise.
7277 (struct tcp_zerocopy_receive): New type.
7278
7279 2018-08-21 Florian Weimer <fweimer@redhat.com>
7280
7281 * support/support.h (support_descriptor_supports_holes): Declare.
7282 * support/Makefile (libsupport-routines): Add
7283 support_descriptor_supports_holes.
7284 * support/support_descriptor_supports_holes.c: New file.
7285 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
7286 and stop testing if holes are not supported.
7287 * io/test-lfs.c (do_prepare): Likewise.
7288 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
7289 Likewise.
7290 * timezone/tst-tzset.c (create_tz_file): Likewise.
7291 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7292 variable.
7293 (do_prepare): Set it.
7294 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7295
7296 2018-08-21 Florian Weimer <fweimer@redhat.com>
7297
7298 [BZ #17248]
7299 * Makeconfig (+cflags): Do not sort (and deduplicate).
7300
7301 2018-08-21 Florian Weimer <fweimer@redhat.com>
7302
7303 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7304 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7305
7306 2018-08-20 Florian Weimer <fweimer@redhat.com>
7307
7308 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
7309 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
7310
7311 2018-08-20 Joseph Myers <joseph@codesourcery.com>
7312
7313 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7314 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
7315 and ssi_arch members.
7316
7317 * elf/elf.c (NT_VMCOREDD): New macro.
7318 (AT_MINSIGSTKSZ): Likewise.
7319
7320 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7321
7322 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7323 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
7324 s_cosf-ppc64 and s_cosf-power8.
7325 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
7326 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7327 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7328 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7329 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7330 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7331 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
7332 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7333 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7334 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7335 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
7336 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7337
7338 2018-08-17 Florian Weimer <fweimer@redhat.com>
7339
7340 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7341
7342 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
7343
7344 * malloc/malloc.c (_int_malloc): Additional binning code checks.
7345
7346 2018-08-16 Florian Weimer <fweimer@redhat.com>
7347
7348 * configure.ac: Add --with-nonshared-cflags option.
7349 * config.make.in (extra-nonshared-cflags): Set variable.
7350 * Makeconfig (CFLAGS-.oS): Use it.
7351 * manual/install.texi (Configuring and compiling): Document
7352 --with-nonshared-cflags.
7353 * configure: Regenerate.
7354 * INSTALL: Likewise.
7355
7356 2018-08-16 Florian Weimer <fweimer@redhat.com>
7357
7358 * Makeconfig (ASFLAGS): Always append required assembler flags.
7359
7360 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
7361
7362 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
7363 (malloc_consolidate): Likewise.
7364
7365 2018-08-16 Pochang Chen <johnchen902@gmail.com>
7366
7367 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
7368
7369 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7370
7371 * benchtests/bench-strlen.c (do_test): Allocate buffers before
7372 every strlen call.
7373
7374 * benchtests/bench-strlen.c: Print performance numbers in json.
7375
7376 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7377
7378 * sysdeps/powerpc/powerpc64/multiarch/Makefile
7379 (sysdep_routines): Build strcmp-power9 and strncmp-power9
7380 only for little endian.
7381 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7382 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
7383 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
7384 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
7385 Add check for little endian.
7386 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7387 (__strcmp_power9): Add check for little endian.
7388 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
7389 Add check for little endian.
7390 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7391 (__strncmp_power9): Add check for little endian.
7392 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
7393 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
7394 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
7395 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
7396 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
7397
7398 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
7399
7400 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
7401 [!STRLEN](STRLEN): Set to __strlen.
7402 * sysdeps/aarch64/multiarch/strlen.c: New file.
7403 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
7404 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
7405 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7406 (__libc_ifunc_impl_list): Add strlen.
7407 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7408 strlen_generic and strlen_asimd.
7409
7410 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7411
7412 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
7413 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
7414 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
7415
7416 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7417
7418 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
7419
7420 2018-08-14 Florian Weimer <fweimer@redhat.com>
7421
7422 [BZ #23519]
7423 * include/stdio.h (__vfxprintf): Declare.
7424 * stdio-common/fxprintf.c (__vfxprintf): New function.
7425 (__fxprintf): Call it.
7426 * misc/err.c (convert_and_print): Remove function.
7427 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
7428 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
7429 * misc/Makefile (tests): Add tst-warn-wide.
7430 * misc/tst-warn-wide.c: New file.
7431
7432 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
7433 Szabolcs Nagy <szabolcs.nagy@arm.com>
7434
7435 * NEWS: Mention sinf, cosf, sincosf.
7436 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
7437 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
7438 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
7439 constants rather than including generic sincosf.h.
7440 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
7441 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
7442 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
7443 (reduced_cos): Remove.
7444 (sinf_poly): New function.
7445 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
7446
7447 2018-08-14 Florian Weimer <fweimer@redhat.com>
7448
7449 [BZ #23521]
7450 [BZ #23522]
7451 * nss/nss_files/files-alias.c (get_next_alias): During :include:
7452 processing, bail out if no room, and close the stream before
7453 returning ERANGE.
7454 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
7455 (tst-nss-files-alias-leak): Link with libdl.
7456 (tst-nss-files-alias-leak.out): Depend on nss_files.
7457
7458 * nss/tst-nss-files-alias-leak.c: New file.
7459
7460 2018-08-14 Florian Weimer <fweimer@redhat.com>
7461
7462 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
7463 server_user, stat_user.
7464
7465 2018-08-13 Joseph Myers <joseph@codesourcery.com>
7466
7467 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7468 version to 4.18.
7469 (io_pgetevents): New syscall.
7470 (rseq): Likewise.
7471
7472 * manual/install.texi (Configuring and compiling): Do not list
7473 tools used for testing pretty printers here.
7474 (Tools for Compilation): List Python, PExpect and GDB here.
7475 Update descriptions of uses of Perl and Python.
7476 * INSTALL: Regenerate.
7477
7478 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7479 version to 4.18.
7480
7481 2018-08-13 Florian Weimer <fweimer@redhat.com>
7482
7483 * misc/error.c (error): Add missing va_end call.
7484 (error_at_line): Likewise.
7485
7486 2018-08-13 Florian Weimer <fweimer@redhat.com>
7487
7488 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
7489
7490 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
7491
7492 * benchtests/scripts/benchout.schema.json (properties): Add
7493 new properties.
7494
7495 * benchtests/bench-skeleton.c (main): Add duration and
7496 iterations attributes.
7497
7498 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
7499
7500 regex: Gnulib unibyte RRI uses bytes not chars
7501 Adjust the non-glibc code to agree with what Gawk needs for
7502 rational range interpretation (RRI) for regular expression ranges.
7503 In unibyte locales, Gawk wants ranges to use the underlying byte
7504 rather than the character code point. This change does not affect
7505 glibc proper.
7506 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
7507 In unibyte locales, use the byte value rather than
7508 running it through btowc.
7509
7510 2018-08-10 Joseph Myers <joseph@codesourcery.com>
7511
7512 * sysdeps/generic/math-tests-snan.h: New file.
7513 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
7514 (SNAN_TESTS_float): Do not define here.
7515 (SNAN_TESTS_double): Likewise.
7516 (SNAN_TESTS_long_double): Likewise.
7517 (SNAN_TESTS_float128): Likewise.
7518 * sysdeps/i386/fpu/math-tests-snan.h: New file.
7519 * sysdeps/i386/fpu/math-tests.h: Remove file.
7520 * sysdeps/ia64/math-tests-snan.h: New file.
7521 * sysdeps/ia64/math-tests.h: Remove file.
7522 * sysdeps/x86/math-tests.h: Likewise.
7523 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
7524
7525 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7526 Szabolcs Nagy <szabolcs.nagy@arm.com>
7527
7528 * math/Makefile: Add s_sincosf_data.c.
7529 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
7530 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
7531 (sincosf_poly): Likewise.
7532 (reduce_small): Likewise.
7533 (reduce_large): Likewise.
7534 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
7535 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
7536 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
7537 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
7538
7539 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7540 Szabolcs Nagy <szabolcs.nagy@arm.com>
7541
7542 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
7543 (converttoint): Use lround.
7544 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
7545 document the semantics when TOINT_INTRINSICS is set.
7546 (converttoint): Likewise.
7547 (TOINT_RINT): Remove.
7548 (TOINT_SHIFT): Remove.
7549 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
7550 path.
7551
7552 2018-08-10 Florian Weimer <fweimer@redhat.com>
7553
7554 [BZ #23497]
7555 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
7556 function.
7557 (__old_getdents64): Use getdents64. Convert entries without
7558 moving them.
7559 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
7560 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
7561 tst-readdir64-compat.
7562
7563 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7564
7565 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
7566 Fix unwind.
7567
7568 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7569
7570 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
7571 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
7572 code to s390x-mcount.h and #include it.
7573 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
7574 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
7575 (__fentry__): Add.
7576
7577 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7578
7579 * stdlib/Versions: Remove __fentry__.
7580 * sysdeps/i386/Versions: Add __fentry__.
7581 * sysdeps/x86_64/Versions: Add __fentry__.
7582
7583 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7584
7585 * sysdeps/s390/Makefile: Register the new tests.
7586 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
7587 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
7588 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
7589 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
7590 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
7591 * sysdeps/s390/tst-dl-runtime.c: New file.
7592
7593 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7594
7595 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7596 Do not clobber R0.
7597
7598 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7599
7600 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7601 Do not clobber R0.
7602
7603 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7604
7605 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7606 Do not clobber R0.
7607
7608 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7609
7610 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7611 Do not clobber R0.
7612
7613 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7614
7615 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7616 Use symbolic offsets for stack variables.
7617
7618 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7619
7620 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7621 Use symbolic offsets for stack variables.
7622
7623 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7624
7625 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7626 Use symbolic offsets for stack variables.
7627
7628 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7629
7630 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7631 Use symbolic offsets for stack variables.
7632
7633 2018-08-09 Joseph Myers <joseph@codesourcery.com>
7634
7635 * math/gen-libm-test.py: New file.
7636 * math/gen-libm-test.pl: Remove.
7637 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
7638 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
7639 gen-libm-test.pl.
7640 ($(libm-test-c-noauto-obj)): Likewise.
7641 ($(libm-test-c-auto-obj)): Likewise.
7642 ($(libm-test-c-narrow-obj)): Likewise.
7643 (regen-ulps): Likewise.
7644 * math/README.libm-test: Update references to gen-libm-test.pl.
7645 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
7646 referencing gen-libm-test.pl.
7647 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
7648 * math/libm-test-support.c: Likewise.
7649 * math/libm-test-support.h: Likewise.
7650 * sysdeps/generic/libm-test-ulps: Likewise.
7651
7652 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
7653
7654 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
7655 Fix value.
7656
7657 2018-08-08 Joseph Myers <joseph@codesourcery.com>
7658
7659 * math/libm-test-nextdown.inc (do_test): Move comment to ....
7660 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
7661
7662 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
7663
7664 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
7665 symbols.
7666 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
7667 __pthread_setspecific): Add hidden proto.
7668 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
7669 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
7670
7671 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
7672
7673 * benchtests/bench-string.h (buf1_size, buf2_size): New
7674 variables.
7675 (init_sizes): New function.
7676 (test_init): Use it.
7677 (alloc_buf, exit_error): New functions.
7678 (alloc_bufs): Use ALLOC_BUF.
7679 (realloc_bufs): Remove.
7680 * benchtests/bench-memcmp.c (do_test): Adjust.
7681 * benchtests/bench-memset-large.c (do_test): Likewise.
7682 * benchtests/bench-memset-walk.c (do_test): Likewise.
7683 * benchtests/bench-memset.c (do_test): Likewise.
7684 * benchtests/bench-strncmp.c (do_test): Likewise.
7685
7686 2018-08-06 Andreas Schwab <schwab@suse.de>
7687
7688 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
7689 of CONST_THREAD_AREA.
7690
7691 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
7692
7693 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
7694 (STATE_SAVE_MASK): Likewise.
7695 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
7696 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
7697 (STATE_SAVE_MASK): Likewise.
7698 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
7699 instead of <cpu-features.h>.
7700
7701 2018-08-03 DJ Delorie <dj@redhat.com>
7702
7703 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
7704 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
7705
7706 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7707
7708 2018-08-03 Joseph Myers <joseph@codesourcery.com>
7709
7710 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
7711 after TEST_* calls.
7712 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
7713 * math/libm-test-logb.inc (logb_test_data): Likewise.
7714
7715 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
7716
7717 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
7718 * string/strstr.c (AVAILABLE): Likewise.
7719
7720 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7721
7722 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
7723 <init-arch.h>.
7724 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
7725 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
7726 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
7727
7728 2018-08-03 Carlos O'Donell <carlos@redhat.com>
7729
7730 * po/be.po: Update translation.
7731
7732 * po/be.po: Update translation.
7733
7734 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7735
7736 * sysdeps/x86/cpu-features-offsets.sym
7737 (rtld_global_ro_offsetof): Removed.
7738 (CPU_FEATURES_SIZE): Likewise.
7739 (CPUID_OFFSET): Likewise.
7740 (CPUID_SIZE): Likewise.
7741 (CPUID_EAX_OFFSET): Likewise.
7742 (CPUID_EBX_OFFSET): Likewise.
7743 (CPUID_ECX_OFFSET): Likewise.
7744 (CPUID_EDX_OFFSET): Likewise.
7745 (FAMILY_OFFSET): Likewise.
7746 (MODEL_OFFSET): Likewise.
7747 (FEATURE_OFFSET): Likewise.
7748 (FEATURE_SIZ): Likewise.
7749 (COMMON_CPUID_INDEX_1): Likewise.
7750 (COMMON_CPUID_INDEX_7): Likewise.
7751 (FEATURE_INDEX_1): Likewise.
7752 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
7753
7754 2018-08-02 Carlos O'Donell <carlos@redhat.com>
7755
7756 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
7757 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
7758 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
7759 (install-locales): Depend on install-locale-archive.
7760 (install-locale-archive): Define.
7761 (install-locale-files): Define.
7762 (build-one-locale): Define macro.
7763 * manual/install.texi (Running make install): Document.
7764 * manual/INSTALL: Regenerate.
7765
7766 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
7767
7768 * benchtests/scripts/compare_strings.py: Import traceback.
7769 (parse_file): Pretty-print error.
7770
7771 * NEWS: Mention the change.
7772 * elf/dl-tunables.list: Rename tune namespace to cpu.
7773 * sysdeps/powerpc/dl-tunables.list: Likewise.
7774 * sysdeps/x86/dl-tunables.list: Likewise.
7775 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
7776 cpu.name.
7777 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
7778 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
7779 * manual/README.tunables: Likewise.
7780 * manual/tunables.texi: Likewise.
7781 * sysdeps/powerpc/cpu-features.c: Likewise.
7782 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
7783 (init_cpu_features): Likewise.
7784 * sysdeps/x86/cpu-features.c: Likewise.
7785 * sysdeps/x86/cpu-features.h: Likewise.
7786 * sysdeps/x86/cpu-tunables.c: Likewise.
7787 * sysdeps/x86_64/Makefile: Likewise.
7788 * sysdeps/x86/dl-cet.c: Likewise.
7789
7790 2018-08-02 Joseph Myers <joseph@codesourcery.com>
7791
7792 [BZ #23479]
7793 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
7794 [__mips_hard_float].
7795 (FE_UNDERFLOW): Likewise.
7796 (FE_OVERFLOW): Likewise.
7797 (FE_DIVBYZERO): Likewise.
7798 (FE_INVALID): Likewise.
7799 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
7800 (FE_TOWARDZERO): Define only if [__mips_hard_float].
7801 (FE_UPWARD): Likewise.
7802 (FE_DOWNWARD): Likewise.
7803 (__FE_UNDEFINED): Define if [!__mips_hard_float]
7804 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
7805 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
7806 [__mips_hard_float].
7807 (FP_ROUNDMODE): Likewise.
7808 (FP_RND_NEAREST): Likewise.
7809 (FP_RND_ZERO): Likewise.
7810 (FP_RND_PINF): Likewise.
7811 (FP_RND_MINF): Likewise.
7812 (FP_EX_INVALID): Likewise.
7813 (FP_EX_OVERFLOW): Likewise.
7814 (FP_EX_UNDERFLOW): Likewise.
7815 (FP_EX_DIVZERO): Likewise.
7816 (FP_EX_INEXACT): Likewise.
7817 (FP_INIT_ROUNDMODE): Likewise.
7818 * sysdeps/mips/nofpu/fesetenv.c: New file.
7819 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
7820
7821 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7822
7823 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
7824 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
7825 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
7826 conditional on [FE_UPWARD].
7827
7828 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
7829
7830 regex: fix memory leak in Gnulib
7831 Problem and fix reported by Assaf Gordon in:
7832 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
7833 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
7834 range_ends members too, as they are defined in 'struct
7835 re_charset_t' even if not _LIBC. This affects only Gnulib.
7836
7837 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
7838
7839 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
7840 ...
7841 (get_common_indices): This.
7842 (init_cpu_features): Updated.
7843
7844 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7845
7846 * sysdeps/generic/math-tests-snan-payload.h: New file.
7847 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
7848 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
7849 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
7850 * sysdeps/generic/math-tests.h: Include
7851 <math-tests-snan-payload.h>.
7852 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7853 * sysdeps/hppa/math-tests.h: Remove file.
7854 * sysdeps/mips/math-tests.h [!__mips_nan2008]
7855 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7856 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
7857 Likewise.
7858
7859 * sysdeps/generic/math-tests-snan-cast.h: New file.
7860 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
7861 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
7862 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
7863 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
7864
7865 2018-08-01 Carlos O'Donel <carlos@redhat.com>
7866
7867 * version.h (RELEASE): Set to "development".
7868 (VERSION): Set to "2.28.9000".
7869 * NEWS (2.29): New section.
7870
7871 * version.h (RELEASE): Set to "stable".
7872 (VERSION): Set to "2.28".
7873 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
7874 * NEWS: Add the list of bugs fixed in 2.28.
7875
7876 * po/ca.po: Update to latest version.
7877 * po/cs.po: Likewise
7878 * po/da.po: Likewise
7879 * po/el.po: Likewise
7880 * po/eo.po: Likewise
7881 * po/es.po: Likewise
7882 * po/fi.po: Likewise
7883 * po/fr.po: Likewise
7884 * po/gl.po: Likewise
7885 * po/hu.po: Likewise
7886 * po/ia.po: Likewise
7887 * po/id.po: Likewise
7888 * po/it.po: Likewise
7889 * po/ja.po: Likewise
7890 * po/ko.po: Likewise
7891 * po/lt.po: Likewise
7892 * po/nb.po: Likewise
7893 * po/nl.po: Likewise
7894 * po/pt_BR.po: Likewise
7895 * po/ru.po: Likewise
7896 * po/rw.po: Likewise
7897 * po/sk.po: Likewise
7898 * po/sl.po: Likewise
7899 * po/tr.po: Likewise
7900 * po/zh_CN.po: Likewise
7901 * po/zh_TW.po: Likewise
7902
7903 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
7904
7905 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
7906 initialization...
7907 (init): ... before initializing libpthread.
7908
7909 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
7910 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
7911 (__mach_setup_tls): ... new function.
7912 (mach_setup_tls): New alias.
7913 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
7914 __mach_setup_thread.
7915 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
7916 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
7917 * mach/Versions [libc] (mach_setup_tls): Add symbol.
7918 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
7919
7920 2018-07-31 Carlos O'Donell <carlos@redhat.com>
7921
7922 * manual/install.texi: Update versions.
7923 * INSTALL: Regenerate.
7924
7925 * manual/contrib.texi (Contributors): Update contributions.
7926
7927 2018-07-31 Carlos O'Donell <carlos@redhat.com>
7928
7929 * po/be.po: Update translations.
7930
7931 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7932
7933 * sysdeps/sh/libm-test-ulps: Update.
7934
7935 2018-07-30 Carlos O'Donell <carlos@redhat.com>
7936
7937 * po/bg.po: Update translations.
7938 * po/de.po: Likewise.
7939 * po/hr.po: Likewise.
7940 * po/pt_BR.po: Likewise.
7941 * po/sv.po: Likewise.
7942 * po/vi.po: Likewise.
7943
7944 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
7945
7946 [BZ #23467]
7947 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
7948 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
7949 (CFLAGS-tst-cet-property-1.o): New.
7950 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
7951 ($(objpfx)tst-cet-property-2): Likewise.
7952 ($(objpfx)tst-cet-property-2.out): Likewise.
7953 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
7954 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
7955 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
7956 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
7957 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
7958
7959 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
7960
7961 [BZ #23458]
7962 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
7963
7964 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
7965
7966 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
7967 __sbrk): Do not set attribute_hidden.
7968 * sysdeps/mach/hurd/not-errno.h: New file.
7969 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
7970 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
7971
7972 2018-07-27 Carlos O'Donell <carlos@redhat.com>
7973
7974 * po/uk.po: Update translations.
7975 * po/cs.po: Likewise.
7976 * po/pl.po: Likewise.
7977
7978 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
7979
7980 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
7981 parse beyond the note end.
7982
7983 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7984
7985 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
7986 kernel does not support OFD locks.
7987 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
7988
7989 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
7990
7991 * sysdeps/mach/hurd/Versions (libc): Make __access and
7992 __access_noerrno external so they can override the ld symbols.
7993 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
7994 __writev, __open64, __access_noerrno extern so they can be overrided.
7995 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
7996 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
7997
7998 2018-07-26 Carlos O'Donell <carlos@redhat.com>
7999
8000 * po/libc.pot: Regenerate.
8001
8002 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8003
8004 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8005
8006 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8007
8008 [BZ #23459]
8009 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8010 function.
8011 (init_cpu_features): Call get_extended_indices for both Intel
8012 and AMD CPUs.
8013 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8014 Remove "for AMD" comment.
8015
8016 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8017
8018 [BZ # 23456]
8019 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8020 COMMON_CPUID_INDEX_80000001.
8021
8022 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8023
8024 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8025 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8026
8027 2018-07-26 Florian Weimer <fweimer@redhat.com>
8028
8029 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8030 aliases for symbols not in the implementation namespace.
8031
8032 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8033
8034 [BZ #23393]
8035 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8036 lowercase in LATIN script.
8037 * localedata/Makefile (test-input): Add en_US.UTF-8.
8038 * localedata/en_US.UTF-8.in: New file.
8039 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8040 and restore old tests.
8041 * posix/tst-regexloc.c (do_test): Add back range expression test.
8042
8043 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8044
8045 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8046
8047 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8048
8049 * nptl/threads.h: Move to ...
8050 * sysdeps/nptl/threads.h: ... here.
8051 * sysdeps/hurd/stdc-predef.h: New file.
8052
8053 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8054
8055 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8056 tst-cet-setcontext-1 if CET is enabled.
8057 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8058 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8059
8060 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8061
8062 * include/threads.h: Move to ...
8063 * sysdeps/nptl/threads.h: ... here.
8064 * sysdeps/htl/threads.h: New file.
8065 * conform/Makefile (linknamespace-libs-ISO11): Use
8066 static-thread-library instead of linking libpthread.
8067 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8068
8069 2018-07-25 Florian Weimer <fweimer@redhat.com>
8070
8071 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8072 nanoseconds into seconds.
8073 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8074 (do_test): Likewise.
8075 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8076 (do_test): Likewise. Avoid nanosecond overflow and spurious
8077 timeouts due to system load.
8078 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8079 (child_wait): Increment it.
8080 (do_test): Wait as long as necessary until all expected threads
8081 have arrived.
8082
8083 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8084 H.J. Lu <hongjiu.lu@intel.com>
8085
8086 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8087 __ssp.
8088 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8089 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8090 (__push___start_context): New.
8091 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8092 <asm/prctl.h>.
8093 (__getcontext): Record the current shadow stack base. Save the
8094 caller's shadow stack pointer and base.
8095 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8096 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8097 (__push___start_context): New prototype.
8098 (__makecontext): Call __push___start_context to allocate a new
8099 shadow stack, push __start_context onto the new stack as well
8100 as the new shadow stack.
8101 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8102 <asm/prctl.h>.
8103 (__setcontext): Restore the target shadow stack.
8104 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8105 <asm/prctl.h>.
8106 (__swapcontext): Record the current shadow stack base. Save
8107 the caller's shadow stack pointer and base. Restore the target
8108 shadow stack.
8109 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8110 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8111 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8112
8113 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8114
8115 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8116 tst-setcontext8 and tst-setcontext9.
8117 * stdlib/tst-setcontext6.c: New file.
8118 * stdlib/tst-setcontext7.c: Likewise.
8119 * stdlib/tst-setcontext8.c: Likewise.
8120 * stdlib/tst-setcontext9.c: Likewise.
8121
8122 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8123
8124 * stdlib/Makefile ((tests): Add tst-setcontext5.
8125 * stdlib/tst-setcontext5.c: New file.
8126
8127 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8128
8129 * stdlib/Makefile (tests): Add tst-setcontext4.
8130 * stdlib/tst-setcontext4.c: New file.
8131
8132 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8133
8134 * stdlib/Makefile (tests): Add tst-swapcontext1.
8135 * stdlib/tst-swapcontext1.c: New test.
8136
8137 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8138
8139 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8140 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8141 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8142 and tst-cet-legacy-4c.
8143 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8144 and tst-cet-legacy-mod-4.
8145 (CFLAGS-tst-cet-legacy-2.c): New.
8146 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8147 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8148 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8149 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8150 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8151 ($(objpfx)tst-cet-legacy-1): Likewise.
8152 ($(objpfx)tst-cet-legacy-2): Likewise.
8153 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8154 ($(objpfx)tst-cet-legacy-2a): Likewise.
8155 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8156 ($(objpfx)tst-cet-legacy-4): Likewise.
8157 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8158 ($(objpfx)tst-cet-legacy-4a): Likewise.
8159 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8160 (tst-cet-legacy-4a-ENV): Likewise.
8161 ($(objpfx)tst-cet-legacy-4b): Likewise.
8162 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8163 (tst-cet-legacy-4b-ENV): Likewise.
8164 ($(objpfx)tst-cet-legacy-4c): Likewise.
8165 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8166 (tst-cet-legacy-4c-ENV): Likewise.
8167 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8168 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8169 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8170 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8171 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8172 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8173 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8174 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8175 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8176 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8177 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8178
8179 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8180
8181 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8182 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8183 with ssp_base.
8184 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8185 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8186 with ssp_base.
8187
8188 2018-07-25 Andreas Schwab <schwab@suse.de>
8189
8190 [BZ #23442]
8191 * locale/weightwc.h (findidx): Handle the case where usrc is a
8192 prefix of cp but one character too short.
8193
8194 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8195
8196 * NEWS: Add ISO C threads addition.
8197
8198 2018-07-24 Florian Weimer <fweimer@redhat.com>
8199
8200 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8201 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8202 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8203 4.13.
8204
8205 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8206
8207 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8208 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8209 <sys/prctl.h> and <asm/prctl.h>.
8210 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8211 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8212 and <asm/prctl.h>.
8213 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8214 ARCH_CET_LEGACY_BITMAP.
8215 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8216 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8217 * sysdeps/x86/libc-start.c: Include <startup.h>.
8218
8219 2018-07-24 Florian Weimer <fweimer@redhat.com>
8220
8221 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8222 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8223
8224 2018-07-24 Rical Jasan <rj@2c3t.io>
8225 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8226 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8227
8228 [BZ #14092]
8229 * manual/debug.texi: Update adjacent chapter name.
8230 * manual/probes.texi: Likewise.
8231 * manual/threads.texi (ISO C Threads): New section.
8232 (POSIX Threads): Convert to a section.
8233
8234 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8235 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8236
8237 [BZ# 14092]
8238 * nptl/Makefile (tests): Add new test files.
8239 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8240 * nptl/tst-cnd-basic.c: Likewise.
8241 * nptl/tst-cnd-broadcast.c: Likewise.
8242 * nptl/tst-cnd-timedwait.c: Likewise.
8243 * nptl/tst-mtx-basic.c: Likewise.
8244 * nptl/tst-mtx-recursive.c: Likewise.
8245 * nptl/tst-mtx-timedlock.c: Likewise.
8246 * nptl/tst-mtx-trylock.c: Likewise.
8247 * nptl/tst-thrd-basic.c: Likewise.
8248 * nptl/tst-thrd-detach.c: Likewise.
8249 * nptl/tst-thrd-sleep.c: Likewise.
8250 * nptl/tst-tss-basic.c: Likewise.
8251
8252 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8253
8254 [BZ #14092]
8255 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8256 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8257 symbols.
8258 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8259 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8260 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8261 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8262 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8263 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8264 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8265 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8266 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8267 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8268 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8269 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8270 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8271 Likewise.
8272 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8273 Likewise.
8274 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8275 Likewise.
8276 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8277 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8278 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8279 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8280 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8281 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8282 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8283 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8284 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8285 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
8286 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
8287 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
8288 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
8289 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
8290 Likewise.
8291 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8292 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8293 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8294 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8295 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8296 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8297 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8298 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8299 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8300 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8301 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8302 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8303 ikewise.
8304 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8305 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8306 Likewise.
8307 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8308 Likewise.
8309 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8310 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8311 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8312 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8313 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8314 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8315 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8316 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8317
8318 [BZ #14092]
8319 * conform/data/threads.h-data (thread_local): New macro.
8320 (TSS_DTOR_ITERATIONS): Likewise.
8321 (tss_t): New type.
8322 (tss_dtor_t): Likewise.
8323 (tss_create): New function.
8324 (tss_get): Likewise.
8325 (tss_set): Likewise.
8326 (tss_delete): Likewise.
8327 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
8328 tss_get, and tss_set objects.
8329 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8330 * nptl/tss_create.c: New file.
8331 * nptl/tss_delete.c: Likewise.
8332 * nptl/tss_get.c: Likewise.
8333 * nptl/tss_set.c: Likewise.
8334 * sysdeps/nptl/threads.h (thread_local): New define.
8335 (TSS_DTOR_ITERATIONS): Likewise.
8336 (tss_t): New typedef.
8337 (tss_dtor_t): Likewise.
8338 (tss_create): New prototype.
8339 (tss_get): Likewise.
8340 (tss_set): Likewise.
8341 (tss_delete): Likewise.
8342
8343 [BZ #14092]
8344 * conform/data/threads.h-data (cnd_t): New type.
8345 (cnd_init): New function.
8346 (cnd_signal): Likewise.
8347 (cnd_broadcast): Likewise.
8348 (cnd_wait): Likewise.
8349 (cnd_timedwait): Likewise.
8350 (cnd_destroy): Likewise.
8351 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
8352 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
8353 object.
8354 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8355 * nptl/cnd_broadcast.c: New file.
8356 * nptl/cnd_destroy.c: Likewise.
8357 * nptl/cnd_init.c: Likewise.
8358 * nptl/cnd_signal.c: Likewise.
8359 * nptl/cnd_timedwait.c: Likewise.
8360 * nptl/cnd_wait.c: Likewise.
8361 * sysdeps/nptl/threads.h (cnd_t): New type.
8362 (cnd_init): New prototype.
8363 (cnd_signa): Likewise.
8364 (cnd_broadcast): Likewise.
8365 (cnd_wait): Likewise.
8366 (cnd_timedwait): Likewise.
8367 (cnd_destroy): Likewise.
8368
8369 [BZ #14092]
8370 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
8371 (once_flag): New type.
8372 (call_once): New function.
8373 * nptl/Makefile (libpthread-routines): Add call_once object.
8374 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
8375 * nptl/call_once.c: New file.
8376 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
8377 (once_flag): New type.
8378 (call_once): New prototype.
8379
8380 [BZ #14092]
8381 * conform/data/threads.h-data (mtx_plain): New constant.
8382 (mtx_recursive): Likewise.
8383 (mtx_timed): Likewise.
8384 (mtx_t): New type.
8385 (mtx_init): New function.
8386 (mtx_lock): Likewise.
8387 (mtx_timedlock): Likewise.
8388 (mtx_trylock): Likewise.
8389 (mtx_unlock): Likewise.
8390 (mtx_destroy): Likewise.
8391 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
8392 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
8393 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
8394 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
8395 * nptl/mtx_destroy.c: New file.
8396 * nptl/mtx_init.c: Likewise.
8397 * nptl/mtx_lock.c: Likewise.
8398 * nptl/mtx_timedlock.c: Likewise.
8399 * nptl/mtx_trylock.c: Likewise.
8400 * nptl/mtx_unlock.c: Likewise.
8401 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
8402 (mtx_recursive): Likewise.
8403 (mtx_timed): Likewise.
8404 (mtx_t): New type.
8405 (mtx_init): New prototype.
8406 (mtx_lock): Likewise.
8407 (mtx_timedlock): Likewise.
8408 (mtx_trylock): Likewise.
8409 (mtx_unlock): Likewise.
8410 (mtx_destroy): Likewise.
8411
8412 [BZ #14092]
8413 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
8414 (linknamespace-libs-ISO11): Add libpthread.a.
8415 * conform/data/threads.h-data: New file: add C11 thrd_* types and
8416 functions.
8417 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
8418 * nptl/Makefile (headers): Add threads.h.
8419 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
8420 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
8421 thrd_yield.
8422 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
8423 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
8424 thrd_join, thrd_sleep, and thrd_yield symbols.
8425 * nptl/descr.h (struct pthread): Add c11 field.
8426 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
8427 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
8428 routine with expected function prototype.
8429 (__pthread_create_2_1): Add C11 threads check based on attribute
8430 value.
8431 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
8432 * nptl/thrd_create.c: New file.
8433 * nptl/thrd_current.c: Likewise.
8434 * nptl/thrd_detach.c: Likewise.
8435 * nptl/thrd_equal.c: Likewise.
8436 * nptl/thrd_exit.c: Likewise.
8437 * nptl/thrd_join.c: Likewise.
8438 * nptl/thrd_priv.h: Likewise.
8439 * nptl/thrd_sleep.c: Likewise.
8440 * nptl/thrd_yield.c: Likewise.
8441 * include/threads.h: Likewise.
8442
8443 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8444
8445 * bits/indirect-return.h: New file.
8446 * misc/sys/cdefs.h (__glibc_has_attribute): New.
8447 * sysdeps/x86/bits/indirect-return.h: Likewise.
8448 * stdlib/Makefile (headers): Add bits/indirect-return.h.
8449 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
8450 (swapcontext): Add __INDIRECT_RETURN.
8451 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
8452 (prepare_test_buffer): Use it.
8453
8454 2018-07-24 Andreas Schwab <schwab@suse.de>
8455
8456 [BZ #23448]
8457 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
8458 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
8459
8460 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8461
8462 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
8463 Redefine if shadow stack is enabled.
8464 (SYSCALL_ERROR_LABEL): Likewise.
8465 (__vfork): Pop shadow stack and jump back to to caller directly
8466 when shadow stack is in use.
8467 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
8468 Redefine if shadow stack is enabled.
8469 (SYSCALL_ERROR_LABEL): Likewise.
8470 (__vfork): Pop shadow stack and jump back to to caller directly
8471 when shadow stack is in use.
8472
8473 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8474
8475 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
8476 enabled.
8477 (foo): Likewise.
8478 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
8479 (foo): Likewise.
8480
8481 2018-07-20 Joseph Myers <joseph@codesourcery.com>
8482
8483 * scripts/build-many-glibcs.py (Context.checkout): Default
8484 binutils version to 2.31 branch.
8485
8486 2018-07-20 Zong Li <zong@andestech.com>
8487
8488 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
8489 URL of gcc's tarball.
8490
8491 2018-07-20 Florian Weimer <fweimer@redhat.com>
8492
8493 [BZ #23396]
8494 * posix/regcomp.c (build_equiv_class): When comparing weights, do
8495 not compare an extra byte after the end of the weights.
8496
8497 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
8498
8499 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
8500 to 1.
8501 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
8502 hidden prototypes.
8503 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
8504 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
8505 * scripts/check-execstack.awk: Consider `xfail' variable containing a
8506 list of libraries whose stack executability is expected.
8507 * elf/Makefile ($(objpfx)check-execstack.out): Pass
8508 $(check-execstack-xfail) to check-execstack.awk through `xfail'
8509 variable.
8510 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
8511 libc.so libpthread.so.
8512
8513 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
8514
8515 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
8516 SOCK_NONBLOCK.
8517 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
8518 and SOCK_NONBLOCK.
8519 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
8520 implement __pipe2.
8521 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
8522
8523 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8524
8525 * benchtests/scripts/compare_bench.py (__main__): use the argparse
8526 library to improve command line parsing.
8527 (__main__): make schema file as optional parameter (--schema),
8528 defaulting to benchtests/scripts/benchout.schema.json.
8529 (main): move out of the parsing stuff to __main_  and leave it
8530 only as caller of main comparison functions.
8531
8532 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
8533
8534 * NEWS: Add a note for Intel CET status.
8535 * manual/install.texi: Likewise.
8536 * INSTALL: Regenerated.
8537
8538 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
8539
8540 [BZ #23140]
8541 * localedata/locales/oc_FR (mon): Rename to...
8542 (alt_mon): This, then update October (typo fix).
8543 (mon): New content (genitive case, month names preceded by
8544 "de" or "d’").
8545
8546 [BZ #23422]
8547 * localedata/locales/oc_FR (abday): Update all items.
8548 (day): Update Wednesday and Saturday (typo fixes).
8549 (abmon): Update all items, except May.
8550 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
8551 (LC_IDENTIFICATION): Bump the revision number and date.
8552 Keep the "category" entries in alphabetic order.
8553 (LC_ADDRESS): Remove no longer needed comment.
8554 (LC_COLLATE): Use “copy "ca_ES"”.
8555 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
8556 "name_mrs".
8557
8558 2018-07-18 Joseph Myers <joseph@codesourcery.com>
8559
8560 * grp/tst_fgetgrent.c: Include <unistd.h>.
8561 (main): Use mkstemp instead of tmpnam.
8562 * io/test-utime.c (main): Likewise.
8563 * posix/annexc.c (macrofile): Change to modifiable array.
8564 (main): Remove macrofile here.
8565 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8566 macrofile here.
8567 (check_header): Do not remove macrofile here.
8568 * posix/bug-getopt1.c: Include <stdlib.h>.
8569 (do_test): Use mkstemp instead of tmpnam.
8570 * posix/bug-getopt2.c: Include <stdlib.h>.
8571 (do_test): Use mkstemp instead of tmpnam.
8572 * posix/bug-getopt3.c: Include <stdlib.h>.
8573 (do_test): Use mkstemp instead of tmpnam.
8574 * posix/bug-getopt4.c: Include <stdlib.h>.
8575 (do_test): Use mkstemp instead of tmpnam.
8576 * posix/bug-getopt5.c: Include <stdlib.h>.
8577 (do_test): Use mkstemp instead of tmpnam.
8578 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
8579 (main): Use mkstemp instead of tmpnam.
8580 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
8581 (main): Use mkstemp instead of tmpnam.
8582 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
8583 (main): use mkstemp instead of tmpnam.
8584 * stdlib/isomac.c (macrofile): Change to modifiable array.
8585 (main): Remove macrofile here.
8586 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8587 macrofile here.
8588 (check_header): Do not remove macrofile here.
8589
8590 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8591
8592 * manual/tunables.texi: Document glibc.tune.x86_ibt and
8593 glibc.tune.x86_shstk.
8594
8595 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8596
8597 * NEWS: Mention --enable-cet.
8598 * manual/install.texi: Document --enable-cet.
8599 * INSTALL: Regenerated.
8600
8601 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8602
8603 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
8604 Add _CET_NOTRACK before indirect jump to jump table.
8605
8606 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8607
8608 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
8609 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8610 to jump table.
8611
8612 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8613
8614 * sysdeps/i386/i686/multiarch/strcat-sse2.S
8615 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8616 to jump table.
8617
8618 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8619
8620 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
8621 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8622 to jump table.
8623
8624 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8625
8626 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
8627 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8628 to jump table.
8629
8630 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8631
8632 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
8633 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8634 to jump table.
8635 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
8636
8637 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8638
8639 * sysdeps/i386/i686/multiarch/memcmp-sse4.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/memset-sse2.S
8646 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8647 to jump table.
8648
8649 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8650
8651 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
8652 indirect jump to jump table.
8653
8654 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8655
8656 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
8657 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8658 to jump table.
8659 (MEMCPY): Likewise.
8660
8661 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8662
8663 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
8664 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8665 to jump table.
8666 (MEMCPY): Likewise.
8667
8668 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8669
8670 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8671 _CET_NOTRACK before indirect jump to jump table.
8672
8673 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8674
8675 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
8676 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8677 to jump table.
8678
8679 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8680
8681 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
8682 indirect jump to jump table.
8683
8684 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
8685
8686 [BZ #22241]
8687 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
8688 (LOCALES): Likewise.
8689 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
8690 * localedata/locales/sah_RU: New file.
8691 * localedata/sah_RU.UTF-8.in: New file.
8692
8693 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8694
8695 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
8696 "sysdep.h".
8697 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8698 _CET_ENDBR to indirect jump targets and adjust jump destination
8699 for _CET_ENDBR.
8700 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
8701 "sysdep.h".
8702 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8703 _CET_ENDBR to indirect jump targets and adjust jump destination
8704 for _CET_ENDBR.
8705 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
8706 "sysdep.h".
8707 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
8708 _CET_ENDBR to indirect jump targets and adjust jump destination
8709 for _CET_ENDBR.
8710
8711 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8712
8713 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8714 _CET_ENDBR.
8715
8716 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8717
8718 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
8719 _CET_ENDBR.
8720 (_dl_tlsdesc_undefweak): Likewise.
8721 (_dl_tlsdesc_dynamic): Likewise.
8722 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
8723 (_dl_tlsdesc_resolve_rel): Likewise.
8724 (_dl_tlsdesc_resolve_rela): Likewise.
8725 (_dl_tlsdesc_resolve_hold): Likewise.
8726 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
8727 (_dl_tlsdesc_undefweak): Likewise.
8728 (_dl_tlsdesc_dynamic): Likewise.
8729 (_dl_tlsdesc_resolve_rela): Likewise.
8730 (_dl_tlsdesc_resolve_hold): Likewise.
8731
8732 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8733
8734 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
8735 (_fini): Likewise.
8736 * sysdeps/x86_64/crti.S (_init): Likewise.
8737 (_fini): Likewise.
8738
8739 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
8740
8741 [BZ #23140]
8742 * localedata/locales/os_RU (mon): Rename to...
8743 (alt_mon): This.
8744 (mon): Import from CLDR (genitive case).
8745
8746 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8747
8748 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
8749 cet-tunables.h> when CET is enabled.
8750
8751 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
8752
8753 [BZ #21598]
8754 * configure.ac: Add --enable-cet.
8755 * configure: Regenerated.
8756 * elf/Makefille (all-built-dso): Add a comment.
8757 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
8758 Include <dl-prop.h>.
8759 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
8760 segment.
8761 * elf/dl-open.c: Include <dl-prop.h>.
8762 (dl_open_worker): Call _dl_open_check.
8763 * elf/rtld.c: Include <dl-prop.h>.
8764 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
8765 _rtld_main_check.
8766 * sysdeps/generic/dl-prop.h: New file.
8767 * sysdeps/i386/dl-cet.c: Likewise.
8768 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
8769 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
8770 * sysdeps/x86/cet-tunables.h: Likewise.
8771 * sysdeps/x86/check-cet.awk: Likewise.
8772 * sysdeps/x86/configure: Likewise.
8773 * sysdeps/x86/configure.ac: Likewise.
8774 * sysdeps/x86/dl-cet.c: Likewise.
8775 * sysdeps/x86/dl-procruntime.c: Likewise.
8776 * sysdeps/x86/dl-prop.h: Likewise.
8777 * sysdeps/x86/libc-start.h: Likewise.
8778 * sysdeps/x86/link_map.h: Likewise.
8779 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
8780 _CET_ENDBR.
8781 (_dl_runtime_profile): Likewise.
8782 (_dl_runtime_resolve_shstk): New.
8783 (_dl_runtime_profile_shstk): Likewise.
8784 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
8785 if CET is enabled.
8786 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
8787 (CFLAGS-.os): Likewise.
8788 (CFLAGS-.op): Likewise.
8789 (CFLAGS-.oS): Likewise.
8790 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
8791 is enabled.
8792 (tests-special): Add $(objpfx)check-cet.out.
8793 (cet-built-dso): New.
8794 (+$(cet-built-dso:=.note)): Likewise.
8795 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
8796 ($(objpfx)check-cet.out): New.
8797 (generated): Add check-cet.out.
8798 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
8799 <cet-tunables.h>.
8800 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
8801 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8802 (init_cpu_features): Call get_cet_status to check CET status
8803 and update dl_x86_feature_1 with CET status. Call
8804 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
8805 (set_x86_shstk). Disable and lock CET in libc.a.
8806 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
8807 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
8808 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8809 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
8810 (_CET_ENDBR): Define if not defined.
8811 (ENTRY): Add _CET_ENDBR.
8812 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
8813 x86_shstk.
8814 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
8815 _CET_ENDBR.
8816 (_dl_runtime_profile): Likewise.
8817
8818 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
8819
8820 [BZ #21895]
8821 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
8822 restore r2 on longjmp.
8823 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
8824 test list.
8825 Added rules to build test tst-setjmp-bug21895-static.
8826 Added module setjmp-bug21895 and rules to build a shared object from it.
8827 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
8828 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
8829
8830 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
8831
8832 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
8833 * benchtests/bench-strstr.c: Likewise.
8834 * string/memmem.c (FASTSEARCH): Define.
8835 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
8836 Add support for FASTSEARCH.
8837 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
8838 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
8839 (FASTSEARCH): Define.
8840 * string/test-strcasestr.c: Rename __strnlen to strnlen.
8841 * string/test-strstr.c: Likewise.
8842
8843 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
8844
8845 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
8846 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
8847
8848 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
8849 H.J. Lu <hongjiu.lu@intel.com>
8850
8851 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
8852 (__longjmp): Restore shadow stack pointer if shadow stack is
8853 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8854 isn't defined for __longjmp_cancel.
8855 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
8856 (_setjmp): Save shadow stack pointer if shadow stack is enabled
8857 and SHADOW_STACK_POINTER_OFFSET is defined.
8858 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
8859 (setjmp): Save shadow stack pointer if shadow stack is enabled
8860 and SHADOW_STACK_POINTER_OFFSET is defined.
8861 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
8862 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8863 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8864 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
8865 <jmp_buf-ssp.h>.
8866 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8867 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8868 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
8869 Remove jmp_buf-ssp.sym.
8870 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8871 <jmp_buf-ssp.h>.
8872 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8873 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8874 * sysdeps/x86/Makefile (gen-as-const-headers): Add
8875 jmp_buf-ssp.sym.
8876 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
8877 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
8878 (__longjmp): Restore shadow stack pointer if shadow stack is
8879 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8880 isn't defined for __longjmp_cancel.
8881 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
8882 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8883 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8884
8885 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
8886
8887 [BZ #22563]
8888 * nptl/pthread_create.c: Include <tls-setup.h>.
8889 (__pthread_create_2_1): Call tls_setup_tcbhead.
8890 * sysdeps/generic/tls-setup.h: New file.
8891 * sysdeps/x86/nptl/tls-setup.h: Likewise.
8892 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
8893 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
8894 Likewise.
8895 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
8896 to feature_1.
8897 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
8898 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
8899 (X86_FEATURE_1_SHSTK): Likewise.
8900 (CET_ENABLED): Likewise.
8901 (IBT_ENABLED): Likewise.
8902 (SHSTK_ENABLED): Likewise.
8903
8904 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
8905
8906 [BZ #23208]
8907 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
8908 (LOCALES): Likewise.
8909 * localedata/dsb_DE.UTF-8.in: New file.
8910 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
8911
8912 2018-07-12 Florian Weimer <fweimer@redhat.com>
8913
8914 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
8915 __mprotect, not mprotect.
8916
8917 2018-07-11 Florian Weimer <fweimer@redhat.com>
8918
8919 * io/Makefile (headers): Add bits/statx.h.
8920
8921 2018-07-10 Mike FABIAN <mfabian@redhat.com>
8922
8923 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
8924 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
8925 and headers.
8926 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
8927 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
8928 for utf8_gen.py
8929
8930 2018-07-10 Florian Weimer <fweimer@redhat.com>
8931
8932 * io/Makefile (routines): Add statx.
8933 (tests-internal): Add tst-statx.
8934 * io/Versions (GLIBC_2.28): Export statx.
8935 * io/bits/statx.h: New file.
8936 * io/sys/stat.h [__USE_GNU]: Include it.
8937 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
8938 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
8939 Define.
8940 * io/statx.c: New file.
8941 * io/statx_generic.: Likewise.
8942 * io/tst-statx.: Likewise.
8943 * include/bits/statx.h: Likewise.
8944 * sysdeps/unix/sysv/linux/kernel-features.h
8945 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
8946 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8947 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
8948 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
8949 Undefine.
8950 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8951 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
8952 * sysdeps/unix/sysv/linux/statx.c: New file.
8953 * manual/filesys.texi: Note that statx is undocumented.
8954 * sysdeps/**/libc*.abilist: Update.
8955
8956 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8957
8958 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
8959 a kernel issue which lead to test failure in some cases.
8960
8961 2018-07-10 Florian Weimer <fweimer@redhat.com>
8962
8963 [BZ #23036]
8964 * posix/regexec.c (check_node_accept_bytes): When comparing
8965 weights, do not compare an extra byte after the end of the
8966 weights.
8967
8968 2018-07-10 Florian Weimer <fweimer@redhat.com>
8969
8970 * libio/readline.c: Fix copyright year.
8971 * libio/tst-readline.c Likewise.
8972 * nss/tst-nss-files-hosts-getent.c: Likewise.
8973
8974 2018-07-06 Florian Weimer <fweimer@redhat.com>
8975
8976 [BZ #18991]
8977 * nss/nss_files/files-XXX.c (internal_getent): Use
8978 __libc_readline_unlocked. Seek back to the start of the line if
8979 parsing failes with ERANGE.
8980 (get_contents_ret, get_contents): Remove.
8981 * nss/tst-nss-files-hosts-getent.c: New file.
8982 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
8983 (tst-nss-files-hosts-getent): Link with -ldl.
8984
8985 2018-07-06 Florian Weimer <fweimer@redhat.com>
8986
8987 * include/stdio.h (__libc_readline_unlocked): Declare.
8988 (__ftello64, __fseeko64): Declare aliases.
8989 * libio/readline.c: New file.
8990 * libio/tst-readline.c: Likewise.
8991 (routines): Add readline.
8992 (tests-internal): Add tst-readlime.
8993 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
8994 __libc_readline_unlocked.
8995 * libio/fseeko.c (__fseeko): Rename from fseeko.
8996 (fseeko): Add alias.
8997 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
8998 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
8999 (fseeko64): Add alias.
9000 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9001 * libio/ftello64.c (__ftello64): Rename from ftello64.
9002 (ftello64): Add alias.
9003
9004 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9005
9006 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9007 HWCAP_ATOMICS.
9008
9009 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9010
9011 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9012 Use dl_hwcap without masking.
9013 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9014 Remove HWCAP_CPUID.
9015
9016 2018-07-06 Florian Weimer <fweimer@redhat.com>
9017
9018 * conform/conformtest.pl (checknamespace): Escape literal braces
9019 in regular expressions.
9020
9021 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9022
9023 * sysdeps/x86/cpu-features.c (get_common_indeces):
9024 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9025 * sysdeps/x86/cpu-features.c (init_cpu_features):
9026 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9027
9028 2018-07-05 Florian Weimer <fweimer@redhat.com>
9029
9030 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9031 protector.
9032 (CFLAGS-elf-init.oS): Likewise.
9033
9034 2018-07-05 Florian Weimer <fweimer@redhat.com>
9035 Carlos O'Donell <carlos@redhat.com>
9036
9037 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9038 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9039 with stack protector enabled because there is no risk of infinite
9040 recursion.
9041
9042 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9043
9044 [BZ #19818]
9045 [BZ #23307]
9046 * libc-abis (ABSOLUTE): New ABI.
9047 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9048 * NEWS: Mention the new ABI.
9049
9050 2018-07-05 Florian Weimer <fweimer@redhat.com>
9051
9052 [BZ # 17662]
9053 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9054 (RENAME_WHITEOUT): Define.
9055 [__USE_GNU] (renameat2): Declare.
9056 * stdio-common/Makefile (routines): Add renameat2.
9057 (tests): Add tst-renameat2.
9058 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9059 * stdio-common/renameat2.c: New file.
9060 * stdio-common/tst-renameat2.c: Likewise.
9061 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9062 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9063 undocumented.
9064 * sysdeps/unix/sysv/linux/kernel-features.h
9065 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9066 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9067 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9068 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9069 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9070 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9071 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9072 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9073 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9074 * include/stdio.h (__renameat): Add alias for renameat.
9075 * stdio-common/renameat.c (__renameat): Rename from renameat.
9076 Add hidden definition and alias.
9077 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9078 * sysdeps/mach/hurd/renameat.c: Likewise.
9079 * sysdeps/**/libc*.abilist: Add renameat2.
9080
9081 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9082
9083 * posix/bug-regex33.c: Fix build after regex sync.
9084
9085 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9086
9087 [BZ #23164]
9088 * localedata/tst-langinfo-setlocale.c: New file.
9089 * localedata/tst-langinfo-setlocale-static.c: New file.
9090 * localedata/tst-langinfo-newlocale.c: New file.
9091 * localedata/tst-langinfo-newlocale-static.c: New file.
9092 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9093 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9094 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9095 (tests-static): Remove tst-langinfo-static. Add
9096 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9097 (tests-special): Remove $(objpfx)tst-langinfo.out,
9098 $(objpfx)tst-langinfo-static.out. Add
9099 $(objpfx)tst-langinfo-setlocale.out,
9100 $(objpfx)tst-langinfo-newlocale.out,
9101 $(objpfx)tst-langinfo-setlocale-static.out,
9102 $(objpfx)tst-langinfo-newlocale-static.out.
9103 ($(objpfx)tst-langinfo.out): Remove.
9104 ($(objpfx)tst-langinfo-static.out): Remove.
9105 ($(objpfx)tst-langinfo-newlocale.out): New target.
9106 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9107 (test-xfail-tst-langinfo-newlocale-static): Add.
9108 ($(objpfx)tst-langinfo-setlocale.out): New target.
9109 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9110 * localedata/tst-langinfo.c: Call test_locale.
9111 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9112 data.
9113
9114 2018-07-04 Florian Weimer <fweimer@redhat.com>
9115
9116 testrun.sh: Implement --tool=strace, --tool=valgrind
9117 * Makefile (testrun-script): Define variable.
9118 (testrun.sh): Use variable.
9119 * manual/install.texi (Tools for Compilation): make 4.0 or later
9120 is required.
9121 * configure.ac: Check for make 4.0 or later.
9122 * INSTALL: Regenerate.
9123 * configure: Likewise.
9124
9125 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9126
9127 [BZ #23233]
9128 [BZ #21163]
9129 [BZ #18986]
9130 [BZ #13762]
9131 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9132 * posix/PCRE.tests: Remove invalid test.
9133 * posix/bug-regex28.c: Fix expected values for used syntax.
9134 * posix/bug-regex37.c: New file.
9135 * posix/bug-regex38.c: Likewise.
9136 * posix/regcomp.c: Sync with gnulib.
9137 * posix/regex.c: Likewise.
9138 * posix/regex.h: Likewise.
9139 * posix/regex_internal.c: Likewise.
9140 * posix/regex_internal.h: Likewise.
9141 * posix/regexec.c: Likewise.
9142
9143 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9144
9145 [BZ #23308]
9146 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9147 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9148 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9149 * localedata/unicode-gen/PropList.txt: likewise.
9150 * localedata/unicode-gen/UnicodeData.txt: likewise.
9151 * localedata/charmaps/UTF-8: Regenerate.
9152 * localedata/locales/i18n_ctype: likewise.
9153 * localedata/locales/tr_TR: likewise.
9154 * localedata/locales/translit_circle: likewise.
9155 * localedata/locales/translit_cjk_compat: likewise.
9156 * localedata/locales/translit_combining: likewise.
9157 * localedata/locales/translit_compat: likewise.
9158 * localedata/locales/translit_font: likewise.
9159 * localedata/locales/translit_fraction: likewise.
9160
9161 2018-07-03 Florian Weimer <fweimer@redhat.com>
9162
9163 [BZ #23363]
9164 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9165 * stdio-common/tst-printf.sh: Adjust expected output.
9166 * LICENSES: Update.
9167
9168 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9169
9170 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9171 symbol.
9172
9173 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9174
9175 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9176 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9177 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9178 * stdio-common/tst-printfsz-islongdouble.c: New file.
9179 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9180 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9181 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9182 [subdir == stdio-common] (tests-internal): Add
9183 test-printf-size-ieee128, and test-printf-size-ibm128.
9184 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9185 (CFLAGS-test-printf-size-ibm128.c): New variables.
9186 [subdir == stdio-common] (tests-special): Add
9187 $(objpfx)test-printf-size-ieee128.out and
9188 $(objpfx)test-printf-size-ibm128.out.
9189 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9190 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9191 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9192 __printf_sizeieee128.
9193 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9194 New file.
9195 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9196 Likewise.
9197 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9198 Likewise.
9199
9200 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9201
9202 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9203 (exp2f_inline): Likewise.
9204 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9205 (__math_uflowf): Likewise.
9206 (__math_may_uflowf): Likewise.
9207 (__math_divzerof): Likewise.
9208 (__math_invalidf): Likewise.
9209 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9210 (__math_oflowf): Likewise.
9211 (__math_uflowf): Likewise.
9212 (__math_may_uflowf): Likewise.
9213 (__math_divzerof): Likewise.
9214 (__math_invalidf): Likewise.
9215
9216 2018-06-29 DJ Delorie <dj@redhat.com>
9217 Carlos O'Donell <carlos@redhat.com>
9218
9219 [BZ #23329]
9220 * include/libc-symbols.h: Comment the freeres framework.
9221 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9222 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9223 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9224 * dlfcn/dlerror.c: Include libc-symbols.h
9225 (__dlerror_main_freeres): New function.
9226 * dlfcn/dlfreeres.c: New file.
9227 * dlfcn/sdlfreeres.c: New file.
9228 * include/dlfcn.h: Declare __dlerror_main_freeres.
9229 * malloc/set-freeres.c: Declare __libdl_freeres, and
9230 __libpthread_freeres.
9231 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9232 the releavant libraries are loaded.
9233 * malloc/thread-freeres.c: Add comments.
9234 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9235 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9236 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9237 (__free_stacks): Rename to...
9238 (free_stacks): ...this. Mark static.
9239 (queue_stack): Call free_stacks.
9240 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9241 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9242 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9243 ptr_freeres element from struct.
9244 (pthread_functions): Remove .ptr_freeres from struct initializer.
9245 [SHARED] (nptl_freeres): Remove.
9246 * nptl/nptlfreeres.c: New file.
9247 * nptl/pthreadP.h
9248 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9249 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9250 attribute_hidden.
9251 (__free_stacks): Rename to...
9252 (__nptl_stacks_freeres): ...this.
9253 (__shm_directory_freeres): Declare.
9254 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9255 (__nptl_unwind_freeres): ...this.
9256 * resolv/res-close.c: Add comment.
9257 * resolv/resolv_conf.c: Include libc-symbols.h.
9258 * string/strerror_l.c: Include libc-symbols.h.
9259 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9260 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9261 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9262 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9263
9264 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9265
9266 * stdlib/tst-strfmon_l.c: Add tests for long double.
9267
9268 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9269
9270 [BZ #23208]
9271 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9272 * localedata/locales/dsb_DE: New file.
9273
9274 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9275
9276 [BZ #23140]
9277 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9278 genitive case).
9279 (alt_mon): New entry, import from CLDR (nominative case).
9280
9281 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9282
9283 [BZ #22996]
9284 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
9285
9286 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
9287
9288 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
9289 Use vector registers.
9290
9291 * sysdeps/aarch64/multiarch/memmove_falkor.S
9292 (__memcpy_falkor): Use vector registers.
9293
9294 2018-06-29 Martin Sebor <msebor@redhat.com>
9295
9296 * manual/stdio.texi (Customizing Printf): Mention interaction
9297 with GCC built-ins.
9298
9299 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9300
9301 [BZ #23307]
9302 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9303 `st_value' is 0 if `st_shndx' is SHN_ABS.
9304 * elf/tst-absolute-zero.c: New file.
9305 * elf/tst-absolute-zero-lib.c: New file.
9306 * elf/tst-absolute-zero-lib.lds: New file.
9307 * elf/Makefile (tests): Add `tst-absolute-zero'.
9308 (modules-names): Add `tst-absolute-zero-lib'.
9309 (LDLIBS-tst-absolute-zero-lib.so): New variable.
9310 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
9311 ($(objpfx)tst-absolute-zero: New dependency.
9312
9313 2018-06-29 Zack Weinberg <zackw@panix.com>
9314
9315 * configure.ac: New command-line option --disable-crypt.
9316 Force --disable-nss-crypt when --disable-crypt is given, with a
9317 warning if it was explicitly enabled.
9318 * configure: Regenerate.
9319 * config.make.in: New boolean substitution variable $(build-crypt).
9320 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
9321 when $(build-crypt).
9322 * manual/install.texi: Document --disable-crypt.
9323 * INSTALL: Regenerate.
9324
9325 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
9326 which is never set.
9327 * conform/Makefile: Only include libcrypt.a in
9328 linknamespace-libs-xsi and linknamespace-libs-XPG4
9329 when $(build-crypt).
9330 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
9331 USE_CRYPT to 1 when $(build-crypt).
9332 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
9333 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
9334 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
9335
9336 2018-06-29 Zack Weinberg <zackw@panix.com>
9337
9338 * crypt/crypt.h, posix/unistd.h: Update comments and
9339 prototypes for crypt and crypt_r.
9340
9341 * manual/crypt.texi (Cryptographic Functions): New initial
9342 exposition.
9343 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
9344 (Unpredictable Bytes): Improve initial exposition. Clarify error
9345 behavior of getentropy and getrandom.
9346 * manual/examples/genpass.c: Generate a salt using getentropy
9347 instead of the current time. Use hash $5$ (SHA-2-256).
9348 * manual/examples/testpass.c: Demonstrate validation against
9349 hashes generated with three different one-way functions.
9350
9351 * manual/intro.texi: crypt.texi does not need an overview
9352 anymore.
9353
9354 * manual/nss.texi, manual/memory.texi, manual/socket.texi
9355 * manual/terminal.texi: Consistently refer to "passphrases"
9356 * instead of "passwords", and to the "user database" instead
9357 * of the "password database".
9358 * manual/users.texi: Similarly. Add notes about how actual
9359 passphrase hashes are now stored in the shadow database.
9360 Remove 20-year-old junk todo note.
9361
9362 2018-06-29 Zack Weinberg <zackw@panix.com>
9363
9364 * manual/crypt.texi: Use a normal top-level @node declaration.
9365 Move most of the introductory text to the 'crypt' section.
9366 Move the example programs below the @deftypefun for 'crypt_r'.
9367 Move the 'getpass' section...
9368 * manual/terminal.texi: ...here.
9369
9370 2018-06-29 Zack Weinberg <zackw@panix.com>
9371 Florian Weimer <fweimer@redhat.com>
9372
9373 * posix/unistd.h: Do not declare encrypt.
9374 (_XOPEN_CRYPT): Remove macro definition.
9375 (crypt): Declare only for _USE_MISC.
9376 * stdlib/stdlib.h: Do not declare setkey.
9377 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
9378 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
9379
9380 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
9381 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
9382 into compat symbols. Don't define initial_perm if it's not
9383 going to be used.
9384 * crypt/cert.c: Link explicitly with the expected versions for
9385 setkey and encrypt. If they are not available at all, mark
9386 the test as unsupported.
9387
9388 * sunrpc/des_crypt.c: Unconditionally block linkage with
9389 cbc_crypt and ecb_crypt for new binaries.
9390 * sunrpc/des_soft.c: Unconditionally block linkage with
9391 des_setparity for new binaries.
9392
9393 * manual/crypt.texi: Remove the entire "DES Encryption"
9394 section. Also remove the paragraph talking about FIPS 140-2
9395 from the introduction.
9396 * manual/string.texi (strfry, memfrob): Revise. Recommend use
9397 of libgcrypt for "real" encryption, not DES.
9398 * manual/conf.texi (Constants for Sysconf): Mention that
9399 _XOPEN_CRYPT is no longer impelemented.
9400
9401 * conform/data/unistd.h-data: Remove crypt function declaration.
9402
9403 2018-06-29 Florian Weimer <fweimer@redhat.com>
9404
9405 [BZ #23351]
9406 * malloc/hooks.c: Update comments on restoring of dumped heaps.
9407 (disallow_malloc_check): Remove variable.
9408 (__malloc_check_init): Adjust.
9409 (malloc_set_state): Update comment.
9410 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
9411 declarations.
9412
9413 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9414
9415 [BZ #23140]
9416 * localedata/locales/ast_ES (mon): Rename to...
9417 (alt_mon): This.
9418 (mon): Import from CLDR (genitive case).
9419
9420 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
9421 Jakub Sitnicki <jkbs@redhat.com>
9422
9423 [BZ #21812]
9424 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
9425 on NLM_F_DUMP_INTR.
9426
9427 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
9428
9429 * manual/llio.texi: Remove spurious space.
9430
9431 2018-06-28 Florian Weimer <fweimer@redhat.com>
9432
9433 [BZ #23349]
9434 * time/bits/types/struct_timespec.h: Change header inclusion guard to
9435 _STRUCT_TIMESPEC.
9436
9437 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9438
9439 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
9440 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
9441 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
9442 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
9443 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
9444 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
9445 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
9446
9447 2018-06-27 Maciej W. Rozycki <macro@mips.com>
9448
9449 [BZ #23266]
9450 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
9451 Copy and null-terminate entries that are not terminated, in
9452 addition to empty ones.
9453
9454 2018-06-27 Florian Weimer <fweimer@redhat.com>
9455
9456 [BZ #18023]
9457 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
9458 (extend_alloca_account): Remove.
9459 * manual/stdio.texi (Variable Arguments Output): Update comment.
9460
9461 2018-06-27 Joseph Myers <joseph@codesourcery.com>
9462
9463 * nptl/sockperf.c: Remove file.
9464
9465 2018-06-27 Florian Weimer <fweimer@redhat.com>
9466
9467 [BZ #18023]
9468 * elf/dl-deps.c (_dl_map_object_deps): Use struct
9469 scratch_buffer instead of extend_alloca.
9470
9471 2018-06-27 Florian Weimer <fweimer@redhat.com>
9472
9473 [BZ #18023]
9474 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
9475 scratch_buffer instead of extend_alloca. Update comments.
9476
9477 2018-06-27 Florian Weimer <fweimer@redhat.com>
9478
9479 [BZ #18023]
9480 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
9481 instead of extend_alloca.
9482
9483 2018-06-26 Joseph Myers <joseph@codesourcery.com>
9484
9485 [BZ #13888]
9486 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
9487 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
9488 /tmp.
9489 * scripts/test-installation.pl: Put temporary files in build
9490 directory, not /tmp.
9491 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
9492 (CFLAGS-bug4.c): Likewise.
9493 (CFLAGS-bug5.c): Likewise.
9494 (CFLAGS-test-fseek.c): Likewise.
9495 (CFLAGS-test-popen.c): Likewise.
9496 (CFLAGS-test_rdwr.c): Likewise.
9497 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
9498 /tmp.
9499 * stdio-common/bug4.c (main): Likewise.
9500 * stdio-common/bug5.c (main): Likewise.
9501 * stdio-common/test-fseek.c (TESTFILE): Likewise.
9502 * stdio-common/test-popen.c (do_test): Likewise.
9503 * stdio-common/test_rdwr.c (main): Likewise.
9504
9505 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
9506
9507 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
9508 (sem_open): Set sem.newsem.pad to zero for valgrind.
9509
9510 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9511
9512 [BZ #20251]
9513 * NEWS: Mention fcntl64 addition.
9514 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
9515 * login/utmp_file.c: Likewise.
9516 * sysdeps/posix/fdopendir.c: Likewise.
9517 * sysdeps/posix/opendir.c: Likewise.
9518 * sysdeps/unix/pt-fcntl.c: Likewise.
9519 * include/fcntl.h (__libc_fcntl64, __fcntl64,
9520 __fcntl64_nocancel_adjusted): New prototype.
9521 (__fcntl_nocancel_adjusted): Remove prototype.
9522 * io/Makefile (routines): Add fcntl64.
9523 (CFLAGS-fcntl64.c): New rule.
9524 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
9525 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
9526 * io/fcntl.h (fcntl64): Add prototype and redirect if
9527 __USE_FILE_OFFSET64 is defined.
9528 * io/fcntl64.c: New file.
9529 * manual/llio.text: Add a note for which commands fcntl acts a
9530 cancellation point.
9531 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
9532 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
9533 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
9534 New symbols.
9535 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
9536 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
9537 non-LFS case.
9538 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
9539 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
9540 to __fcntl64_nocancel.
9541 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
9542 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
9543 to __fcntl64_nocancel.
9544 * sysdeps/generic/not-cancel.h: Likewise.
9545 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
9546 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
9547 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9548 (fcntl64): New symbol.
9549 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9550 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9551 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9552 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9553 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9554 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9555 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9556 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9557 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9558 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9559 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
9560 fcntl64): Likewise.
9561 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9562 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
9563 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9564 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9565 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9566 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9567 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9568 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9569 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9570 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9571 Likewise.
9572 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9573 Likewise.
9574 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9575 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9576 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9577
9578 2018-06-26 Florian Weimer <fweimer@redhat.com>
9579
9580 Run thread shutdown functions in an explicit order.
9581 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
9582 definition.
9583 (__libc_thread_freeres): Call thread shutdown functions
9584 explicitly.
9585 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
9586 * include/string.h (__strerror_thread_freeres): Declare.
9587 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
9588 arena_thread_freeres. No longer static. Remove thread shutdown
9589 hook registration.
9590 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
9591 Declare.
9592 * resolv/res-close.c (__res_thread_freeres): Renamed from
9593 res_thread_freeres. No longer static. Remove thread shutdown
9594 hook registration.
9595 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
9596 * resolv/resolv_conf.c (freeres): Remove incorrect section
9597 attribute and use libc_freeres_fn.
9598 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
9599 strerror_thread_freeres. No longer static. Remove thread
9600 shutdown hook registration.
9601 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
9602 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
9603 shutdown hook registration.
9604 * Makerules (shlib.lds): Do not provide section boundary symbols
9605 for __libc_thread_subfreeres.
9606 * manual/memory.texi (Basic Allocation): Update comment.
9607
9608 2018-06-26 Florian Weimer <fweimer@redhat.com>
9609
9610 Remove always-defined _RPC_THREAD_SAFE_ macro.
9611 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
9612 Do not define _RPC_THREAD_SAFE_.
9613 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
9614 conditional.
9615 * sunrpc/clnt_perr.c: Likewise.
9616 * sunrpc/clnt_raw.c: Likewise.
9617 * sunrpc/clnt_simp.c: Likewise.
9618 * sunrpc/key_call.c: Likewise.
9619 * sunrpc/rpc_common.c: Likewise.
9620 * sunrpc/rpc_main.c: Likewise.
9621 * sunrpc/rpc_thread.c: Likewise.
9622 * sunrpc/svc.c: Likewise.
9623 * sunrpc/svc_raw.c: Likewise.
9624 * sunrpc/svc_simple.c: Likewise.
9625 * sumrpc/svcauth_des.c: Likewise.
9626
9627 2018-06-26 Florian Weimer <fweimer@redhat.com>
9628
9629 * libio/Makefile (tests-internal): Add tst-vtables,
9630 tst-vtables-interposed.
9631 * libio/tst-vtables.c: New file.
9632 * libio/tst-vtables-common.c: Likewise.
9633 * libio/tst-vtables-interposed.c: Likewise.
9634
9635 2018-06-26 Florian Weimer <fweimer@redhat.com>
9636
9637 * support/support_test_main.c (support_test_main): Only call
9638 setvbuf if not disables.
9639 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
9640 * support/test-driver.h (struct test_config): Add no_setvbuf member.
9641
9642 2018-06-26 Florian Weimer <fweimer@redhat.com>
9643
9644 [BZ #23313]
9645 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
9646
9647 2018-06-25 Florian Weimer <fweimer@redhat.com>
9648
9649 [BZ #18023]
9650 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
9651 Use struct scratch_buffer instead of extend_alloca.
9652
9653 2018-06-25 Florian Weimer <fweimer@redhat.com>
9654
9655 [BZ #18023]
9656 * nss/getent.c (initgroups_keys): Use dynarray instead of
9657 extend_alloca.
9658
9659 2018-06-25 Florian Weimer <fweimer@redhat.com>
9660
9661 [BZ #18023]
9662 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
9663 Use struct scratch_buffer instead of extend_alloca.
9664
9665 2018-06-25 Florian Weimer <fweimer@redhat.com>
9666
9667 [BZ #18023]
9668 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
9669 back to malloc directly, without stack allocations.
9670
9671 2018-06-25 Florian Weimer <fweimer@redhat.com>
9672
9673 [BZ #18023]
9674 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
9675 of extend_alloca.
9676
9677 2018-06-25 Florian Weimer <fweimer@redhat.com>
9678
9679 [BZ #18023]
9680 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
9681 of extend_alloca.
9682 * nscd/hstcache.c (addhstbyX): Likewise.
9683 * nscd/pwdcache.c (addpwbyX): Likewise.
9684 * nscd/servicescache.c (addservbyX): Likewise.
9685
9686 2018-06-25 Florian Weimer <fweimer@redhat.com>
9687
9688 [BZ #18023]
9689 * nscd/connections.c (read_cmdline): New function.
9690 (restart): Use it. Update comment.
9691
9692 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9693
9694 [BZ #23140]
9695 * localedata/locales/csb_PL (mon): Rename to...
9696 (alt_mon): This.
9697 (abmon): Rename to...
9698 (ab_alt_mon): This.
9699 (mon): Add with proper genitive forms, copy from Wikipedia.
9700 (abmon): Likewise.
9701
9702 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9703
9704 [BZ #19485]
9705 * localedata/locales/csb_PL (mon): Fix typos:
9706 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
9707 (yesstr): Add, value is "jo".
9708 (nostr): Add, value is "nié".
9709
9710 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9711
9712 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
9713 all log1p and significand functions on m680x0.
9714 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
9715 of s_significand.c..
9716 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
9717 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
9718 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
9719 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
9720 s_log1p.c and include it..
9721
9722 2018-06-21 Vincent Chen <vincentc@andestech.com>
9723
9724 * elf/elf.h (R_NDS32_NONE): New define.
9725 (R_NDS32_32_RELA): Likewise.
9726 (R_NDS32_COPY): Likewise.
9727 (R_NDS32_GLOB_DAT): Likewise.
9728 (R_NDS32_JUMP_SLOT): Likewise.
9729 (R_NDS32_RELATIVE): Likewise.
9730 (R_NDS32_TLS_TPOFF): Likewise.
9731 (R_NDS32_TLS_DESC): Likewise.
9732
9733 2018-06-21 Mark Wielaard <mark@klomp.org>
9734
9735 * elf/elf.h (R_BPF_MAP_FD): Removed.
9736 (R_BPF_64_64, R_BPF_64_32): New.
9737
9738 2018-06-21 Florian Weimer <fweimer@redhat.com>
9739
9740 [BZ #23253]
9741 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
9742 Renamed from libc_feholdsetround_ctx.
9743 (default_libc_feresetround_ctx): Renamed from
9744 libc_feresetround_ctx.
9745 (default_libc_feholdsetround_noex_ctx): Renamed from
9746 libc_feholdsetround_noex_ctx.
9747 (default_libc_feresetround_noex_ctx): Renamed from
9748 libc_feresetround_noex_ctx.
9749 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
9750 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
9751 forwardning to the old implementations under the new names.
9752 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
9753 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
9754 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
9755 (libc_feresetround_ctx): Forward to default implements for i386
9756 and MATH_SET_BOTH_ROUNDING_MODES.
9757 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
9758 Add -DMATH_SET_BOTH_ROUNDING_MODES.
9759
9760 2018-06-20 Joseph Myers <joseph@codesourcery.com>
9761
9762 * string/tst-cmp.c: Include <libc-diag.h>.
9763 (strncmp_max): Disable -Wstringop-overflow= around call to
9764 strncmp.
9765 (strncasecmp_max): Disable -Wstringop-overflow= around call to
9766 strncasecmp.
9767
9768 * string/bug-strpbrk1.c: Include <libc-diag.h>.
9769 (main): Disable -Wunused-value around call to strpbrk.
9770 * string/bug-strspn1.c: Include <libc-diag.h>.
9771 (main): Disable -Wunused-value around call to strspn.
9772
9773 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9774 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9775
9776 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
9777 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
9778
9779 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9780
9781 * math/Makefile (libm-calls): Move s_significandF to...
9782 (gen-libm-calls): ... here.
9783 * math/s_significand_template.c: New file.
9784 * math/s_significand.c: Removed.
9785 * math/s_significandf.c: Removed.
9786 * math/s_significandl.c: Removed.
9787 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
9788 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
9789
9790 * math/e_exp2_template.c (declare_mgen_finite_alias,
9791 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
9792 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
9793 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
9794
9795 2018-06-20 Florian Weimer <fweimer@redhat.com>
9796
9797 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
9798
9799 2018-06-19 Joseph Myers <joseph@codesourcery.com>
9800
9801 [BZ #23280]
9802 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
9803 floating-point number to strtod functions rather than possibly
9804 negating result of those functions.
9805 * stdio-common/tst-scanf-round.c: New file.
9806 * stdio-common/Makefile (tests): Add tst-scanf-round.
9807 ($(objpfx)tst-scanf-round): Depend on $(libm).
9808
9809 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
9810
9811 * sysdeps/mach/hurd/localplt.data: Move to...
9812 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
9813 R_386_GLOB_DAT like on Linux i386.
9814
9815 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9816
9817 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
9818 (SHM_STAT_ANY): New macro.
9819 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
9820 (SHM_STAT_ANY): Likewise.
9821 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
9822 (SHM_STAT_ANY): Likewise.
9823 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
9824 (SHM_STAT_ANY): Likewise.
9825 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
9826 (SHM_STAT_ANY): Likewise.
9827 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
9828 (SHM_STAT_ANY): Likewise.
9829 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
9830 (SHM_STAT_ANY): Likewise.
9831 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
9832 (SHM_STAT_ANY): Likewise.
9833 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
9834 (SHM_STAT_ANY): Likewise.
9835 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
9836 (SHM_STAT_ANY): Likewise.
9837 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
9838 (SHM_STAT_ANY): Likewise.
9839 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
9840 (SHM_STAT_ANY): Likewise.
9841
9842 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
9843 (SEM_STAT_ANY): New macro.
9844 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
9845 (SEM_STAT_ANY): Likewise.
9846 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
9847 (SEM_STAT_ANY): Likewise.
9848 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
9849 (SEM_STAT_ANY): Likewise.
9850 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
9851 (SEM_STAT_ANY): Likewise.
9852 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
9853 (SEM_STAT_ANY): Likewise.
9854 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
9855 (SEM_STAT_ANY): Likewise.
9856 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
9857 (SEM_STAT_ANY): Likewise.
9858 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
9859 (SEM_STAT_ANY): Likewise.
9860 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
9861 (SEM_STAT_ANY): Likewise.
9862
9863 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
9864 (MSG_STAT_ANY): New macro.
9865 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
9866 (MSG_STAT_ANY): Likewise.
9867 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
9868 (MSG_STAT_ANY): Likewise.
9869 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
9870 (MSG_STAT_ANY): Likewise.
9871 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
9872 (MSG_STAT_ANY): Likewise.
9873 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
9874 (MSG_STAT_ANY): Likewise.
9875 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
9876 (MSG_STAT_ANY): Likewise.
9877 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
9878 (MSG_STAT_ANY): Likewise.
9879 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
9880 (MSG_STAT_ANY): Likewise.
9881 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
9882 (MSG_STAT_ANY): Likewise.
9883
9884 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
9885 (MAP_TYPE): Change value to 0x2b.
9886
9887 2018-06-18 Florian Weimer <fweimer@redhat.com>
9888
9889 [BZ #15722]
9890 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
9891 socket with SOCK_CLOEXEC.
9892
9893 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9894
9895 [BZ #23303]
9896 * sysdeps/powerpc/powerpc64/le/Makefile
9897 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
9898 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
9899 (gnulib-tests): Also add $(f128-loader-link) for
9900 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
9901
9902 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
9903
9904 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
9905 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
9906 of sendfile.
9907 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
9908 (sendfile64): New strong alias.
9909 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
9910 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
9911 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
9912 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
9913 attribute.
9914 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
9915 ___pthread_get_cleanup_stack.
9916 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
9917 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
9918 * mach/shortcut.awk: Make syscall stubs include
9919 <mach-shortcuts-hidden.h> and add hidden definition.
9920 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
9921 (__mach_msg): Add hidden prototype.
9922 * mach/msg.c: Include <mach.h>.
9923 (__mach_msg): Add hidden definition.
9924 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
9925 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
9926 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
9927 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
9928 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
9929 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
9930 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
9931 prototype and definition.
9932 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
9933 hidden target for _hurd_self_sigstate.
9934
9935 2018-06-15 Joseph Myers <joseph@codesourcery.com>
9936
9937 [BZ #23007]
9938 * stdlib/tst-strtod-nan-sign-main.c: New file.
9939 * stdlib/tst-strtod-nan-sign.c: Likewise.
9940 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
9941 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
9942 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
9943 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
9944 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
9945
9946 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
9947
9948 [BZ #23007]
9949 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
9950 appropriate sign.
9951
9952 2018-06-14 Florian Weimer <fweimer@redhat.com>
9953
9954 [BZ #23290]
9955 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
9956 that the result stays within the ISO-8859-1 range.
9957 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
9958 characters are defined in IBM273.
9959
9960 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
9961
9962 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
9963 __mach_task_self): Remove attribute_hidden.
9964
9965 2018-06-14 Joseph Myers <joseph@codesourcery.com>
9966
9967 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
9968 ignore -Wrestrict for one test.
9969
9970 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
9971 Szabolcs Nagy <szabolcs.nagy@arm.com>
9972
9973 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
9974
9975 2018-06-14 Florian Weimer <fweimer@redhat.com>
9976
9977 * scripts/update-abilist.sh: Accept empty list of files to patch.
9978
9979 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
9980
9981 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
9982 test-xfail-check-abi-libmachuser): Add.
9983 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
9984 __libc_read and __libc_write to __read and __write.
9985 * sysdeps/hurd/include/hurd/port.h: New file.
9986 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
9987 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
9988 __thread_switch, __evc_wait): Move declarations to...
9989 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
9990 attribute_hidden.
9991 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
9992 use PLT to call _hurd_self_sigstate.
9993
9994 2018-06-13 Joseph Myers <joseph@codesourcery.com>
9995
9996 [BZ #23279]
9997 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
9998 MAX_EXP as overflowing.
9999 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10000 overflow flag.
10001 (round_str): Output also whether result overflows in each rounding
10002 mode.
10003 * stdlib/tst-strtod-round-data: Add more tests.
10004 * stdlib/tst-strtod-round-data.h: Regenerated.
10005 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10006 (TEST): Handle extra arguments for overflow flags.
10007 (struct test_overflow): New type.
10008 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10009 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10010 (test_in_one_mode): Take argument with overflow information.
10011 (do_test): Update calls to test_in_one_mode.
10012
10013 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10014
10015 * elf/dl-load (_dl_dst_substitute): Correct comment.
10016 (_dl_dst_count): Likewise.
10017
10018 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10019 lll_futex_timed_wait.
10020
10021 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10022
10023 [BZ #23277]
10024 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10025 attribute.
10026 * math/test-nan-const.c: New file.
10027 * math/Makefile (tests): Add test-nan-const.
10028 (CFLAGS-test-nan-const.c): New variable.
10029
10030 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10031
10032 * benchtests/scripts/compare_strings.py (process_results): Add
10033 funcs argument. Compare only functions which are selected.
10034 (main): Check if base function is among selected functions.
10035 Pass selected functions to process_results.
10036 (__main__): Add -f/--functions argument.
10037
10038 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10039 Hongbo Zhang <hongbo.zhang@linaro.org>
10040
10041 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10042 __memcpy_falkor for phecda core.
10043 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10044 __memmove_falkor for phecda core.
10045 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10046 __memset_falkor for phecda core.
10047 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10048 for phecda core.
10049 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10050 macro to identify phecda core.
10051
10052 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10053 Andreas Schwab <schwab@suse.de>
10054 Dmitry V. Levin <ldv@altlinux.org>
10055 Florian Weimer <fweimer@redhat.com>
10056
10057 [BZ #23102]
10058 [BZ #21942]
10059 [BZ #18018]
10060 [BZ #23259]
10061 CVE-2011-0536
10062 * elf/dl-dst.h: Remove DL_DST_COUNT.
10063 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10064 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10065 (is_dst): Comment. Support ELF gABI.
10066 (_dl_dst_count): Comment. Simplify and count DSTs.
10067 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10068 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10069 locals.
10070
10071 2018-06-12 Zack Weinberg <zackw@panix.com>
10072
10073 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10074 * sysdeps/unix/sysv/linux/dl-sysdep.c
10075 Include not-cancel.h. Use __close_nocancel instead of __close,
10076 __open64_nocancel instead of __open, __read_nocancel instead of
10077 __libc_read, and __write_nocancel instead of __libc_write.
10078
10079 * csu/check_fds.c (check_one_fd)
10080 * sysdeps/posix/fdopendir.c (__fdopendir)
10081 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10082 instead of __fcntl and/or __libc_fcntl.
10083
10084 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10085 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10086 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10087 Use __open64_nocancel instead of __open_nocancel.
10088
10089 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10090 hidden_proto declarations to the end and issue them if either
10091 IS_IN(libc) or IS_IN(rtld).
10092 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10093 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10094 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10095 read_nocancel, waitpid_nocancel, write_nocancel.
10096
10097 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10098 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10099 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10100
10101 * nptl/pt-fcntl.c: New file.
10102 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10103 (libpthread-routines): Add pt-fcntl.
10104 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10105 (__libc_fcntl): Remove attribute_hidden.
10106 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10107 __fcntl_nocancel_adjusted, not fcntl_common.
10108 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10109 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10110 to fcntl_nocancel.c.
10111 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10112 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10113 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10114 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10115
10116 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10117 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10118 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10119 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10120 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10121 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10122 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10123 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10124 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10125 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10126 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10127 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10128 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10129 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10130 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10131 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10132 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10133 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10134 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10135 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10136
10137 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10138 libpthread-routines.
10139 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10140 defines nothing.
10141
10142 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10143 __libc_read, and __write instead of __libc_write. Define
10144 __open64 in addition to __open.
10145
10146 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10147
10148 [BZ #23250]
10149 [BZ #10686]
10150 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10151 to _private_tm[3] and add __glibc_reserved2.
10152 Add _Static_assert of offset of __private_ss == 0x30.
10153 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10154 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10155
10156 2018-06-12 Florian Weimer <fweimer@redhat.com>
10157
10158 x86: Make strncmp usable from rtld.
10159 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10160 __strncmp_ia32 if in libc (and not in rtld).
10161 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10162 strncmp if not in libc (and not to __strncmp_sse2).
10163
10164 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10165
10166 [BZ #23140]
10167 * localedata/locales/gd_GB (mon): Rename to...
10168 (alt_mon): This.
10169 (mon): Import from CLDR (genitive case).
10170 * localedata/locales/hsb_DE (mon): Rename to...
10171 (alt_mon): This.
10172 (mon): Import from CLDR (genitive case).
10173 * localedata/locales/wa_BE (mon): Rename to...
10174 (alt_mon): This.
10175 (mon): Add, fill with the proper genitive forms, but CLDR data
10176 is incomplete; completed according to the comments in this file.
10177 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10178
10179 * localedata/locales/wa_BE (country_name): Reword
10180 "Beljike" -> "Beldjike".
10181
10182 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10183
10184 [BZ #23272]
10185 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10186 cases of non-finite arguments.
10187 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10188
10189 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10190
10191 [BZ #23174]
10192 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10193
10194 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10195
10196 [BZ #23264]
10197 * include/unistd.h (__execvpex): New prototype.
10198 * posix/Makefile (tests): Add tst-spawn4.
10199 (tests-internal): Add tst-spawn4-compat.
10200 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10201 * posix/tst-spawn4-compat.c: New file.
10202 * posix/tst-spawn4.c: Likewise.
10203 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10204 binaries as shell scripts.
10205 * sysdeps/posix/spawni.c (__spawni): Likewise.
10206
10207 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10208
10209 [BZ #23145]
10210 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10211 ($(all-built-dso:=.dynsym): New target.
10212 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10213 ($(objpfx)check-initfini.out): New target.
10214 (generated): Add check-initfini.out.
10215 * scripts/check-initfini.awk: New file.
10216 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10217 (_fini): Likewise.
10218 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10219 (_fini): Likewise.
10220 * sysdeps/arm/crti.S (_init): Mark as hidden.
10221 (_fini): Likewise.
10222 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10223 (_fini): Likewise.
10224 * sysdeps/i386/crti.S (_init): Mark as hidden.
10225 (_fini): Likewise.
10226 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10227 (_fini): Likewise.
10228 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10229 (_fini): Likewise.
10230 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10231 (_fini): Likewise.
10232 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10233 (_fini): Likewise.
10234 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10235 (_fini): Likewise.
10236 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10237 (_fini): Likewise.
10238 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10239 (_fini): Likewise.
10240 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10241 (_fini): Likewise.
10242 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10243 (_fini): Likewise.
10244 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10245 (_fini): Likewise.
10246 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10247 (_fini): Likewise.
10248 * sysdeps/sh/crti.S (_init): Mark as hidden.
10249 (_fini): Likewise.
10250 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10251 (_fini): Likewise.
10252 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10253 (_fini): Likewise.
10254
10255 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10256
10257 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10258 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10259 and TF redirection to KFtype and KF only when the default
10260 long double type is not the IEEE 128-bit floating point type.
10261
10262 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10263
10264 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10265 macro.
10266 (HWCAP_USCAT): Likewise.
10267 (HWCAP_ILRCPC): Likewise.
10268 (HWCAP_FLAGM): Likewise.
10269 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10270 Increase to 28.
10271 (_dl_aarch64_cap_flags): Add new flag names.
10272
10273 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10274 (MAP_FIXED_NOREPLACE): New macro.
10275 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10276 (MAP_FIXED_NOREPLACE): Likewise.
10277 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10278 (MAP_FIXED_NOREPLACE): Likewise.
10279 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10280 (MAP_FIXED_NOREPLACE): Likewise.
10281 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10282 (MAP_FIXED_NOREPLACE): Likewise.
10283 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
10284 (MAP_FIXED_NOREPLACE): Likewise.
10285 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
10286 (MAP_FIXED_NOREPLACE): Likewise.
10287 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
10288 (MAP_FIXED_NOREPLACE): Likewise.
10289 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
10290 (MAP_FIXED_NOREPLACE): Likewise.
10291 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10292 (MAP_FIXED_NOREPLACE): Likewise.
10293 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10294 (MAP_FIXED_NOREPLACE): Likewise.
10295 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10296 (MAP_FIXED_NOREPLACE): Likewise.
10297 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10298 (MAP_FIXED_NOREPLACE): Likewise.
10299 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10300 (MAP_FIXED_NOREPLACE): Likewise.
10301 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10302 (MAP_FIXED_NOREPLACE): Likewise.
10303
10304 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10305 version to 4.17.
10306
10307 2018-06-04 Joseph Myers <joseph@codesourcery.com>
10308
10309 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10310 version to 4.17
10311
10312 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10313
10314 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
10315 int.
10316 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
10317
10318 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10319
10320 * benchtests/scripts/compare_string.py: (process_results) Catch
10321 exception in non-existent base_func and catch exception in
10322 non-existent attribute.
10323 (parse_file) Catch exception if input file does not exist.
10324
10325 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10326
10327 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
10328 options to avoid diff calculation and omit header, respectively.
10329 (main): process --no-diff and --no-header
10330
10331 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10332 H.J. Lu <hongjiu.lu@intel.com>
10333
10334 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10335 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
10336 wcsncmp-sse2.
10337 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10338 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
10339 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
10340 and __wcsncmp_sse2.
10341 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
10342 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
10343 AVX unaligned load is fast and vzeroupper is preferred.
10344 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
10345 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
10346 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
10347 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
10348 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
10349 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
10350 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
10351 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
10352 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
10353 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
10354 is undefined.
10355
10356 2018-06-01 Florian Weimer <fweimer@redhat.com>
10357
10358 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
10359 configuring with --disable-multi-arch, building with
10360 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
10361 Haswell-era CPU.
10362
10363 2018-06-01 Florian Weimer <fweimer@redhat.com>
10364
10365 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
10366 results from building with “-march=x86-64 -mtune=generic
10367 -mfpmath=sse” and running on a Haswell-era CPU.
10368
10369 2018-06-01 Joseph Myers <joseph@codesourcery.com>
10370
10371 [BZ #18473]
10372 * soft-fp/sqrttf2.c: Remove file.
10373 * soft-fp/sqrtdf2.c: Move to ....
10374 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
10375 <shlib-compat.h>.
10376 (__sqrtdf2): Make conditional on
10377 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10378 symbol.
10379 * soft-fp/sqrtsf2.c: Move to ....
10380 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
10381 <shlib-compat.h>.
10382 (__sqrtsf2): Make conditional on
10383 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10384 symbol.
10385 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
10386 (gcc-double-routines): Remove sqrtdf2.
10387 (gcc-quad-routines): Remove sqrttf2.
10388 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10389 Do not filter out sqrtsf2 and sqrtdf2.
10390 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10391 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
10392
10393 2018-06-01 Florian Weimer <fweimer@redhat.com>
10394
10395 * sysdeps/generic/libcidn.abilist: Remove file.
10396
10397 2018-06-01 Florian Weimer <fweimer@redhat.com>
10398
10399 [BZ #23236]
10400 * libio/strfile.h (struct _IO_str_fields): Rename members to
10401 discourage their use and add comment.
10402 (_IO_STR_DYNAMIC): Remove unused macro.
10403 * libio/strops.c (_IO_str_init_static_internal): Do not use
10404 callback pointers. Call malloc and free.
10405 (_IO_str_overflow): Do not use callback pointers. Call malloc
10406 and free.
10407 (enlarge_userbuf): Likewise.
10408 (_IO_str_finish): Call free.
10409 * libio/wstrops.c (_IO_wstr_init_static): Initialize
10410 _allocate_buffer_unused.
10411 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
10412 and free.
10413 (enlarge_userbuf): Likewise.
10414 (_IO_wstr_finish): Call free.
10415 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
10416 _allocate_buffer_unused, _free_buffer_unused.
10417 * libio/memstream.c (__open_memstream): Likewise.
10418 * libio/vasprintf.c (_IO_vasprintf): Likewise.
10419 * libio/wmemstream.c (open_wmemstream): Likewise.
10420
10421 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
10422
10423 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
10424 AMD Ryzen 7 1800X.
10425
10426 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10427
10428 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
10429 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
10430 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
10431 New file.
10432 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
10433 Likewise.
10434 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
10435
10436 2018-05-29 Florian Weimer <fweimer@redhat.com>
10437
10438 * support/Makefile (libsupport-routines): Add
10439 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
10440 xpthread_barrierattr_setpshared.
10441 * support/xpthread_barrierattr_destroy.c: New file.
10442 * support/xpthread_barrierattr_init.c: Likewise.
10443 * support/xpthread_barrierattr_setpshared.c: Likewise.
10444
10445 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
10446
10447 [BZ #23206]
10448 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
10449 _r_debug and update DT_DEBUG for debugger.
10450
10451 2018-05-29 Florian Weimer <fweimer@redhat.com>
10452
10453 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
10454 (tst-strtod5i.out): Likewise.
10455
10456 2018-05-25 Joseph Myers <joseph@codesourcery.com>
10457
10458 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
10459 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
10460 (sparc64-quad-routines): New variable. Moved from ....
10461 [$(subdir) = soft-fp] (sysdep_routines): Add
10462 $(sparc64-quad-routines). Moved from ....
10463 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
10464 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
10465 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
10466 moved from ....
10467 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
10468 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
10469 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
10470 * sysdeps/sparc/sparc64/qp_add.c: ... here.
10471 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
10472 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
10473 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
10474 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
10475 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
10476 * sysdeps/sparc/sparc64/qp_div.c: ... here.
10477 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
10478 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
10479 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
10480 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
10481 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
10482 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
10483 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
10484 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
10485 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
10486 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
10487 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
10488 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
10489 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
10490 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
10491 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
10492 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
10493 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
10494 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
10495 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
10496 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
10497 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
10498 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
10499 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
10500 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
10501 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
10502 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
10503 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
10504 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
10505 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
10506 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
10507 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
10508 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
10509 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
10510 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
10511 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
10512 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
10513 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
10514 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
10515 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
10516 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
10517 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
10518 * sysdeps/sparc/sparc64/qp_util.c: ... here.
10519 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
10520 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
10521 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
10522 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
10523 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
10524 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
10525
10526 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
10527 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
10528 (sparc32-quad-routines): New variable. Moved from ....
10529 [$(subdir) = soft-fp] (sysdep_routines): Add
10530 $(sparc32-quad-routines). Moved from ....
10531 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
10532 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
10533 moved from ....
10534 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
10535 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
10536 * sysdeps/sparc/sparc32/q_add.c: ... here.
10537 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
10538 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
10539 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
10540 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
10541 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
10542 * sysdeps/sparc/sparc32/q_div.c: ... here.
10543 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
10544 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
10545 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
10546 * sysdeps/sparc/sparc32/q_feq.c: ... here.
10547 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
10548 * sysdeps/sparc/sparc32/q_fge.c: ... here.
10549 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
10550 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
10551 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
10552 * sysdeps/sparc/sparc32/q_fle.c: ... here.
10553 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
10554 * sysdeps/sparc/sparc32/q_flt.c: ... here.
10555 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
10556 * sysdeps/sparc/sparc32/q_fne.c: ... here.
10557 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
10558 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
10559 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
10560 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
10561 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
10562 * sysdeps/sparc/sparc32/q_mul.c: ... here.
10563 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
10564 * sysdeps/sparc/sparc32/q_neg.c: ... here.
10565 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
10566 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
10567 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
10568 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
10569 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
10570 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
10571 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
10572 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
10573 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
10574 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
10575 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
10576 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
10577 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
10578 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
10579 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
10580 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
10581 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
10582 * sysdeps/sparc/sparc32/q_sub.c: ... here.
10583 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
10584 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
10585 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
10586 * sysdeps/sparc/sparc32/q_util.c: ... here.
10587 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
10588 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
10589 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
10590 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
10591
10592 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10593 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10594
10595 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
10596 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
10597 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
10598 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
10599
10600 2018-05-24 Joseph Myers <joseph@codesourcery.com>
10601
10602 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
10603 powerpc/soft-fp.
10604 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
10605 Likewise.
10606 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
10607 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
10608
10609 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10610
10611 [BZ #23171]
10612 * math/math.h [C++] (iseqsig): Fix parameter type for the long
10613 double version.
10614
10615 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10616
10617 * sysdeps/sh/Implies: Remove sh/soft-fp.
10618 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
10619 * sysdeps/sh/sfp-machine.h: ... here.
10620
10621 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10622
10623 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10624 (__mempcpy_erms): Skip zero length.
10625 (__memmove_erms): Likewise.
10626 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
10627 (__memset_erms): Likewise.
10628
10629 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10630
10631 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
10632 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10633 Add functions moved from ....
10634 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
10635 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
10636 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
10637 from ....
10638 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
10639 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
10640 * sysdeps/alpha/e_sqrtl.c: ... here.
10641 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
10642 * sysdeps/alpha/local-soft-fp.h: ... here.
10643 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
10644 * sysdeps/alpha/ots_add.c: ... here.
10645 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
10646 * sysdeps/alpha/ots_cmp.c: ... here.
10647 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
10648 * sysdeps/alpha/ots_cmpe.c: ... here.
10649 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
10650 * sysdeps/alpha/ots_cvtqux.c: ... here.
10651 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
10652 * sysdeps/alpha/ots_cvtqx.c: ... here.
10653 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
10654 * sysdeps/alpha/ots_cvttx.c: ... here.
10655 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
10656 * sysdeps/alpha/ots_cvtxq.c: ... here.
10657 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
10658 * sysdeps/alpha/ots_cvtxt.c: ... here.
10659 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
10660 * sysdeps/alpha/ots_div.c: ... here.
10661 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
10662 * sysdeps/alpha/ots_mul.c: ... here.
10663 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
10664 * sysdeps/alpha/ots_nintxq.c: ... here.
10665 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
10666 * sysdeps/alpha/ots_sub.c: ... here.
10667 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
10668 * sysdeps/alpha/sfp-machine.h: ... here.
10669
10670 2018-05-23 Florian Weimer <fweimer@redhat.com>
10671
10672 [BZ #19728]
10673 [BZ #19729]
10674 [BZ #22247]
10675 CVE-2016-6261
10676 CVE-2016-6263
10677 CVE-2017-14062
10678 Switch to extern IDNA implementation (libidn2).
10679 * libidn: Remove subdirectory.
10680 * LICENSES: Do not mention licensing conditions for the removed
10681 libidn code.
10682 * config.h.in (HAVE_LIBIDN): Remove.
10683 * include/dlfcn.h (__libc_dlopen): Update comment.
10684 * include/idna.h: Remove file.
10685 * inet/Makefile (routines): Add idna.
10686 (tests-static, tests-internal): Add tst-idna_name_classify.
10687 (LOCALES): Generate locales for tests.
10688 (tst-idna_name_classify.out): Depend on generated locales.
10689 * inet/idna_name_classify.c: New file.
10690 * inet/tst-idna_name_classify.c: Likewise.
10691 * inet/net-internal.h (__idna_to_dns_encoding)
10692 (__idna_from_dns_encoding): Declare.
10693 * inet/net-internal.h (enum idna_name_classification): Define.
10694 (__idna_name_classify): Declare.
10695 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
10696 __idna_from_dns_encoding.
10697 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
10698 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
10699 name as a fallback in case of encoding errors.
10700 (getnameinfo): Use DEPRECATED_NI_IDN.
10701 * inet/idna.c: New file.
10702 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
10703 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
10704 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
10705 (modules-names): Add tst-no-libidn2.
10706 (extra-test-objs): Add tst-no-libidn2.os.
10707 (LDFLAGS-tst-no-libidn2.so): Set soname.
10708 (LOCALES): Set, and generate locales.
10709 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
10710 (tst-resolv-ai_idn-latin1): Likewise.
10711 (tst-resolv-ai_idn-nolibidn2): Likewise.
10712 (tst-resolv-ai_idn.out): Depend on locales.
10713 (tst-resolv-ai_idn-latin1.out): Depend on locales.
10714 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
10715 tst-no-libidn2.so.
10716 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
10717 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
10718 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
10719 * resolv/tst-resolv-ai_idn.c: New file.
10720 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
10721 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
10722 * resolv/tst-no-libidn2.c: Likewise.
10723 * support/support_format_addrinfo.c (format_ai_flags): Do not
10724 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
10725 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
10726 (gaih_inet): Call __idna_to_dns_encoding and
10727 __idna_from_dns_encoding, and use the original (punycode) name if
10728 __idna_from_dns_encoding fails due to an encoding error.
10729 (getaddrinfo): Use DEPRECATED_AI_IDN.
10730 * sysdeps/unix/inet/Subdirs (libidn): Remove.
10731 * sysdeps/unix/inet/configure: Remove file.
10732 * sysdeps/unix/inet/configure.ac: Likewise.
10733
10734 2018-05-23 Florian Weimer <fweimer@redhat.com>
10735
10736 Implement allocate_once.
10737 * include/allocate_once.h: New file.
10738 * misc/allocate_once.c: Likewise.
10739 * misc/tst-allocate_once.c: Likewise.
10740 * misc/Makefile (routines): Add allocate_once.
10741 (tests-internal): Add tst-allocate_once.
10742 (generated): Add tst-allocate_once.mtrace,
10743 tst-allocate_once-mem.out.
10744 (tests-special): Add tst-allocate_once-mem.out.
10745 (tst-allocate_once-ENV): Set MALLOC_TRACE.
10746 (tst-allocate_once-mem.out): Call mtrace.
10747 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
10748
10749 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10750
10751 [BZ #23196]
10752 * string/test-memcpy.c (do_test1): New function.
10753 (test_main): Call it.
10754
10755 2018-05-23 Andreas Schwab <schwab@suse.de>
10756
10757 [BZ #23196]
10758 CVE-2018-11237
10759 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
10760 (L(preloop_large)): Save initial destination pointer in %r11 and
10761 use it instead of %rax after the loop.
10762 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
10763
10764 2018-05-22 Joseph Myers <joseph@codesourcery.com>
10765
10766 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
10767 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
10768 -I../soft-fp. Moved from ....
10769 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
10770 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
10771 * sysdeps/aarch64/e_sqrtl.c: ... here.
10772 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
10773 * sysdeps/aarch64/sfp-machine.h: ... here.
10774
10775 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
10776 -Wmaybe-uninitialized around access to fq[0].
10777 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
10778 Likewise.
10779
10780 [BZ #18471]
10781 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
10782 aliases for non-libc case of versioned symbols.
10783 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
10784 (llseek): Define as compat symbol if
10785 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
10786 with link warning.
10787 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
10788 Make into a compat symbol, disabled for minimum symbol version
10789 GLIBC_2.28 and later.
10790 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
10791
10792 2018-05-22 Florian Weimer <fweimer@redhat.com>
10793
10794 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
10795 not add -mpreferred-stack-boundary=4.
10796 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
10797 (stack-align-test-flags): Likewise.
10798 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
10799 Likewise.
10800 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
10801 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
10802 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
10803 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
10804 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
10805 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
10806 (CFLAGS-tst-align2.c): Likewise.
10807
10808 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10809
10810 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
10811 (index_arch_Prefer_FSRM): Likewise.
10812 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
10813 Also check Prefer_FSRM.
10814 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
10815 Also return OPTIMIZE (erms) for Prefer_FSRM.
10816
10817 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10818
10819 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
10820 (index_cpu_FSRM): Likewise.
10821 (reg_FSRM): Likewise.
10822
10823 2018-05-18 Joseph Myers <joseph@codesourcery.com>
10824
10825 * math/gen-tgmath-tests.py: Import sys.
10826 (Tests.__init__): Initialize macros_seen.
10827 (Tests.add_tests): Add macro to macros_seen. Only generate tests
10828 if requested to do so for this macro.
10829 (Tests.add_all_tests): Take argument for macro for which to
10830 generate tests.
10831 (Tests.check_macro_list): New function.
10832 (main): Handle check-list argument and argument specifying macro
10833 for which to generate tests.
10834 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
10835 [PYTHON] (tgmath3-macro-tests): Likewise.
10836 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
10837 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
10838 not test-tgmath3.c.
10839 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
10840 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
10841 to CFLAGS.
10842 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
10843 [PYTHON] ($(foreach
10844 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
10845 rule.
10846 [PYTHON] (tests-special): Add
10847 $(objpfx)test-tgmath3-macro-list.out.
10848 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
10849
10850 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
10851 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
10852 later.
10853
10854 [BZ #22639]
10855 * time/tzset.c (SECSPERDAY): Cast to time_t.
10856 * time/tst-y2039.c: New file.
10857 * time/Makefile (tests): Add tst-y2039.
10858
10859 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10860
10861 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10862 (PREFETCH_ONE_SET): Remove duplicate line.
10863
10864 2018-05-17 Florian Weimer <fweimer@redhat.com>
10865
10866 * sysdeps/generic/math-type-macros-double.h: Include
10867 <math-nan-payload-double.h> after <libm-alias-double.h>.
10868 * sysdeps/generic/math-type-macros-float.h: Include
10869 <math-nan-payload-float.h> after <libm-alias-float.h>.
10870 * sysdeps/generic/math-type-macros-float128.h: Include
10871 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
10872 * sysdeps/generic/math-type-macros-ldouble.h: Include
10873 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
10874
10875 2018-05-17 Andreas Schwab <schwab@suse.de>
10876
10877 * resolv/res_send.c (__res_context_send): Don't set errno when
10878 returing error after malloc failure.
10879
10880 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
10881
10882 * nptl/allocatestack.c (allocate_stack): Remove the
10883 !__ASSUME_PRIVATE_FUTEX paths.
10884 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
10885 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
10886 Likewise.
10887 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
10888 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10889 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10890 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10891 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
10892 !__ASSUME_PRIVATE_FUTEX path.
10893 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
10894 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
10895 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
10896 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
10897 !__ASSUME_PRIVATE_FUTEX macros.
10898 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
10899 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
10900 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
10901 * sysdeps/unix/sysv/linux/kernel-features.h
10902 (__ASSUME_PRIVATE_FUTEX): Removed.
10903
10904 2018-05-17 Joseph Myers <joseph@codesourcery.com>
10905
10906 * math/Makefile (libm-narrow-fns): Add div.
10907 (libm-test-funcs-narrow): Likewise.
10908 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
10909 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
10910 * math/gen-auto-libm-tests.c (test_functions): Add div.
10911 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
10912 (NARROW_DIV_ROUND_TO_ODD): Likewise.
10913 (NARROW_DIV_TRIVIAL): Likewise.
10914 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
10915 macro.
10916 (__ddivl): Likewise.
10917 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
10918 ddiv.
10919 (CFLAGS-nldbl-ddiv.c): New variable.
10920 (CFLAGS-nldbl-fdiv.c): Likewise.
10921 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
10922 __nldbl_ddivl.
10923 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
10924 prototype.
10925 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
10926 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
10927 * math/auto-libm-test-in: Add tests of div.
10928 * math/auto-libm-test-out-narrow-div: New generated file.
10929 * math/libm-test-narrow-div.inc: New file.
10930 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
10931 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
10932 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
10933 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
10934 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
10935 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
10936 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
10937 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
10938 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
10939 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
10940 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
10941 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
10942 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
10943 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
10944 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
10945 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
10946 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
10947 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
10948 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10949 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
10950 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10951 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10952 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10953 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10954 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10955 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10956 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10957 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10958 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10959 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10960 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10961 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10962 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
10963 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
10964 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
10965 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
10966 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
10967 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10968 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10969 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10970 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10971 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10972 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10973 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10974
10975 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10976
10977 [BZ #23178]
10978 * nscd/nscd-client.h (sendfileall): Remove prototype.
10979 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
10980 (handle_request): Use writeall instead of sendfileall.
10981 * nscd/aicache.c (addhstaiX): Likewise.
10982 * nscd/grpcache.c (cache_addgr): Likewise.
10983 * nscd/hstcache.c (cache_addhst): Likewise.
10984 * nscd/initgrcache.c (addinitgroupsX): Likewise.
10985 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
10986 * nscd/pwdcache.c (cache_addpw): Likewise.
10987 * nscd/servicescache.c (cache_addserv): Likewise.
10988 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
10989 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
10990 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
10991 Remove define.
10992
10993 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
10994
10995 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
10996 Include <string/strncat.c>.
10997 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
10998 alias.
10999 (__GI___strncat): New hidden alias.
11000
11001 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11002
11003 * sysdeps/mips/mips32/libm-test-ulps: Update.
11004 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11005
11006 2018-05-16 Florian Weimer <fweimer@redhat.com>
11007
11008 * support/Makefile (libsupport-routines): Add support_quote_blob,
11009 support_test_compare_blob.
11010 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11011 * support/check.h (TEST_COMPARE_BLOB): Define.
11012 (support_test_compare_blob): Declare.
11013 * support/support.h (support_quote_blob): Declare.
11014 * support/support_quote_blob.c: New file.
11015 * support/support_test_compare_blob.c: Likewise.
11016 * support/tst-support_quote_blob.c: Likewise.
11017 * support/tst-test_compare_blob.c: Likewise.
11018
11019 2018-05-16 Florian Weimer <fweimer@redhat.com>
11020
11021 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11022 of <strtod_nan_double.h>.
11023 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11024 instead of SET_MANTISSA.
11025 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11026 of include <strtod_nan_float.h>.
11027 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11028 instead of <strtod_nan_ldouble.h>.
11029 * stdlib/strtod_nan_double.h: Move to ...
11030 * sysdeps/generic/math-nan-payload-double.h: ... here.
11031 (FLOAT): Remove definition.
11032 (SET_MANTISSA): Rename to ...
11033 (SET_NAN_PAYLOAD): ... this.
11034 * stdlib/strtod_nan_float.h: Move to ...
11035 * sysdeps/generic/math-nan-payload-float.h: ... here.
11036 (FLOAT): Remove definition.
11037 (SET_MANTISSA): Rename to ...
11038 (SET_NAN_PAYLOAD): ... this.
11039 * sysdeps/generic/math-type-macros-double.h: Include
11040 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11041 instead of <math-svid-compat.h>.
11042 * sysdeps/generic/math-type-macros-float.h: Include
11043 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11044 instead of <math-svid-compat.h>.
11045 * sysdeps/generic/math-type-macros-float128.h: Include
11046 <math-nan-payload-float128.h>.
11047 * sysdeps/generic/math-type-macros-ldouble.h: Include
11048 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11049 instead of <math-svid-compat.h>.
11050 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11051 check for definition.
11052 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11053 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11054 Include <ieee754_float128.h>.
11055 (FLOAT): Remove definition.
11056 (SET_MANTISSA): Rename to ...
11057 (SET_NAN_PAYLOAD): ... this.
11058 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11059 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11060 Do not include <float128_private.h>.
11061 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11062 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11063 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11064 (FLOAT): Remove definition.
11065 (SET_MANTISSA): Rename to ...
11066 (SET_NAN_PAYLOAD): ... this.
11067 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11068 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11069 (FLOAT): Remove definition.
11070 (SET_MANTISSA): Rename to ...
11071 (SET_NAN_PAYLOAD): ... this.
11072 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11073 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11074 (FLOAT): Remove definition.
11075 (SET_MANTISSA): Rename to ...
11076 (SET_NAN_PAYLOAD): ... this.
11077 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11078 of "../stdlib/strtod_nan_double.h".
11079 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11080 of "../stdlib/strtod_nan_float.h".
11081 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11082 instead of "../stdlib/strtod_nan_ldouble.h".
11083 * manual/arith.texi (Parsing of Floats): Adjust comment.
11084
11085 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11086
11087 * math/Makefile (libm-narrow-fns): Add mul.
11088 (libm-test-funcs-narrow): Likewise.
11089 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11090 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11091 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11092 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11093 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11094 (NARROW_MUL_TRIVIAL): Likewise.
11095 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11096 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11097 macro.
11098 (__dmull): Likewise.
11099 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11100 dmul.
11101 (CFLAGS-nldbl-dmul.c): New variable.
11102 (CFLAGS-nldbl-fmul.c): Likewise.
11103 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11104 __nldbl_dmull.
11105 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11106 prototype.
11107 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11108 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11109 * math/auto-libm-test-in: Add tests of mul.
11110 * math/auto-libm-test-out-narrow-mul: New generated file.
11111 * math/libm-test-narrow-mul.inc: New file.
11112 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11113 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11114 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11115 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11116 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11117 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11118 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11119 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11120 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11121 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11122 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11123 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11124 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11125 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11126 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11127 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11128 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11129 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11130 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11131 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11132 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11133 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11134 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11135 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11136 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11137 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11138 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11139 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11140 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11141 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11142 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11143 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11144 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11145 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11146 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11147 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11148 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11149 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11150 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11151 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11152 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11153 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11154 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11155 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11156
11157 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11158
11159 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11160 with *%eax in call.
11161
11162 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11163
11164 * sysdeps/i386/ldsodefs.h: Removed.
11165 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11166 * sysdeps/x86/ldsodefs.h: This.
11167 (La_i86_regs): New.
11168 (La_i86_retval): Likewise.
11169 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11170 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11171
11172 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11173
11174 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11175 unnecessary testl.
11176
11177 2018-05-13 Alan Modra <amodra@gmail.com>
11178
11179 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11180 R_PARISC_TLS_DTPOFF32 reloc addend.
11181
11182 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11183
11184 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11185 * math/math.h: Restrict the prototype definition for the functions
11186 issignaling(_Float128) and iszero(_Float128); and template
11187 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11188 __HAVE_FLOAT128_UNLIKE_LDBL.
11189 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11190 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11191 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11192 __f128() constants; define the type _Float128 as long double;
11193 and reuse long double in __CFLOAT128.
11194
11195 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11196
11197 * sysdeps/generic/math_private.h: Do not include
11198 <math-barriers.h>.
11199 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11200 <math_private.h>.
11201 * math/fromfp.h: Include <math-barriers.h>.
11202 * math/math-narrow.h: Likewise.
11203 * math/s_nextafter.c: Likewise.
11204 * math/s_nexttowardf.c: Likewise.
11205 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11206 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11207 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11208 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11209 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11210 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11211 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11212 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11213 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11214 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11215 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11216 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11217 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11218 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11219 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11220 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11221 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11222 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11223 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11224 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11225 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11226 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11227 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11228 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11229 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11230 * sysdeps/ieee754/k_standardl.c: Likewise.
11231 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11232 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11233 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11234 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11235 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11236 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11237 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11238 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11239 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11240 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11241 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11242 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11243 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11244 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11245 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11246 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11247 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11248 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11249 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11250 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11251 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11252 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11253
11254 2018-05-11 Florian Weimer <fweimer@redhat.com>
11255
11256 Use 64-bit epoch values in the time zone file parser.
11257 * include/time.h (internal_time_t): Define.
11258 (__tzfile_compute): Use it.
11259 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11260 member.
11261 (transitions): Switch to internal_time_t.
11262 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11263 types.
11264 (__tzfile_compute): Use internal_time_t for timer argument. Check
11265 for truncation before calling __offtime.
11266
11267 2018-05-11 Florian Weimer <fweimer@redhat.com>
11268
11269 [BZ #23166]
11270 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11271 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11272 Likewise.
11273 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11274 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11275 export without --enable-obsolete-rpc.
11276 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11277 symbol. This should not have been exported, ever.
11278
11279 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11280
11281 [BZ #23152]
11282 * localedata/locales/gd_GB (abmon): Fix typo in May:
11283 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
11284
11285 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11286
11287 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11288 Use multiple registers to copy data in loop tail.
11289
11290 * sysdeps/aarch64/multiarch/memmove_falkor.S
11291 (__memmove_falkor): Use multiple registers to move data in
11292 loop tail.
11293
11294 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11295
11296 * math/math-underflow.h: New file.
11297 * sysdeps/generic/math_private.h: Do not include <float.h>.
11298 (fabs_tg): Remove macro. Moved to math-underflow.h.
11299 (min_of_type_f): Likewise.
11300 (min_of_type_): Likewise.
11301 (min_of_type_l): Likewise.
11302 (min_of_type_f128): Likewise.
11303 (min_of_type): Likewise.
11304 (math_check_force_underflow): Likewise.
11305 (math_check_force_underflow_nonneg): Likewise.
11306 (math_check_force_underflow_complex): Likewise.
11307 * math/e_exp2_template.c: Include <math-underflow.h>.
11308 * math/k_casinh_template.c: Likewise.
11309 * math/s_catan_template.c: Likewise.
11310 * math/s_catanh_template.c: Likewise.
11311 * math/s_ccosh_template.c: Likewise.
11312 * math/s_cexp_template.c: Likewise.
11313 * math/s_clog10_template.c: Likewise.
11314 * math/s_clog_template.c: Likewise.
11315 * math/s_csin_template.c: Likewise.
11316 * math/s_csinh_template.c: Likewise.
11317 * math/s_csqrt_template.c: Likewise.
11318 * math/s_ctan_template.c: Likewise.
11319 * math/s_ctanh_template.c: Likewise.
11320 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11321 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11322 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11323 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11324 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11325 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11326 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11327 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11328 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11329 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11330 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11331 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11332 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11333 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11334 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11335 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11336 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11337 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11338 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11339 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11340 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11341 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11342 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11343 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11344 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11345 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11346 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11347 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11348 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11349 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11350 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11351 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11352 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11353 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11354 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11355 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11356 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11357 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11358 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11359 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11360 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11361 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11362 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11363 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11364 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11365 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11366 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11367 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11368 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11369 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11370 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11371 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11372 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11373 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11374 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11375 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11376 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11377 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11378 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11379 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11380 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11381 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11382 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11383 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11384 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11385 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11386 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11387 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11388 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11389 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11390 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11391 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11392 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11393 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
11394 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11395 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11396 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11397 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11398 * sysdeps/x86/fpu/powl_helper.c: Likewise.
11399 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
11400 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
11401 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11402 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
11403 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
11404
11405 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11406
11407 * sysdeps/generic/math-barriers.h: New file.
11408 * sysdeps/generic/math_private.h [!math_opt_barrier]
11409 (math_opt_barrier): Move to math-barriers.h.
11410 [!math_opt_barrier] (math_force_eval): Likewise.
11411 * sysdeps/aarch64/fpu/math-barriers.h: New file.
11412 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
11413 math-barriers.h.
11414 (math_force_eval): Likewise.
11415 * sysdeps/alpha/fpu/math-barriers.h: New file.
11416 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
11417 math-barriers.h.
11418 (math_force_eval): Likewise.
11419 * sysdeps/x86/fpu/math-barriers.h: New file.
11420 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
11421 math-barriers.h.
11422 (math_force_eval): Likewise.
11423 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
11424 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
11425 multiple-include guard for rename.
11426 * sysdeps/powerpc/fpu/math-barriers.h: New file.
11427 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
11428 math-barriers.h.
11429 (math_force_eval): Likewise.
11430
11431 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
11432
11433 [BZ #22786]
11434 CVE-2018-11236
11435 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
11436 computation.
11437 * stdlib/Makefile (test-bz22786): New test.
11438 * stdlib/test-bz22786.c: New test.
11439
11440 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11441
11442 * include/math-narrow-eval.h: New file. Contents moved from ....
11443 * sysdeps/generic/math_private.h: ... here.
11444 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
11445 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11446 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
11447 * stdlib/strtod_l.c: Likewise.
11448 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11449 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11450 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11451 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11452 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11453 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11454 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11455 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11456 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11457 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
11458 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11459 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
11460 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11461 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11462 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11463 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11464 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11465 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11466 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11467 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11468 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11469 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11470 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11471 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11472 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11473 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11474 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11475 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11476 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
11477
11478 2018-05-08 Andreas Schwab <schwab@suse.de>
11479
11480 * sysdeps/nptl/internaltypes.h: Fix comment.
11481
11482 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
11483
11484 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11485 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
11486 hidden.
11487
11488 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
11489
11490 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
11491 of I into loop header.
11492 * benchtests/bench-memmove-walk.c
11493 (test_main): Likewise.
11494
11495 2018-05-07 Alexandre Oliva <oliva@gnu.org>
11496
11497 Revert:
11498 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11499 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11500
11501 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
11502
11503 [BZ #20419]
11504 * elf/dl-load.c (open_verify): Fix stack overflow.
11505 * elf/Makefile (tst-big-note): New test.
11506 * elf/tst-big-note-lib.S: New.
11507 * elf/tst-big-note.c: New.
11508
11509 2018-05-04 Joseph Myers <joseph@codesourcery.com>
11510
11511 * scripts/abilist.awk: Ignore absolute symbols.
11512 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
11513 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
11514 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
11515 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
11516 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
11517 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
11518 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11519 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
11520 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
11521 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
11522 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
11523 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
11524 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
11525 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
11526 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
11527 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
11528 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
11529 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
11530 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11531 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
11532 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11533 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
11534 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
11535 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
11536 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
11537 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
11538 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
11539 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
11540 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11541 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
11542 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
11543 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11544 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
11545 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11546 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
11547 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
11548 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
11549 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
11550 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
11551 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
11552 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
11553 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11554 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
11555 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
11556 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11557 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
11558 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11559 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
11560 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
11561 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
11562 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
11563 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
11564 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
11565 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
11566 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11567 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
11568 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
11569 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11570 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
11571 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11572 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
11573 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
11574 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
11575 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
11576 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
11577 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
11578 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
11579 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11580 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
11581 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
11582 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11583 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
11584 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11585 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
11586 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
11587 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
11588 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
11589 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
11590 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
11591 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
11592 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11593 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
11594 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
11595 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11596 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
11597 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11598 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
11599 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
11600 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
11601 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
11602 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
11603 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
11604 Likewise.
11605 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
11606 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11607 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
11608 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
11609 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11610 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
11611 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11612 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
11613 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
11614 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
11615 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
11616 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
11617 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
11618 Likewise.
11619 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
11620 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11621 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
11622 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
11623 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11624 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
11625 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11626 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
11627 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
11628 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
11629 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
11630 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
11631 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
11632 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
11633 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11634 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
11635 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
11636 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11637 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
11638 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11639 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
11640 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
11641 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
11642 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
11643 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11644 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
11645 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
11646 Likewise.
11647 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
11648 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
11649 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
11650 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
11651 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11652 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
11653 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
11654 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
11655 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
11656 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
11657 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
11658 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
11659 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
11660 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11661 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
11662 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
11663 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
11664 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
11665 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
11666 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
11667 Likewise.
11668 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
11669 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
11670 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
11671 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11672 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
11673 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11674 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
11675 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
11676 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
11677 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
11678 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11679 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
11680 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
11681 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11682 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
11683 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
11684 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
11685 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
11686 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11687 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
11688 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
11689 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11690 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
11691 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11692 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
11693 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
11694 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
11695 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
11696 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
11697 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11698 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
11699 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
11700 Likewise.
11701 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
11702 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
11703 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
11704 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
11705 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11706 Likewise.
11707 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
11708 Likewise.
11709 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
11710 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
11711 Likewise.
11712 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
11713 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11714 Likewise.
11715 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11716 Likewise.
11717 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
11718 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
11719 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
11720 Likewise.
11721 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
11722 Likewise.
11723 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
11724 Likewise.
11725 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
11726 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
11727 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11728 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
11729 Likewise.
11730 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
11731 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
11732 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
11733 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11734 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11735 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
11736 Likewise.
11737 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
11738 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11739 Likewise.
11740 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11741 Likewise.
11742 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
11743 Likewise.
11744 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
11745 Likewise.
11746 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
11747 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
11748 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
11749 Likewise.
11750 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
11751 Likewise.
11752 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
11753 Likewise.
11754 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
11755 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
11756 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
11757 Likewise.
11758 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
11759 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11760 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
11761 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
11762 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11763 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
11764 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11765 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
11766 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
11767 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
11768 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
11769 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
11770 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
11771 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
11772 Likewise.
11773 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11774 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
11775 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
11776 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11777 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
11778 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11779 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
11780 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
11781 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
11782 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
11783 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
11784 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
11785 Likewise.
11786 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11787 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
11788 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
11789 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11790 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
11791 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11792 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
11793 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
11794 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
11795 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
11796 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
11797 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
11798 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
11799 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11800 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
11801 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
11802 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11803 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
11804 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11805 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
11806 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
11807 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
11808 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
11809 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
11810 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
11811 Likewise.
11812 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
11813 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11814 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
11815 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
11816 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11817 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
11818 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11819 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
11820 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
11821 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
11822 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
11823 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
11824 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
11825 Likewise.
11826 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
11827 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11828 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
11829 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
11830 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11831 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
11832 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11833 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
11834 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
11835 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
11836 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
11837 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
11838 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
11839 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
11840 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11841 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
11842 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
11843 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11844 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
11845 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11846 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
11847 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
11848 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
11849 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
11850 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
11851 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
11852 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
11853 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
11854 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11855 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
11856 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
11857 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11858 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
11859 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11860 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
11861 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
11862 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
11863 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
11864
11865 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
11866
11867 [BZ #23137]
11868 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
11869 Use atomic_load_acquire to load __tid.
11870
11871 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11872
11873 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
11874 Restore the pointer into %rdx, after syscall and use %rdx,
11875 instead of %rsi, to restore context.
11876
11877 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11878
11879 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
11880 Pop the pointer into %rdx after syscall and use %rdx, instead
11881 of %rsi, to restore context.
11882
11883 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11884
11885 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
11886 handlers after setjmp.
11887 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
11888 defined.
11889 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
11890 <libc-pointer-arith.h>.
11891 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
11892 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
11893 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
11894 _JUMP_BUF_SIGSET_BITS_PER_WORD.
11895 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
11896 * sysdeps/x86/__longjmp_cancel.S: New file.
11897 * sysdeps/x86/longjmp.c: Likewise.
11898 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
11899
11900 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11901
11902 * NEWS: Add ustat.h deprecation entry.
11903 * bits/ustat.h: Remove file.
11904 * misc/sys/ustat.h: Likewise.
11905 * misc/ustat.h: Likewise.
11906 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
11907 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
11908 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
11909 compatibility mode.
11910 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
11911 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
11912 generic Linux implementation.
11913
11914 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11915
11916 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
11917 * math/w_expl_compat.c: Likewise.
11918 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
11919
11920 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11921
11922 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11923
11924 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11925
11926 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
11927 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
11928 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
11929 Remove.
11930 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
11931 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11932 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11933 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
11934 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
11935 and SYSCALL_LL64.
11936
11937 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11938
11939 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
11940
11941 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
11942 * math/w_asin_template.c: Likewise.
11943 * math/w_atanh_template.c: Likewise.
11944
11945 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11946
11947 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
11948 to powerpc/powerpc64/be for big-endian.
11949 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
11950 little-endian.
11951
11952 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
11953 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
11954 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
11955 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
11956 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
11957 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
11958 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
11959 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
11960 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
11961 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
11962 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
11963 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
11964 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
11965 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
11966 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
11967 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
11968 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
11969 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
11970 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
11971 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
11972 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
11973 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
11974 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
11975 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
11976 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
11977 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
11978 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
11979 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
11980 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
11981 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
11982 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
11983 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
11984
11985 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
11986 adjusted to imply powerpc64 and older processors on powerpc64/be.
11987 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
11988 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
11989 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
11990 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
11991 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
11992 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
11993 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
11994 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
11995 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
11996 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
11997 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
11998 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
11999 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12000 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12001 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12002 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12003 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12004 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12005 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12006 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12007 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12008 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12009 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12010 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12011 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12012 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12013 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12014 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12015 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12016 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12017 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12018
12019 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12020 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12021 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12022 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12023
12024 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12025 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12026 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12027 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12028
12029 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12030 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12031 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12032 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12033 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12034 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12035 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12036 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12037 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12038 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12039 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12040
12041 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12042 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12043 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12044 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12045 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12046 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12047 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12048 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12049 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12050 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12051 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12052
12053 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12054 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12055 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12056 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12057 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12058 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12059 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12060 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12061 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12062 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12063 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12064 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12065
12066 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12067 and adjusted to imply olders processors.
12068 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12069 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12070 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12071 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12072 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12073 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12074 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12075 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12076 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12077 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12078 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12079
12080 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12081 powerpc64/le.
12082 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12083 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12084
12085 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12086 powerpc64le.
12087 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12088 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12089
12090 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12091 powerpc64/be.
12092 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12093 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12094 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12095
12096 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12097 powerpc64 and adjusted.
12098 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12099 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12100 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12101 Likewise.
12102
12103 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12104
12105 * sysdeps/tile: Remove.
12106 * sysdeps/unix/sysv/linux/tile: Likewise.
12107 * README (tilegx-*-linux-gnu): Remove from list of supported
12108 configurations.
12109 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12110 contribution of support for generic Linux kernel syscall
12111 interface.
12112 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12113 tilegx configurations.
12114 (Config.install_linux_headers): Do not handle tile.
12115 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12116 in comment.
12117 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12118 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12119 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12120 conditional undefine and redefine.
12121 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12122 in comment.
12123 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12124 conditional undefine and redefine.
12125
12126 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12127
12128 * signal/tst-sigaction.c: New file to test BZ #23069.
12129 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12130
12131 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12132
12133 [BZ #22766]
12134 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12135 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12136 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12137 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12138
12139 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12140
12141 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12142 _DIRENT_MATCHES_DIRENT64 is not defined.
12143 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12144 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12145 is defined.
12146 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12147 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12148
12149 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12150
12151 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12152 version to GCC 8 branch.
12153
12154 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12155
12156 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12157 (check_no_hidden): Use type of original function when declaring
12158 alias.
12159
12160 * sysdeps/unix/sysv/linux/sys/ptrace.h
12161 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12162 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12163 (struct __ptrace_seccomp_metadata): New type.
12164 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12165 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12166 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12167 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12168 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12169 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12170 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12171 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12172 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12173 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12174 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12175 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12176 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12177 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12178 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12179 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12180
12181 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12182
12183 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12184 defined.
12185 * dirent/versionsort.c (versionsort): Likewise.
12186 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12187 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12188 * dirent/versionsort64.c (versionsort64): Likewise.
12189 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12190 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12191 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12192 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12193 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12194 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12195 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12196 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12197 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12198 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12199 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12200 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12201 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12202 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12203
12204 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12205
12206 * elf/elf.h (NT_PPC_PKEY): New macro.
12207
12208 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12209
12210 [BZ #23094]
12211 * localedata/locales/hr_HR: fix thousands_sep and
12212 mon_thousands_sep
12213
12214 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12215
12216 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12217 (XTABS): Define to TAB3.
12218
12219 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12220
12221 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12222
12223 * dirent/scandir-tail-common.c: New file.
12224 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12225 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12226 * dirent/scandir.c: Use scandir-tail-common.c.
12227 * dirent/scandirat.c: Likewise.
12228 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12229 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12230 if _DIRENT_MATCHES_DIRENT64 is defined.
12231 * dirent/scandirat64.c (scandirat64): Likewise.
12232 * include/dirent.h (__scandir_tail): Only define iff
12233 _DIRENT_MATCHES_DIRENT64 is not defined.
12234 (__scandir64_tail): Define regardless.
12235 (__scandirat, scandirat64): Remove libc_hidden_proto.
12236 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12237 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12238 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12239 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12240 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12241 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12242 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12243
12244 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12245
12246 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12247 New macro.
12248 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12249 Increase to 24.
12250 (_dl_aarch64_cap_flags): Add asimdfhm.
12251
12252 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12253
12254 * sysdeps/nios2/libm-test-ulps: Update.
12255
12256 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12257
12258 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12259 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12260
12261 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12262 requirements.
12263 (_DIRENT_MATCHES_DIRENT64): Undef
12264 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12265 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12266 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12267 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12268 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12269 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12270 use getdents64 syscalls as base.
12271 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12272 symbol if required.
12273 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12274 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12275 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12276 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12277 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12278 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12279 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12280 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12281 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12282 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12283 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
12284
12285 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12286
12287 * scripts/test_printers_common.py (init_test): Disable lock elision.
12288
12289 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12290
12291 * math/test-tgmath.c (count_double, count_float,
12292 count_ldouble, count_cdouble, count_cfloat,
12293 count_cldouble): Use volatile int.
12294
12295 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12296
12297 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12298 (conformtest-xfail-conds): Add i386-gnu.
12299 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12300 i386-gnu.
12301 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12302 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12303 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12304 msqid_ds.msg_lrpid): Likewise.
12305 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12306 Likewise.
12307 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
12308 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
12309 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
12310 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
12311 unsigned int.
12312 (struct statvfs64): Likewise.
12313 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
12314 Likewise.
12315 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
12316 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
12317 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
12318 instead of wait_queue.
12319 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
12320 instead of vm_area_struct.
12321 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
12322 struct sched_param definition to it.
12323 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12324 * bits/types/struct_sched_param.h: New file.
12325 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
12326 <bits/types/struct_sched_param.h> instead of <sched.h>.
12327 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
12328 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
12329 generic version but include <bits/pthreadtypes.h> to make struct
12330 sigevent's sigev_notify_attributes field a pthread_attr_t*.
12331 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
12332 non-compliant.
12333 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
12334 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
12335 [__USE_XOPEN] (OFDEL): New macro.
12336 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
12337 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
12338 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
12339 prototypes.
12340 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
12341 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
12342 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
12343 non-compliant.
12344 * sysdeps/i386/sys/ucontext.h: Likewise.
12345 * sysdeps/m68k/sys/ucontext.h: Likewise.
12346 * sysdeps/mips/sys/ucontext.h: Likewise.
12347 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
12348 * sysdeps/mach/hurd/i386/Makefile
12349 (test-xfail-POSIX/fcntl.h/conform): Add.
12350 (test-xfail-POSIX/signal.h/conform): Add.
12351 (test-xfail-POSIX/semaphore.h/conform): Add.
12352 (test-xfail-POSIX/regex.h/conform): Add.
12353 (test-xfail-POSIX/aio.h/conform): Add.
12354 (test-xfail-POSIX/mqueue.h/conform): Add.
12355 (test-xfail-POSIX/sys/types.h/conform): Add.
12356 (test-xfail-UNIX98/fcntl.h/conform): Add.
12357 (test-xfail-UNIX98/netdb.h/conform): Add.
12358 (test-xfail-UNIX98/signal.h/conform): Add.
12359 (test-xfail-UNIX98/semaphore.h/conform): Add.
12360 (test-xfail-UNIX98/regex.h/conform): Add.
12361 (test-xfail-UNIX98/aio.h/conform): Add.
12362 (test-xfail-UNIX98/ftw.h/conform): Add.
12363 (test-xfail-UNIX98/mqueue.h/conform): Add.
12364 (test-xfail-UNIX98/netinet/in.h/conform): Add.
12365 (test-xfail-UNIX98/sys/wait.h/conform): Add.
12366 (test-xfail-UNIX98/sys/sem.h/conform): Add.
12367 (test-xfail-UNIX98/sys/uio.h/conform): Add.
12368 (test-xfail-UNIX98/sys/socket.h/conform): Add.
12369 (test-xfail-UNIX98/sys/types.h/conform): Add.
12370 (test-xfail-UNIX98/stdlib.h/conform): Add.
12371 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
12372 (test-xfail-POSIX2008/fcntl.h/conform): Add.
12373 (test-xfail-POSIX2008/netdb.h/conform): Add.
12374 (test-xfail-POSIX2008/signal.h/conform): Add.
12375 (test-xfail-POSIX2008/semaphore.h/conform): Add.
12376 (test-xfail-POSIX2008/regex.h/conform): Add.
12377 (test-xfail-POSIX2008/aio.h/conform): Add.
12378 (test-xfail-POSIX2008/mqueue.h/conform): Add.
12379 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
12380 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
12381 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
12382 (test-xfail-POSIX2008/sys/types.h/conform): Add.
12383 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
12384 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
12385 (test-xfail-XOPEN2K/netdb.h/conform): Add.
12386 (test-xfail-XOPEN2K/signal.h/conform): Add.
12387 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
12388 (test-xfail-XOPEN2K/regex.h/conform): Add.
12389 (test-xfail-XOPEN2K/aio.h/conform): Add.
12390 (test-xfail-XOPEN2K/ftw.h/conform): Add.
12391 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
12392 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
12393 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
12394 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
12395 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
12396 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
12397 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
12398 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
12399 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
12400 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
12401 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
12402 (test-xfail-XOPEN2K8/signal.h/conform): Add.
12403 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
12404 (test-xfail-XOPEN2K8/regex.h/conform): Add.
12405 (test-xfail-XOPEN2K8/aio.h/conform): Add.
12406 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
12407 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
12408 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
12409 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
12410 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
12411 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
12412 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
12413 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
12414 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
12415 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
12416 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
12417 i386-gnu.
12418 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
12419 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
12420
12421 2018-04-18 Joseph Myers <joseph@codesourcery.com>
12422
12423 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
12424 --enable-obsolete for powerpc-linux-gnuspe.
12425
12426 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12427
12428 * conform/data/sys/un.h-data: Allow sun_ prefix.
12429 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
12430 prototypes.
12431 * sysdeps/mach/include/mach.h: Likewise.
12432 * sysdeps/mach/include/mach/mig_support.h: Likewise.
12433 * sysdeps/mach/include/mach_error.h: Likewise.
12434
12435 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12436
12437 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
12438 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
12439 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
12440 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
12441
12442 2018-04-16 Andreas Schwab <schwab@suse.de>
12443
12444 [BZ #19527]
12445 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
12446
12447 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
12448
12449 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
12450 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
12451
12452 2018-04-12 DJ Delorie <dj@redhat.com>
12453
12454 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12455 version to 4.16.
12456
12457 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
12458
12459 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
12460 (struct kernel_sigaction): Use the same definition on 31bit as is used
12461 on 64bit.
12462
12463 2018-04-09 Florian Weimer <fweimer@redhat.com>
12464
12465 [BZ #23037]
12466 * resolv/res_send.c (send_dg): Use designated initializers instead
12467 of assignment to zero-initialize other fields of struct mmsghdr.
12468
12469 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12470
12471 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
12472 __READDIR_ALIAS): Undefine after usage.
12473 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
12474 __READDIR_R_ALIAS): Likewise.
12475 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
12476 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
12477 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
12478 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
12479 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
12480 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
12481 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
12482 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12483 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
12484 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
12485 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
12486 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
12487 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
12488 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
12489 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
12490 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
12491 * sysdeps/unix/sysv/linux/readdir.c: New file.
12492 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
12493 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
12494 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
12495
12496 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
12497
12498 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
12499
12500 * manual/charset.texi (Converting a Character): Fix typo.
12501
12502 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12503
12504 * sysdeps/sparc/fpu/libm-test-ulps: Update.
12505
12506 * sysdeps/arm/libm-test-ulps: Update.
12507
12508 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
12509 as base implementation.
12510 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
12511 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12512 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12513 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12514 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12515 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
12516 remove unrequired definitions and update comments.
12517 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
12518 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
12519 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
12520 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
12521 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
12522 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
12523 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
12524 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
12525 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
12526 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
12527 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
12528 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
12529 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
12530 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
12531 and RESET_SA_RESTORER hooks.
12532
12533 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
12534
12535 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12536
12537 2018-04-05 Florian Weimer <fweimer@redhat.com>
12538
12539 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
12540 integer overflow, memory leak on error, and indeterminate errno
12541 value. Add a null wide character to terminate the result string.
12542 * manual/charset.texi (Converting a Character): Mention embedded
12543 null bytes in the mbrtowc input string. Explain what happens in
12544 the -2 result case. Do not claim that mbrtowc is simple or
12545 obvious to use. Adjust the description of the code example. Use
12546 @code, not @var, for concrete variables.
12547
12548 2018-04-05 Florian Weimer <fweimer@redhat.com>
12549
12550 * manual/examples/mbstouwcs.c: New file.
12551 * manual/charset.texi (Converting a Character): Include it.
12552
12553 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
12554
12555 * include/dirent.h (dirfd): Add hidden proto.
12556 * dirent/dirfd.c (dirfd): Add hidden def.
12557 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
12558 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
12559
12560 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12561
12562 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
12563 sin, cos and sincos to 1 ULP.
12564
12565 2018-04-04 Maciej W. Rozycki <macro@mips.com>
12566
12567 [BZ #19818]
12568 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
12569 symbols.
12570 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
12571 * elf/tst-absolute-sym.c: New file.
12572 * elf/tst-absolute-sym-lib.c: New file.
12573 * elf/tst-absolute-sym-lib.lds: New file.
12574 * elf/Makefile (tests): Add `tst-absolute-sym'.
12575 (modules-names): Add `tst-absolute-sym-lib'.
12576 (LDLIBS-tst-absolute-sym-lib.so): New variable.
12577 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
12578 ($(objpfx)tst-absolute-sym): New dependency.
12579
12580 [BZ #19818]
12581 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
12582 parameter.
12583 (SYMBOL_ADDRESS): New macro.
12584 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
12585 SYMBOL_ADDRESS for symbol address calculation.
12586 * elf/dl-runtime.c (_dl_fixup): Likewise.
12587 (_dl_profile_fixup): Likewise.
12588 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
12589 * elf/rtld.c (dl_main): Likewise.
12590 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
12591 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
12592 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
12593 (elf_machine_rela): Likewise.
12594 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
12595 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
12596 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
12597 (elf_machine_rela): Likewise.
12598 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
12599 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
12600 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
12601 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
12602 Likewise.
12603 (elf_machine_reloc): Likewise.
12604 (elf_machine_got_rel): Likewise.
12605 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
12606 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
12607 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
12608 Likewise.
12609 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12610 Likewise.
12611 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
12612 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
12613 Likewise.
12614 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
12615 Likewise.
12616 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12617 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
12618 Likewise.
12619 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12620 Likewise.
12621 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
12622 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
12623
12624 2018-04-04 Zack Weinberg <zackw@panix.com>
12625
12626 * sysdeps/generic/internal-signals.h: Include signal.h,
12627 sigsetops.h, and stdbool.h.
12628 (__libc_signal_block_all): Actually block all signals.
12629 (__libc_signal_block_app): Likewise.
12630 (__libc_signal_restore_set): Actually restore the signal mask.
12631
12632 2018-04-04 Florian Weimer <fweimer@redhat.com>
12633
12634 inet: Actually build and run tst-deadline.
12635 * inet/Makefile (tests-internal): Add tst-deadline and do not
12636 overwrite the variable.
12637 (tests-static-internal): Remove variable.
12638
12639 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
12640
12641 [BZ #22947]
12642 * bits/uio-ext.h (RWF_APPEND): New.
12643 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
12644 * manual/llio.texi: Document RWF_APPEND.
12645 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
12646 (RWF_SUPPORTED): Add RWF_APPEND.
12647
12648 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12649
12650 [BZ #22391]
12651 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
12652 check for internal nptl signals.
12653 * nptl/sigaction.c (__sigaction): Likewise.
12654 * signal/sigaddset.c (sigaddset): Likewise.
12655 * signal/sigdelset.c (sigdelset): Likewise.
12656 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
12657 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
12658 value.
12659 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
12660 to filter out internal nptl signals.
12661 * signal/tst-sigset.c (do_test): Check ech signal indidually and
12662 also check realtime signals using standard macros.
12663 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
12664 __is_internal_signal, __libc_signal_block_all,
12665 __libc_signal_block_app, __libc_signal_restore_set): New functions.
12666 * sysdeps/nptl/sigfillset.c: Remove file.
12667 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
12668 Change return to bool.
12669 (__clear_internal_signals): Remove SIGTIMER clean since it is
12670 equal to SIGCANEL on Linux.
12671 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
12672 signal set was constructed using standard functions.
12673
12674 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
12675
12676 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
12677 ifname is too long.
12678 * hurd/hurdsig.c (interrupted_reply_port_location): Use
12679 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
12680 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
12681 hidden def.
12682 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
12683 * signal/sigaddset.c: Include <sigsetopts.h>.
12684 * signal/sigdelset.c: Likewise.
12685
12686 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12687
12688 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
12689 (__cos): Likewise.
12690 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
12691 logic as sin and cos.
12692
12693 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12694
12695 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
12696 inputs. Return correct sign.
12697 (do_sincos): Remove small input check before do_sin, let do_sin set
12698 the sign.
12699 (__sin): Likewise.
12700 (__cos): Likewise.
12701
12702 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12703
12704 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
12705 (do_cos_slow): Likewise.
12706 (do_sin_slow): Likewise.
12707 (reduce_and_compute): Likewise.
12708 (slow): Likewise.
12709 (slow1): Likewise.
12710 (slow2): Likewise.
12711 (sloww): Likewise.
12712 (sloww1): Likewise.
12713 (sloww2): Likewise.
12714 (bslow): Likewise.
12715 (bslow1): Likewise.
12716 (bslow2): Likewise.
12717 (cslow2): Likewise.
12718
12719 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12720
12721 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
12722 (do_cos): Remove corp parameter and calculations.
12723 (do_sin): Likewise.
12724 (do_sincos): Remove cor variable.
12725 (__sin): Use do_sincos for huge inputs.
12726 (__cos): Likewise.
12727 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12728 (reduce_and_compute_sincos): Remove unused function.
12729
12730 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12731
12732 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
12733 reduce_sincos, improve accuracy to 136 bits.
12734 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
12735 (__sin): Use improved reduction and simplified do_sincos calculation.
12736 (__cos): Likewise.
12737 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12738
12739 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12740
12741 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
12742 (do_sincos_2): Likewise.
12743 (__sin): Remove middle range reduction case.
12744 (__cos): Likewise.
12745 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
12746 reduction case.
12747
12748 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12749
12750 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
12751 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
12752 inputs.
12753 (__cos): Likewise.
12754 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
12755
12756 2018-04-03 Joseph Myers <joseph@codesourcery.com>
12757
12758 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12759 version to 4.16
12760
12761 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12762
12763 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
12764 Remove definitions.
12765 (opendir_oflags): Use O_DIRECTORY regardless.
12766 (__opendir, __opendirat): Remove need_isdir_precheck usage.
12767 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
12768
12769 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12770
12771 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
12772 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
12773 macros.
12774 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
12775 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
12776 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
12777 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
12778 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
12779 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
12780
12781 * htl/Makefile: Bump licence to LGPL 2.1+.
12782 * htl/alloca_cutoff.c: Likewise.
12783 * htl/cthreads-compat.c: Likewise.
12784 * htl/lockfile.c: Likewise.
12785 * htl/pt-alloc.c: Likewise.
12786 * htl/pt-cancel.c: Likewise.
12787 * htl/pt-cleanup.c: Likewise.
12788 * htl/pt-create.c: Likewise.
12789 * htl/pt-dealloc.c: Likewise.
12790 * htl/pt-detach.c: Likewise.
12791 * htl/pt-exit.c: Likewise.
12792 * htl/pt-getattr.c: Likewise.
12793 * htl/pt-initialize.c: Likewise.
12794 * htl/pt-internal.h: Likewise.
12795 * htl/pt-join.c: Likewise.
12796 * htl/pt-self.c: Likewise.
12797 * htl/pt-setcancelstate.c: Likewise.
12798 * htl/pt-setcanceltype.c: Likewise.
12799 * htl/pt-sigmask.c: Likewise.
12800 * htl/pt-spin-inlines.c: Likewise.
12801 * htl/pt-testcancel.c: Likewise.
12802 * htl/pt-yield.c: Likewise.
12803 * htl/tests/test-1.c: Likewise.
12804 * htl/tests/test-10.c: Likewise.
12805 * htl/tests/test-11.c: Likewise.
12806 * htl/tests/test-12.c: Likewise.
12807 * htl/tests/test-13.c: Likewise.
12808 * htl/tests/test-14.c: Likewise.
12809 * htl/tests/test-15.c: Likewise.
12810 * htl/tests/test-16.c: Likewise.
12811 * htl/tests/test-17.c: Likewise.
12812 * htl/tests/test-2.c: Likewise.
12813 * htl/tests/test-3.c: Likewise.
12814 * htl/tests/test-4.c: Likewise.
12815 * htl/tests/test-5.c: Likewise.
12816 * htl/tests/test-6.c: Likewise.
12817 * htl/tests/test-7.c: Likewise.
12818 * htl/tests/test-8.c: Likewise.
12819 * htl/tests/test-9.c: Likewise.
12820 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
12821 * sysdeps/htl/bits/cancelation.h: Likewise.
12822 * sysdeps/htl/bits/pthread-np.h: Likewise.
12823 * sysdeps/htl/bits/pthread.h: Likewise.
12824 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
12825 * sysdeps/htl/bits/semaphore.h: Likewise.
12826 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
12827 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
12828 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
12829 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
12830 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
12831 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
12832 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
12833 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
12834 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
12835 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
12836 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
12837 * sysdeps/htl/old_pt-atfork.c: Likewise.
12838 * sysdeps/htl/pt-atfork.c: Likewise.
12839 * sysdeps/htl/pt-attr-destroy.c: Likewise.
12840 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
12841 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
12842 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
12843 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
12844 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
12845 * sysdeps/htl/pt-attr-getscope.c: Likewise.
12846 * sysdeps/htl/pt-attr-getstack.c: Likewise.
12847 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
12848 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
12849 * sysdeps/htl/pt-attr-init.c: Likewise.
12850 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
12851 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
12852 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
12853 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
12854 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
12855 * sysdeps/htl/pt-attr-setscope.c: Likewise.
12856 * sysdeps/htl/pt-attr-setstack.c: Likewise.
12857 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
12858 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
12859 * sysdeps/htl/pt-attr.c: Likewise.
12860 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
12861 * sysdeps/htl/pt-barrier-init.c: Likewise.
12862 * sysdeps/htl/pt-barrier-wait.c: Likewise.
12863 * sysdeps/htl/pt-barrier.c: Likewise.
12864 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
12865 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
12866 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
12867 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
12868 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
12869 * sysdeps/htl/pt-cond-destroy.c: Likewise.
12870 * sysdeps/htl/pt-cond-init.c: Likewise.
12871 * sysdeps/htl/pt-cond-signal.c: Likewise.
12872 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
12873 * sysdeps/htl/pt-cond-wait.c: Likewise.
12874 * sysdeps/htl/pt-cond.c: Likewise.
12875 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
12876 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
12877 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
12878 * sysdeps/htl/pt-condattr-init.c: Likewise.
12879 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
12880 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
12881 * sysdeps/htl/pt-destroy-specific.c: Likewise.
12882 * sysdeps/htl/pt-equal.c: Likewise.
12883 * sysdeps/htl/pt-getconcurrency.c: Likewise.
12884 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
12885 * sysdeps/htl/pt-getschedparam.c: Likewise.
12886 * sysdeps/htl/pt-getspecific.c: Likewise.
12887 * sysdeps/htl/pt-init-specific.c: Likewise.
12888 * sysdeps/htl/pt-key-create.c: Likewise.
12889 * sysdeps/htl/pt-key-delete.c: Likewise.
12890 * sysdeps/htl/pt-key.h: Likewise.
12891 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
12892 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
12893 * sysdeps/htl/pt-mutex-init.c: Likewise.
12894 * sysdeps/htl/pt-mutex-lock.c: Likewise.
12895 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
12896 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
12897 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
12898 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
12899 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
12900 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
12901 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
12902 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
12903 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
12904 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
12905 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
12906 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
12907 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
12908 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
12909 * sysdeps/htl/pt-mutexattr.c: Likewise.
12910 * sysdeps/htl/pt-once.c: Likewise.
12911 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
12912 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
12913 * sysdeps/htl/pt-rwlock-init.c: Likewise.
12914 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
12915 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
12916 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
12917 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
12918 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
12919 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
12920 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
12921 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
12922 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
12923 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
12924 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
12925 * sysdeps/htl/pt-setconcurrency.c: Likewise.
12926 * sysdeps/htl/pt-setschedparam.c: Likewise.
12927 * sysdeps/htl/pt-setschedprio.c: Likewise.
12928 * sysdeps/htl/pt-setspecific.c: Likewise.
12929 * sysdeps/htl/pt-spin.c: Likewise.
12930 * sysdeps/htl/pt-startup.c: Likewise.
12931 * sysdeps/htl/pthread.h: Likewise.
12932 * sysdeps/htl/sem-close.c: Likewise.
12933 * sysdeps/htl/sem-destroy.c: Likewise.
12934 * sysdeps/htl/sem-getvalue.c: Likewise.
12935 * sysdeps/htl/sem-init.c: Likewise.
12936 * sysdeps/htl/sem-open.c: Likewise.
12937 * sysdeps/htl/sem-post.c: Likewise.
12938 * sysdeps/htl/sem-timedwait.c: Likewise.
12939 * sysdeps/htl/sem-trywait.c: Likewise.
12940 * sysdeps/htl/sem-unlink.c: Likewise.
12941 * sysdeps/htl/sem-wait.c: Likewise.
12942 * sysdeps/hurd/htl/pt-kill.c: Likewise.
12943 * sysdeps/i386/htl/pt-machdep.h: Likewise.
12944 * sysdeps/mach/htl/pt-block.c: Likewise.
12945 * sysdeps/mach/htl/pt-spin.c: Likewise.
12946 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
12947 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
12948 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
12949 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
12950 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
12951 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
12952 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
12953 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
12954 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
12955 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
12956 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
12957 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
12958 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
12959 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
12960 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
12961 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
12962 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
12963 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
12964 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
12965 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
12966 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
12967 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
12968 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
12969 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
12970 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
12971 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
12972 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
12973 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
12974 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
12975 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
12976 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
12977 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
12978 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
12979 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
12980 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
12981 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
12982 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
12983 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
12984 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
12985 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
12986 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
12987 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
12988 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
12989
12990 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
12991 * README: Remove the mention of out-of-tree patches needed for
12992 GNU/Hurd.
12993
12994 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
12995 (UTIME_NOW, UTIME_OMIT): Define macros.
12996
12997 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
12998 instead of pthread_detach.
12999 (__cthread_fork): Call __pthread_create instead of pthread_create.
13000 (__cthread_keycreate): Call __pthread_key_create instead of
13001 pthread_key_create.
13002 (__cthread_getspecific): Call __pthread_getspecific instead of
13003 pthread_getspecific.
13004 (__cthread_setspecific): Call __pthread_setspecific instead of
13005 pthread_setspecific.
13006 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13007 __pthread_mutex_unlock instead of pthread_mutex_lock and
13008 pthread_mutex_unlock.
13009 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13010 ___pthread_get_cleanup_stack.
13011 (__pthread_get_cleanup_stack): New strong alias.
13012 * htl/pt-create.c: Include <pthreadP.h>.
13013 (entry_point): Call __pthread_exit instead of pthread_exit.
13014 (pthread_create): Rename to __pthread_create.
13015 (pthread_create): New strong alias.
13016 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13017 (pthread_detach): New strong alias.
13018 (__pthread_detach): Call __pthread_cond_broadcast instead of
13019 pthread_cond_broadcast.
13020 * htl/pt-exit.c: Include <pthreadP.h>.
13021 (__pthread_exit): Call __pthread_setcancelstate and
13022 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13023 __pthread_get_cleanup_stack.
13024 * htl/pt-testcancel.c: Include <pthreadP.h>.
13025 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13026 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13027 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13028 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13029 pthread_attr_getstacksize.
13030 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13031 Rename to __pthread_attr_getstackaddr.
13032 (pthread_attr_getstackaddr): New strong alias.
13033 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13034 Rename to __pthread_attr_getstacksize.
13035 (pthread_attr_getstacksize): New strong alias.
13036 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13037 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13038 (pthread_attr_setstack): New strong alias.
13039 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13040 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13041 pthread_attr_getstacksize, pthread_attr_setstacksize and
13042 pthread_attr_setstackaddr.
13043 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13044 Rename to __pthread_attr_setstackaddr.
13045 (pthread_attr_setstackaddr): New strong alias.
13046 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13047 Rename to __pthread_attr_setstacksize.
13048 (pthread_attr_setstacksize): New strong alias.
13049 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13050 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13051 pthread_exit.
13052 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13053 (__pthread_key_create): New hidden def.
13054 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13055 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13056 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13057 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13058 __pthread_setspecific, __pthread_setcancelstate,
13059 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13060 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13061 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13062 declarations.
13063 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13064 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13065 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13066 (pthread_attr_setstackaddr): New strong alias.
13067 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13068 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13069 (pthread_attr_setstacksize): New strong alias.
13070 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13071 (call_exit): Call __pthread_exit instead of pthread_exit.
13072 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13073 (_pthread_mutex_init): New hidden definition.
13074 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13075 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13076 instead of pthread_attr_init and pthread_attr_setstack.
13077
13078 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13079 __vm_deallocate instead of vm_allocate and vm_deallocate.
13080 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13081 setenv.
13082 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13083 of geteuid.
13084 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13085 strdup.
13086 * hurd/siginfo.c: Include <libioP.h>.
13087 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13088 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13089 munmap.
13090 * mach/devstream.c: Include <libioP.h>.
13091 (dealloc_ref): Call __mach_port_deallocate instead of
13092 mach_port_deallocate.
13093 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13094 Call __mach_port_deallocate instead of mach_port_deallocate.
13095 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13096 pathconf.
13097 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13098 munmap.
13099 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13100 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13101 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13102 of munmap.
13103 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13104 of close.
13105 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13106 instead of sysconf.
13107 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13108 __clock_gettime instead of clock_gettime.
13109 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13110 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13111 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13112 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13113 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13114 tcgetattr.
13115 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13116 __clock_gettime and __nanosleep instead of clock_gettime and
13117 nanosleep.
13118 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13119 __hurd_catch_signal.
13120 (hurd_catch_signal): New strong alias.
13121 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13122 __hurd_catch_signal instead of hurd_catch_signal.
13123 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13124 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13125 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13126 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13127 (_hurd_thread_sigstate): Add hidden def.
13128 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13129 mutex_unlock.
13130 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13131 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13132 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13133 __hurd_file_name_path_lookup.
13134 (hurd_file_name_path_lookup): New strong alias.
13135 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13136 hurd_file_name_path_lookup.
13137 * mach/errstring.c (mach_error_type): Add hidden def.
13138 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13139 * mach/mutex-init.c (__mutex_init): Add hidden def.
13140 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13141 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13142 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13143 * sysdeps/mach/hurd/getcwd.c
13144 (_hurd_canonicalize_directory_name_internal): Rename to
13145 __hurd_canonicalize_directory_name_internal.
13146 (_hurd_canonicalize_directory_name_internal): New strong alias.
13147 (__canonicalize_directory_name_internal, __getcwd): Call
13148 __hurd_canonicalize_directory_name_internal instead of
13149 _hurd_canonicalize_directory_name_internal.
13150 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13151 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13152 hidden defs.
13153 * sysdeps/hurd/include/hurd.h: New file.
13154 * sysdeps/hurd/include/hurd/fd.h: New file.
13155 * sysdeps/hurd/include/hurd/signal.h: New file.
13156 * sysdeps/mach/include/lock-intern.h: New file.
13157 * sysdeps/mach/include/mach.h: New file.
13158 * sysdeps/mach/include/mach/mig_support.h: New file.
13159 * sysdeps/mach/include/mach_error.h: New file.
13160 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13161 prototype.
13162 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13163 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13164 _HEADER_H_HIDDEN_DEF macro.
13165 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13166 _hurd_fd_error_signal): Add hidden prototype.
13167 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13168 hidden def.
13169 * libio/iolibio.h (_IO_puts): New hidden prototype.
13170 * libio/ioputs.c (_IO_puts): New hidden def.
13171 * sysdeps/mach/hurd/localplt.data: New file.
13172
13173 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13174 Amos Jeffries <squid3@treenet.co.nz>
13175 David Michael <fedora.dm0@gmail.com>
13176 Marco Gerards <marco@gnu.org>
13177 Marcus Brinkmann <marcus@gnu.org>
13178 Neal H. Walfield <neal@gnu.org>
13179 Pino Toscano <toscano.pino@tiscali.it>
13180 Richard Braun <rbraun@sceen.net>
13181 Roland McGrath <roland@gnu.org>
13182 Samuel Thibault <samuel.thibault@ens-lyon.org>
13183 Thomas DiModica <ricinwich@yahoo.com>
13184 Thomas Schwinge <tschwinge@gnu.org>
13185
13186 * htl: New directory.
13187 * sysdeps/htl: New directory.
13188 * sysdeps/hurd/htl: New directory.
13189 * sysdeps/i386/htl: New directory.
13190 * sysdeps/mach/htl: New directory.
13191 * sysdeps/mach/hurd/htl: New directory.
13192 * sysdeps/mach/hurd/i386/htl: New directory.
13193 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13194 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13195 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13196
13197 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13198
13199 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13200 signals in thread created for runing timers.
13201
13202 2018-04-01 Florian Weimer <fweimer@redhat.com>
13203
13204 * support/support_format_addrinfo.c (support_format_addrinfo):
13205 Include unknown error number in formatted result.
13206
13207 2018-03-29 Florian Weimer <fweimer@redhat.com>
13208
13209 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13210 capture SIGBUS.
13211
13212 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13213
13214 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13215 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13216 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13217 (__ASSUME_CLONE_BACKWARDS): Define.
13218
13219 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13220
13221 [BZ #23024]
13222 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13223 early when linux sentinel value is set.
13224
13225 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13226
13227 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13228
13229 2018-03-27 Andreas Schwab <schwab@suse.de>
13230
13231 [BZ #23005]
13232 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13233 allocation of private copy of nsaddr_list fails.
13234
13235 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13236
13237 [BZ #16552]
13238 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13239 * sysdeps/unix/sysv/linux/umount.c: ... here.
13240 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13241 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13242 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13243 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13244 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13245 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13246 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13247
13248 2018-03-26 Andreas Schwab <schwab@suse.de>
13249
13250 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13251 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13252 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13253 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13254 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13255 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13256 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13257 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13258 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13259 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13260 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13261 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13262 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13263 (R_RISCV_NUM): Define.
13264
13265 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13266
13267 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13268 TLS declaration of errno.
13269 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13270 __libc_setup_tls.
13271 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13272 (ARCH_SETUP_TLS): Likewise.
13273 * sysdeps/mach/hurd/libc-start.h: New file copied from
13274 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13275 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13276 instead of __libc_setup_tls.
13277 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13278 __libc_setup_tls before initializing libpthread and running _hurd_init
13279 which starts the signal thread.
13280 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13281 Declare function.
13282 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13283
13284 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
13285
13286 [BZ #22998]
13287 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
13288 after it is defined.
13289
13290 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
13291 Max Horn <max@quendi.de>
13292
13293 [BZ #22644]
13294 CVE-2017-18269
13295 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13296 branch conditions.
13297 * string/test-memmove.c (do_test2): New testcase.
13298
13299 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13300
13301 * sysdeps/generic/frame.h: Remove file.
13302 * sysdeps/arm/frame.h: Likewise.
13303 * sysdeps/hppa/frame.h: Likewise.
13304 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13305 macro.
13306 (GET_FRAME): Likewise.
13307 (GET_STACK): Likewise.
13308 (CALL_SIGHANDLER): Likewise.
13309 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
13310 Likewise.
13311 (GET_FRAME): Likewise.
13312 (GET_STACK): Likewise.
13313 (CALL_SIGHANDLER): Likewise.
13314 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
13315 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13316 (GET_FRAME): Likewise.
13317 (GET_STACK): Likewise.
13318 (CALL_SIGHANDLER): Likewise.
13319 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
13320 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13321 (GET_FRAME): Likewise.
13322 (GET_STACK): Likewise.
13323 (ADVANCE_STACK_FRAME): Likewise.
13324 (CALL_SIGHANDLER): Likewise.
13325 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
13326 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13327 (GET_FRAME): Likewise.
13328 (GET_STACK): Likewise.
13329 (CALL_SIGHANDLER): Likewise.
13330 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
13331 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13332 (GET_FRAME): Likewise.
13333 (GET_STACK): Likewise.
13334 (CALL_SIGHANDLER): Likewise.
13335 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
13336 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13337 (GET_FRAME): Likewise.
13338 (GET_STACK): Likewise.
13339 (CALL_SIGHANDLER): Likewise.
13340 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
13341 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13342 (GET_FRAME): Likewise.
13343 (GET_STACK): Likewise.
13344 (CALL_SIGHANDLER): Likewise.
13345 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
13346 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13347 (GET_FRAME): Likewise.
13348 (GET_STACK): Likewise.
13349 (CALL_SIGHANDLER): Likewise.
13350 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
13351 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13352 (GET_FRAME): Likewise.
13353 (GET_STACK): Likewise.
13354 (CALL_SIGHANDLER): Likewise.
13355 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
13356 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13357 (GET_FRAME): Likewise.
13358 (GET_STACK): Likewise.
13359 (CALL_SIGHANDLER): Likewise.
13360 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
13361 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13362 (GET_FRAME): Likewise.
13363 (GET_STACK): Likewise.
13364 (CALL_SIGHANDLER): Likewise.
13365 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
13366 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13367 (GET_FRAME): Likewise.
13368 (GET_STACK): Likewise.
13369 (CALL_SIGHANDLER): Likewise.
13370 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
13371 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13372 (FIRST_FRAME_POINTER): Likewise.
13373 (ADVANCE_STACK_FRAME): Likewise.
13374 (GET_STACK): Likewise.
13375 (GET_FRAME): Likewise.
13376 (CALL_SIGHANDLER): Likewise.
13377 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
13378 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13379 (ADVANCE_STACK_FRAME): Likewise.
13380 (GET_STACK): Likewise.
13381 (GET_FRAME): Likewise.
13382 (CALL_SIGHANDLER): Likewise.
13383 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
13384 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13385 (GET_FRAME): Likewise.
13386 (GET_STACK): Likewise.
13387 (CALL_SIGHANDLER): Likewise.
13388 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
13389 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13390 (GET_FRAME): Likewise.
13391 (GET_STACK): Likewise.
13392 (CALL_SIGHANDLER): Likewise.
13393
13394 2018-03-21 Joseph Myers <joseph@codesourcery.com>
13395
13396 * sysdeps/x86_64/backtrace.c: Move to ....
13397 * debug/backtrace.c: ... here.
13398 * sysdeps/aarch64/backtrace.c: Remove file.
13399 * sysdeps/alpha/backtrace.c: Likewise.
13400 * sysdeps/hppa/backtrace.c: Likewise.
13401 * sysdeps/ia64/backtrace.c: Likewise.
13402 * sysdeps/mips/backtrace.c: Likewise.
13403 * sysdeps/nios2/backtrace.c: Likewise.
13404 * sysdeps/riscv/backtrace.c: Likewise.
13405 * sysdeps/sh/backtrace.c: Likewise.
13406 * sysdeps/tile/backtrace.c: Likewise.
13407
13408 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13409
13410 [BZ #22987]
13411 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
13412 function.
13413 (fdimf): Likewise.
13414 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
13415
13416 [BZ #17343]
13417 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
13418 possibly overflowing computations.
13419
13420 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
13421
13422 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
13423 values from Linux-specific section now that it is in the GNU section.
13424 * sysdeps/gnu/errlist.c: Regenerate.
13425
13426 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13427
13428 * math/Makefile (libm-narrow-fns): Add sub.
13429 (libm-test-funcs-narrow): Likewise.
13430 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
13431 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
13432 * math/gen-auto-libm-tests.c (test_functions): Add sub.
13433 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
13434 (NARROW_SUB_ROUND_TO_ODD): Likewise.
13435 (NARROW_SUB_TRIVIAL): Likewise.
13436 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
13437 macro.
13438 (__dsubl): Likewise.
13439 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
13440 dsub.
13441 (CFLAGS-nldbl-dsub.c): New variable.
13442 (CFLAGS-nldbl-fsub.c): Likewise.
13443 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13444 __nldbl_dsubl.
13445 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
13446 prototype.
13447 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
13448 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
13449 * math/auto-libm-test-in: Add tests of sub.
13450 * math/auto-libm-test-out-narrow-sub: New generated file.
13451 * math/libm-test-narrow-sub.inc: New file.
13452 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13453 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
13454 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
13455 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
13456 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
13457 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
13458 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
13459 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
13460 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
13461 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
13462 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
13463 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
13464 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
13465 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
13466 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
13467 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
13468 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
13469 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
13470 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13471 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13472 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13473 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13474 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13475 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13476 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13477 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13478 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13479 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13480 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13481 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13482 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13483 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13484 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13485 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13486 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13487 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13488 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13489 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13490 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13491 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13492 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13493 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13494 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
13495 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
13496 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13497 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13498
13499 2018-03-19 Joseph Myers <joseph@codesourcery.com>
13500
13501 [BZ #20079]
13502 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
13503
13504 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
13505
13506 * benchtests/bench-timing.h (attribute_hidden): Undefine.
13507
13508 2018-03-18 Richard Braun <rbraun@sceen.net>
13509
13510 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
13511 thread reference.
13512
13513 2018-03-18 Agustina Arzille <avarzille@riseup.net>
13514
13515 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
13516 (__libc_cleanup_fct): Define function.
13517 (__libc_cleanup_region_start, __libc_cleanup_region_end,
13518 __libc_cleanup_end): Rewrite implementation using
13519 __attribute__ ((__cleanup__)).
13520 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
13521 * hurd/Makefile (routines): Add hurdlock.
13522 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
13523 interface.
13524 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
13525 * hurd/hurdpid.c: Include <lowlevellock.h>
13526 (_S_msg_proc_newids): Use lll_wait to synchronize.
13527 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
13528 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
13529 * mach/Makefile (lock-headers): Remove machine-lock.h.
13530 * mach/lock-intern.h: Include <lowlevellock.h> instead of
13531 <machine-lock.h>.
13532 (__spin_lock_t): New type.
13533 (__SPIN_LOCK_INITIALIZER): New macro.
13534 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
13535 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
13536 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
13537 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
13538 (__mutex_init): Initialize with lll.
13539 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
13540 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
13541 needing lll.
13542 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13543 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
13544 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
13545 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
13546 (__setpgid): Use lll for synchronization.
13547 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
13548 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
13549 instead of <cthreads.h>.
13550 (_IO_lock_inexpensive): New macro
13551 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
13552 (__libc_lock_self0): New declaration.
13553 (__libc_lock_owner_self): New macro.
13554 (__libc_key_t): Remove type.
13555 (_LIBC_LOCK_INITIALIZER): New macro.
13556 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
13557 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
13558 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
13559 __libc_lock_define_initialized_recursive,
13560 __rtld_lock_define_initialized_recursive,
13561 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
13562 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
13563 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
13564 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
13565 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
13566 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
13567 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
13568 New macros.
13569 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
13570 * hurd/hurdlock.c: New file.
13571 * hurd/hurdlock.h: New file.
13572 * mach/lowlevellock.h: New file
13573
13574 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13575
13576 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
13577 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
13578 when opening a symlink with O_NOFOLLOW.
13579 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
13580 path when flags contains O_NOFOLLOW.
13581 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
13582 if flags contains O_DIRECTORY and the result is a directory.
13583 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
13584 oneself when the pointer given in D is nul (as set by ext2fs).
13585 * sysdeps/mach/hurd/mlockall.c: New file.
13586 * sysdeps/mach/hurd/munlockall.c: New file.
13587
13588 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
13589
13590 * hurd/hurdsig.c: Include <pthread.h>.
13591 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
13592 get the signal thread stack layout.
13593 * hurd/Makefile (headers): Remove threadvar.h.
13594 (inline-headers): Remove threadvar.h.
13595 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
13596 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
13597 __hurd_threadvar_max, __hurd_errno_location.
13598 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
13599 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
13600 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
13601 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
13602 unless TLS is not initialized yet, in which case we do not need a
13603 critical section yet anyway.
13604 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
13605 <machine-sp.h>.
13606 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
13607 declarations.
13608 (__hurd_threadvar_index): Remove enum.
13609 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
13610 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
13611 inlines.
13612 (__hurd_reply_port0): New variable declaration.
13613 (__hurd_local_reply_port): New macro.
13614 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
13615 (interrupted_reply_port_location): Add thread_t parameter. Use it
13616 with THREAD_TCB to access thread-local variables.
13617 (_hurdsig_abort_rpcs): Pass ss->thread to
13618 interrupted_reply_port_location.
13619 (_hurd_internal_post_signal): Likewise.
13620 (_hurdsig_init): Use presence of cthread_fork instead of
13621 __hurd_threadvar_stack_mask to start signal thread by hand.
13622 Remove signal thread threadvar initialization.
13623 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
13624 * hurd/sigunwind.c: Include <hurd/threadvar.h>
13625 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
13626 of threadvar.
13627 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
13628 __libc_lock_self0.
13629 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
13630 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
13631 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
13632 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
13633 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
13634 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
13635 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
13636 define variables.
13637 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
13638 <hurd/threadvar.h>.
13639 [IS_IN(rtld)] (rtld_errno): New variable.
13640 [IS_IN(rtld)] (__errno_location): New weak function.
13641 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
13642 * sysdeps/mach/hurd/errno.c: Remove file.
13643 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
13644 (__fork): Remove THREADVAR_SPACE macro and its use.
13645 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
13646 variable.
13647 (init): Do not initialize threadvar.
13648 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
13649 symbol.
13650 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
13651 __hurd_local_reply_port instead of threadvar.
13652 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
13653 _hurd_sigstate fields.
13654 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
13655 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
13656 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
13657 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
13658 instead of threadvar.
13659 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
13660 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
13661 (use_threadvar, global_reply_port): Remove variables.
13662 (__hurd_reply_port0): New variable.
13663 (__mig_get_reply_port): Use __hurd_local_reply_port and
13664 __hurd_reply_port0 instead of threadvar.
13665 (__mig_dealloc_reply_port): Likewise.
13666 (__mig_init): Do not initialize threadvar.
13667 * sysdeps/mach/hurd/profil.c: Fix comment.
13668 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
13669 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
13670 cthread_keycreate, cthread_getspecific, cthread_setspecific to
13671 __cthread_fork, __cthread_detach, __pthread_getattr_np,
13672 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
13673 __cthread_setspecific.
13674 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
13675 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
13676 __cthread_t instead of cthread_fork, cthread_detach,
13677 pthread_getattr_np, pthread_attr_getstack.
13678 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
13679 __cthread_keycreate.
13680 (cthread_getspecific): Rename to __cthread_getspecific.
13681 (cthread_setspecific): Rename to __cthread_setspecific.
13682 (__libc_getspecific): Use __cthread_getspecific instead of
13683 cthread_getspecific.
13684 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
13685 __cthread_keycreate instead of cthread_keycreate.
13686 (__libc_setspecific): Use __cthread_setspecific instead of
13687 cthread_setspecific.
13688 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
13689 Likewise.
13690 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
13691 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
13692 testing whether it is defined.
13693
13694 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
13695
13696 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
13697 Define macro.
13698 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
13699 * sysdeps/mach/i386/thread_state.h
13700 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
13701 i386_THREAD_STATE.
13702 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
13703 i386_THREAD_STATE.
13704 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
13705
13706 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
13707 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
13708
13709 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
13710 macros.
13711 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
13712 descriptor instead of creating a new one.
13713 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
13714
13715 * mach/setup-thread.c: Include <ldsodefs.h>.
13716 (__mach_setup_thread): Call _dl_allocate_tls, pass
13717 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
13718 MACHINE_THREAD_STATE_FLAVOR, before getting
13719 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
13720 MACHINE_THREAD_STATE_FLAVOR with the result.
13721 * hurd/hurdfault.c (_hurdsig_fault_init): Call
13722 MACHINE_THREAD_STATE_FIX_NEW.
13723 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
13724 too. Add original thread parameter.
13725
13726 2018-03-16 Joseph Myers <joseph@codesourcery.com>
13727
13728 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
13729 Remove inline function.
13730
13731 * sysdeps/i386/fpu/libm-test-ulps: Update.
13732 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
13733
13734 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
13735
13736 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
13737 commit.
13738
13739 2018-03-15 Joseph Myers <joseph@codesourcery.com>
13740
13741 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
13742 (__sincos_code): Remove define and undefine.
13743 [__FAST_MATH__] (__sincos): Remove inline function.
13744 [__FAST_MATH__] (__sincosf): Remove inline function.
13745 [__FAST_MATH__] (__sincosl): Remove inline function.
13746 (__atan2l): Remove inline functions.
13747 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
13748 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
13749 function.
13750 (floor): Remove inline function.
13751 (ceil): Likewise.
13752 [__FAST_MATH__] (__ldexp_code): Remove macro.
13753 [__FAST_MATH__] (ldexp): Remove inline function.
13754 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
13755 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
13756 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
13757 [__USE_ISOC99] (__lrint_code): Remove macro.
13758 [__USE_ISOC99] (__llrint_code): Likewise.
13759 [__USE_ISOC99] (lrintf): Remove inline function.
13760 [__USE_ISOC99] (lrint): Likewise.
13761 [__USE_ISOC99] (lrintl): Likewise.
13762 [__USE_ISOC99] (llrint): Likewise.
13763 [__USE_ISOC99] (llrintf): Likewise.
13764 [__USE_ISOC99] (llrintl): Likewise.
13765
13766 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13767
13768 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
13769 (__ieee754_sqrtf): Remove.
13770 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
13771 (__ieee754_sqrtf): Remove.
13772 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
13773 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13774 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
13775 (__ieee754_sqrtf): Remove.
13776 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
13777 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
13778 (sqrtf): Remove.
13779 (sqrtl): Remove.
13780 (__ieee754_sqrt): Remove.
13781 (__ieee754_sqrtf): Remove.
13782 (__ieee754_sqrtl): Remove.
13783 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13784 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
13785 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
13786 (__ieee754_sqrtf): Remove.
13787 (__ieee754_sqrtl): Remove.
13788
13789 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13790
13791 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
13792 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
13793 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
13794 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
13795 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
13796 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
13797 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
13798 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
13799 Likewise.
13800 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
13801 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
13802 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
13803 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
13804 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
13805 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
13806 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
13807 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
13808 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
13809 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13810 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
13811 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
13812 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
13813 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
13814 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
13815 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
13816 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
13817 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
13818 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
13819 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
13820 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13821 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13822 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
13823 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
13824 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
13825 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
13826 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13827 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13828 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
13829 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13830 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
13831 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
13832 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
13833 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
13834 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13835 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
13836 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
13837 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
13838 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
13839 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
13840
13841 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13842
13843 * include/math.h (sqrt): Declare with asm redirect.
13844 (sqrtf): Likewise.
13845 (sqrtl): Likewise.
13846 (sqrtf128): Likewise.
13847 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
13848 nonlib and libnldbl with -fmath-errno.
13849 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
13850 * math/w_sqrt_template.c: Likewise.
13851 * math/w_sqrtf_compat.c: Likewise.
13852 * math/w_sqrtl_compat.c: Likewise.
13853 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
13854 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
13855 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
13856 complex.h.
13857
13858 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13859
13860 * benchtests/Makefile: Define _ISOMAC.
13861 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
13862 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
13863 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
13864 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
13865 * benchtests/bench-timing.h: Define attribute_hidden.
13866
13867 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13868
13869 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
13870 mov + lsr.
13871
13872 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13873
13874 [BZ #22963]
13875 * localedata/locales/cs_CZ (mon): Rename to...
13876 (alt_mon): This.
13877 (mon): Import from CLDR (genitive case).
13878
13879 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13880
13881 [BZ #22937]
13882 * localedata/locales/el_CY (abmon): Rename to...
13883 (ab_alt_mon): This.
13884 (abmon): Import from CLDR (abbreviated genitive case).
13885 * localedata/locales/el_GR (abmon): Rename to...
13886 (ab_alt_mon): This.
13887 (abmon): Import from CLDR (abbreviated genitive case).
13888
13889 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13890
13891 [BZ #22932]
13892 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
13893
13894 2018-03-15 Robert Buj <robert.buj@gmail.com>
13895
13896 [BZ #22848]
13897 * localedata/locales/ca_ES (abmon): Rename to...
13898 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
13899 (mon): Rename to...
13900 (alt_mon): This.
13901 (abmon): Import from CLDR (genitive case, month names preceded by
13902 "de" or "d’").
13903 (mon): Likewise.
13904 (abday): Synchronize with CLDR.
13905 (d_t_fmt): Likewise.
13906 (d_fmt): Likewise.
13907 (am_pm): Likewise.
13908
13909 (LC_TIME): Improve indentation.
13910 (LC_TELEPHONE): Likewise.
13911 (LC_NAME): Likewise.
13912 (LC_ADDRESS): Likewise.
13913
13914 2018-03-14 Joseph Myers <joseph@codesourcery.com>
13915
13916 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
13917 (lrintf): Remove definitions used only with old GCC.
13918 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
13919 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
13920 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
13921 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
13922 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
13923 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
13924 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
13925 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
13926 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
13927 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
13928 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
13929 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
13930 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
13931 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
13932 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
13933 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
13934 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
13935 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
13936 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
13937 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
13938 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
13939 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
13940 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
13941 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
13942 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
13943 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
13944 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
13945 [__FAST_MATH__] (__M_SQRT2): Remove macro.
13946
13947 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
13948
13949 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
13950 instruction to unbreak builds with binutils 2.26 and older.
13951
13952 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
13953
13954 * sysdeps/aarch64/strncmp.S (count): New macro.
13955 (strncmp): Store misaligned length in SRC1 in COUNT.
13956 (mutual_align): Adjust.
13957 (misaligned8): Load dword at a time when it is safe.
13958
13959 2018-03-12 Zack Weinberg <zackw@panix.com>
13960
13961 [BZ #1190]
13962 [BZ #19476]
13963 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
13964 if the _IO_EOF_SEEN bit is already set; update commentary.
13965 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
13966 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
13967
13968 * support/support_openpty.c, support/tty.h: New files.
13969 * support/Makefile (libsupport-routines): Add support_openpty.
13970
13971 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
13972 New test cases.
13973 * libio/Makefile (tests): Add tst-fgetc-after-eof.
13974 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
13975
13976 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
13977
13978 * po/pt_BR.po: Update translations.
13979
13980 2018-03-12 David Michael <fedora.dm0@gmail.com>
13981
13982 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
13983 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
13984 get a port to the startup server.
13985
13986 2018-03-11 Zack Weinberg <zackw@panix.com>
13987
13988 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
13989 before nldbl-compat.h.
13990
13991 2018-03-10 Zack Weinberg <zackw@panix.com>
13992
13993 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
13994 math.h or math_private.h.
13995
13996 * sysdeps/alpha/fpu/s_isnan.c
13997 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
13998 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
13999 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14000 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14001 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14002 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14003 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14004 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14005 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14006 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14007 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14008 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14009 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14010 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14011 Include math_private.h.
14012
14013 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14014 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14015 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14016 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14017 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14018 * sysdeps/powerpc/power7/fpu/s_logb.c:
14019 Include math.h and math_private.h.
14020
14021 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14022 uses of $at in .set noat / .set at.
14023
14024 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14025
14026 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14027 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14028 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14029 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14030 Likewise.
14031
14032 2018-03-09 Florian Weimer <fweimer@redhat.com>
14033
14034 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14035 in comment.
14036
14037 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14038
14039 [BZ #22919]
14040 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14041 Add nop before __startcontext, add explaining comments.
14042
14043 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14044
14045 [BZ #22926]
14046 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14047 empty for __SPE__.
14048 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14049 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14050 Do not build hardware transactional code for __SPE__.
14051 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14052 (__lll_trylock_elision): Likewise.
14053 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14054 (__lll_unlock_elision): Likewise.
14055
14056 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14057 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14058 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14059 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14060 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14061 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14062 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14063 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14064 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14065 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14066 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14067 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14068 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14069 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14070 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14071 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14072 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14073 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14074 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14075 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14076 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14077 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14078 (__ASSUME_CLONE_BACKWARDS): Define.
14079 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14080 __clone2 if __NR_clone2 is defined.
14081 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14082 (__ASSUME_CLONE_BACKWARDS): Likewise.
14083 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14084 (__ASSUME_CLONE_BACKWARDS): Likewise.
14085 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14086 (__ASSUME_CLONE2): Likewise.
14087 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14088 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14089 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14090 variants and the define architecture can use.
14091 (__ASSUME_CLONE_DEFAULT): Define as default.
14092 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14093 (__ASSUME_CLONE_BACKWARDS): Likewise.
14094 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14095 (__ASSUME_CLONE_BACKWARDS): Likewise.
14096 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14097 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14098
14099 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14100
14101 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14102
14103 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14104 time.
14105
14106 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14107 (do_test_limit): Likewise.
14108
14109 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14110 for every implementation.
14111 (do_test): Likewise.
14112
14113 * benchtests/bench-strncmp.c: Convert output to json.
14114
14115 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14116
14117 * io/futimens.c: Add missing start-of-file descriptive comment.
14118 * io/utime.c: Likewise.
14119 * misc/futimesat.c: Likewise.
14120 * misc/utimes.c: Likewise.
14121 * sysdeps/mach/hurd/futimesat.c: Likewise.
14122 * sysdeps/mach/hurd/utimes.c: Likewise.
14123 * sysdeps/posix/utime.c: Likewise.
14124 * sysdeps/posix/utimes.c: Likewise.
14125 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14126 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14127 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14128 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14129
14130 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14131
14132 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14133 hurd_futimes.
14134 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14135 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14136 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14137 (__futimens): Move implementation to...
14138 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14139 utime_tvalue_from_tspec): ... new helper functions.
14140 (hurd_futimens): New function.
14141 * sysdeps/mach/hurd/futimesat.c: New file.
14142 * sysdeps/mach/hurd/utimensat.c: New file.
14143
14144 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14145
14146 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14147 UTIME_OMIT): New macros.
14148 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14149 before reverting to converting time spec to time value and calling
14150 __file_utimes.
14151 * sysdeps/mach/hurd/utime-helper.c: New file.
14152 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14153 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14154 reverting to utime_tvalue_from_tval and __file_utimes.
14155 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14156 (__lutimes): Just call hurd_futimens after lookup.
14157 * sysdeps/mach/hurd/utimes.c: Likewise.
14158
14159 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14160
14161 * bits/sigaction.h: Add include guard.
14162 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14163 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14164 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14165 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14166 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14167 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14168 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14169 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14170 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14171
14172 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14173
14174 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14175 -Wmaybe-uninitialized for -Os.
14176 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14177 this disabling.
14178
14179 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14180
14181 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14182 __INO_T_MATCHES_INO64_T is defined.
14183 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14184 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14185 of definition.
14186 * dirent/alphasort64.c: Likewise.
14187 * dirent/scandir.c: Likewise.
14188 * dirent/scandir64-tail.c: Likewise.
14189 * dirent/scandir64.c: Likewise.
14190 * dirent/scandirat.c: Likewise.
14191 * dirent/scandirat64.c: Likewise.
14192 * dirent/versionsort.c: Likewise.
14193 * dirent/versionsort64.c: Likewise.
14194 * include/dirent.h: Likewise.
14195
14196 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14197 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14198 for socketpair endpoint.
14199 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14200 WRITE_BUFFER_SIZE as buffer size for sending socket.
14201 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14202 issue on system where send is implemented with sendto syscall.
14203 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14204 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14205 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14206 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14207
14208 [BZ #21269]
14209 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14210 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14211 sa_restorer for vDSO case.
14212 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14213
14214 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14215
14216 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14217 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14218 * hurd/hurd/ioctl.h: Include <mach/port.h>
14219 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14220 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14221 <mach/mach_types.h> and <mach/message.h>.
14222 (headers): Move mach/param.h to bits/mach/param.h.
14223 * sysdeps/mach/i386/mach/param.h: Move file to ...
14224 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14225 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14226 of <mach/param.h>.
14227 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14228 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14229 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14230 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14231 trivial, for C++ conformity.
14232 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14233 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14234 Process mig output through $(migheadersed).
14235 * hurd/Makefile (migheadersed): Define variable.
14236 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14237 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14238 headers.
14239 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14240 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14241 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14242 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14243 <bits/types/sigset_t.h>.
14244 [!defined __USE_GNU]: Do not #error out.
14245 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14246 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14247 Include <stddef.h> and <bits/types/sigset_t.h>
14248 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14249 instead of sighandler_t.
14250 * stdlib/errno.h (error_t): Move definition to...
14251 * bits/types/error_t.h: ... new header.
14252 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14253 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14254 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14255 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14256 * hurd/hurd.h: Include <bits/types/error_t.h>
14257 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14258 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14259 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14260 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14261 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14262 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14263 * sysdeps/mach/hurd/futimens.c: New file.
14264
14265 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14266
14267 [BZ #22918]
14268 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14269 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14270 * nscd/gai.c (__nss_hosts_database): Readd definition.
14271 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14272 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14273 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14274
14275 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14276
14277 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14278 (ifunc_one): Likewise.
14279
14280 2018-03-01 DJ Delorie <dj@delorie.com>
14281
14282 [BZ #22342]
14283 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
14284 key value.
14285
14286 2018-03-01 Maciej W. Rozycki <macro@mips.com>
14287
14288 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
14289 `match_pid' parameter.
14290 (td_ta_thr_iter): Update accordingly.
14291
14292 2018-03-01 Florian Weimer <fweimer@redhat.com>
14293
14294 * nptl/Makefile (install-lib-ldscripts): Remove.
14295 (install): Remove rule.
14296 ($(inst_libdir)/libpthread.so): Likewise.
14297
14298 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14299
14300 [BZ #22896]
14301 * localedata/locales/an_ES: update month and day names,
14302 improve d_fmt, improve postal_fmt, add country_post,
14303 add country_isbn
14304
14305 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14306
14307 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
14308 Ukrainian instead of Bulgarian.
14309
14310 2018-03-01 Florian Weimer <fweimer@redhat.com>
14311
14312 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
14313 reference.
14314
14315 2018-03-01 Florian Weimer <fweimer@redhat.com>
14316
14317 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
14318 * nptl/Makefile (routines): Add pthread_atfork.
14319 (static-only-routines): Set to pthread_atfork.
14320 (libpthread-routines): Remove pthread_atfork.
14321 (libpthread-static-only-routines): Remove.
14322 (install): Update comment.
14323 (libpthread.so): Do not install libpthread_nonshared.a.
14324 (tests): Do not link with libpthread_nonshared.a.
14325 (generated): Remove libpthread_nonshared.a.
14326 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
14327 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
14328 with libpthread_nonshared.a.
14329
14330 2018-02-28 Joseph Myers <joseph@codesourcery.com>
14331
14332 [BZ #22902]
14333 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
14334 (libc_feholdexcept_setroundf128): New macro.
14335 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
14336
14337 [BZ #15105]
14338 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
14339 libc_hidden_def.
14340 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
14341 * include/inttypes.h: New file.
14342
14343 2018-02-27 Joseph Myers <joseph@codesourcery.com>
14344
14345 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
14346 -Os in two more places.
14347
14348 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14349
14350 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
14351 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
14352 be sorted correctly at the moment because of a bug.
14353
14354 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14355
14356 [BZ #22550] - es_ES locale (and other es_* locales): collation should
14357 treat ñ as a primary different character, sync the collation
14358 for Spanish with CLDR.
14359 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
14360 * localedata/Makefile: Add new test files.
14361 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
14362 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
14363 collation order.
14364 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
14365 * localedata/am_ET.UTF-8.in: New test file.
14366 * localedata/az_AZ.UTF-8.in: Likewise.
14367 * localedata/be_BY.UTF-8.in: Likewise.
14368 * localedata/ber_DZ.UTF-8.in: Likewise.
14369 * localedata/ber_MA.UTF-8.in: Likewise.
14370 * localedata/bg_BG.UTF-8.in: Likewise.
14371 * localedata/br_FR.UTF-8.in: Likewise.
14372 * localedata/cmn_TW.UTF-8.in: Likewise.
14373 * localedata/crh_UA.UTF-8.in: Likewise.
14374 * localedata/csb_PL.UTF-8.in: Likewise.
14375 * localedata/cv_RU.UTF-8.in: Likewise.
14376 * localedata/cy_GB.UTF-8.in: Likewise.
14377 * localedata/dz_BT.UTF-8.in: Likewise.
14378 * localedata/eo.UTF-8.in: Likewise.
14379 * localedata/es_ES.UTF-8.in: Likewise.
14380 * localedata/fa_IR.UTF-8.in: Likewise.
14381 * localedata/fi_FI.UTF-8.in: Likewise.
14382 * localedata/fil_PH.UTF-8.in: Likewise.
14383 * localedata/fur_IT.UTF-8.in: Likewise.
14384 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
14385 * localedata/ha_NG.UTF-8.in: Likewise.
14386 * localedata/ig_NG.UTF-8.in: Likewise.
14387 * localedata/ik_CA.UTF-8.in: Likewise.
14388 * localedata/kk_KZ.UTF-8.in: Likewise.
14389 * localedata/ku_TR.UTF-8.in: Likewise.
14390 * localedata/ky_KG.UTF-8.in: Likewise.
14391 * localedata/ln_CD.UTF-8.in: Likewise.
14392 * localedata/mi_NZ.UTF-8.in: Likewise.
14393 * localedata/ml_IN.UTF-8.in: Likewise.
14394 * localedata/mn_MN.UTF-8.in: Likewise.
14395 * localedata/mr_IN.UTF-8.in: Likewise.
14396 * localedata/mt_MT.UTF-8.in: Likewise.
14397 * localedata/nb_NO.UTF-8.in: Likewise.
14398 * localedata/om_KE.UTF-8.in: Likewise.
14399 * localedata/os_RU.UTF-8.in: Likewise.
14400 * localedata/ps_AF.UTF-8.in: Likewise.
14401 * localedata/ro_RO.UTF-8.in: Likewise.
14402 * localedata/ru_RU.UTF-8.in: Likewise.
14403 * localedata/sc_IT.UTF-8.in: Likewise.
14404 * localedata/se_NO.UTF-8.in: Likewise.
14405 * localedata/sq_AL.UTF-8.in: Likewise.
14406 * localedata/sv_SE.UTF-8.in: Likewise.
14407 * localedata/szl_PL.UTF-8.in: Likewise.
14408 * localedata/tg_TJ.UTF-8.in: Likewise.
14409 * localedata/tk_TM.UTF-8.in: Likewise.
14410 * localedata/tt_RU.UTF-8.in: Likewise.
14411 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
14412 * localedata/ug_CN.UTF-8.in: Likewise.
14413 * localedata/uz_UZ.UTF-8.in: Likewise.
14414 * localedata/vi_VN.UTF-8.in: Likewise.
14415 * localedata/yi_US.UTF-8.in: Likewise.
14416 * localedata/yo_NG.UTF-8.in: Likewise.
14417 * localedata/zh_CN.UTF-8.in: Likewise.
14418 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
14419 file and fix bugs in the collation.
14420 * localedata/locales/az_AZ: Likewise.
14421 * localedata/locales/be_BY: Likewise.
14422 * localedata/locales/ber_DZ: Likewise.
14423 * localedata/locales/ber_MA: Likewise.
14424 * localedata/locales/bg_BG: Likewise.
14425 * localedata/locales/br_FR: Likewise.
14426 * localedata/locales/br_FR@euro: Likewise.
14427 * localedata/locales/ca_ES: Likewise.
14428 * localedata/locales/cns11643_stroke: Likewise.
14429 * localedata/locales/crh_UA: Likewise.
14430 * localedata/locales/cs_CZ: Likewise.
14431 * localedata/locales/csb_PL: Likewise.
14432 * localedata/locales/cv_RU: Likewise.
14433 * localedata/locales/cy_GB: Likewise.
14434 * localedata/locales/da_DK: Likewise.
14435 * localedata/locales/dz_BT: Likewise.
14436 * localedata/locales/en_CA: Likewise.
14437 * localedata/locales/eo: Likewise.
14438 * localedata/locales/es_CU: Likewise.
14439 * localedata/locales/es_EC: Likewise.
14440 * localedata/locales/es_ES: Likewise.
14441 * localedata/locales/es_US: Likewise.
14442 * localedata/locales/et_EE: Likewise.
14443 * localedata/locales/fa_IR: Likewise.
14444 * localedata/locales/fi_FI: Likewise.
14445 * localedata/locales/fil_PH: Likewise.
14446 * localedata/locales/fur_IT: Likewise.
14447 * localedata/locales/gez_ER@abegede: Likewise.
14448 * localedata/locales/ha_NG: Likewise.
14449 * localedata/locales/hr_HR: Likewise.
14450 * localedata/locales/hsb_DE: Likewise.
14451 * localedata/locales/hu_HU: Likewise.
14452 * localedata/locales/ig_NG: Likewise.
14453 * localedata/locales/ik_CA: Likewise.
14454 * localedata/locales/is_IS: Likewise.
14455 * localedata/locales/iso14651_t1_pinyin: Likewise.
14456 * localedata/locales/kk_KZ: Likewise.
14457 * localedata/locales/ku_TR: Likewise.
14458 * localedata/locales/ky_KG: Likewise.
14459 * localedata/locales/ln_CD: Likewise.
14460 * localedata/locales/lt_LT: Likewise.
14461 * localedata/locales/lv_LV: Likewise.
14462 * localedata/locales/mi_NZ: Likewise.
14463 * localedata/locales/ml_IN: Likewise.
14464 * localedata/locales/mn_MN: Likewise.
14465 * localedata/locales/mr_IN: Likewise.
14466 * localedata/locales/mt_MT: Likewise.
14467 * localedata/locales/nb_NO: Likewise.
14468 * localedata/locales/om_KE: Likewise.
14469 * localedata/locales/os_RU: Likewise.
14470 * localedata/locales/pl_PL: Likewise.
14471 * localedata/locales/ps_AF: Likewise.
14472 * localedata/locales/ro_RO: Likewise.
14473 * localedata/locales/ru_RU: Likewise.
14474 * localedata/locales/ru_UA: Likewise.
14475 * localedata/locales/sc_IT: Likewise.
14476 * localedata/locales/se_NO: Likewise.
14477 * localedata/locales/si_LK: Likewise.
14478 * localedata/locales/sq_AL: Likewise.
14479 * localedata/locales/sv_FI: Likewise.
14480 * localedata/locales/sv_FI@euro: Likewise.
14481 * localedata/locales/sv_SE: Likewise.
14482 * localedata/locales/szl_PL: Likewise.
14483 * localedata/locales/tg_TJ: Likewise.
14484 * localedata/locales/ti_ER: Likewise.
14485 * localedata/locales/tk_TM: Likewise.
14486 * localedata/locales/tl_PH: Likewise.
14487 * localedata/locales/tr_TR: Likewise.
14488 * localedata/locales/tt_RU: Likewise.
14489 * localedata/locales/tt_RU@iqtelif: Likewise.
14490 * localedata/locales/ug_CN: Likewise.
14491 * localedata/locales/uk_UA: Likewise.
14492 * localedata/locales/uz_UZ: Likewise.
14493 * localedata/locales/uz_UZ@cyrillic: Likewise.
14494 * localedata/locales/vi_VN: Likewise.
14495 * localedata/locales/yi_US: Likewise.
14496 * localedata/locales/yo_NG: Likewise.
14497
14498 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14499
14500 * gen-locales.mk: Make test files which contain @ modifiers in their
14501 name work.
14502 * localedata/gen-locale.sh: Likewise.
14503
14504 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14505
14506 * posix/tst-fnmatch.input: Fix results for range expressions
14507 for non C locales.
14508 * posix/tst-regexloc.c: Do not use a range expression for
14509 de_DE.ISO-8859-1 locale.
14510
14511 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14512
14513 * posix/bug-regex5.c: Fix test case because with the new
14514 iso14651_t1_common file, the da_DK locale now has 6 collating elements
14515 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
14516 file.
14517
14518 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14519
14520 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
14521 downloaded from ISO, the collation order of @-. and space has changed.
14522 Therefore, this test file needed to be adapted.
14523 * localedata/fr_CA.UTF-8.in: Likewise.
14524 * localedata/fr_FR.UTF-8.in: Likewise.
14525 * localedata/uk_UA.UTF-8.in: Likewise.
14526
14527 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14528
14529 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
14530 order of ȥ in the new iso14651_t1_common file.
14531 * localedata/pl_PL.UTF-8.in: Likewise.
14532
14533 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14534
14535 * localedata/locales/iso14651_t1_common: Add sections for various
14536 scripts to the iso14651_t1_common file.
14537
14538 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14539
14540 * localedata/locales/iso14651_t1_common: Use the code point of a
14541 character in the fourth collation level instead of IGNORE for all
14542 entries which have IGNORE on all 4 levels.
14543
14544 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14545
14546 * localedata/locales/iso14651_t1_common: Add some convenient collation
14547 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
14548 rules similar to those in CLDR.
14549
14550 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14551
14552 * localedata/locales/iso14651_t1_common: The new version of this
14553 file downloaded from ISO contained several syntax errors which
14554 are fixed by this patch.
14555
14556 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14557
14558 * localedata/locales/iso14651_t1_common: replace all <U.....>
14559 with <U000.....> because glibc understands only 4 digit or 8 digit
14560
14561 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14562
14563 * localedata/locales/iso14651_t1_common: Necessary changes
14564 to make the file downloaded from ISO usable by glibc.
14565
14566 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14567
14568 [BZ #14095]
14569 * localedata/locales/iso14651_t1_common: Update file to
14570 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
14571
14572 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14573
14574 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
14575 of <nptl/pthreadP.h>
14576 (thread_attr_compare): Move function to...
14577 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
14578 * sysdeps/nptl/timer_routines.h: ... new header.
14579 * sysdeps/mach/hurd/gai_misc.h: New file.
14580
14581 2018-02-26 Joseph Myers <joseph@codesourcery.com>
14582
14583 * string/strcoll_l.c: Include <libc-diag.h>.
14584 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
14585 declarations of seq1 and seq2.
14586
14587 [BZ #15105]
14588 * stdlib/atoi.c (atoi): Use libc_hidden_def.
14589 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
14590
14591 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
14592
14593 [BZ #22433]
14594 [BZ #22807]
14595 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
14596 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
14597 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
14598 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
14599 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
14600 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
14601
14602 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14603
14604 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
14605 macros used in __ptrace_request.
14606
14607 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
14608
14609 [BZ #22792]
14610 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
14611 to $(CC).
14612 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
14613 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
14614 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
14615 <tcb-offsets.h>.
14616
14617 2018-02-23 Joseph Myers <joseph@codesourcery.com>
14618
14619 [BZ #15105]
14620 * ctype/ctype.c (tolower): Use libc_hidden_def.
14621 (toupper): Likewise.
14622 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
14623 [!_ISOMAC] (toupper): Likewise.
14624
14625 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14626
14627 * localedata/Makefile: Remove --quiet argument when
14628 installing locales
14629
14630 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14631
14632 [BZ #17438]
14633 * localedata/locales/pt_BR (LC_TIME): use / instead of -
14634 in d_fmt.
14635 * localedata/locales/pt_PT (LC_TIME): likewise
14636
14637 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14638
14639 [BZ #22646]
14640 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
14641 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
14642 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
14643
14644 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14645
14646 * sysdeps/sparc/fpu/libm-test-ulps: Update.
14647
14648 * nptl/Makefile (routines): Remove unregister-atfork.
14649 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
14650 (fork_handler_alloc): Remove function.
14651 (fork_handlers, fork_handler_init): New variables.
14652 (__fork_lock): Rename to atfork_lock.
14653 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
14654 to use a dynamic array to add/remove atfork handlers.
14655 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14656 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
14657 Remove declaration.
14658 (fork_handler): Remove next, refcntr, and need_signal member.
14659 (__run_fork_handler_type): New enum.
14660 (__run_fork_handlers): New prototype.
14661 * nptl/register-atfork.c: Remove file.
14662 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
14663
14664 * sysdeps/nptl/nptl-signals.h: Move to ...
14665 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
14666 comments.
14667 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
14668 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
14669 unnecessary check for SIGTIMER.
14670 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
14671 remove unnecessary removal of SIGTIMER.
14672 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
14673 include-signals.h rename.
14674 * nptl/pthreadP.h: Likewise.
14675 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
14676 __is_internal_signal instead of __nptl_is_internal_signal.
14677
14678 2018-02-22 Andrew Waterman <andrew@sifive.com>
14679
14680 [BZ # 22884]
14681 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
14682 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
14683 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
14684 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
14685
14686 2018-02-22 DJ Delorie <dj@delorie.com>
14687
14688 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
14689
14690 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
14691
14692 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
14693 do_misaligned, not misaligned8.
14694
14695 2018-02-22 Steve Ellcey <sellcey@cavium.com>
14696
14697 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
14698 Add memcpy_thunderx2.
14699 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
14700 Increment to 4.
14701 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
14702 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
14703 and IS_THUNDERX2PA checks.
14704 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
14705 Use macro to set name appropriately.
14706 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
14707 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
14708 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
14709 New macro.
14710 (IS_THUNDERX2): New macro.
14711
14712 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
14713
14714 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14715
14716 2018-02-21 Zack Weinberg <zackw@panix.com>
14717
14718 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
14719 Define here, unconditionally.
14720 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
14721 * libio/libioP.h: Remove #if 0 blocks.
14722 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
14723 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
14724 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
14725
14726 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
14727 Assume weak_alias is always defined.
14728
14729 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
14730 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
14731 Remove #if 0 and #ifdef TODO blocks.
14732 Assume text_set_element is always defined.
14733
14734 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
14735 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
14736 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
14737
14738 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
14739 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
14740 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
14741 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
14742 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
14743 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
14744 Reformat bit flags for _flags field to make occupancy clearer.
14745 Update commentary.
14746 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
14747 Keep definitions consistent with those in libio/libio.h.
14748
14749 * libio/libio.h (_IO_file_flags): Remove macro.
14750 All uses changed to _flags.
14751
14752 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
14753 (__HAVE_COLUMN, _IO_BE): Don't define.
14754 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
14755 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
14756 * libio/libioP.h (EOF): Don't define.
14757 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
14758 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
14759 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
14760 testing _IO_UNIFIED_JUMPTABLES.
14761
14762 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
14763 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
14764 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
14765 (_IO_size_t): Delete; all uses changed to size_t.
14766 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
14767 (_IO_off_t): Delete; all uses changed to off_t.
14768 (_IO_off64_t): Delete; all uses changed to off64_t.
14769 (_IO_pid_t): Delete; all uses changed to pid_t.
14770 (_IO_uid_t): Delete; all uses changed to uid_t.
14771 (_IO_wint_t): Delete; all uses changed to wint_t.
14772 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
14773 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
14774 (_IO_cookie_io_functions_t): Delete; all uses changed to
14775 cookie_io_functions_t.
14776 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
14777 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
14778 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
14779 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
14780
14781 * libio/iofopncook.c: Remove unnecessary forward declarations.
14782 * libio/iolibio.h: Correct outdated commentary.
14783 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
14784 * stdio-common/fxprintf.c (__fxprintf_nocancel):
14785 Remove unnecessary casts.
14786 * stdio-common/getline.c: Use _IO_getdelim directly.
14787 Don't redefine ssize_t.
14788 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
14789 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
14790 Remove outdated comments.
14791 * stdio-common/vfscanf.c: Don't redefine va_list.
14792
14793 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
14794 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
14795 Remove preprocessor conditionals on _LIBC and __USE_GNU,
14796 which are always true, and __cplusplus, which is always false.
14797
14798 2018-02-21 Joseph Myers <joseph@codesourcery.com>
14799
14800 [BZ #15105]
14801 [BZ #19463]
14802 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
14803 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
14804 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
14805 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
14806 libc_hidden_proto.
14807 [!_ISOMAC] (putc_unlocked): Likewise.
14808 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
14809 define inline if [__USE_EXTERN_INLINES].
14810 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
14811 putc_unlocked.
14812
14813 [BZ #15105]
14814 [BZ #19463]
14815 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
14816 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
14817 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
14818 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
14819 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
14820 getc_unlocked.
14821 * time/tzfile.c (__tzfile_read): Likewise.
14822
14823 2018-02-21 Mike FABIAN <mfabian@redhat.com>
14824
14825 [BZ #22517]
14826 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
14827
14828 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14829
14830 * io/fcntl.h: Fix a typo in a comment.
14831
14832 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14833
14834 [BZ #22862]
14835 * include/features.h: Add _ISOC11_SOURCE to test for whether to
14836 define _DEFAULT_SOURCE.
14837 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
14838
14839 2018-02-21 Florian Weimer <fweimer@redhat.com>
14840
14841 [BZ #20890]
14842 * elf/cache.c (save_cache): Call fsync on temporary file before
14843 renaming it.
14844 (save_aux_cache): Call fdatasync on temporary file before renaming
14845 it.
14846
14847 2018-02-21 Florian Weimer <fweimer@redhat.com>
14848
14849 [BZ #22787]
14850 * include/caller.h: Remove file.
14851 * elf/dl-caller.c: Likewise.
14852 * elf/Makefile (dl-routines): Remove dl-caller.
14853 (shared-only-routines): Do not add dl-caller.
14854 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
14855 __check_caller.
14856 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
14857 member.
14858 (dl_open_worker): Do not call __check_caller.
14859 (_dl_open): Do not set caller_dl_open member.
14860 * elf/rtld.c (_rtld_global_ro): Do not initialize
14861 _dl_check_caller member.
14862 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
14863 _dl_check_caller member.
14864 (_dl_check_caller): Remove declaration.
14865 * sysdeps/unix/sysv/linux/dl-execstack.c
14866 (_dl_make_stack_executable): Do not call __check_caller.
14867
14868 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
14869
14870 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
14871 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
14872
14873 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14874
14875 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
14876 description.
14877
14878 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14879
14880 [BZ #16335]
14881 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
14882 of 199606L, 200112L, and 200809L.
14883 (_XOPEN_SOURCE): Document special values of 600 and 700.
14884 (_ISOC11_SOURCE): Document macro.
14885 (_ATFILE_SOURCE): Likewise.
14886 (_FORTIFY_SOURCE): Likewise.
14887
14888 2018-02-19 Joseph Myers <joseph@codesourcery.com>
14889
14890 [BZ #15105]
14891 [BZ #19463]
14892 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
14893 and define as weak alias of __ferror_unlocked. Use
14894 libc_hidden_weak.
14895 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
14896 libc_hidden_proto.
14897 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
14898 function if [__USE_EXTERN_INLINES].
14899 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
14900 ferror_unlocked.
14901
14902 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
14903
14904 [BZ #6889]
14905 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
14906
14907 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
14908
14909 [BZ #22818]
14910 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
14911 the GLIBC_2.1 version.
14912
14913 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
14914
14915 [BZ #21508]
14916 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
14917 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
14918 intl/tst-gettext-de.po from po/de.po by removing the
14919 POT-Creation-Date line.
14920 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
14921 ../po/de.po.
14922 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
14923 ../po/de.po.
14924
14925 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14926
14927 * mach/Makefile (headers): Add mach/param.h.
14928 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
14929 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
14930 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
14931 (__ptsname_r): Move implementation to...
14932 (__ptsname_internal): ... new function. Add filling the STP
14933 structure.
14934
14935 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
14936
14937 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
14938 idouble to 1 ULP.
14939
14940 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
14941
14942 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
14943 syntax.
14944
14945 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
14946
14947 * nptl/Makefile (tst-mutex8-ENV): Delete.
14948 * nptl/tst-mutex8.c (check_type):
14949 Add runtime check if mutex will be elided.
14950
14951 2018-02-15 Joseph Myers <joseph@codesourcery.com>
14952
14953 [BZ #20980]
14954 [BZ #21234]
14955 * manual/install.texi (Configuring and compiling): Describe
14956 passing CC and CFLAGS on configure command line, not as
14957 environment variables. Use @code markup on those variables.
14958 Specify what options go in CC and what go in CFLAGS. Note the
14959 requirement to compile with optimization.
14960 * INSTALL: Regenerated.
14961
14962 [BZ #18124]
14963 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
14964 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
14965 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
14966 __sigprocmask instead of sigprocmask.
14967 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
14968 Likewise.
14969 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
14970 __sigsetjmp and sigprocmask.
14971
14972 [BZ #15105]
14973 * include/argz.h (argz_next): Use libc_hidden_proto.
14974 (__argz_next): Likewise.
14975 * string-argz-next.c (__argz_next): Use libc_hidden_def.
14976 (argz_next): Use libc_hidden_weak.
14977
14978 [BZ #15105]
14979 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
14980 libc_hidden_proto.
14981 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
14982 libc_hidden_def.
14983
14984 [BZ #15105]
14985 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
14986 libc_hidden_proto.
14987 * libio/iofputs.c (fputs): Use libc_hidden_weak.
14988
14989 [BZ #15105]
14990 [BZ #19463]
14991 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
14992 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
14993 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
14994 (__feof_unlocked): New declaration, and inline function if
14995 [__USE_EXTERN_INLINES].
14996 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
14997 instead of feof_unlocked.
14998 * intl/localealias.c [_LIBC] (FEOF): Likewise.
14999 * nss/nsswitch.c (nss_parse_file): Likewise.
15000 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15001 Likewise.
15002 * time/getdate.c (__getdate_r): Likewise.
15003 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15004 Define as macro to call __feof_unlocked.
15005
15006 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15007
15008 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15009
15010 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15011
15012 * math/Makefile: Remove mpexp.c and mplog.c
15013 * sysdeps/i386/fpu/mpexp.c: Delete file.
15014 * sysdeps/i386/fpu/mplog.c: Likewise.
15015 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15016 * sysdeps/ia64/fpu/mplog.c: Likewise.
15017 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15018 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15019 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15020 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15021 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15022 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15023 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15024 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15025 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15026 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15027 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15028 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15029 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15030 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15031 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15032 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15033
15034 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15035
15036 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15037
15038 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15039
15040 * sysdeps/sh/libm-test-ulps: Update.
15041
15042 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15043
15044 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15045 idouble to 1 ULP.
15046
15047 2018-02-12 Zack Weinberg <zackw@panix.com>
15048
15049 [BZ #19239]
15050 * posix/sys/types.h: Don't include sys/sysmacros.h.
15051 * misc/sys/sysmacros.h: Remove the conditional deprecation
15052 warnings for the macros defined by this header.
15053
15054 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15055
15056 * manual/probes.texi: Remove slowexp probes.
15057 * math/Makefile: Remove slowexp.
15058 * sysdeps/generic/math_private.h (__slowexp): Remove.
15059 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15060 document error bounds.
15061 * sysdeps/i386/fpu/slowexp.c: Remove.
15062 * sysdeps/ia64/fpu/slowexp.c: Remove.
15063 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15064 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15065 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15066 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15067 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15068 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15069 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15070 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15071 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15072 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15073 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15074
15075 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15076
15077 [BZ #13932]
15078 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15079 * benchtests/pow-inputs: Update comment for slow path cases.
15080 * manual/probes.texi (slowpow_p10): Delete removed probe.
15081 (slowpow_p10): Likewise.
15082 * math/Makefile: Remove halfulp.c and slowpow.c.
15083 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15084 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15085 (__halfulp): Remove.
15086 (__slowpow): Remove.
15087 * sysdeps/i386/fpu/halfulp.c: Delete file.
15088 * sysdeps/i386/fpu/slowpow.c: Likewise.
15089 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15090 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15091 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15092 improve comments and add error analysis.
15093 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15094 (power1): Remove function:
15095 (log1): Remove error argument, add error analysis.
15096 (my_log2): Remove function.
15097 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15098 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15099 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15100 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15101 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15102 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15103 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15104 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15105 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15106 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15107 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15108 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15109 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15110 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15111
15112 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15113
15114 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15115 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15116
15117 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15118
15119 [BZ #22433]
15120 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15121 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15122 and PTRACE_SETHBPREGS.
15123
15124 2018-02-10 Zack Weinberg <zackw@panix.com>
15125
15126 [BZ #22830]
15127 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15128 correctly.
15129 * malloc/tst-malloc-stats-cancellation.c: New test case.
15130 * malloc/Makefile: Add new test case.
15131
15132 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15133
15134 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15135
15136 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15137
15138 * math/Makefile (libm-narrow-fns): Add add.
15139 (libm-test-funcs-narrow): Likewise.
15140 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15141 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15142 * math/gen-auto-libm-tests.c (test_functions): Add add.
15143 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15144 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15145 (NARROW_ADD_TRIVIAL): Likewise.
15146 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15147 macro.
15148 (__daddl): Likewise.
15149 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15150 dadd.
15151 (CFLAGS-nldbl-dadd.c): New variable.
15152 (CFLAGS-nldbl-fadd.c): Likewise.
15153 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15154 __nldbl_daddl.
15155 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15156 prototype.
15157 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15158 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15159 * math/auto-libm-test-in: Add tests of add.
15160 * math/auto-libm-test-out-narrow-add: New generated file.
15161 * math/libm-test-narrow-add.inc: New file.
15162 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15163 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15164 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15165 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15166 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15167 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15168 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15169 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15170 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15171 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15172 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15173 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15174 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15175 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15176 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15177 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15178 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15179 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15180 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15181 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15182 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15183 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15184 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15185 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15186 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15187 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15188 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15189 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15190 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15191 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15192 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15193 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15194 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15195 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15196 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15197 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15198 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15199 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15200 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15201 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15202 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15203 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15204 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15205 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15206 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15207 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15208
15209 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15210 (f128-pairs): New variable.
15211 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15212 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15213 to CFLAGS.
15214 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15215 Also make tests add $(f128-loader-link) to gnulib-tests.
15216
15217 2018-02-09 DJ Delorie <dj@redhat.com>
15218
15219 [BZ #22827]
15220 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15221 64-bit ELF type for 64-bit ELF objects.
15222
15223 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15224
15225 * math/libm-test-driver.c (snan_tests_arg): New variable.
15226 * math/libm-test-support.h (snan_tests_arg): New declaration.
15227 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15228
15229 * math/Makefile (test-type-pairs): New variable.
15230 (test-type-pairs-f64xf128-yes): Likewise.
15231 (tests): Add test-narrow-macros.
15232 (libm-test-funcs-narrow): New variable.
15233 (libm-test-c-narrow): Likewise.
15234 (generated): Add $(libm-test-c-narrow).
15235 (libm-tests-base-narrow): New variable.
15236 (libm-tests-narrow): Likewise.
15237 (libm-tests): Add $(libm-tests-narrow).
15238 (libm-tests-for-type): Handle $(libm-tests-narrow).
15239 (libm-test-c-narrow-obj): New variable.
15240 ($(libm-test-c-narrow-obj)): New rule.
15241 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15242 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15243 $(o-iterator) to set dependencies and CFLAGS.
15244 * math/gen-auto-libm-tests.c: Document use for narrowing
15245 functions.
15246 (output_for_one_input_case): Take argument NARROW.
15247 (generate_output): Likewise. Update call to
15248 output_for_one_input_case.
15249 (main): Take --narrow option. Update call to generate_output.
15250 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15251 (apply_lit): Update call to _apply_lit.
15252 (apply_arglit): New function.
15253 (parse_args): Handle "a" arguments.
15254 (parse_auto_input): Handle format names using ":".
15255 * math/README.libm-test: Document "a" parameter type.
15256 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15257 (ARG_TYPE_TRUE_MIN): Likewise.
15258 (ARG_TYPE_MAX): Likwise.
15259 (ARG_MIN_EXP): Likewise.
15260 (ARG_MAX_EXP): Likewise.
15261 (ARG_MANT_DIG): Likewise.
15262 (TEST_COND_arg_ibm128): Likewise.
15263 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15264 (TEST_COND_arg_fmt): New macro.
15265 (init_max_error): Update prototype.
15266 * math/libm-test-support.c (test_ibm128): New variable.
15267 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15268 instead of using [TEST_COND_ibm128] conditional.
15269 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15270 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15271 [TEST_NARROW] (TEST_MSG): New definition.
15272 (arg_plus_zero): New macro.
15273 (arg_minus_zero): Likewise.
15274 (arg_plus_infty): Likewise.
15275 (arg_minus_infty): Likewise.
15276 (arg_qnan_value_pl): Likewise.
15277 (arg_qnan_value): Likewise.
15278 (arg_snan_value_pl): Likewise.
15279 (arg_snan_value): Likewise.
15280 (arg_max_value): Likewise.
15281 (arg_min_value): Likewise.
15282 (arg_min_subnorm_value): Likewise.
15283 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
15284 (RUN_TEST_LOOP_aa_f): New macro.
15285 (TEST_SUFF): New macro.
15286 (TEST_SUFF_STR): Likewise.
15287 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
15288 (TEST_COND_any_ibm128): New macro.
15289 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
15290 this_func. Update call to init_max_error.
15291 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15292 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15293 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15294 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15295 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15296 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15297 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15298 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15299 * math/test-math-vector.h (TEST_NARROW): Likewise.
15300 * math/test-arg-double.h: New file.
15301 * math/test-arg-float128.h: Likewise.
15302 * math/test-arg-float32x.h: Likewise.
15303 * math/test-arg-float64.h: Likewise.
15304 * math/test-arg-float64x.h: Likewise.
15305 * math/test-arg-ldouble.h: Likewise.
15306 * math/test-math-narrow.h: Likewise.
15307 * math/test-narrow-macros.c: Likewise.
15308 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
15309 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
15310 test-narrow-macros-ldbl-64.
15311 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
15312
15313 * math/bits/mathcalls-narrow.h: New file.
15314 * include/bits/mathcalls-narrow.h: Likewise.
15315 * math/math-narrow.h: Likewise.
15316 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
15317 (__MATHCALL_NARROW_ARGS_2): Likewise.
15318 (__MATHCALL_NARROW_ARGS_3): Likewise.
15319 (__MATHCALL_NARROW_NORMAL): Likewise.
15320 (__MATHCALL_NARROW_REDIR): Likewise.
15321 (__MATHCALL_NARROW): Likewise.
15322 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
15323 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
15324 defined.
15325 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
15326 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
15327 (libm-narrow-fns): New variable.
15328 (libm-narrow-types-basic): Likewise.
15329 (libm-narrow-types-ldouble-yes): Likewise.
15330 (libm-narrow-types-float128-yes): Likewise.
15331 (libm-narrow-types-float128-alias-yes): Likewise.
15332 (libm-narrow-types): Likewise.
15333 (libm-routines): Add narrowing functions.
15334 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
15335 (libc_feholdexcept_setroundf128): New macro.
15336 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
15337 * sysdeps/ieee754/float128/float128_private.h: Include
15338 <math/math-narrow.h>.
15339 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
15340 Undefine and redefine.
15341 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
15342 (libm_alias_float_ldouble): Undefine and redefine.
15343 (libm_alias_double_ldouble): Likewise.
15344
15345 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
15346
15347 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
15348
15349 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
15350 FPCR/FPSR.
15351
15352 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
15353
15354 * manual/creature.texi: Convert references to gcc.info to gcc.
15355 * manual/stdio.texi: Likewise.
15356 * manual/string.texi: Likewise.
15357
15358 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15359
15360 [BZ #17979]
15361 * posix/bits/types.h (__int_least8_t): New typedef.
15362 (__uint_least8_t): Likewise.
15363 (__int_least16_t): Likewise.
15364 (__uint_least16_t): Likewise.
15365 (__int_least32_t): Likewise.
15366 (__uint_least32_t): Likewise.
15367 (__int_least64_t): Likewise.
15368 (__uint_least64_t): Likewise.
15369 * sysdeps/generic/stdint.h (int_least8_t): Define using
15370 __int_least8_t.
15371 (int_least16_t): Define using __int_least16_t.
15372 (int_least32_t): Define using __int_least32_t.
15373 (int_least64_t): Define using __int_least64_t.
15374 (uint_least8_t): Define using __uint_least8_t.
15375 (uint_least16_t): Define using __uint_least16_t.
15376 (uint_least32_t): Define using __uint_least32_t.
15377 (uint_least64_t): Define using __uint_least64_t.
15378 * wcsmbs/uchar.h: Include <bits/types.h>.
15379 (char16_t): Define using __uint_least16_t conditional only on
15380 [!__USE_ISOCXX11].
15381 (char32_t): Define using __uint_least32_t conditional only on
15382 [!__USE_ISOCXX11].
15383 * wcsmbs/test-char-types.c: New file.
15384 * wcsmbs/Makefile (tests): Add test-char-types.
15385
15386 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15387 version to 4.0.1.
15388
15389 2018-02-07 Zack Weinberg <zackw@panix.com>
15390
15391 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
15392 Delete all contents except for definitions of _G_HAVE_MMAP and
15393 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
15394 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
15395 sysdeps/unix/sysv/linux/_G_config.h. Make same content
15396 change as above.
15397
15398 * libio/libio.h: Don't include bits/_G_config.h here.
15399 Include stddef.h with __need_wchar_t defined. Include
15400 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
15401 Define _IO_iconv_t here, directly.
15402 Don't define _IO_HAVE_ST_BLKSIZE.
15403 * libio/libioP.h: Include _G_config.h here. Move include of
15404 shlib-compat.h up with rest of includes. Simplify conditionals
15405 controlling definition of _IO_JUMPS_OFFSET.
15406
15407 * csu/init.c: Remove always-true #if around entire file.
15408 Don't include stdio.h. Set _IO_stdin_used to hardwired
15409 constant 0x20001, and update commentary.
15410 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
15411 Replace all uses of _G_va_list with __gnuc_va_list.
15412 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
15413 instead of #if _IO_HAVE_ST_BLKSIZE.
15414 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
15415 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
15416 not #ifdef.
15417
15418 * libio/bits/libio.h: Move back to libio/libio.h and adjust
15419 multiple-include guard to match.
15420 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
15421 into this file.
15422 Remove preprocessor conditionals that are always true and/or
15423 redundant to other preprocessor conditionals in the same nest.
15424 Include shlib-compat.h unconditionally.
15425 Error out if _LIBC is not defined, or if _ISOMAC is defined,
15426 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
15427 defined after including stdio.h.
15428 Use __BEGIN_DECLS/__END_DECLS.
15429
15430 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
15431 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
15432 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
15433
15434 2018-02-07 Zack Weinberg <zackw@panix.com>
15435
15436 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
15437 New single-type headers split from _G_config.h.
15438 * libio/bits/types/cookie_io_functions_t.h
15439 * libio/bits/types/struct_FILE.h
15440 New single-type headers split from libio.h.
15441
15442 * libio/Makefile: Install the above new headers. Don't install
15443 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
15444 bits/libio-ldbl.h.
15445 * libio/_G_config.h, libio/libio.h: Delete file.
15446
15447 * libio/bits/libio.h: Remove improper-inclusion guard.
15448 Include stdio.h and don't repeat anything that it does.
15449 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
15450 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
15451 __io_read_fn as cookie_read_function_t,
15452 __io_write_fn as cookie_write_function_t,
15453 __io_seek_fn as cookie_seek_function_t,
15454 __io_close_fn as cookie_close_function_t,
15455 and _IO_cookie_io_functions_t as cookie_io_functions_t.
15456 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
15457 here, in the "compatibility defines" section. Remove an #if 0
15458 block. Use the "body" macros from bits/types/struct_FILE.h to
15459 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
15460 and _IO_ferror_unlocked.
15461 Move prototypes of __uflow and __overflow...
15462
15463 * libio/stdio.h: ...here. Don't include bits/libio.h.
15464 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
15465 directly from stdarg.h. Include bits/types/__fpos_t.h,
15466 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
15467 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
15468 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
15469 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
15470 cookie_io_functions_t, not _IO_cookie_io_functions_t;
15471 __ssize_t, not _IO_ssize_t. Unconditionally define
15472 BUFSIZ as 8192 and EOF as (-1).
15473
15474 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
15475 macros from bits/types/struct_FILE.h instead of _IO_* macros
15476 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
15477 instead of _IO_ssize_t.
15478 * libio/bits/stdio2.h: Similarly.
15479
15480 * libio/iolibio.h: Add multiple-include guard.
15481 Include bits/libio.h after stdio.h.
15482 * libio/libioP.h: Add multiple-include guard.
15483 Include stdio.h and bits/libio.h before iolibio.h.
15484
15485 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
15486 * include/bits/types/cookie_io_functions_t.h
15487 * include/bits/types/struct_FILE.h: New wrappers.
15488
15489 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
15490 Get definitions of _G_fpos_t and _G_fpos64_t from
15491 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
15492 respectively. Remove improper-inclusion guards.
15493
15494 * conform/data/stdio.h-data: Update expectations of va_list.
15495 * scripts/check-installed-headers.sh: Remove special case for
15496 libio.h and _G_config.h.
15497
15498 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15499
15500 [BZ #15105]
15501 [BZ #19463]
15502 * include/sys/sysmacros.h [!_ISOMAC]
15503 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
15504 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
15505 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
15506 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
15507 libc_hidden_proto.
15508 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
15509 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
15510 Likewise.
15511 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
15512 Undefine and redefine to add use __gnu_dev_ prefix.
15513 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
15514 Likewise.
15515 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
15516 and define as hidden inline function.
15517 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
15518 Likewise.
15519 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
15520 Likewise.
15521 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
15522 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
15523 (gnu_dev_minor): Likewise.
15524 (gnu_dev_makedev): Likewise.
15525 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
15526 makedev.
15527 * posix/wordexp.c (exec_comm_child): Likewise.
15528 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
15529 instead of minor and __gnu_dev_major instead of major.
15530 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
15531 __gnu_dev_major instead of major.
15532 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
15533 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
15534 instead of gnu_dev_minor.
15535 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
15536 (SLAVE_P): Likewise.
15537 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
15538 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
15539 instead of major.
15540
15541 [BZ #21313]
15542 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
15543 in another place.
15544 * locale/weightwc.h (findidx): Likewise.
15545
15546 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
15547
15548 * manual/probes.texi (slowlog): Delete documentation of removed probe.
15549 (slowlog_inexact): Likewise
15550 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
15551 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
15552
15553 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
15554
15555 [BZ #22797]
15556 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
15557 missing second underscore to parameter name.
15558
15559 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15560
15561 [BZ #14508]
15562 [BZ #15512]
15563 [BZ #17082]
15564 [BZ #20530]
15565 * bits/byteswap.h: Update file comment. Do not include
15566 <bits/byteswap-16.h>.
15567 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
15568 constant.
15569 (__bswap_16): Define as inline function.
15570 (__bswap_constant_32): Reformat definition.
15571 (__bswap_32): Always define as inline function, not macro, using
15572 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
15573 otherwise __bswap_constant_32.
15574 (__bswap_constant_64): Reformat definition. Do not use
15575 __extension__ here.
15576 (__bswap_64): Always define as inline function, not macro. Use
15577 __extension__ on function definition. Use __builtin_bswap64 if
15578 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
15579 * string/test-endian-file-scope.c: New file.
15580 * string/test-endian-sign-conversion.c: Likewise.
15581 * string/Makefile (headers): Remove bits/byteswap-16.h.
15582 (tests): Add test-endian-file-scope and
15583 test-endian-sign-conversion.
15584 (CFLAGS-test-endian-sign-conversion.c): New variable.
15585 * bits/byteswap-16.h: Remove file.
15586 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
15587 * sysdeps/ia64/bits/byteswap.h: Likewise.
15588 * sysdeps/m68k/bits/byteswap.h: Likewise.
15589 * sysdeps/s390/bits/byteswap-16.h: Likewise.
15590 * sysdeps/s390/bits/byteswap.h: Likewise.
15591 * sysdeps/tile/bits/byteswap.h: Likewise.
15592 * sysdeps/x86/bits/byteswap-16.h: Likewise.
15593 * sysdeps/x86/bits/byteswap.h: Likewise.
15594
15595 [BZ #17721]
15596 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
15597 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
15598 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
15599 199901L] (__restrict): Define to restrict.
15600
15601 [BZ #19667]
15602 * string/testcopy.c: Include <support/support.h>. Do not include
15603 <malloc.h>. Use <support/test-driver.c>.
15604 (main): Rename to do_test. Make static. Use xmalloc instead of
15605 malloc.
15606
15607 [BZ #13575]
15608 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
15609 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
15610 (SSIZE_MAX): Define to INT_MAX.
15611 * posix/test-ssize-max.c: New file.
15612 * posix/Makefile (tests): Add test-ssize-max.
15613
15614 [BZ #19668]
15615 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
15616 <support/support.h>. Do not include <malloc.h>.
15617 (query_auxv): Use xmalloc instead of malloc.
15618
15619 [BZ #14553]
15620 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
15621 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
15622 instead of loff_t.
15623
15624 2018-02-06 Florian Weimer <fweimer@redhat.com>
15625
15626 [BZ #18023]
15627 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15628 Use scratch_buffer instead of extend_alloca.
15629
15630 2018-02-06 Zack Weinberg <zackw@panix.com>
15631
15632 * libio/stdio.h: Don't define getc or putc as macros.
15633 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
15634 not _IO_getc and _IO_putc.
15635
15636 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
15637 * stdio-common/tstgetln.c: Don't redefine ssize_t.
15638
15639 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15640
15641 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
15642 (TCP_FASTOPEN_NO_COOKIE): Likewise.
15643
15644 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
15645
15646 [BZ #14890]
15647 * elf/elf.h (NT_PRFPREG): New macro.
15648 (NT_S390_VXRS_LOW): Likewise.
15649 (NT_S390_VXRS_HIGH): Likewise.
15650 (NT_S390_GS_CB): Likewise.
15651 (NT_S390_GS_BC): Likewise.
15652 (NT_S390_RI_CB): Likewise.
15653
15654 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
15655 (MAP_SYNC): New macro.
15656 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
15657 Likewise.
15658 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
15659 (MAP_SYNC): Likewise.
15660 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
15661 (MAP_SYNC): Likewise.
15662 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
15663 (MAP_SYNC): Likewise.
15664 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
15665 (MAP_SYNC): Likewise.
15666 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
15667 (MAP_SYNC): Likewise.
15668 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
15669 (MAP_SYNC): Likewise.
15670 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
15671 Likewise.
15672 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
15673 Likewise.
15674
15675 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
15676 (MAP_SHARED_VALIDATE): New macro.
15677 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15678 (MAP_SHARED_VALIDATE): Likewise.
15679
15680 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15681
15682 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
15683 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
15684 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
15685
15686 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15687
15688 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
15689 (DT_NUM): Updated to 35.
15690
15691 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15692
15693 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
15694 __builtin_expect with __glibc_likely and __glibc_unlikely.
15695 (elf_machine_rela): Likewise.
15696 (elf_machine_lazy_rel): Likewise.
15697
15698 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15699
15700 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
15701 __builtin_expect with __glibc_likely and __glibc_unlikely.
15702 (elf_machine_lazy_rel): Likewise.
15703
15704 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15705
15706 [BZ #22638]
15707 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
15708 SHARED.
15709 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
15710
15711 2018-02-05 Andreas Schwab <schwab@suse.de>
15712
15713 [BZ #22761]
15714 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
15715 string.
15716
15717 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
15718
15719 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
15720 not check against PTHREAD_STACK_MIN.
15721
15722 2018-02-02 Sean McKean <smckean83@gmail.com>
15723
15724 [BZ #22735]
15725 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
15726
15727 2018-02-02 Florian Weimer <fweimer@redhat.com>
15728
15729 [BZ #22753]
15730 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
15731 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
15732 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
15733 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
15734 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
15735 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
15736 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
15737 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
15738 * manual/llio.texi (Scatter-Gather): Mention offset -1.
15739 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
15740 * misc/tst-preadvwritev2.c (do_test): Call it.
15741 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
15742
15743 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
15744
15745 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
15746
15747 * benchtests/bench-memcmp.c: Print json instead of plain text.
15748
15749 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
15750 every test run.
15751
15752 2018-02-01 Joseph Myers <joseph@codesourcery.com>
15753
15754 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15755 version to 4.15.
15756 (s390_sthyi): New syscall.
15757
15758 * sysdeps/generic/ldbl-classify-compat.h: New file.
15759 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
15760 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
15761 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
15762 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
15763 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
15764 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
15765 * sysdeps/ieee754/dbl-64/s_finite.c: Include
15766 <ldbl-classify-compat.h>.
15767 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15768 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
15769 <ldbl-classify-compat.h>.
15770 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15771 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
15772 <ldbl-classify-compat.h>.
15773 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15774 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
15775 <ldbl-classify-compat.h>.
15776 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15777 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
15778 <ldbl-classify-compat.h>.
15779 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15780 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
15781 <ldbl-classify-compat.h>.
15782 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15783 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
15784 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
15785 * sysdeps/m68k/coldfire/math_private.h: Remove file.
15786 * sysdeps/microblaze/math_private.h: Likewise.
15787 * sysdeps/nios2/math_private.h: Likewise.
15788 * sysdeps/sh/math_private.h: Likewise.
15789
15790 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
15791 * sysdeps/m68k/coldfire/math_private.h: ... here.
15792 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
15793 * sysdeps/tile/math_private.h: Likewise.
15794 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
15795 Remove macro.
15796 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
15797 Likewise.
15798
15799 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
15800 Remove macro.
15801 (libc_fetestexcept): Likewise.
15802 (libc_feupdateenv_test): Likewise.
15803 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
15804 (libc_fetestexcept): Likewise.
15805 (libc_feupdateenv_test): Likewise.
15806 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
15807 (libc_fetestexcept): Likewise.
15808 (libc_feupdateenv_test): Likewise.
15809 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
15810 (libc_fetestexcept): Likewise.
15811 (libc_feupdateenv_test): Likewise.
15812
15813 * sysdeps/generic/math_private.h
15814 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
15815 New inline function.
15816 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
15817 Likewise.
15818
15819 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
15820 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
15821 * sysdeps/generic/math_private.h
15822 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
15823 inline function.
15824 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
15825 Likewise.
15826 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
15827 Likewise.
15828 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
15829 Likewise.
15830 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
15831 Likewise.
15832 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
15833 Likewise.
15834 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
15835 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
15836 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
15837 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
15838 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
15839 (__fegetenv): Likewise.
15840 (fesetenv): Likewise.
15841 (__fesetenv): Likewise.
15842 (feupdateenv): Likewise.
15843 (__feupdateenv): Likewise.
15844 (fegetround): Likewise.
15845 (__fegetround): Likewise.
15846 (fesetround): Likewise.
15847 (__fesetround): Likewise.
15848
15849 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
15850 (feraiseexcept): New macro.
15851 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
15852 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
15853 Remove macro.
15854 (__feraiseexcept): Likewise.
15855 (feclearexcept): Likewise.
15856 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
15857 (__feraiseexcept): Likewise.
15858 (feclearexcept): Likewise.
15859 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
15860 (__feraiseexcept): Likewise.
15861 (feclearexcept): Likewise.
15862 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
15863 (__feraiseexcept): Likewise.
15864 (feclearexcept): Likewise.
15865 (fetestexcept): Likewise.
15866
15867 * sysdeps/m68k/coldfire/math-tests.h: New file.
15868
15869 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
15870 * sysdeps/m68k/bits/fenv.h: ... here.
15871 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
15872 not define.
15873 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
15874 Likewise.
15875 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
15876 Likewise.
15877 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
15878 Likewise.
15879 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
15880 Likewise.
15881 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
15882 Define to 0.
15883 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
15884 (__FE_UNDEFINED): New enum constant.
15885 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
15886 Do not define.
15887 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
15888 Likewise.
15889 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
15890 Likewise.
15891 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
15892 to match generic bits/fenv.h.
15893 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
15894 Do not define.
15895
15896 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
15897 packed on bits.
15898 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
15899 * soft-fp/half.h (union _FP_UNION_H): Likewise.
15900 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
15901 * soft-fp/single.h (union _FP_UNION_S): Likewise.
15902
15903 2018-02-01 Carlos O'Donell <carlos@redhat.com>
15904 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
15905 Joseph Myers <joseph@codesourcery.com>
15906
15907 [BZ #21314]
15908 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
15909 (__log1p): Disable -Wmaybe-uninitialized for -Os around
15910 computation using c.
15911 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
15912 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
15913 computation using c.
15914
15915 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
15916
15917 * version.h (RELEASE): Set to "development".
15918 (VERSION): Set to "2.27.9000".
15919 * NEWS (2.28): New section.
15920
15921 * version.h (RELEASE): Set to "stable".
15922 (VERSION): Set to "2.27".
15923 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
15924
15925 * NEWS: Add the list of bugs fixed in 2.27.
15926
15927 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15928
15929 * stdlib/test-atexit-race-common.c (do_test): Check stack size
15930 against PTHREAD_STACK_MIN.
15931
15932 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
15933
15934 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
15935 New entries.
15936 (Rafal Luzynski, Andreas Schwab): Update.
15937
15938 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
15939
15940 [BZ #10871]
15941 * NEWS: List the languages which actually use the alternative
15942 months feature in this release. Also explain that "alt_mon" and
15943 "ab_alt_mon" are optional.
15944
15945 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
15946
15947 [BZ #22765]
15948 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
15949
15950 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
15951
15952 * manual/install.texi (Tools for Compilation): Update the newest
15953 versions of gcc, binutils, texinfo, gawk, bison, and sed.
15954 * INSTALL: Regenerated.
15955
15956 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
15957
15958 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
15959 instead of __builtin_expect.
15960
15961 2018-01-30 Florian Weimer <fweimer@redhat.com>
15962
15963 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
15964 data.
15965 * nss/tst-nss-getpwent.c (do_test): Likewise.
15966
15967 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
15968
15969 [BZ #10871]
15970 * localedata/locales/hr_HR (mon): Rename to...
15971 (alt_mon): This.
15972 (mon): Import from CLDR (genitive case).
15973 (d_t_fmt): Update the comment.
15974
15975 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
15976
15977 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
15978 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
15979 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
15980
15981 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
15982
15983 * mach/Versions: Fix version when __mach_host_self_ was added.
15984 * hurd/Versions: Fix version when _hurd_exec_paths was added.
15985 * sysdeps/mach/hurd/i386/ld.abilist: New file.
15986 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
15987 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
15988 * sysdeps/mach/hurd/i386/libc.abilist: New file.
15989 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
15990 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
15991 * sysdeps/mach/hurd/i386/libm.abilist: New file.
15992 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
15993 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
15994 * sysdeps/mach/hurd/i386/librt.abilist: New file.
15995 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
15996 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
15997 || to respect codestyle.
15998 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
15999 (do_test_bz20181): Rename accordingly.
16000 * malloc/malloc.c: Include <assert.h>.
16001 (assert): Do not define.
16002 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16003 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16004 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16005 * sysdeps/mach/hurd/hp-timing.h: New file.
16006 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16007
16008 2018-01-29 Darius Rad <darius@bluespec.com>
16009
16010 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16011
16012 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16013
16014 * sysdeps/init_array/crti.S (.section .init_array): Add
16015 PREINIT_FUNCTION when defined.
16016 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16017 * config.h.in: Regenerate.
16018 * manual/platform.texi: Add RISC-V documenation for
16019 __riscv_flush_icache.
16020 * sysdeps/riscv/__longjmp.S: New file.
16021 * sysdeps/riscv/backtrace.c: Likewise.
16022 * sysdeps/riscv/bits/endian.h: Likewise.
16023 * sysdeps/riscv/bits/setjmp.h: Likewise.
16024 * sysdeps/riscv/bits/wordsize.h: Likewise.
16025 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16026 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16027 * sysdeps/riscv/dl-trampoline.S: Likewise.
16028 * sysdeps/riscv/gccframe.h: Likewise.
16029 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16030 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16031 * sysdeps/riscv/machine-gmon.h: Likewise.
16032 * sysdeps/riscv/memusage.h: Likewise.
16033 * sysdeps/riscv/setjmp.S: Likewise.
16034 * sysdeps/riscv/sys/asm.h: Likewise.
16035 * sysdeps/riscv/tls-macros.h: Likewise.
16036 * sysdeps/riscv/dl-tls.h: New file.
16037 * sysdeps/riscv/libc-tls.c: Likewise.
16038 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16039 * sysdeps/riscv/nptl/tls.h: Likewise.
16040 * sysdeps/riscv/stackinfo.h: Likewise.
16041 * sysdeps/riscv/bits/fenv.h: New file.
16042 * sysdeps/riscv/e_sqrtl.c: Likewise.
16043 * sysdeps/riscv/fpu_control.h: Likewise.
16044 * sysdeps/riscv/math-tests.h: Likewise.
16045 * sysdeps/riscv/nofpu/Implies: Likewise.
16046 * sysdeps/riscv/sfp-machine.h: Likewise.
16047 * sysdeps/riscv/tininess.h: Likewise.
16048 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16049 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16050 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16051 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16052 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16053 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16054 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16055 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16056 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16057 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16058 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16059 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16060 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16061 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16062 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16063 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16064 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16065 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16066 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16067 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16068 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16069 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16070 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16071 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16072 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16073 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16074 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16075 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16076 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16077 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16078 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16079 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16080 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16081 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16082 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16083 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16084 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16085 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16086 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16087 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16088 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16089 * sysdeps/riscv/rvf/math_private.h: Likewise.
16090 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16091 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16092 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16093 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16094 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16095 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16096 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16097 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16098 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16099 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16100 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16101 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16102 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16103 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16104 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16105 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16106 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16107 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16108 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16109 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16110 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16111 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16112 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16113 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16114 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16115 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16116 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16117 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16118 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16119 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16120 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16121 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16122 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16123 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16124 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16125 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16126 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16127 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16128 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16129 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16130 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16131 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16132 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16133 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16134 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16135 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16136 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16137 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16138 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16139 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16140 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16141 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16142 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16143 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16144 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16145 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16146 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16147 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16148 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16149 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16150 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16151 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16152 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16153 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16154 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16155 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16156 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16157 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16158 * sysdeps/riscv/Implies: New file.
16159 * sysdeps/riscv/Makefile: Likewise.
16160 * sysdeps/riscv/configure: Likewise.
16161 * sysdeps/riscv/configure.ac: Likewise.
16162 * sysdeps/riscv/nptl/Makefile: Likewise.
16163 * sysdeps/riscv/preconfigure: Likewise.
16164 * sysdeps/riscv/rv64/Implies-after: Likewise.
16165 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16166 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16167 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16168 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16169 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16170 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16171 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16172 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16173 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16174 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16175 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16176 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16177 (Config): Likewise.
16178
16179 2018-01-29 Florian Weimer <fweimer@redhat.com>
16180
16181 [BZ #22701]
16182 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16183 libnsl_hidden_proto.
16184 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16185 libnsl_hidden_proto.
16186 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16187 * nis/Makefile (libnsl-routines): Add nss-default only for
16188 build-obsolete-nsl.
16189 * nis/nis_defaults.c (__nis_default_ttl): Add
16190 libnsl_hidden_nolink_def.
16191 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16192 declaration.
16193 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16194 * nis/ypclnt.c (yp_maplist): Likewise.
16195
16196 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16197
16198 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16199 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16200
16201 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16202
16203 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16204 clean -dxfq for git updates when replacing sources.
16205
16206 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16207 --disable-libcilkrts unconditionally, not just for the final GCC
16208 build for Hurd.
16209
16210 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16211 version to 4.15.
16212
16213 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16214
16215 [BZ #10871]
16216 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16217 case).
16218
16219 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16220
16221 [BZ #10871]
16222 * localedata/locales/be_BY (mon): Rename to...
16223 (alt_mon): This, then synchronize with CLDR (nominative case).
16224 (abmon): Rename to...
16225 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16226 (mon): Import from CLDR (genitive case).
16227 (abmon): Likewise.
16228 * localedata/locales/be_BY@latin (mon): Rename to...
16229 (alt_mon): This.
16230 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16231
16232 * localedata/locales/be_BY@latin (lang_name): Reworded to
16233 "biełaruskaja mova".
16234
16235 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16236
16237 [BZ #10871]
16238 * localedata/locales/el_CY (mon): Renamed to...
16239 (alt_mon): This.
16240 (mon): Import from CLDR (genitive case).
16241 * localedata/locales/el_GR: Likewise.
16242
16243 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16244
16245 [BZ #10871]
16246 * localedata/locales/ru_RU (mon): Rename to...
16247 (alt_mon): This.
16248 (abmon): Rename to...
16249 (ab_alt_mon): This.
16250 (mon): Import from CLDR (genitive case).
16251 (abmon): Copy from the old content except the 5th month which is
16252 now in the genitive case, even when abbreviated.
16253 * localedata/locales/ru_UA: Likewise.
16254 * time/tst-strptime.c (day_tests): Add an actual example of
16255 a difference between %b and %Ob in Russian.
16256
16257 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16258
16259 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16260 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16261 a `c' variable.
16262 * resolv/res-close.c: Include <stdlib.h>.
16263 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16264 <sys/wait.h>, <time.h>, <sys/uio.h>.
16265 (NOT_CANCEL_H): Add inclusion guard.
16266 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16267 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16268 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16269 return 0.
16270 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16271 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16272 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16273 instead of void *.
16274 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16275 timer_ptr2id to cast struct timer_node * to void *.
16276 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16277 --disable-libcilkrts to gcc configure.
16278 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16279 and make them the default for now.
16280 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16281 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16282 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16283 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
16284 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
16285 MACH_IPC_COMPAT.
16286 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
16287 __task_terminate would ever return successfully.
16288 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
16289 to global scope.
16290 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
16291 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16292 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16293 critical section to make code simpler and avoid warning.
16294 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16295 critical section to make code simpler and avoid warning.
16296 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16297 const char * instead of char *.
16298 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16299 __hurd_file_name_split, hurd_file_name_split,
16300 __hurd_directory_name_split, hurd_directory_name_split,
16301 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16302 hurd_file_name_path_lookup): Make lookup function parameter take a
16303 const char *name instead of char *name.
16304 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16305 __hurd_directory_name_split): Likewise.
16306 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16307 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
16308 * sysdeps/mach/hurd/check_native.c: New file.
16309 * sysdeps/mach/hurd/check_pf.c: New file.
16310 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
16311 (__freeifaddrs): Define macro to freeifaddrs.
16312 * sysdeps/mach/hurd/libhurduser.abilist: New file.
16313 * sysdeps/mach/libmachuser.abilist: New file.
16314 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
16315 (do_test_bz20181): Rename accordingly.
16316 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
16317 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
16318 <sys/mount.h>.
16319 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
16320 version only if __USE_EXTERN_INLINES is defined.
16321 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
16322 __hurd_sockfail): Likewise.
16323 (_hurd_fd_get): Always declare functions, and provide inline versions
16324 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
16325 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
16326 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
16327 _hurd_port_set): Always declare functions, and provide inline versions
16328 only if __USE_EXTERN_INLINES and _LIBC are defined and
16329 IS_IN(libc).
16330 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
16331 _hurd_critical_section_unlock): Likewise.
16332 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
16333 * __hurd_threadvar_location): Likewise.
16334 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
16335 _hurd_userlink_clear): Likewise.
16336 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
16337 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
16338 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
16339 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
16340 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
16341 __spin_lock_locked): Likewise.
16342 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
16343 __spin_lock_locked): Likewise.
16344 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
16345 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
16346 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
16347 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
16348 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
16349 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
16350 _POSIX_NO_TRUNC): Define to 0.
16351 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
16352 check size against PTHREAD_STACK_MIN.
16353 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
16354 IS_IN(libpthread)]: Include <sigsetops.h>.
16355 * mach/Makefile (user-interfaces): Add mach/gnumach.
16356 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
16357 * sysdeps/mach/configure (mach_interface_list): Regenerate.
16358 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
16359 instead of invalid -1.
16360 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
16361 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
16362 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
16363 <net/ppp_defs.h>.
16364
16365 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
16366
16367 * hurd/fcntl-internal.h: New file.
16368
16369 2018-01-27 James Clarke <jrtc27@jrtc27.com>
16370
16371 * sysdeps/hppa/fpu/libm-test-ulps: Update.
16372
16373 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16374
16375 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
16376
16377 [BZ #22701]
16378 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
16379 Build only shared objects.
16380
16381 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16382
16383 * README: Update for hppa.
16384
16385 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
16386
16387 * sysdeps/sparc/fpu/libm-test-ulps: Update
16388 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
16389
16390 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16391
16392 Revert:
16393
16394 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16395
16396 [BZ #22563]
16397 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16398 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
16399 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16400 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
16401 to feature_1.
16402
16403 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16404
16405 [BZ #22563]
16406 * bits/types/__cancel_jmp_buf_tag.h: New file.
16407 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
16408 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
16409 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
16410 * nptl/Makefile (headers): Add
16411 bits/types/__cancel_jmp_buf_tag.h.
16412 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
16413 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
16414 * sysdeps/nptl/pthread.h: Include
16415 <bits/types/__cancel_jmp_buf_tag.h>.
16416 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
16417 __cancel_jmp_buf.
16418 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
16419
16420 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
16421
16422 [BZ #10871]
16423 * localedata/locales/uk_UA (mon): Renamed to...
16424 (alt_mon): This.
16425 (alt_digits): "0" removed and then renamed to...
16426 (mon): This.
16427 (date_fmt): Definition changed not to use the alternative
16428 digits hack.
16429
16430 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
16431
16432 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
16433 FLAG_RISCV_FLOAT_ABI_DOUBLE.
16434 * elf/elf.h (EF_RISCV_RVC): New define.
16435 (EF_RISCV_FLOAT_ABI): Likewise.
16436 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
16437 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
16438 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16439 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
16440 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
16441 define.
16442 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16443
16444 2018-01-25 Andreas Schwab <schwab@suse.de>
16445
16446 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
16447 single quotes.
16448 * sysdeps/gnu/configure: Regenerate.
16449 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
16450 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
16451 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
16452 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
16453 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
16454 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
16455 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
16456 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
16457
16458 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16459
16460 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
16461 URL, and run autoconf, make it the default for now.
16462
16463 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16464
16465 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16466 soft-float ColdFire configuration.
16467
16468 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
16469 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
16470 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
16471
16472 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
16473 MicroBlaze file.
16474
16475 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
16476 ....
16477 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
16478 ... here.
16479 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
16480 New file.
16481
16482 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
16483 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
16484 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
16485 file.
16486
16487 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16488
16489 [BZ #22742]
16490 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
16491 Rename to __reserved and add comment.
16492 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
16493 Rename to __reserved.
16494
16495 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16496
16497 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16498 i686-gnu configurations.
16499 (Context.run_builds): Include mig, gnumach and hurd in components
16500 considered.
16501 (Context.checkout): Add mig, gnumach and hurd to components.
16502 (Context.checkout_tar): Add URL mappings for mig, gnumach and
16503 hurd.
16504 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
16505 (Config.build): Install gnumach headers, build mig and install
16506 hurd headers for 'gnu' OS.
16507 (Config.install_gnumach_headers): New function.
16508 (Config.install_hurd_headers): Likewise.
16509 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
16510 when building for 'gnu' OS.
16511
16512 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
16513
16514 * manual/tunables.texi (Hardware Capability Tunables): Fix
16515 spelling.
16516
16517 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
16518
16519 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
16520 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
16521 (ALTMON_11, ALTMON_12): Improve documentation.
16522 * manual/time.texi (strftime): Likewise.
16523
16524 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16525
16526 [BZ #10871]
16527 * localedata/locales/pl_PL: Alternative month names added,
16528 primary month names are genitive now.
16529 * time/tst-strptime.c (day_tests): Actually use a genitive case
16530 of a month name in Polish language.
16531
16532 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16533
16534 [BZ #10871]
16535 * manual/locale.texi: Document ALTMON_1..12 constants for
16536 nl_langinfo. Specify when to use ALTMON instead of MON.
16537 * manual/time.texi (strftime, strptime): Document GNU extension
16538 permitting O modifier with %B and %b. Specify when to use
16539 %OB instead of %B.
16540
16541 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16542
16543 [BZ #10871]
16544 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
16545 names, define them as the same as abbreviated month names explicitly.
16546 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
16547 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
16548 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
16549 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
16550 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
16551 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
16552 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
16553 _NL_WABALTMON_12): New enum constants.
16554 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
16555 wab_alt_mon, and ab_alt_mon_defined members.
16556 (time_output): Output ab_alt_mon and wab_alt_mon members.
16557 (time_read): Read them, initialize them as copies of abmon and wabmon
16558 respectively if they are missing, initialize ab_alt_mon_defined.
16559 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
16560 * locale/programs/locfile-kw.h: Regenerate.
16561 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
16562 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
16563 and ru_RU.UTF-8.
16564 * time/strftime_l.c (a_altmonth, aam_len): New macros.
16565 [!COMPILE_WIDE] (ABALTMON_1): New macro.
16566 (__strftime_internal): Handle %Ob and %Oh formats.
16567 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
16568 (__strptime_internal): Handle %Ob and %Oh formats.
16569 * time/tst-strptime.c (day_tests): Add more tests to parse different
16570 forms of month names including the new %Ob format specifier.
16571
16572 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16573
16574 [BZ #10871]
16575 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
16576 define them as the same as primary full month names explicitly.
16577 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
16578 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
16579 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
16580 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
16581 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
16582 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
16583 _NL_WALTMON_12): New enum constants.
16584 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
16585 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
16586 macros.
16587 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
16588 walt_mon, and alt_mon_defined members.
16589 (time_output): Output alt_mon and walt_mon members.
16590 (time_read): Read them, initialize them as copies of mon and wmon
16591 respectively if they are missing, initialize alt_mon_defined.
16592 * locale/programs/locfile-kw.gperf (alt_mon): Define.
16593 * locale/programs/locfile-kw.h: Regenerate.
16594 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
16595 * localedata/tst-langinfo.c (map): Add tests for the new constants
16596 ALTMON_1 .. ALTMON_12.
16597 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
16598 and pl_PL.UTF-8.
16599 * time/strftime_l.c (f_altmonth): New macro.
16600 (__strftime_internal): Handle %OB format.
16601 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
16602 (__strptime_internal): Handle %OB format.
16603 * time/tst-strptime.c (day_tests): Add tests to parse different forms
16604 of month names including the new %OB format specifier.
16605
16606 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16607
16608 [BZ #22685]
16609 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
16610 from ABORT_TRANSACTION.
16611 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
16612 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
16613 ABORT_TRANSACTION_IMPL): Likewise.
16614 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
16615 Linux code, but remove the code that aborts transactions.
16616
16617 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
16618
16619 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
16620
16621 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
16622
16623 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
16624 in date: "2004-14-09" should be "2004-09-14".
16625 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
16626 "2003-15-09" should be "2003-09-15".
16627
16628 2018-01-18 Arjun Shankar <arjun@redhat.com>
16629
16630 [BZ #22343]
16631 [BZ #22774]
16632 CVE-2018-6485
16633 CVE-2018-6551
16634 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
16635 after padding.
16636 (_int_memalign): check for integer overflow before calling
16637 _int_malloc.
16638 * malloc/tst-malloc-too-large.c: New test.
16639 * malloc/Makefile: Add tst-malloc-too-large.
16640
16641 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
16642
16643 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
16644 in date: "2017-24-07" should be "2017-07-24".
16645 * localedata/locales/mai_IN: Likewise.
16646 * localedata/locales/mai_NP: Likewise.
16647
16648 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
16649
16650 * po/ru.po: Update translations.
16651
16652 2018-01-17 Joseph Myers <joseph@codesourcery.com>
16653
16654 [BZ #22719]
16655 * sysdeps/hppa/backtrace.c: New file.
16656
16657 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
16658
16659 [BZ #22715]
16660 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
16661 align La_x86_64_retval to VEC_SIZE.
16662
16663 2018-01-16 Joseph Myers <joseph@codesourcery.com>
16664
16665 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
16666 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
16667
16668 2018-01-16 Florian Weimer <fweimer@redhat.com>
16669
16670 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
16671 Move tst-thread-exit-clobber ...
16672 [$(CXX)] (tests-unsupported): ... to here.
16673
16674 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16675
16676 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
16677 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
16678 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16679 (_dl_aarch64_cap_flags): Update.
16680 (_DL_HWCAP_COUNT): Update.
16681
16682 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16683
16684 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
16685 (_DL_HWCAP_LAST): Remove.
16686 (_DL_HWCAP_COUNT): Move to ...
16687 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16688 (_DL_HWCAP_COUNT): ... here.
16689
16690 2018-01-16 Florian Weimer <fweimer@redhat.com>
16691
16692 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
16693 mode with GNU extensions.
16694
16695 2018-01-15 Alan Hayward <alan.hayward@arm.com>
16696
16697 * elf/elf.h (NT_ARM_SVE): Define.
16698
16699 2018-01-15 Florian Weimer <fweimer@redhat.com>
16700
16701 [BZ #22636]
16702 * nptl/tst-minstack-throw.cc: New file.
16703 * nptl/Makefile (tests): Add tst-minstack-throw.
16704 (LDLIBS-tst-minstack-throw): Link with libstdc++.
16705 [!CXX] (tests-unsupported): Add tst-minstack-throw.
16706
16707 2018-01-15 Joseph Myers <joseph@codesourcery.com>
16708
16709 * scripts/build-many-glibcs.py (Context.checkout): Default
16710 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
16711 version to 1.1.0.
16712
16713 2018-01-13 Carlos O'Donell <carlos@redhat.com>
16714
16715 [BZ #22707]
16716 * elf/elf.h (DF_1_STUB): Define.
16717 (DF_1_PIE): Define.
16718
16719 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16720
16721 [BZ #22697]
16722 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
16723 Do not add 0.5 to integer or out-of-range arguments.
16724
16725 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16726
16727 * po/bg.po: Update translations.
16728 * po/cs.po: Likewise.
16729 * po/de.po: Likewise.
16730 * po/ko.po: Likewise.
16731 * po/pl.po: Likewise.
16732 * po/sv.po: Likewise.
16733 * po/uk.po: Likewise.
16734 * po/vi.po: Likewise.
16735
16736 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16737
16738 * aarch64/start.S (_start): Use __wrap_main.
16739 (__wrap_main): New local symbol.
16740
16741 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16742
16743 [BZ #22679]
16744 CVE-2018-1000001
16745 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
16746 generic_getcwd if the path returned by getcwd syscall is not absolute.
16747 * io/tst-getcwd-abspath.c: New test.
16748 * io/Makefile (tests): Add tst-getcwd-abspath.
16749
16750 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
16751
16752 * malloc/malloc.c (malloc_consolidate): Add size check.
16753
16754 2018-01-12 Florian Weimer <fweimer@redhat.com>
16755
16756 * support/write_message.c (write_message): Preserve errno.
16757 * support/check.c (print_failure): Likewise.
16758 * support/support_test_verify_impl.c (support_test_verify_impl):
16759 Likewise.
16760 * support/support_test_compare_failure.c
16761 (support_test_compare_failure): Likewise.
16762
16763 2018-01-12 Florian Weimer <fweimer@redhat.com>
16764
16765 [BZ #22701]
16766 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
16767 Prevent installation of libnsl.so.
16768 (libnsl-inhibit-o): Do not build (or install) static libraries.
16769
16770 2018-01-12 Egmont Koblinger <egmont@gmail.com>
16771
16772 [BZ #22657]
16773 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
16774 before the day number which may produce a double space.
16775 (date_fmt): Likewise.
16776
16777 2018-01-12 Joseph Myers <joseph@codesourcery.com>
16778
16779 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
16780 instead of fegetenv.
16781
16782 2018-01-11 Joseph Myers <joseph@codesourcery.com>
16783
16784 [BZ #22702]
16785 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
16786 comment to say exceptions are discarded.
16787 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
16788 __fegetenv.
16789 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
16790 be enabled.
16791
16792 2018-01-11 Florian Weimer <fweimer@redhat.com>
16793
16794 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
16795 and error message.
16796
16797 2018-01-11 Florian Weimer <fweimer@redhat.com>
16798
16799 [BZ #22636]
16800 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
16801 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
16802
16803 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16804
16805 [BZ #22693]
16806 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
16807 negative arguments in test for NaN or infinity argument.
16808
16809 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
16810
16811 * po/libc.pot: Regenerate.
16812
16813 2018-01-10 Florian Weimer <fweimer@redhat.com>
16814
16815 [BZ #22636]
16816 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
16817 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
16818
16819 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
16820
16821 * hurd/hurd/fd.h: Include <fcntl.h>
16822 (__hurd_at_flags): New function.
16823 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
16824 with call to __hurd_at_flags.
16825 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
16826 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
16827 __faccessat
16828 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
16829 (__access_noerrno): Use __faccessat_common instead of access_common.
16830 (__access): Likewise.
16831 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
16832 with a call to __faccessat.
16833 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
16834 (__faccessat_common): ... this. Move implementation of __access into it when
16835 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
16836 reauthenticate_cwdir_at helper to implement AT mechanism.
16837 (__faccessat_noerrno): New function, just calls __faccessat_common.
16838 (__faccessat): New function, just calls __faccessat_common.
16839 (faccessat): Define weak alias.
16840
16841 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16842
16843 [BZ #22691]
16844 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16845 (CFLAGS-s_fmaxmagl.c): New variable.
16846 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
16847
16848 [BZ #22690]
16849 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
16850 long int for arguments of possibly overflowing addition or
16851 subtraction.
16852 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
16853
16854 2018-01-09 Joseph Myers <joseph@codesourcery.com>
16855
16856 [BZ #22688]
16857 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16858 (CFLAGS-e_remainderl.c): New variable.
16859
16860 [BZ #22687]
16861 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
16862 variable.
16863 (CFLAGS-s_cacoshl.c): Likewise.
16864 (CFLAGS-s_casinhl.c): Likewise.
16865 (CFLAGS-s_catanl.c): Likewise.
16866 (CFLAGS-s_catanhl.c): Likewise.
16867 (CFLAGS-s_cexpl.c): Likewise.
16868 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
16869 (CFLAGS-s_csinhl.c): Likewise.
16870 (CFLAGS-s_clogl.c): Likewise.
16871 (CFLAGS-s_clog10l.c): Likewise.
16872 (CFLAGS-s_csinl.c): Likewise.
16873 (CFLAGS-s_csqrtl.c): Likewise.
16874
16875 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
16876 2017-01-09 Svante Signell <svante.signell@gmail.com>
16877
16878 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
16879 (_hurd_exec_paths): New function.
16880 * hurd/hurd.h (_hurd_exec): Deprecate function.
16881 (_hurd_exec_paths): Declare function.
16882 * hurd/Versions: Export _hurd_exec_paths.
16883 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
16884 (__execve): Use __getcwd to build absolute path, and use
16885 _hurd_exec_paths instead of _hurd_exec.
16886 * sysdeps/mach/hurd/spawni.c: Likewise.
16887 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
16888 _hurd_exec.
16889
16890 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
16891
16892 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
16893 test instead of failing in case of ENOENT returned by posix_openpt.
16894
16895 2018-01-08 Florian Weimer <fweimer@redhat.com>
16896
16897 resolv: Support binary labels in test framework.
16898 * support/resolv_test.c (struct to_be_freed): Remove.
16899 (struct compressed_name): New.
16900 (allocate_compressed_name, ascii_tolower)
16901 (compare_compressed_name): New functions.
16902 (struct resolv_response_builder): Update type of
16903 compression_offsets for use with tsearch. Rempve to_be_freed.
16904 (response_push_pointer_to_free): Remove function.
16905 (resolv_response_add_name): Rewrite using struct compressed_name
16906 and tsearch instead of hsearch_r.
16907 (response_builder_allocate): Remove initialization of
16908 compression_offsets.
16909 (response_builder_free): Update for removal of to_be_freed. Use
16910 tdestroy instead of hdestroy_r.
16911 * resolv/Makefile (tests): Add tst-resolv-binary.
16912 (tst-resolv-binary): Link with -lresolv -lpthread.
16913
16914 2018-01-08 Florian Weimer <fweimer@redhat.com>
16915
16916 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
16917 time. Pass positive flag instead of negative flag to
16918 support_test_compare_failure.
16919 (support_test_compare_failure): Change negative parameter to
16920 positive.
16921 * support/support_test_compare_failure.c (report)
16922 (support_test_compare_failure): Likewise.
16923 * support/tst-test_compare.c (return_ssize_t, return_int): New.
16924 (do_test): Check int/size_t, ssize_t/size_t comparisons.
16925
16926 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
16927
16928 [BZ #22637]
16929 * nptl/descr.h (stackblock, stackblock_size): Update comments.
16930 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
16931 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
16932 stacksize.
16933 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
16934
16935 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
16936
16937 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
16938 Add s_sincosf-sse2 and s_sincosf-fma.
16939 (CFLAGS-s_sincosf-fma.c): New.
16940 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
16941 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
16942 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
16943 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
16944 __sincosf is defined.
16945
16946 2018-01-08 Florian Weimer <fweimer@redhat.com>
16947
16948 * nptl/tst-thread-exit-clobber.cc: New file.
16949 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
16950 C++11 mode.
16951 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
16952 (tests): Add tst-thread-exit-clobber.
16953 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
16954
16955 2018-01-08 Florian Weimer <fweimer@redhat.com>
16956
16957 * support/check.h (support_static_assert): Define.
16958 (TEST_COMPARE): Use it.
16959
16960 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
16961
16962 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
16963 [!__RLIM_T_MATCHES_RLIM64_T]
16964 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
16965 __getrlimit64. Add libc_hidden_weak.
16966
16967 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
16968
16969 * elf/elf.h (R_RISCV_NONE): New define.
16970 (R_RISCV_32): Likewise.
16971 (R_RISCV_64): Likewise.
16972 (R_RISCV_RELATIVE): Likewise.
16973 (R_RISCV_COPY): Likewise.
16974 (R_RISCV_JUMP_SLOT): Likewise.
16975 (R_RISCV_TLS_DTPMOD32): Likewise.
16976 (R_RISCV_TLS_DTPMOD64): Likewise.
16977 (R_RISCV_TLS_DTPREL32): Likewise.
16978 (R_RISCV_TLS_DTPREL64): Likewise.
16979 (R_RISCV_TLS_TPREL32): Likewise.
16980 (R_RISCV_TLS_TPREL64): Likewise.
16981 * Makerules (make-link-multidir): Make directories before linking into
16982 them.
16983 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
16984 define.
16985 (VDSO_HASH_LINUX_4_15): Likewise.
16986 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
16987 in subdirectories of lib.
16988 * nptl/Makefile (/librt.so): Always depend on
16989 "$(shared-thread-library)".
16990
16991 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
16992
16993 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
16994 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
16995 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
16996 (___tls_get_addr).
16997 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
16998 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
16999 "-O2 -march=i686".
17000 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17001 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17002 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17003 * sysdeps/gnu/glob-lstat-compat.c: New file.
17004 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17005 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17006
17007 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17008
17009 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17010 Reserve 16 chars to reloc_addr before calling _itoa_word.
17011
17012 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17013
17014 [BZ #22678]
17015 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17016 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17017
17018 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17019 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17020
17021 * resource/tst-getrlimit.c: Add copyright header.
17022
17023 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17024 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17025
17026 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17027 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17028 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17029 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17030 instead.
17031 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17032 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17033 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17034 RLIM64_INFINITY): Fix values to match the kernel ones.
17035 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17036 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17037 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17038 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17039 getrlimit64@@GLIBC_2_27.
17040 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17041 and setrlimit64.
17042 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17043 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17044 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17045 setrlimit, getrlimit64 and setrlimit64.
17046
17047 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17048
17049 [BZ #22648]
17050 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17051 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17052
17053 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17054
17055 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17056 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17057 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17058
17059 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17060
17061 [BZ #15479]
17062 [BZ #22666]
17063 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17064 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17065
17066 [BZ #15479]
17067 [BZ #22665]
17068 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17069 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17070 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17071 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17072
17073 2018-01-04 Florian Weimer <fweimer@redhat.com>
17074
17075 [BZ #22667]
17076 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17077 Align the stack before calling exit.
17078 * stdlib/tst-makecontext-align.c: New file.
17079 * stdlib/Makefile (tests): Add tst-makecontext-align.
17080
17081 2018-01-04 Florian Weimer <fweimer@redhat.com>
17082
17083 Add support for calling dlvsym from libc.so.
17084 * include/dlfcn.h (__libc_dlvsym): Declare.
17085 * elf/Makefile (tests-static-internal): Add
17086 tst-libc_dlvsym-static.
17087 (tests-internal): Add tst-libc_dlvsym.
17088 (modules-names): Add tst-libc_dlvsym-dso.
17089 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17090 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17091 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17092 object tst-libc_dlvsym-dso.so needs to be built before running
17093 these tests.
17094 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17095 * elf/Versions: Export __libc_dlvsym.
17096 * elf/dl-libc.c (struct do_dlvsym_args): New.
17097 (do_dlvsym, __libc_dlvsym): New functions.
17098 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17099 (_dl_open_hook2): New variable.
17100 (__libc_register_dl_open_hook): Set it.
17101 * elf/tst-libc_dlvsym-dso.c: New file.
17102 * elf/tst-libc_dlvsym-static.c: Likewise.
17103 * elf/tst-libc_dlvsym.c: Likewise.
17104 * elf/tst-libc_dlvsym.h: Likewise.
17105
17106 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17107
17108 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17109 include <sys/mount.h>.
17110
17111 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17112
17113 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17114 Add __NO_MATH_ERRNO__ check.
17115
17116 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17117
17118 * sysdeps/mips/mips32/libm-test-ulps: Update.
17119 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17120
17121 2018-01-02 Florian Weimer <fweimer@redhat.com>
17122
17123 * misc/tst-pselect.c: Add copyright header.
17124
17125 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17126
17127 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17128 comment.
17129 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17130 comment.
17131 (settrlimit): Rename into setrlimit.
17132 (__sttrlimit): Rename into __setrlimit.
17133
17134 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17135 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17136 never defined in that case.
17137
17138 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17139
17140 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17141
17142 * sysdeps/arm/libm-test-ulps: Update.
17143
17144 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17145 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17146
17147 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17148
17149 * NEWS: Add cosf and sincosf to list of optimized functions.
17150
17151 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17152
17153 [BZ #22660]
17154 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17155 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17156 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17157 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17158
17159 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17160
17161 [BZ #22433]
17162 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17163
17164 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17165 making a copy of it.
17166
17167 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17168
17169 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17170 trailing whitespace removed.
17171 * scripts/config.guess: Update to version 2018-01-01.
17172 * scripts/config.sub: Update to version 2018-01-01.
17173 * scripts/move-if-change: Update from gnulib.
17174
17175 * NEWS: Update copyright dates.
17176 * catgets/gencat.c (print_version): Likewise.
17177 * csu/version.c (banner): Likewise.
17178 * debug/catchsegv.sh: Likewise.
17179 * debug/pcprofiledump.c (print_version): Likewise.
17180 * debug/xtrace.sh (do_version): Likewise.
17181 * elf/ldconfig.c (print_version): Likewise.
17182 * elf/ldd.bash.in: Likewise.
17183 * elf/pldd.c (print_version): Likewise.
17184 * elf/sotruss.sh: Likewise.
17185 * elf/sprof.c (print_version): Likewise.
17186 * iconv/iconv_prog.c (print_version): Likewise.
17187 * iconv/iconvconfig.c (print_version): Likewise.
17188 * locale/programs/locale.c (print_version): Likewise.
17189 * locale/programs/localedef.c (print_version): Likewise.
17190 * login/programs/pt_chown.c (print_version): Likewise.
17191 * malloc/memusage.sh (do_version): Likewise.
17192 * malloc/memusagestat.c (print_version): Likewise.
17193 * malloc/mtrace.pl: Likewise.
17194 * manual/libc.texinfo: Likewise.
17195 * nptl/version.c (banner): Likewise.
17196 * nscd/nscd.c (print_version): Likewise.
17197 * nss/getent.c (print_version): Likewise.
17198 * nss/makedb.c (print_version): Likewise.
17199 * posix/getconf.c (main): Likewise.
17200 * scripts/test-installation.pl: Likewise.
17201 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17202
17203 * All files with FSF copyright notices: Update copyright dates
17204 using scripts/update-copyrights.
17205 * locale/programs/charmap-kw.h: Regenerated.
17206 * locale/programs/locfile-kw.h: Likewise.
17207
17208 2017-12-31 Zack Weinberg <zackw@panix.com>
17209
17210 * libio/bits/libio-ldbl.h: Correct check for improper
17211 inclusion. Add own multiple include guard.
17212
17213 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17214 Dmitry V. Levin <ldv@altlinux.org>
17215
17216 [BZ #22625]
17217 CVE-2017-16997
17218 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17219 string token expansion. Check for NULL pointer or empty string possibly
17220 returned by expand_dynamic_string_token.
17221 (decompose_rpath): Check for empty path after dynamic string
17222 token expansion.
17223
17224 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17225
17226 [BZ #22433]
17227 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17228
17229 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17230 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17231 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17232 and PTRACE_SYSCALL.
17233 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17234 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17235 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17236 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17237 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17238 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17239
17240 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17241 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17242 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17243 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17244 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17245 bits/ptrace-shared.h.
17246 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17247 <bits/ptrace-shared.h>.
17248 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17249 __ptrace_peeksiginfo_flags, ptrace): Remove.
17250 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17251 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17252 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17253 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17254 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17255
17256 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17257
17258 [BZ #17804]
17259 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17260 end of the loop. Improve comments.
17261
17262 2017-12-29 Zack Weinberg <zackw@panix.com>
17263
17264 [BZ #22615]
17265 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17266 might be set on success.
17267
17268 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17269
17270 [BZ #22611]
17271 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17272 is unchanged on success.
17273
17274 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17275
17276 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17277 updated.
17278 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17279 expand_dynamic_string_token): Likewise.
17280 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17281 is_path argument.
17282
17283 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
17284 contains ':'.
17285
17286 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
17287 is set and name contains ':', and all code depending on these checks.
17288
17289 2017-12-24 Zack Weinberg <zackw@panix.com>
17290
17291 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17292 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17293 respectively.
17294 * libio/libio.h: Rename the original version of this file to
17295 libio/bits/libio.h. Error out if not included by stdio.h or the
17296 stub libio.h.
17297 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17298 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17299 if not included by bits/libio.h or the stub _G_config.h.
17300 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17301 sysdeps/unix/sysv/linux/bits. Error out if not included by
17302 bits/libio.h or the stub _G_config.h.
17303 * libio/stdio.h: Include bits/libio.h, not libio.h.
17304 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17305 well as libio.h and _G_config.h.
17306
17307 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
17308 * libio/strfile.h, stdio-common/vfscanf.c
17309 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
17310 Include stdio.h, not _G_config.h nor libio.h.
17311 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
17312 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
17313
17314 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
17315
17316 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
17317
17318 [BZ #22347]
17319 * stdlib/getrandom.c (getrandom): Fix comment.
17320 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
17321
17322 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
17323
17324 [BZ #21161]
17325 * manual/arith.texi (strtoul): Fix a typo.
17326
17327 [BZ #22596]
17328 * manual/arith.texi (finite): Fix the description of the return
17329 value.
17330
17331 2017-12-22 Eric Blake <ebb9@byu.net>
17332
17333 Avoid gcc warnings on cygwin
17334 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17335 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17336 Avoid unused variable.
17337
17338 2017-12-22 Florian Weimer <fweimer@redhat.com>
17339
17340 * io/Makefile (routines): Add copy_file_range.
17341 (tests): Add tst-copy_file_range.
17342 (tests-static, tests-internal): Add tst-copy_file_range-compat.
17343 * io/Versions (GLIBC_2.27): Export copy_file_range.
17344 * io/copy_file_range-compat.c: New file.
17345 * io/copy_file_range.c: Likewise.
17346 * io/tst-copy_file_range-compat.c: Likewise.
17347 * io/tst-copy_file_range.c: Likewise.
17348 * manual/llio.texi (Copying File Data): New section.
17349 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
17350 * support/Makefile (libsupport-routines): Add support-xfstat,
17351 xftruncate, xlseek.
17352 * support/support-xfstat.c: New file.
17353 * support/xftruncate.c: Likewise.
17354 * support/xlseek.c: Likewise.
17355 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
17356 * sysdeps/unix/sysv/linux/**.abilist: Update.
17357 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
17358
17359 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
17360
17361 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17362 disable-multi-arch variant to aarch64-linux-gnu.
17363
17364 2017-12-20 Joseph Myers <joseph@codesourcery.com>
17365
17366 * manual/texinfo.tex: Update to version 2017-12-18.20 with
17367 trailing whitespace removed.
17368 * scripts/config.guess: Update to version 2017-12-17.
17369 * scripts/config.sub: Update to version 2017-11-23.
17370 * scripts/install-sh: Update to version 2017-09-23.17.
17371 * scripts/move-if-change: Update to version 2017-09-13 06:45.
17372
17373 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17374
17375 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
17376 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17377 * sysdeps/tile/_mcount.S (__mcount): Likewise.
17378 * sysdeps/tile/crti.S (_init, _fini): Likewise.
17379 * sysdeps/tile/crtn.S: Likewise.
17380 * sysdeps/tile/dl-start.S (_start): Likewise.
17381 * sysdeps/tile/dl-trampoline.S: Likewise.
17382 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
17383 * sysdeps/tile/start.S (_start): Likewise.
17384 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
17385 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
17386 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
17387 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
17388 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
17389 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
17390 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
17391
17392 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
17393 comment.
17394 * sysdeps/tile/preconfigure: Remove tilegx folder.
17395 * sysdeps/tile/tilegx/Implies: Move definitions to ...
17396 * sysdeps/tile/Implies: ... here.
17397 * sysdeps/tile/tilegx/Makefile: Move rules to ...
17398 * sysdeps/tile/Makefile: ... here.
17399 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
17400 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
17401 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
17402 * sysdeps/tile/bits/wordsize.h: ... here.
17403 * sysdeps/tile/tilegx/*: Move to ...
17404 * sysdeps/tile/*: ... here.
17405 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
17406 * sysdeps/tile/tilegx32/Implies: ... here.
17407 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
17408 * sysdeps/tile/tilegx64/Implies: ... here.
17409 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
17410 to ...
17411 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
17412 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
17413 * sysdeps/unix/sysv/linux/tile/*: ... here.
17414 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
17415 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
17416 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
17417 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
17418
17419 * README: Remove tilepro-*-linux-gnu from supported architecture.
17420 * scripts/build-many-glibcs.py: Likewise.
17421 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17422 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
17423 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
17424 elf_machine_matches_host, elf_machine_dynamic,
17425 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
17426 howto, elf_machine_rela): Likewise.
17427 * sysdeps/tile/dl-start.S (_start): Likewise.
17428 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
17429 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
17430 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
17431 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
17432 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
17433 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
17434 Likewise.
17435 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
17436 * sysdeps/tile/preconfigure: Likewise.
17437 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
17438 POINTER_CHK_GUARD): Likewise.
17439 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
17440 * sysdeps/tile/start.S (_start): Likewise.
17441 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
17442 Likewise.
17443 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
17444 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
17445 CMOVNEZ): Remove.
17446 * sysdeps/unix/sysv/linux/tile/bits/environments.h
17447 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
17448 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
17449 Likewise.
17450 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
17451 * sysdeps/tile/tilepro/Implies: Remove file.
17452 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
17453 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
17454 * sysdeps/tile/tilepro/memchr.c: Likewise.
17455 * sysdeps/tile/tilepro/memcpy.S: Likewise.
17456 * sysdeps/tile/tilepro/memset.c: Likewise.
17457 * sysdeps/tile/tilepro/memusage.h: Likewise.
17458 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
17459 * sysdeps/tile/tilepro/strchr.c: Likewise.
17460 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
17461 * sysdeps/tile/tilepro/strlen.c: Likewise.
17462 * sysdeps/tile/tilepro/strrchr.c: Likewise.
17463 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
17464 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
17465 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
17466 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
17467 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
17468 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
17469 Likewise.
17470 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
17471 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
17472 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
17473 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
17474 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
17475 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
17476 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
17477 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
17478 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
17479 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
17480 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
17481 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
17482 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
17483 tilepro mention in comment.
17484
17485 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
17486 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
17487 * nptl/pthread_join_common.c: New file: common function used on
17488 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
17489 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
17490 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
17491 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
17492 (cleanup): Move definition to pthread_join_common.c.
17493 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
17494 Remove superflous checks.
17495 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
17496 Likewise.
17497
17498 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
17499
17500 * sysdeps/aarch64/libm-test-ulps: Update.
17501
17502 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17503
17504 * sysdeps/aarch64/memset.S (MEMSET): Define.
17505
17506 2017-12-20 Florian Weimer <fweimer@redhat.com>
17507
17508 [BZ #22635]
17509 nptl: Provide full implementation of pthread_self in libc.so.
17510 * nptl/Makefile (routines): Add pthread_self.
17511 (libpthread-routines): Replace pthread_self with
17512 compat-pthread_self.
17513 * nptl/forward.c (pthread_self): Remove.
17514 * nptl/nptl-init.c (pthread_functions): Do not initialize
17515 ptr_pthread_self.
17516 * nptl/pthread_self.c (pthread_self): Remove weak alias.
17517 * nptl/compat-pthread_self.c: New file.
17518 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
17519 Remove ptr_pthread_self.
17520
17521 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
17522
17523 * posix/regcomp.c: Fix spelling in comments.
17524 * posix/regex.h: Likewise.
17525 * posix/regex_internal.c: Likewise.
17526 * posix/regexec.c: Likewise.
17527
17528 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17529
17530 [BZ #22377]
17531 * math/Makefile [C++] (tests): Add test for iseqsig.
17532 * math/math.h [C++] (iseqsig): New implementation, which does
17533 not rely on __MATH_TG/__builtin_types_compatible_p.
17534 * math/test-math-iseqsig.cc: New file.
17535 * sysdeps/powerpc/powerpc64le/Makefile
17536 (CFLAGS-test-math-iseqsig.cc): New variable.
17537
17538 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
17539
17540 * elf/dl-load.c (is_trusted_path): Remove.
17541 (fillin_rpath): Remove check_trusted argument and its use,
17542 all callers changed.
17543
17544 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17545
17546 [BZ #22630]
17547 * Makeconfig (link-pie-before-libc): Replace -pie with
17548 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
17549 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
17550 (tst-dlopen-aout-no-pie): New.
17551 (LDFLAGS-tst-prelink): Removed.
17552 (tst-prelink-no-pie): New.
17553 (LDFLAGS-tst-main1): Removed.
17554 (tst-main1-no-pie): New.
17555 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
17556 (tst-gmon-no-pie): New.
17557
17558 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17559
17560 * manual/install.texi: Document that --enable-static-pie
17561 implies PIE.
17562 * INSTALL: Regenerated.
17563
17564 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
17565
17566 [BZ #21309]
17567 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
17568 unsigned.
17569
17570 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17571
17572 Revert:
17573
17574 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17575
17576 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17577
17578 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17579
17580 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17581 <errno.h>. Include "eexp.tbl".
17582 (half): New constant.
17583 (one): Likewise.
17584 (__ieee754_exp): Rewrite.
17585 (__slowexp): Remove prototype.
17586 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17587 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17588 * sysdeps/i386/fpu/slowexp.c: Likewise.
17589 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17590 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17591 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17592 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17593 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17594 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17595 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17596 comment.
17597 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17598 (CPPFLAGS-slowexp.c): Remove variable.
17599 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17600 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17601 (CFLAGS-slowexp-fma.c): Remove variable.
17602 (CFLAGS-slowexp-fma4.c): Likewise.
17603 (CFLAGS-slowexp-avx.c): Likewise.
17604 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17605 define as macro.
17606 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17607 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17608 * math/Makefile (type-double-routines): Remove slowexp.
17609 * manual/probes.texi (slowexp_p6): Remove.
17610 (slowexp_p32): Likewise.
17611
17612 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17613
17614 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
17615 arithmetic.
17616
17617 * lib/glob.c (glob): Do not pass NULL to mempcpy.
17618
17619 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17620
17621 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17622
17623 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17624
17625 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17626 <errno.h>. Include "eexp.tbl".
17627 (half): New constant.
17628 (one): Likewise.
17629 (__ieee754_exp): Rewrite.
17630 (__slowexp): Remove prototype.
17631 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17632 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17633 * sysdeps/i386/fpu/slowexp.c: Likewise.
17634 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17635 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17636 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17637 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17638 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17639 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17640 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17641 comment.
17642 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17643 (CPPFLAGS-slowexp.c): Remove variable.
17644 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17645 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17646 (CFLAGS-slowexp-fma.c): Remove variable.
17647 (CFLAGS-slowexp-fma4.c): Likewise.
17648 (CFLAGS-slowexp-avx.c): Likewise.
17649 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17650 define as macro.
17651 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17652 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17653 * math/Makefile (type-double-routines): Remove slowexp.
17654 * manual/probes.texi (slowexp_p6): Remove.
17655 (slowexp_p32): Likewise.
17656
17657 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17658 James Clarke <jrtc27@jrtc27.com>
17659
17660 [BZ #22603]
17661 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
17662 addition.
17663
17664 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17665
17666 [BZ #22605]
17667 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
17668 code.
17669
17670 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17671
17672 [BZ #22563]
17673 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17674 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17675 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17676 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17677 to feature_1.
17678
17679 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17680
17681 [BZ #22563]
17682 * bits/types/__cancel_jmp_buf_tag.h: New file.
17683 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17684 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17685 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17686 * nptl/Makefile (headers): Add
17687 bits/types/__cancel_jmp_buf_tag.h.
17688 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17689 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17690 * sysdeps/nptl/pthread.h: Include
17691 <bits/types/__cancel_jmp_buf_tag.h>.
17692 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17693 __cancel_jmp_buf.
17694 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17695
17696 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17697
17698 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17699 --enable-static-pie variants to x86_64, x32 and i686.
17700
17701 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17702
17703 [BZ #22631]
17704 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
17705 argument for attrubutes. All callers changed.
17706 (__inline_mathop1): Likewise. All callers changed.
17707 (__inline_mathop): Likewise. All callers changed.
17708 [__USE_MISC] (scalbn): Use __inline_forward instead of
17709 __inline_forward_c.
17710 [__USE_ISOC99] (scalbln): Likewise.
17711 [__USE_ISOC99] (nearbyint): Likewise.
17712 [__USE_ISOC99] (lrint): Likewise.
17713 [__USE_MISC] (scalbnf): Likewise.
17714 [__USE_ISOC99] (scalblnf): Likewise.
17715 [__USE_ISOC99] (nearbyintf): Likewise.
17716 [__USE_ISOC99] (lrintf): Likewise.
17717 [__USE_MISC] (scalbnl): Likewise.
17718 [__USE_ISOC99] (scalblnl): Likewise.
17719 [__USE_ISOC99] (nearbyintl): Likewise.
17720 [__USE_ISOC99] (lrintl): Likewise.
17721 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
17722 __inline_mathop and __m81_defun changed.
17723
17724 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
17725 CPU or FPU for ARM hard-float configurations.
17726
17727 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17728
17729 * nptl/tst-attr3.c: Include <libc-diag.h>.
17730 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
17731
17732 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
17733
17734 * string/tester.c (test_strncat): Also disable -Warray-bounds
17735 warnings for two tests.
17736
17737 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17738
17739 [BZ #22614]
17740 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
17741 $(cc-pie-default) == yes.
17742 * config.make.in (cc-pie-default): New.
17743 * configure.ac (libc_cv_pie_default): Renamed to ...
17744 (libc_cv_cc_pie_default): This.
17745 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
17746 * configure: Regenerated.
17747
17748 2017-12-18 Florian Weimer <fweimer@redhat.com>
17749
17750 [BZ #20204]
17751 ld.so: Harden dl-libc/libdl hooks.
17752 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
17753 (rtld_active): New function.
17754 * dlfcn/dladdr.c (__dladdr): Call it.
17755 * dlfcn/dladdr1.c (__dladdr1): Likewise.
17756 * dlfcn/dlclose.c (__dlcose): Likewise.
17757 * dlfcn/dlerror.c (__dlerror): Likewise.
17758 * dlfcn/dlinfo.c (__dlinfo): Likewise.
17759 * dlfcn/dlmopen.c (__dlmopen): Likewise.
17760 * dlfcn/dlopen.c (__dlopen): Likewise.
17761 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
17762 * dlfcn/dlsym.c (__dlsym): Likewise.
17763 * dlfcn/dlvsym.c (__dlvsym): Likewise.
17764 * libio/vtables.c (_IO_vtable_check): Likewise.
17765 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
17766 (__libc_dlclose): Likewise.
17767 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
17768 assignment.
17769
17770 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17771
17772 [BZ #22446]
17773 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
17774 buffers for readlink input and output.
17775
17776 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
17777
17778 [BZ #22624]
17779 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
17780 inhibit_stack_protector.
17781
17782 [BZ #22624]
17783 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
17784 inhibit_stack_protector.
17785
17786 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
17787
17788 [BZ #22627]
17789 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
17790 code and invocation.
17791
17792 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
17793
17794 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
17795
17796 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
17797
17798 [BZ #22505]
17799 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
17800
17801 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17802
17803 * sysdeps/s390/fpu/libm-test-ulps: Update.
17804
17805 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17806
17807 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17808
17809 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17810
17811 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
17812 constants to s_sincosf.h file.
17813 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
17814 * sysdeps/ieee754/flt-32/s_sincosf.c: New
17815 implementation.
17816 * sysdeps/ieee754/flt-32/s_sincosf.h:
17817 New file.
17818
17819 2017-12-12 Carlos O'Donell <carlos@redhat.com>
17820
17821 [BZ #14681]
17822 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
17823 before mtrace.
17824
17825 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
17826
17827 [BZ #19574]
17828 * INSTALL: Regenerated.
17829 * Makeconfig (real-static-start-installed-name): New.
17830 (pic-default): Updated for --enable-static-pie.
17831 (pie-default): New for --enable-static-pie.
17832 (default-pie-ldflag): Likewise.
17833 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
17834 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
17835 Replace $(static-start-installed-name) with
17836 $(real-static-start-installed-name).
17837 (+prectorT): Updated for --enable-static-pie.
17838 (+postctorT): Likewise.
17839 (CFLAGS-.o): Add $(pie-default).
17840 (CFLAGS-.op): Likewise.
17841 * NEWS: Mention --enable-static-pie.
17842 * config.h.in (ENABLE_STATIC_PIE): New.
17843 * configure.ac (--enable-static-pie): New configure option.
17844 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
17845 (have-static-pie): Likewise.
17846 Enable static PIE if linker supports --no-dynamic-linker.
17847 (ENABLE_STATIC_PIE): New AC_DEFINE.
17848 (enable-static-pie): New LIBC_CONFIG_VAR.
17849 * configure: Regenerated.
17850 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
17851 gr$(start-installed-name) for --enable-static-pie.
17852 (extra-objs): Likewise.
17853 (install-lib): Likewise.
17854 (extra-objs): Add static-reloc.o and static-reloc.os
17855 ($(objpfx)$(start-installed-name)): Also depend on
17856 $(objpfx)static-reloc.o.
17857 ($(objpfx)r$(start-installed-name)): New.
17858 ($(objpfx)g$(start-installed-name)): Also depend on
17859 $(objpfx)static-reloc.os.
17860 ($(objpfx)gr$(start-installed-name)): New.
17861 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
17862 in libc.a.
17863 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
17864 initimage.
17865 * csu/static-reloc.c: New file.
17866 * elf/Makefile (routines): Add dl-reloc-static-pie.
17867 (elide-routines.os): Likewise.
17868 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
17869 (tst-tls1-static-non-pie-no-pie): New.
17870 * elf/dl-reloc-static-pie.c: New file.
17871 * elf/dl-support.c (_dl_get_dl_main_map): New function.
17872 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
17873 STATIC_PIE_BOOTSTRAP.
17874 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
17875 * gmon/Makefile (tests): Add tst-gmon-static-pie.
17876 (tests-static): Likewise.
17877 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
17878 (tst-gmon-static-no-pie): New.
17879 (CFLAGS-tst-gmon-static-pie.c): Likewise.
17880 (CRT-tst-gmon-static-pie): Likewise.
17881 (tst-gmon-static-pie-ENV): Likewise.
17882 (tests-special): Likewise.
17883 ($(objpfx)tst-gmon-static-pie.out): Likewise.
17884 (clean-tst-gmon-static-pie-data): Likewise.
17885 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
17886 * gmon/tst-gmon-static-pie.c: New file.
17887 * manual/install.texi: Document --enable-static-pie.
17888 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
17889 (_dl_get_dl_main_map): Likewise.
17890 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
17891 * sysdeps/x86_64/configure.ac: Likewise.
17892 * sysdeps/i386/configure: Regenerated.
17893 * sysdeps/x86_64/configure: Likewise.
17894 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
17895 (ASFLAGS-.op): Likewise.
17896
17897 2017-12-15 Joseph Myers <joseph@codesourcery.com>
17898
17899 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
17900 * posix/tst-mmap-offset.c (fname): Use /tmp.
17901 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
17902
17903 2017-12-15 Steve Ellcey <sellcey@cavium.com>
17904
17905 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
17906
17907 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
17908
17909 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
17910 errno.
17911
17912 2017-12-15 Joseph Myers <joseph@codesourcery.com>
17913
17914 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
17915 --with-float=hard for arm-linux-gnueabihf configurations.
17916
17917 [BZ #14121]
17918 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
17919 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
17920 ($(mo-installed)): Use $(objpfx)%.mo.
17921 (realclean): Remove rule.
17922
17923 * po/Makefile (linguas): Remove rule and dependencies.
17924 (linguas.mo): Likewise.
17925 (.PHONY): Do not depend on linguas and linguas.mo.
17926 (podir): Remove variable.
17927 (pofiles): Likewise.
17928 [$(pofiles)] (%.po): Remove rule.
17929
17930 * sysdeps/sparc/sparc32/Makefile
17931 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
17932 start-of-line whitespace in argument of echo.
17933 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
17934 with whitespace. Generate __wrap_.udiv alias.
17935 * sysdeps/sparc/sparc32/rem.S: Regenerated.
17936 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
17937 * sysdeps/sparc/sparc32/udiv.S: Likewise.
17938 * sysdeps/sparc/sparc32/urem.S: Likewise.
17939
17940 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17941
17942 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
17943 for aligned inputs.
17944
17945 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
17946
17947 * benchtests/bench-strcmp.c: Print output in JSON format.
17948
17949 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
17950
17951 2017-12-14 Florian Weimer <fweimer@redhat.com>
17952
17953 [BZ #22607]
17954 CVE-2017-1000409
17955 * elf/dl-load.c (_dl_init_paths): Compute number of components in
17956 the expanded path string.
17957
17958 2017-12-14 Florian Weimer <fweimer@redhat.com>
17959
17960 [BZ #22606]
17961 CVE-2017-1000408
17962 * elf/dl-load.c (system_dirs): Update comment.
17963 (nsystem_dirs_len): Use array_length.
17964 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
17965
17966 2017-12-14 Florian Weimer <fweimer@redhat.com>
17967
17968 Simplify compiling most of support/ outside of glibc.
17969 * support/check_addrinfo.c: Include <string.h>.
17970 * support/check_dns_packet.c: Likewise.
17971 * support/check_hostent.c: Likewise.
17972 * support/support_can_chroot.c: Include <support/xunistd.h>.
17973 * support/support_format_addrinfo.c: Include <stdlib.h>
17974 * support/support_format_dns_packet.c: Include <stdbool.h>.
17975 * support/support_format_hostent.c: Include <stdlib.h>.
17976 * support/support_format_netent.c: Likewise.
17977 * support/support_write_string.c: Include <support/xunistd.h>.
17978 * support/xdlfcn.c: Include <stddef.h>.
17979
17980 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
17981
17982 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
17983
17984 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17985 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17986
17987 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
17988 (sysdeps_routines): Add memset-niagara7.
17989 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
17990 Likewise.
17991 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
17992 file.
17993 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
17994 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
17995 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
17996 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
17997 Add niagara7 option.
17998 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
17999 memset.
18000
18001 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18002 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18003 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18004 Likewise.
18005 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18006 New file.
18007 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18008 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18009 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18010 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18011 and __memmove_niagara7.
18012 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18013 Add niagara7 option.
18014 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18015 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18016 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18017 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18018 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18019
18020 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18021
18022 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18023 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18024 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18025 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18026
18027 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18028 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18029 _dl_sparc_cap_flags array.
18030 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18031
18032 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18033
18034 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18035 time whenever possible.
18036
18037 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18038
18039 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18040 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18041
18042 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18043
18044 * soft-fp/fmadf4.c: Move to ....
18045 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18046 * soft-fp/fmasf4.c: Move to ....
18047 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18048 * soft-fp/fmatf4.c: Move to ....
18049 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18050 * sysdeps/ieee754/soft-fp/Makefile: New file.
18051 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18052 * sysdeps/arm/preconfigure: Regenerated.
18053 * sysdeps/arm/nofpu/Implies: New file.
18054 * sysdeps/arm/s_fma.c: Remove file.
18055 * sysdeps/arm/s_fmaf.c: Likewise.
18056 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18057 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18058 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18059 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18060 * sysdeps/microblaze/s_fma.c: Remove file.
18061 * sysdeps/microblaze/s_fmaf.c: Likewise.
18062 * sysdeps/mips/mips32/nofpu/Implies: New file.
18063 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18064 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18065 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18066 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18067 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18068 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18069 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18070 implementation.
18071 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18072 * sysdeps/nios2/s_fma.c: Remove file.
18073 * sysdeps/nios2/s_fmaf.c: Likewise.
18074 * sysdeps/sh/nofpu/Implies: New file.
18075 * sysdeps/sh/s_fma.c: Remove file.
18076 * sysdeps/sh/s_fmaf.c: Likewise.
18077 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18078 * sysdeps/tile/s_fma.c: Remove file.
18079 * sysdeps/tile/s_fmaf.c: Likewise.
18080
18081 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18082
18083 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18084 Add s_cosf-sse2 and s_cosf-fma.
18085 (CFLAGS-s_cosf-fma.c): New.
18086 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18087 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18088 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18089
18090 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18091
18092 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18093
18094 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18095
18096 * libio/Makefile (tests): Add tst-bz22415.
18097 (tst-bz22415-ENV): New rule.
18098 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18099 (tests-special): Add tst-bz22415-mem.out.
18100 ($(objpfx)tst-bz22415-mem.out): New rule.
18101 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18102 in case of a successful seek operation.
18103 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18104 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18105 buffer is required.
18106 * libio/tst-bz22415.c: New test.
18107
18108 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18109
18110 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18111
18112 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18113 __IPC_64 to 0 to avoid IPC_64 being set.
18114
18115 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18116
18117 [BZ #22593]
18118 * math/bits/mathcalls.h (nextafter): Remove const.
18119 (nexttoward): Likewise.
18120
18121 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18122
18123 * configure.ac (--with-fp): Remove configure option.
18124 (with_fp_cond): New variable.
18125 (libc_cv_with_fp): New configure test. Use this variable instead
18126 of with_fp.
18127 * configure: Regenerated.
18128 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18129 * manual/install.texi (Configuring and compiling): Remove
18130 --without-fp.
18131 * INSTALL: Regenerated.
18132 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18133 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18134 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18135 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18136 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18137 use --without-fp to configure glibc.
18138
18139 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18140
18141 * manual/locale.texi (nl_langinfo): Fix a typo.
18142
18143 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18144
18145 [BZ #22588]
18146 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18147
18148 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18149
18150 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18151 (CFLAGS-argp-parse.c): Likewise.
18152 (CFLAGS-argp-fmtstream.c): Likewise.
18153 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18154 (CPPFLAGS-sha512-crypt.c): Likewise.
18155 (CPPFLAGS-md5-crypt.c): Likewise.
18156 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18157 (CFLAGS-stack_chk_fail_local.c): Likewise.
18158 (CFLAGS-backtrace.c): Likewise.
18159 (CFLAGS-sprintf_chk.c): Likewise.
18160 (CFLAGS-snprintf_chk.c): Likewise.
18161 (CFLAGS-vsprintf_chk.c): Likewise.
18162 (CFLAGS-vsnprintf_chk.c): Likewise.
18163 (CFLAGS-asprintf_chk.c): Likewise.
18164 (CFLAGS-vasprintf_chk.c): Likewise.
18165 (CFLAGS-obprintf_chk.c): Likewise.
18166 (CFLAGS-dprintf_chk.c): Likewise.
18167 (CFLAGS-vdprintf_chk.c): Likewise.
18168 (CFLAGS-printf_chk.c): Likewise.
18169 (CFLAGS-fprintf_chk.c): Likewise.
18170 (CFLAGS-vprintf_chk.c): Likewise.
18171 (CFLAGS-vfprintf_chk.c): Likewise.
18172 (CFLAGS-gets_chk.c): Likewise.
18173 (CFLAGS-fgets_chk.c): Likewise.
18174 (CFLAGS-fgets_u_chk.c): Likewise.
18175 (CFLAGS-fread_chk.c): Likewise.
18176 (CFLAGS-fread_u_chk.c): Likewise.
18177 (CFLAGS-swprintf_chk.c): Likewise.
18178 (CFLAGS-vswprintf_chk.c): Likewise.
18179 (CFLAGS-wprintf_chk.c): Likewise.
18180 (CFLAGS-fwprintf_chk.c): Likewise.
18181 (CFLAGS-vwprintf_chk.c): Likewise.
18182 (CFLAGS-vfwprintf_chk.c): Likewise.
18183 (CFLAGS-fgetws_chk.c): Likewise.
18184 (CFLAGS-fgetws_u_chk.c): Likewise.
18185 (CFLAGS-read_chk.c): Likewise.
18186 (CFLAGS-pread_chk.c): Likewise.
18187 (CFLAGS-pread64_chk.c): Likewise.
18188 (CFLAGS-recv_chk.c): Likewise.
18189 (CFLAGS-recvfrom_chk.c): Likewise.
18190 (CFLAGS-tst-longjmp_chk.c): Likewise.
18191 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18192 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18193 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18194 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18195 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18196 (CFLAGS-tst-chk1.c): Likewise.
18197 (CFLAGS-tst-chk2.c): Likewise.
18198 (CFLAGS-tst-chk3.c): Likewise.
18199 (CFLAGS-tst-chk4.cc): Likewise.
18200 (CFLAGS-tst-chk5.cc): Likewise.
18201 (CFLAGS-tst-chk6.cc): Likewise.
18202 (CFLAGS-tst-lfschk1.c): Likewise.
18203 (CFLAGS-tst-lfschk2.c): Likewise.
18204 (CFLAGS-tst-lfschk3.c): Likewise.
18205 (CFLAGS-tst-lfschk4.cc): Likewise.
18206 (CFLAGS-tst-lfschk5.cc): Likewise.
18207 (CFLAGS-tst-lfschk6.cc): Likewise.
18208 (CFLAGS-tst-ssp-1.c): Likewise.
18209 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18210 (CFLAGS-scandir64.c): Likewise.
18211 (CFLAGS-scandir-tail.c): Likewise.
18212 (CFLAGS-scandir64-tail.c): Likewise.
18213 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18214 (CFLAGS-dl-tunables.c): Likewise.
18215 (CFLAGS-dl-runtime.c): Likewise.
18216 (CFLAGS-dl-lookup.c): Likewise.
18217 (CFLAGS-dl-iterate-phdr.c): Likewise.
18218 (CFLAGS-vismain.c): Likewise.
18219 (CFLAGS-tst-linkall-static.c): Likewise.
18220 (CFLAGS-tst-linkall-static.c): Likewise.
18221 (CPPFLAGS-dl-load.c): Likewise.
18222 (CFLAGS-ldconfig.c): Likewise.
18223 (CFLAGS-dl-cache.c): Likewise.
18224 (CFLAGS-cache.c): Likewise.
18225 (CFLAGS-rtld.c): Likewise.
18226 (CFLAGS-multiload.c): Likewise.
18227 (CFLAGS-filtmod1.c): Likewise.
18228 (CFLAGS-tst-align.c): Likewise.
18229 (CFLAGS-tst-align2.c): Likewise.
18230 (CFLAGS-tst-alignmod.c): Likewise.
18231 (CFLAGS-tst-alignmod2.c): Likewise.
18232 (CPPFLAGS-tst-execstack.c): Likewise.
18233 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18234 (CFLAGS-tst-latepthreadmod.c): Likewise.
18235 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18236 (CFLAGS-getgrnam_r.c): Likewise.
18237 (CFLAGS-getgrent_r.c): Likewise.
18238 (CFLAGS-getgrent.c): Likewise.
18239 (CFLAGS-fgetgrent.c): Likewise.
18240 (CFLAGS-fgetgrent_r.c): Likewise.
18241 (CFLAGS-putgrent.c): Likewise.
18242 (CFLAGS-initgroups.c): Likewise.
18243 (CFLAGS-getgrgid.c): Likewise.
18244 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18245 (CFLAGS-getsgent.c): Likewise.
18246 (CFLAGS-fgetsgent.c): Likewise.
18247 (CFLAGS-fgetsgent_r.c): Likewise.
18248 (CFLAGS-putsgent.c): Likewise.
18249 (CFLAGS-getsgnam.c): Likewise.
18250 (CFLAGS-getsgnam_r.c): Likewise.
18251 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18252 (CFLAGS-iconv_charmap.c): Likewise.
18253 (CFLAGS-dummy-repertoire.c): Likewise.
18254 (CFLAGS-charmap.c): Likewise.
18255 (CFLAGS-linereader.c): Likewise.
18256 (CFLAGS-simple-hash.c): Likewise.
18257 (CFLAGS-gconv_conf.c): Likewise.
18258 (CFLAGS-iconvconfig.c): Likewise.
18259 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18260 (CFLAGS-gethstbyad.c): Likewise.
18261 (CFLAGS-gethstbynm_r.c): Likewise.
18262 (CFLAGS-gethstbynm.c): Likewise.
18263 (CFLAGS-gethstbynm2_r.c): Likewise.
18264 (CFLAGS-gethstbynm2.c): Likewise.
18265 (CFLAGS-gethstent_r.c): Likewise.
18266 (CFLAGS-gethstent.c): Likewise.
18267 (CFLAGS-rcmd.c): Likewise.
18268 (CFLAGS-getnetbynm_r.c): Likewise.
18269 (CFLAGS-getnetbynm.c): Likewise.
18270 (CFLAGS-getnetbyad_r.c): Likewise.
18271 (CFLAGS-getnetbyad.c): Likewise.
18272 (CFLAGS-getnetent_r.c): Likewise.
18273 (CFLAGS-getnetent.c): Likewise.
18274 (CFLAGS-getaliasent_r.c): Likewise.
18275 (CFLAGS-getaliasent.c): Likewise.
18276 (CFLAGS-getrpcent_r.c): Likewise.
18277 (CFLAGS-getrpcent.c): Likewise.
18278 (CFLAGS-getservent_r.c): Likewise.
18279 (CFLAGS-getservent.c): Likewise.
18280 (CFLAGS-getprtent_r.c): Likewise.
18281 (CFLAGS-getprtent.c): Likewise.
18282 (CFLAGS-either_ntoh.c): Likewise.
18283 (CFLAGS-either_hton.c): Likewise.
18284 (CFLAGS-getnetgrent.c): Likewise.
18285 (CFLAGS-getnetgrent_r.c): Likewise.
18286 (CFLAGS-tst-checks-posix.c): Likewise.
18287 (CFLAGS-tst-sockaddr.c): Likewise.
18288 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
18289 (CFLAGS-tst-translit.c): Likewise.
18290 (CFLAGS-tst-gettext2.c): Likewise.
18291 (CFLAGS-tst-codeset.c): Likewise.
18292 (CFLAGS-tst-gettext3.c): Likewise.
18293 (CFLAGS-tst-gettext4.c): Likewise.
18294 (CFLAGS-tst-gettext5.c): Likewise.
18295 (CFLAGS-tst-gettext6.c): Likewise.
18296 * io/Makefile (CFLAGS-open.c): Likewise.
18297 (CFLAGS-open64.c): Likewise.
18298 (CFLAGS-creat.c): Likewise.
18299 (CFLAGS-creat64.c): Likewise.
18300 (CFLAGS-fcntl.c): Likewise.
18301 (CFLAGS-poll.c): Likewise.
18302 (CFLAGS-ppoll.c): Likewise.
18303 (CFLAGS-lockf.c): Likewise.
18304 (CFLAGS-statfs.c): Likewise.
18305 (CFLAGS-fstatfs.c): Likewise.
18306 (CFLAGS-statvfs.c): Likewise.
18307 (CFLAGS-fstatvfs.c): Likewise.
18308 (CFLAGS-fts.c): Likewise.
18309 (CFLAGS-fts64.c): Likewise.
18310 (CFLAGS-ftw.c): Likewise.
18311 (CFLAGS-ftw64.c): Likewise.
18312 (CFLAGS-lockf.c): Likewise.
18313 (CFLAGS-posix_fallocate.c): Likewise.
18314 (CFLAGS-posix_fallocate64.c): Likewise.
18315 (CFLAGS-fallocate.c): Likewise.
18316 (CFLAGS-fallocate64.c): Likewise.
18317 (CFLAGS-read.c): Likewise.
18318 (CFLAGS-write.c): Likewise.
18319 (CFLAGS-test-stat.c): Likewise.
18320 (CFLAGS-test-lfs.c): Likewise.
18321 * libio/Makefile (CFLAGS-fileops.c): Likewise.
18322 (CFLAGS-fputc.c): Likewise.
18323 (CFLAGS-fputwc.c): Likewise.
18324 (CFLAGS-freopen64.c): Likewise.
18325 (CFLAGS-freopen.c): Likewise.
18326 (CFLAGS-fseek.c): Likewise.
18327 (CFLAGS-fseeko64.c): Likewise.
18328 (CFLAGS-fseeko.c): Likewise.
18329 (CFLAGS-ftello64.c): Likewise.
18330 (CFLAGS-ftello.c): Likewise.
18331 (CFLAGS-fwide.c): Likewise.
18332 (CFLAGS-genops.c): Likewise.
18333 (CFLAGS-getc.c): Likewise.
18334 (CFLAGS-getchar.c): Likewise.
18335 (CFLAGS-getwc.c): Likewise.
18336 (CFLAGS-getwchar.c): Likewise.
18337 (CFLAGS-iofclose.c): Likewise.
18338 (CFLAGS-iofflush.c): Likewise.
18339 (CFLAGS-iofgetpos64.c): Likewise.
18340 (CFLAGS-iofgetpos.c): Likewise.
18341 (CFLAGS-iofgets.c): Likewise.
18342 (CFLAGS-iofgetws.c): Likewise.
18343 (CFLAGS-iofputs.c): Likewise.
18344 (CFLAGS-iofputws.c): Likewise.
18345 (CFLAGS-iofread.c): Likewise.
18346 (CFLAGS-iofsetpos64.c): Likewise.
18347 (CFLAGS-iofsetpos.c): Likewise.
18348 (CFLAGS-ioftell.c): Likewise.
18349 (CFLAGS-iofwrite.c): Likewise.
18350 (CFLAGS-iogetdelim.c): Likewise.
18351 (CFLAGS-iogetline.c): Likewise.
18352 (CFLAGS-iogets.c): Likewise.
18353 (CFLAGS-iogetwline.c): Likewise.
18354 (CFLAGS-ioputs.c): Likewise.
18355 (CFLAGS-ioseekoff.c): Likewise.
18356 (CFLAGS-ioseekpos.c): Likewise.
18357 (CFLAGS-iosetbuffer.c): Likewise.
18358 (CFLAGS-iosetvbuf.c): Likewise.
18359 (CFLAGS-ioungetc.c): Likewise.
18360 (CFLAGS-ioungetwc.c): Likewise.
18361 (CFLAGS-oldfileops.c): Likewise.
18362 (CFLAGS-oldiofclose.c): Likewise.
18363 (CFLAGS-oldiofgetpos64.c): Likewise.
18364 (CFLAGS-oldiofgetpos.c): Likewise.
18365 (CFLAGS-oldiofsetpos64.c): Likewise.
18366 (CFLAGS-oldiofsetpos.c): Likewise.
18367 (CFLAGS-peekc.c): Likewise.
18368 (CFLAGS-putc.c): Likewise.
18369 (CFLAGS-putchar.c): Likewise.
18370 (CFLAGS-putwc.c): Likewise.
18371 (CFLAGS-putwchar.c): Likewise.
18372 (CFLAGS-rewind.c): Likewise.
18373 (CFLAGS-wfileops.c): Likewise.
18374 (CFLAGS-wgenops.c): Likewise.
18375 (CFLAGS-oldiofopen.c): Likewise.
18376 (CFLAGS-iofopen.c): Likewise.
18377 (CFLAGS-iofopen64.c): Likewise.
18378 (CFLAGS-oldtmpfile.c): Likewise.
18379 (CFLAGS-tst_putwc.c): Likewise.
18380 * locale/Makefile (CFLAGS-md5.c): Likewise.
18381 (CFLAGS-charmap.c): Likewise.
18382 (CFLAGS-locfile.c): Likewise.
18383 (CFLAGS-charmap-dir.c): Likewise.
18384 * login/Makefile (CFLAGS-grantpt.c): Likewise.
18385 (CFLAGS-getpt.c): Likewise.
18386 (CFLAGS-pt_chown.c): Likewise.
18387 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
18388 (CFLAGS-obstack.c): Likewise.
18389 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
18390 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
18391 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
18392 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
18393 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
18394 (CFLAGS-test-tgmath.c): Likewise.
18395 (CFLAGS-test-tgmath2.c): Likewise.
18396 (CFLAGS-test-tgmath-ret.c): Likewise.
18397 (CFLAGS-test-powl.c): Likewise.
18398 (CFLAGS-test-snan.c): Likewise.
18399 (CFLAGS-test-signgam-finite.c): Likewise.
18400 (CFLAGS-test-signgam-finite-c99.c): Likewise.
18401 (CFLAGS-test-signgam-finite-c11.c): Likewise.
18402 (CFLAGS-test-signgam-uchar.c): Likewise.
18403 (CFLAGS-test-signgam-uchar-init.c): Likewise.
18404 (CFLAGS-test-signgam-uchar-static.c): Likewise.
18405 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
18406 (CFLAGS-test-signgam-uint.c): Likewise.
18407 (CFLAGS-test-signgam-uint-init.c): Likewise.
18408 (CFLAGS-test-signgam-uint-static.c): Likewise.
18409 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
18410 (CFLAGS-test-signgam-ullong.c): Likewise.
18411 (CFLAGS-test-signgam-ullong-init.c): Likewise.
18412 (CFLAGS-test-signgam-ullong-static.c): Likewise.
18413 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
18414 (CFLAGS-test-math-cxx11.cc): Likewise.
18415 (CFLAGS-test-math-isinff.cc): Likewise.
18416 (CFLAGS-test-math-iszero.cc): Likewise.
18417 (CFLAGS-test-math-issignaling.cc): Likewise.
18418 (CFLAGS-test-math-iscanonical.cc): Likewise.
18419 (CFLAGS-test-iszero-excess-precision.c): Likewise.
18420 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
18421 (CFLAGS-test-flt-eval-method.c): Likewise.
18422 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
18423 (CFLAGS-test-finite-macros.c): Likewise.
18424 * misc/Makefile (CFLAGS-select.c): Likewise.
18425 (CFLAGS-tsearch.c): Likewise.
18426 (CFLAGS-lsearch.c): Likewise.
18427 (CFLAGS-pselect.c): Likewise.
18428 (CFLAGS-readv.c): Likewise.
18429 (CFLAGS-writev.c): Likewise.
18430 (CFLAGS-preadv.c): Likewise.
18431 (CFLAGS-preadv64.c): Likewise.
18432 (CFLAGS-pwritev.c): Likewise.
18433 (CFLAGS-pwritev64.c): Likewise.
18434 (CFLAGS-preadv2.c): Likewise.
18435 (CFLAGS-preadv64v2.c): Likewise.
18436 (CFLAGS-pwritev2.c): Likewise.
18437 (CFLAGS-pwritev64v2.c): Likewise.
18438 (CFLAGS-usleep.c): Likewise.
18439 (CFLAGS-syslog.c): Likewise.
18440 (CFLAGS-error.c): Likewise.
18441 (CFLAGS-getpass.c): Likewise.
18442 (CFLAGS-mkstemp.c): Likewise.
18443 (CFLAGS-mkstemp64.c): Likewise.
18444 (CFLAGS-getsysstats.c): Likewise.
18445 (CFLAGS-getusershell.c): Likewise.
18446 (CFLAGS-err.c): Likewise.
18447 (CFLAGS-tst-tsearch.c): Likewise.
18448 (CFLAGS-msync.c): Likewise.
18449 (CFLAGS-fdatasync.c): Likewise.
18450 (CFLAGS-fsync.c): Likewise.
18451 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
18452 (CFLAGS-unwind.c): Likewise.
18453 (CFLAGS-unwind-forcedunwind.c): Likewise.
18454 (CFLAGS-pthread_cancel.c): Likewise.
18455 (CFLAGS-pthread_setcancelstate.c): Likewise.
18456 (CFLAGS-pthread_setcanceltype.c): Likewise.
18457 (CFLAGS-cancellation.c): Likewise.
18458 (CFLAGS-libc-cancellation.c): Likewise.
18459 (CFLAGS-pthread_exit.c): Likewise.
18460 (CFLAGS-forward.c): Likewise.
18461 (CFLAGS-pthread_testcancel.c): Likewise.
18462 (CFLAGS-pthread_join.c): Likewise.
18463 (CFLAGS-pthread_timedjoin.c): Likewise.
18464 (CFLAGS-pthread_once.c): Likewise.
18465 (CFLAGS-pthread_cond_wait.c): Likewise.
18466 (CFLAGS-sem_wait.c): Likewise.
18467 (CFLAGS-sem_timedwait.c): Likewise.
18468 (CFLAGS-fcntl.c): Likewise.
18469 (CFLAGS-lockf.c): Likewise.
18470 (CFLAGS-pread.c): Likewise.
18471 (CFLAGS-pread64.c): Likewise.
18472 (CFLAGS-pwrite.c): Likewise.
18473 (CFLAGS-pwrite64.c): Likewise.
18474 (CFLAGS-wait.c): Likewise.
18475 (CFLAGS-waitpid.c): Likewise.
18476 (CFLAGS-sigwait.c): Likewise.
18477 (CFLAGS-msgrcv.c): Likewise.
18478 (CFLAGS-msgsnd.c): Likewise.
18479 (CFLAGS-tcdrain.c): Likewise.
18480 (CFLAGS-open.c): Likewise.
18481 (CFLAGS-open64.c): Likewise.
18482 (CFLAGS-pause.c): Likewise.
18483 (CFLAGS-recv.c): Likewise.
18484 (CFLAGS-send.c): Likewise.
18485 (CFLAGS-accept.c): Likewise.
18486 (CFLAGS-sendto.c): Likewise.
18487 (CFLAGS-connect.c): Likewise.
18488 (CFLAGS-recvfrom.c): Likewise.
18489 (CFLAGS-recvmsg.c): Likewise.
18490 (CFLAGS-sendmsg.c): Likewise.
18491 (CFLAGS-close.c): Likewise.
18492 (CFLAGS-read.c): Likewise.
18493 (CFLAGS-write.c): Likewise.
18494 (CFLAGS-nanosleep.c): Likewise.
18495 (CFLAGS-sigsuspend.c): Likewise.
18496 (CFLAGS-msync.c): Likewise.
18497 (CFLAGS-fdatasync.c): Likewise.
18498 (CFLAGS-fsync.c): Likewise.
18499 (CFLAGS-pt-system.c): Likewise.
18500 (CFLAGS-tst-cleanup2.c): Likewise.
18501 (CFLAGS-tst-cleanupx2.c): Likewise.
18502 (CFLAGS-flockfile.c): Likewise.
18503 (CFLAGS-ftrylockfile.c): Likewise.
18504 (CFLAGS-funlockfile.c): Likewise.
18505 (CFLAGS-tst-initializers1.c): Likewise.
18506 (CFLAGS-tst-initializers1-c89.c): Likewise.
18507 (CFLAGS-tst-initializers1-c99.c): Likewise.
18508 (CFLAGS-tst-initializers1-c11.c): Likewise.
18509 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
18510 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
18511 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
18512 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
18513 (CFLAGS-nscd_getgr_r.c): Likewise.
18514 (CFLAGS-nscd_gethst_r.c): Likewise.
18515 (CFLAGS-nscd_getai.c): Likewise.
18516 (CFLAGS-nscd_initgroups.c): Likewise.
18517 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
18518 (CFLAGS-pause.c): Likewise.
18519 (CFLAGS-pread.c): Likewise.
18520 (CFLAGS-pread64.c): Likewise.
18521 (CFLAGS-pwrite.c): Likewise.
18522 (CFLAGS-pwrite64.c): Likewise.
18523 (CFLAGS-sleep.c): Likewise.
18524 (CFLAGS-wait.c): Likewise.
18525 (CFLAGS-waitid.c): Likewise.
18526 (CFLAGS-waitpid.c): Likewise.
18527 (CFLAGS-getopt.c): Likewise.
18528 (CFLAGS-wordexp.c): Likewise.
18529 (CFLAGS-sysconf.c): Likewise.
18530 (CFLAGS-pathconf.c): Likewise.
18531 (CFLAGS-fpathconf.c): Likewise.
18532 (CFLAGS-spawn.c): Likewise.
18533 (CFLAGS-spawnp.c): Likewise.
18534 (CFLAGS-spawni.c): Likewise.
18535 (CFLAGS-glob.c): Likewise.
18536 (CFLAGS-glob64.c): Likewise.
18537 (CFLAGS-getconf.c): Likewise.
18538 (CFLAGS-nanosleep.c): Likewise.
18539 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
18540 (CFLAGS-getpwent.c): Likewise.
18541 (CFLAGS-getpw.c): Likewise.
18542 (CFLAGS-fgetpwent_r.c): Likewise.
18543 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
18544 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
18545 (CFLAGS-mq_timedreceive.c): Likewise.
18546 (CFLAGS-mq_timedsend.c): Likewise.
18547 (CFLAGS-clock_nanosleep.c): Likewise.
18548 (CFLAGS-librt-cancellation.c): Likewise.
18549 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
18550 (CFLAGS-getspent.c): Likewise.
18551 (CFLAGS-fgetspent.c): Likewise.
18552 (CFLAGS-fgetspent_r.c): Likewise.
18553 (CFLAGS-putspent.c): Likewise.
18554 (CFLAGS-getspnam.c): Likewise.
18555 (CFLAGS-getspnam_r.c): Likewise.
18556 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
18557 (CFLAGS-sigsuspend.c): Likewise.
18558 (CFLAGS-sigtimedwait.c): Likewise.
18559 (CFLAGS-sigwait.c): Likewise.
18560 (CFLAGS-sigwaitinfo.c): Likewise.
18561 (CFLAGS-sigreturn.c): Likewise.
18562 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
18563 (CFLAGS-vfwprintf.c): Likewise.
18564 (CFLAGS-tmpfile.c): Likewise.
18565 (CFLAGS-tmpfile64.c): Likewise.
18566 (CFLAGS-tempname.c): Likewise.
18567 (CFLAGS-psignal.c): Likewise.
18568 (CFLAGS-vprintf.c): Likewise.
18569 (CFLAGS-cuserid.c): Likewise.
18570 (CFLAGS-errlist.c): Likewise.
18571 (CFLAGS-siglist.c): Likewise.
18572 (CFLAGS-scanf15.c): Likewise.
18573 (CFLAGS-scanf17.c): Likewise.
18574 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
18575 (CFLAGS-msort.c): Likewise.
18576 (CFLAGS-qsort.c): Likewise.
18577 (CFLAGS-system.c): Likewise.
18578 (CFLAGS-fmtmsg.c): Likewise.
18579 (CFLAGS-strfmon.c): Likewise.
18580 (CFLAGS-strfmon_l.c): Likewise.
18581 (CFLAGS-strfromd.c): Likewise.
18582 (CFLAGS-strfromf.c): Likewise.
18583 (CFLAGS-strfroml.c): Likewise.
18584 (CFLAGS-tst-bsearch.c): Likewise.
18585 (CFLAGS-tst-qsort.c): Likewise.
18586 (CFLAGS-tst-makecontext2.c): Likewise.
18587 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
18588 (CFLAGS-xnlm_prot.c): Likewise.
18589 (CFLAGS-xrstat.c): Likewise.
18590 (CFLAGS-xyppasswd.c): Likewise.
18591 (CFLAGS-xklm_prot.c): Likewise.
18592 (CFLAGS-xrex.c): Likewise.
18593 (CFLAGS-xsm_inter.c): Likewise.
18594 (CFLAGS-xmount.c): Likewise.
18595 (CFLAGS-xrusers.c): Likewise.
18596 (CFLAGS-xspray.c): Likewise.
18597 (CFLAGS-xnfs_prot.c): Likewise.
18598 (CFLAGS-xrquota.c): Likewise.
18599 (CFLAGS-xkey_prot.c): Likewise.
18600 (CFLAGS-auth_unix.c): Likewise.
18601 (CFLAGS-key_call.c): Likewise.
18602 (CFLAGS-pmap_rmt.c): Likewise.
18603 (CFLAGS-clnt_perr.c): Likewise.
18604 (CFLAGS-openchild.c): Likewise.
18605 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
18606 (CFLAGS-msgsnd.c): Likewise.
18607 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
18608 * time/Makefile (CFLAGS-tzfile.c): Likewise.
18609 (CFLAGS-tzset.c): Likewise.
18610 (CFLAGS-getdate.c): Likewise.
18611 (CFLAGS-test_time.c): Likewise.
18612 (CPPFLAGS-tst-tzname.c): Likewise.
18613 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
18614 (CFLAGS-zic.c): Likewise.
18615 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
18616 (CFLAGS-wcswidth.c): Likewise.
18617 (CFLAGS-wcstol.c): Likewise.
18618 (CFLAGS-wcstoul.c): Likewise.
18619 (CFLAGS-wcstoll.c): Likewise.
18620 (CFLAGS-wcstoull.c): Likewise.
18621 (CFLAGS-wcstod.c): Likewise.
18622 (CFLAGS-wcstold.c): Likewise.
18623 (CFLAGS-wcstof128.c): Likewise.
18624 (CFLAGS-wcstof.c): Likewise.
18625 (CFLAGS-wcstol_l.c): Likewise.
18626 (CFLAGS-wcstoul_l.c): Likewise.
18627 (CFLAGS-wcstoll_l.c): Likewise.
18628 (CFLAGS-wcstoull_l.c): Likewise.
18629 (CFLAGS-wcstod_l.c): Likewise.
18630 (CFLAGS-wcstold_l.c): Likewise.
18631 (CFLAGS-wcstof128_l.c): Likewise.
18632 (CFLAGS-wcstof_l.c): Likewise.
18633 (CPPFLAGS-tst-wchar-h.c): Likewise.
18634 (CPPFLAGS-wcstold_l.c): Likewise.
18635
18636 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
18637
18638 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
18639
18640 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
18641 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18642
18643 * manual/tunables.texi (Hardware Capability Tunables): Document
18644 glibc.tune.cached_memopt.
18645 * sysdeps/powerpc/cpu-features.c: New file.
18646 * sysdeps/powerpc/cpu-features.h: New file.
18647 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
18648 _dl_powerpc_cpu_features.
18649 * sysdeps/powerpc/dl-tunables.list: New file.
18650 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
18651 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
18652 (INIT_ARCH): Initialize use_aligned_memopt.
18653 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
18654 IS_IN(rtld))]: Restrict dl_platform_init availability and
18655 initialize CPU features used by tunables.
18656 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
18657 Add memcpy-power8-cached.
18658 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
18659 __memcpy_power8_cached.
18660 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
18661 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
18662 New file.
18663
18664 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18665
18666 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
18667 (CFLAGS-noinl-tester.c): Likewise.
18668 (CFLAGS-tst-strlen.c): Likewise.
18669 (CFLAGS-stratcliff.c): Likewise.
18670 (CFLAGS-test-ffs.c): Likewise.
18671 (CFLAGS-tst-inlcall.c): Likewise.
18672 (CFLAGS-tst-xbzero-opt.c): Likewise.
18673 (CFLAGS-memcpy.c): Likewise.
18674 (CFLAGS-wordcopy.c): Likewise.
18675
18676 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
18677
18678 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
18679 Store r15 on stack and add cfi rule.
18680 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
18681 Likewise.
18682
18683 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
18684
18685 [BZ #22577]
18686 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
18687 call.
18688
18689 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18690
18691 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18692 Add s_sinf-sse2 and s_sinf-fma.
18693 (CFLAGS-s_sinf-fma.c): New.
18694 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
18695 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
18696 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
18697
18698 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18699
18700 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
18701
18702 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18703
18704 [BZ #22568]
18705 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
18706 part of result to imaginary part of argument if it is zero and the
18707 real part of the argument is not finite.
18708 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
18709 of result to real part of argument if it is zero and the imaginary
18710 part of the argument is not finite.
18711
18712 2017-12-07 Mike FABIAN <mfabian@redhat.com>
18713
18714 [BZ #22524]
18715 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
18716 and to the list of locales to be built for testing.
18717 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
18718 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
18719 and build the collation rules upon that.
18720
18721 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18722
18723 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
18724 * manual/math.texi (Mathematics): Document support for _Float32.
18725 * math/Makefile (test-types): Add float32.
18726 * math/Versions (GLIBC_2.27): Add _Float32 functions.
18727 * stdlib/Versions (GLIBC_2.27): Likewise.
18728 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18729 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18730 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18731 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18732 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18733 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18734 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18735 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18736 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18737 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18738 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18739 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18740 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18741 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18742 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18743 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18744 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18745 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18746 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18747 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18748 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18749 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18750 Likewise.
18751 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18752 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18753 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18754 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18755 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18756 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18757 Likewise.
18758 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18759 Likewise.
18760 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18761 Likewise.
18762 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18763 Likewise.
18764
18765 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18766 Likewise.
18767 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18768 Likewise.
18769 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18770 Likewise.
18771 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18772 Likewise.
18773 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18774 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18775 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18776 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18777 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18778 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18779 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18780 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18781 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18782 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18783 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18784 Likewise.
18785 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18786 Likewise.
18787 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18788 Likewise.
18789 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18790 Likewise.
18791 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18792 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18793 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18794 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18795 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18796 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18797 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18798 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18799
18800 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18801
18802 * stdlib/strtof.c: Include <bits/floatn.h>
18803 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
18804 and later undefine as macro. Define as weak alias if
18805 [!USE_WIDE_CHAR].
18806 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
18807 and later undefine as macro. Define as weak alias if
18808 [USE_WIDE_CHAR].
18809 * stdlib/strtof_l.c: Include <bits/floatn.h>
18810 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
18811 and later undefine as macro. Define as weak alias if
18812 [!USE_WIDE_CHAR].
18813 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
18814 and later undefine as macro. Define as weak alias if
18815 [USE_WIDE_CHAR].
18816
18817 * stdlib/strfromf.c: Include <bits/floatn.h>.
18818 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
18819 and later undefine as macro and define as weak alias.
18820
18821 * math/test-float32.h: New file.
18822
18823 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
18824 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
18825 (libm_alias_float_other_r): Create f32 alias.
18826 (libm_alias_float_r): Use semicolon before call to
18827 libm_alias_float_other_r.
18828
18829 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
18830 second argument to libm_alias_float_other.
18831 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
18832 second argument to libm_alias_float_other.
18833 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
18834 argument to libm_alias_float_other.
18835
18836 [BZ #22561]
18837 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
18838 real part of result for argument 0 + i * NaN.
18839 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
18840 results for tests of 0 + i * NaN.
18841
18842 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18843
18844 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18845
18846 2017-12-06 David S. Miller <davem@davemloft.net>
18847
18848 * sysdeps/sparc/fpu/libm-test-ulps: Update
18849 exp_{downward,towardzero,upward} ulps.
18850
18851 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18852
18853 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
18854 variables static.
18855
18856 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
18857 (Y0_2D): Likewise.
18858 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
18859 (Y0_2D): Likewise.
18860 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
18861 (Y0_2D): Likewise.
18862 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
18863 (Y0_2D): Likewise.
18864
18865 2017-12-06 Mike FABIAN <mfabian@redhat.com>
18866
18867 [BZ #22515]
18868 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
18869 and to the list of locales to be built for testing.
18870 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
18871 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
18872 and build the collation rules upon that.
18873
18874 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18875
18876 * NEWS: Add sinf to list of optimized functions.
18877
18878 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18879
18880 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
18881 (__HAVE_FLOAT32X): Likewise.
18882 * manual/math.texi (Mathematics): Document support for _Float64
18883 and _Float32x.
18884 * math/Makefile (test-types): Add float64 and float32x.
18885 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
18886 functions.
18887 * stdlib/Versions (GLIBC_2.27): Likewise.
18888 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18889 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18890 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18891 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18892 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18893 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18894 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18895 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18896 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18897 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18898 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18899 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18900 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18901 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18902 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18903 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18904 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18905 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18906 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18907 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18908 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18909 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18910 Likewise.
18911 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18912 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18913 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18914 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18915 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18916 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18917 Likewise.
18918 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18919 Likewise.
18920 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18921 Likewise.
18922 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18923 Likewise.
18924 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18925 Likewise.
18926 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18927 Likewise.
18928 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18929 Likewise.
18930 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18931 Likewise.
18932 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18933 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18934 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18935 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18936 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18937 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18938 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18939 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18940 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18941 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18942 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18943 Likewise.
18944 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18945 Likewise.
18946 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18947 Likewise.
18948 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18949 Likewise.
18950 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18951 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18952 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18953 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18954 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18955 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18956 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18957 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18958
18959 2017-12-05 Joseph Myers <joseph@codesourcery.com>
18960
18961 * bits/floatn-common.h: Include <bits/long-double.h>.
18962 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18963 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
18964 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18965 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
18966 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18967 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
18968 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18969 (__builtin_huge_valf64): Use __builtin_huge_vall.
18970 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18971 (__builtin_inff64): Use __builtin_infl.
18972 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18973 (__builtin_nanf64): Use __builtin_nanl.
18974 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18975 (__builtin_nansf64): Use __builtin_nansl.
18976
18977 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
18978 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
18979 Carlos O'Donnell <carlos@redhat.com>
18980
18981 * elf/dl-tunables.list: Add elision parameters.
18982 * manual/tunables.texi: Add entries about elision tunable.
18983 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
18984 Add callback functions to dynamically enable/disable elision.
18985 Add multiple callbacks functions to set elision parameters.
18986 Deleted __libc_enable_secure check.
18987 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
18988 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
18989 * configure: Regenerated.
18990 * configure.ac: Option enable_lock_elision was deleted.
18991 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
18992 * config.make.in: Remove references to enable_lock_elision.
18993 * manual/install.texi: Elision configure option was removed.
18994 * INSTALL: Regenerated to remove enable_lock_elision.
18995 * nptl/Makefile:
18996 Disable elision so it can verify error case for destroying a mutex.
18997 * sysdeps/powerpc/nptl/elide.h:
18998 Cleanup ENABLE_LOCK_ELISION check.
18999 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19000 * sysdeps/s390/configure: Regenerated.
19001 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19002 * nptl/tst-mutex8.c:
19003 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19004 * sysdeps/powerpc/powerpc32/sysdep.h:
19005 Deleted all ENABLE_LOCK_ELISION checks.
19006 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19007 * sysdeps/powerpc/sysdep.h: Likewise.
19008 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19009 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19010 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19011 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19012 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19013 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19014 enable-lock-elision.
19015
19016 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19017
19018 * stdlib/strtod.c: Include <bits/floatn.h>.
19019 (BUILD_DOUBLE): New macro.
19020 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19021 (strtof64): Define and later undefine as macro. Define as weak
19022 alias if [!USE_WIDE_CHAR].
19023 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19024 (wcstof64): Define and later undefine as macro. Define as weak
19025 alias if [USE_WIDE_CHAR].
19026 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19027 (strtof32x): Define and later undefine as macro. Define as weak
19028 alias if [!USE_WIDE_CHAR].
19029 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19030 (wcstof32x): Define and later undefine as macro. Define as weak
19031 alias if [USE_WIDE_CHAR].
19032 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19033 (BUILD_DOUBLE): New macro.
19034 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19035 (strtof64_l): Define and later undefine as macro. Define as weak
19036 alias if [!USE_WIDE_CHAR].
19037 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19038 (wcstof64_l): Define and later undefine as macro. Define as weak
19039 alias if [USE_WIDE_CHAR].
19040 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19041 (strtof32x_l): Define and later undefine as macro. Define as weak
19042 alias if [!USE_WIDE_CHAR].
19043 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19044 (wcstof32x_l): Define and later undefine as macro. Define as weak
19045 alias if [USE_WIDE_CHAR].
19046
19047 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19048
19049 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19050 (reduced): Use ones as double instead of integer.
19051
19052 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19053
19054 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19055
19056 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19057
19058 * stdlib/strfromd.c: Include <bits/floatn.h>.
19059 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19060 and later undefine as macro and define as weak alias.
19061 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19062 Likewise.
19063
19064 * math/test-float32x.h: New file.
19065 * math/test-float64.h: Likewise.
19066
19067 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19068 (libm_alias_double_other_r_f64): New macro.
19069 (libm_alias_double_other_r_f32x): Likewise.
19070 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19071 libm_alias_double_other_r_f32x.
19072 (libm_alias_double_r): Use semicolon before call to
19073 libm_alias_double_other_r.
19074 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19075 <bits/floatn.h>.
19076 (libm_alias_double_other_r_f64): New macro.
19077 (libm_alias_double_other_r_f32x): Likewise.
19078 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19079 libm_alias_double_other_r_f32x.
19080
19081 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19082
19083 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19084 int.
19085 (SINF_FUNC): Likewise. Replace floor with simple casts.
19086
19087 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19088
19089 [BZ #22517]
19090 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19091 and to the list of locales to be built for testing.
19092 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19093 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19094 and build the collation rules upon that.
19095
19096 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19097
19098 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19099 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19100 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19101 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19102 instead of __insn__xxx.
19103 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19104 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19105 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19106 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19107 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19108 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19109
19110 2017-12-05 Florian Weimer <fweimer@redhat.com>
19111
19112 Linux: Implement interfaces for memory protection keys
19113 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19114 xsignal, xsysconf.
19115 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19116 * support/xunistd.h (xsysconf): Declare.
19117 * support/xraise.c: New file.
19118 * support/xsigaction.c: Likewise.
19119 * support/xsignal.c: Likewise.
19120 * support/xsysconf.c: Likewise.
19121 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19122 pkey_set, pkey_get, pkey_mprotect.
19123 [misc] (tests): Add tst-pkey.
19124 (tst-pkey): Link with -lpthread.
19125 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19126 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19127 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19128 (PKEY_DISABLE_WRITE): Define.
19129 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19130 Declare.
19131 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19132 (SEGV_PKUERR): Add.
19133 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19134 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19135 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19136 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19137 Add.
19138 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19139 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19140 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19141 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19142 * sysdeps/unix/sysv/linux/**.abilist: Update.
19143
19144 2017-12-05 Florian Weimer <fweimer@redhat.com>
19145
19146 * support/tst-test_compare.c (subprocess): Use long long instead
19147 of long argument for consistent type width across 32-bit and
19148 64-bit architectures.
19149 (do_test): Adjust expected output.
19150
19151 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19152
19153 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19154 (cosf): Define using libm_alias_float.
19155 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19156 (fabsf): Define using libm_alias_float.
19157 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19158 (fmaf): Define using libm_alias_float.
19159 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19160 (rintf): Define using libm_alias_float.
19161 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19162 (sinf): Define using libm_alias_float.
19163 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19164 <libm-alias-float.h>.
19165 (modff): Define using libm_alias_float.
19166 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19167 <libm-alias-float.h>.
19168 (logbf): Define using libm_alias_float.
19169 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19170 <libm-alias-float.h>.
19171 (ceilf): Define using libm_alias_float.
19172 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19173 <libm-alias-float.h>.
19174 (copysignf): Define using libm_alias_float.
19175 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19176 <libm-alias-float.h>.
19177 (floorf): Define using libm_alias_float.
19178 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19179 <libm-alias-float.h>.
19180 (llrintf): Define using libm_alias_float.
19181 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19182 <libm-alias-float.h>.
19183 (llroundf): Define using libm_alias_float.
19184 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19185 <libm-alias-float.h>.
19186 (lrintf): Define using libm_alias_float.
19187 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19188 <libm-alias-float.h>.
19189 (lroundf): Define using libm_alias_float.
19190 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19191 <libm-alias-float.h>.
19192 (nearbyintf): Define using libm_alias_float.
19193 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19194 <libm-alias-float.h>.
19195 (rintf): Define using libm_alias_float.
19196 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19197 <libm-alias-float.h>.
19198 (roundf): Define using libm_alias_float.
19199 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19200 <libm-alias-float.h>.
19201 (truncf): Define using libm_alias_float.
19202 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19203 Include <libm-alias-float.h>.
19204 (ceilf): Define using libm_alias_float.
19205 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19206 Include <libm-alias-float.h>.
19207 (copysignf): Define using libm_alias_float.
19208 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19209 Include <libm-alias-float.h>.
19210 (floorf): Define using libm_alias_float.
19211 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19212 Include <libm-alias-float.h>.
19213 (llrintf): Define using libm_alias_float.
19214 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19215 Include <libm-alias-float.h>.
19216 (llroundf): Define using libm_alias_float.
19217 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19218 Include <libm-alias-float.h>.
19219 (logbf): Define using libm_alias_float.
19220 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19221 Include <libm-alias-float.h>.
19222 (lrintf): Define using libm_alias_float.
19223 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19224 Include <libm-alias-float.h>.
19225 (lroundf): Define using libm_alias_float.
19226 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19227 Include <libm-alias-float.h>.
19228 (modff): Define using libm_alias_float.
19229 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19230 Include <libm-alias-float.h>.
19231 (roundf): Define using libm_alias_float.
19232 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19233 Include <libm-alias-float.h>.
19234 (truncf): Define using libm_alias_float.
19235 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19236 <libm-alias-float.h>.
19237 (llrintf): Define using libm_alias_float.
19238 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19239 <libm-alias-float.h>.
19240 (llroundf): Define using libm_alias_float.
19241 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19242 <libm-alias-float.h>.
19243 (ceilf): Define using libm_alias_float.
19244 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19245 <libm-alias-float.h>.
19246 (floorf): Define using libm_alias_float.
19247 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19248 <libm-alias-float.h>.
19249 (llroundf): Define using libm_alias_float.
19250 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19251 <libm-alias-float.h>.
19252 (lroundf): Define using libm_alias_float.
19253 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19254 <libm-alias-float.h>.
19255 (roundf): Define using libm_alias_float.
19256 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19257 <libm-alias-float.h>.
19258 (truncf): Define using libm_alias_float.
19259 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19260 <libm-alias-float.h>.
19261 (copysignf): Define using libm_alias_float.
19262 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19263 <libm-alias-float.h>.
19264 (llrintf): Define using libm_alias_float.
19265 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19266 <libm-alias-float.h>.
19267 (llroundf): Define using libm_alias_float.
19268 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19269 <libm-alias-float.h>.
19270 (lrintf): Define using libm_alias_float.
19271 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19272 <libm-alias-float.h>.
19273 (lroundf): Define using libm_alias_float.
19274 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19275 <libm-alias-float.h>.
19276 (ceilf): Define using libm_alias_float.
19277 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19278 <libm-alias-float.h>.
19279 (copysignf): Define using libm_alias_float.
19280 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19281 <libm-alias-float.h>.
19282 (cosf): Define using libm_alias_float.
19283 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
19284 <libm-alias-float.h>.
19285 (floorf): Define using libm_alias_float.
19286 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
19287 <libm-alias-float.h>.
19288 (llrintf): Define using libm_alias_float.
19289 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
19290 <libm-alias-float.h>.
19291 (llroundf): Define using libm_alias_float.
19292 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19293 <libm-alias-float.h>.
19294 (logbf): Define using libm_alias_float.
19295 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19296 <libm-alias-float.h>.
19297 (modff): Define using libm_alias_float.
19298 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19299 <libm-alias-float.h>.
19300 (roundf): Define using libm_alias_float.
19301 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19302 <libm-alias-float.h>.
19303 (sinf): Define using libm_alias_float.
19304 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19305 <libm-alias-float.h>.
19306 (truncf): Define using libm_alias_float.
19307 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
19308 <libm-alias-float.h>.
19309 (ceilf): Define using libm_alias_float.
19310 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19311 <libm-alias-float.h>.
19312 (copysignf): Define using libm_alias_float.
19313 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
19314 <libm-alias-float.h>.
19315 (floorf): Define using libm_alias_float.
19316 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19317 <libm-alias-float.h>.
19318 (llrintf): Define using libm_alias_float.
19319 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
19320 <libm-alias-float.h>.
19321 (llroundf): Define using libm_alias_float.
19322 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
19323 <libm-alias-float.h>.
19324 (nearbyintf): Define using libm_alias_float.
19325 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
19326 <libm-alias-float.h>.
19327 (rintf): Define using libm_alias_float.
19328 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
19329 <libm-alias-float.h>.
19330 (roundf): Define using libm_alias_float.
19331 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
19332 <libm-alias-float.h>.
19333 (truncf): Define using libm_alias_float.
19334 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
19335 <libm-alias-float.h>.
19336 (ceilf): Define using libm_alias_float.
19337 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
19338 <libm-alias-float.h>.
19339 (floorf): Define using libm_alias_float.
19340 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19341 <libm-alias-float.h>.
19342 (llroundf): Define using libm_alias_float.
19343 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
19344 <libm-alias-float.h>.
19345 (roundf): Define using libm_alias_float.
19346 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
19347 <libm-alias-float.h>.
19348 (truncf): Define using libm_alias_float.
19349 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19350 <libm-alias-float.h>.
19351 (copysignf): Define using libm_alias_float.
19352 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19353 <libm-alias-float.h>.
19354 (llrintf): Define using libm_alias_float.
19355 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19356 <libm-alias-float.h>.
19357 (llroundf): Define using libm_alias_float.
19358 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
19359 <libm-alias-float.h>.
19360 (cosf): Define using libm_alias_float.
19361 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19362 <libm-alias-float.h>.
19363 (llrintf): Define using libm_alias_float.
19364 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19365 <libm-alias-float.h>.
19366 (llroundf): Define using libm_alias_float.
19367 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
19368 <libm-alias-float.h>.
19369 (sinf): Define using libm_alias_float.
19370
19371 2017-12-04 Florian Weimer <fweimer@redhat.com>
19372
19373 * support/check.h (TEST_COMPARE): Define.
19374 (support_test_compare_failure): Declare.
19375 * support/Makefile (libsupport-routines): Add
19376 support_test_compare_failure.
19377 (tests): Add tst-test_compare.
19378 * support /support_test_compare_failure.c: New file.
19379 * support/tst-test_compare.c: Likewise.
19380
19381 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19382
19383 [BZ #22527]
19384 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
19385 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
19386 available, this rewrite of the collation rules does reproduce
19387 the test file in the same order.
19388
19389 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19390
19391 [BZ #10580]
19392 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
19393 digraphs in the month and day names. Using single code points for
19394 digraphs is deprecated. While there are dedicated Unicode
19395 codepoints, for the digraphs, these are included for backwards
19396 compatibility and modern texts use a sequence of Basic Latin
19397 characters. See: https://www.unicode.org/faq/ligature_digraph.html
19398 This makes the month and day names agree exactly with CLDR now,
19399 CLDR does not use the single code points for the digraphs either.
19400
19401 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
19402
19403 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
19404
19405 2017-12-04 Joseph Myers <joseph@codesourcery.com>
19406
19407 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
19408 of floor.
19409
19410 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
19411
19412 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
19413 Define only for libc.so.
19414
19415 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
19416
19417 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19418 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
19419 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
19420 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
19421 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
19422
19423 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19424
19425 [BZ #5997]
19426 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
19427
19428 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
19429
19430 [BZ libc/19170]
19431 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
19432 PREINIT_FUNCTION_WEAK is nonzero.
19433 (gmon_initializer): New function. Put procedure label for it in
19434 .init_array section.
19435 (_init): Don't call PREINIT_FUNCTION.
19436 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
19437 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
19438 value when map argument is null.
19439
19440 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
19441 depi instruction from PIC pc-relative sequence.
19442 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
19443 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
19444 (elf_machine_load_address): Likewise.
19445 (elf_machine_runtime_setup): Likewise.
19446
19447 2017-12-02 Joseph Myers <joseph@codesourcery.com>
19448
19449 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
19450 <libm-alias-double.h>.
19451 (logb): Define using libm_alias_double.
19452 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19453 <libm-alias-double.h>.
19454 (copysign): Define using libm_alias_double.
19455 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
19456 <libm-alias-double.h>.
19457 (llrint): Define using libm_alias_double.
19458 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
19459 <libm-alias-double.h>.
19460 (llround): Define using libm_alias_double.
19461 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19462 <libm-alias-double.h>.
19463 (lrint): Define using libm_alias_double.
19464 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19465 <libm-alias-double.h>.
19466 (lround): Define using libm_alias_double.
19467 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
19468 Include <libm-alias-double.h>.
19469 (copysign): Define using libm_alias_double.
19470 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
19471 Include <libm-alias-double.h>.
19472 (llrint): Define using libm_alias_double.
19473 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
19474 Include <libm-alias-double.h>.
19475 (llround): Define using libm_alias_double.
19476 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
19477 <libm-alias-double.h>.
19478 (logb): Define using libm_alias_double.
19479 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
19480 Include <libm-alias-double.h>.
19481 (lrint): Define using libm_alias_double.
19482 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
19483 Include <libm-alias-double.h>.
19484 (lround): Define using libm_alias_double.
19485 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
19486 <libm-alias-double.h>.
19487 (llrint): Define using libm_alias_double.
19488 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19489 <libm-alias-double.h>.
19490 (llround): Define using libm_alias_double.
19491 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19492 <libm-alias-double.h>.
19493 (llround): Define using libm_alias_double.
19494 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19495 <libm-alias-double.h>.
19496 (lround): Define using libm_alias_double.
19497 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19498 <libm-alias-double.h>.
19499 (copysign): Define using libm_alias_double.
19500 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
19501 <libm-alias-double.h>.
19502 (llrint): Define using libm_alias_double.
19503 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19504 <libm-alias-double.h>.
19505 (llround): Define using libm_alias_double.
19506 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19507 <libm-alias-double.h>.
19508 (lrint): Define using libm_alias_double.
19509 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19510 <libm-alias-double.h>.
19511 (lround): Define using libm_alias_double.
19512 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
19513 <libm-alias-double.h>.
19514 (copysign): Define using libm_alias_double.
19515 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
19516 <libm-alias-double.h>.
19517 (llrint): Define using libm_alias_double.
19518 (lrint): Likewise.
19519 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
19520 <libm-alias-double.h>.
19521 (llround): Define using libm_alias_double.
19522 (lround): Likewise.
19523 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
19524 <libm-alias-double.h>.
19525 (logb): Define using libm_alias_double.
19526 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19527 <libm-alias-double.h>.
19528 (copysign): Define using libm_alias_double.
19529 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19530 <libm-alias-double.h>.
19531 (llrint): Define using libm_alias_double.
19532 (lrint): Likewise.
19533 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
19534 <libm-alias-double.h>.
19535 (llround): Define using libm_alias_double.
19536 (lround): Likewise.
19537 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19538 <libm-alias-double.h>.
19539 (llround): Define using libm_alias_double.
19540 (lround): Likewise.
19541 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19542 <libm-alias-double.h>.
19543 (copysign): Define using libm_alias_double.
19544 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19545 <libm-alias-double.h>.
19546 (llrint): Define using libm_alias_double.
19547 (lrint): Likewise.
19548 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19549 <libm-alias-double.h>.
19550 (llround): Define using libm_alias_double.
19551 (lround): Likewise.
19552 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19553 <libm-alias-double.h>.
19554 (llrint): Define using libm_alias_double.
19555 (lrint): Likewise.
19556 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19557 <libm-alias-double.h>.
19558 (llround): Define using libm_alias_double.
19559 (lround): Likewise.
19560
19561 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19562
19563 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
19564 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
19565 compat symbol based on llround.
19566
19567 * sysdeps/powerpc/power7/fpu/s_logb.c
19568 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
19569 symbol based on __logb, not on logb.
19570 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
19571 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19572 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
19573 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19574
19575 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
19576 (rint): Define using libm_alias_double.
19577 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
19578 <libm-alias-double.h>.
19579 (modf): Define using libm_alias_double.
19580 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
19581 <libm-alias-double.h>.
19582 (ceil): Define using libm_alias_double.
19583 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
19584 <libm-alias-double.h>.
19585 (floor): Define using libm_alias_double.
19586 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
19587 <libm-alias-double.h>.
19588 (nearbyint): Define using libm_alias_double.
19589 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
19590 <libm-alias-double.h>.
19591 (rint): Define using libm_alias_double.
19592 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
19593 <libm-alias-double.h>.
19594 (round): Define using libm_alias_double.
19595 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
19596 <libm-alias-double.h>.
19597 (trunc): Define using libm_alias_double.
19598 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
19599 <libm-alias-double.h>.
19600 (ceil): Define using libm_alias_double.
19601 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
19602 Include <libm-alias-double.h>.
19603 (floor): Define using libm_alias_double.
19604 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
19605 <libm-alias-double.h>.
19606 (modf): Define using libm_alias_double.
19607 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
19608 Include <libm-alias-double.h>.
19609 (round): Define using libm_alias_double.
19610 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
19611 Include <libm-alias-double.h>.
19612 (trunc): Define using libm_alias_double.
19613 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
19614 <libm-alias-double.h>.
19615 (ceil): Define using libm_alias_double.
19616 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
19617 <libm-alias-double.h>.
19618 (floor): Define using libm_alias_double.
19619 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
19620 <libm-alias-double.h>.
19621 (round): Define using libm_alias_double.
19622 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
19623 <libm-alias-double.h>.
19624 (trunc): Define using libm_alias_double.
19625 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
19626 <libm-alias-double.h>.
19627 (ceil): Define using libm_alias_double.
19628 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
19629 <libm-alias-double.h>.
19630 (floor): Define using libm_alias_double.
19631 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
19632 <libm-alias-double.h>.
19633 (modf): Define using libm_alias_double.
19634 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
19635 <libm-alias-double.h>.
19636 (round): Define using libm_alias_double.
19637 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
19638 <libm-alias-double.h>.
19639 (trunc): Define using libm_alias_double.
19640 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
19641 <libm-alias-double.h>.
19642 (ceil): Define using libm_alias_double.
19643 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
19644 <libm-alias-double.h>.
19645 (floor): Define using libm_alias_double.
19646 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
19647 <libm-alias-double.h>.
19648 (nearbyint): Define using libm_alias_double.
19649 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
19650 <libm-alias-double.h>.
19651 (rint): Define using libm_alias_double.
19652 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
19653 <libm-alias-double.h>.
19654 (round): Define using libm_alias_double.
19655 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
19656 <libm-alias-double.h>.
19657 (trunc): Define using libm_alias_double.
19658 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
19659 <libm-alias-double.h>.
19660 (ceil): Define using libm_alias_double.
19661 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
19662 <libm-alias-double.h>.
19663 (floor): Define using libm_alias_double.
19664 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
19665 <libm-alias-double.h>.
19666 (round): Define using libm_alias_double.
19667 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
19668 <libm-alias-double.h>.
19669 (trunc): Define using libm_alias_double.
19670
19671 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
19672 (fabs): Define using libm_alias_double.
19673 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
19674 (fma): Define using libm_alias_double.
19675 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
19676 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
19677 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
19678 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
19679
19680 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19681
19682 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
19683
19684 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
19685 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
19686 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
19687
19688 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
19689 due redirect macro.
19690
19691 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
19692
19693 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
19694
19695 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19696
19697 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
19698 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
19699 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
19700 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
19701
19702 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19703 (libm-sysdep_routines): Add s_nearbyintf-generic and
19704 s_nearbyint-generic.
19705 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
19706 New file.
19707 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
19708 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
19709 Likewise.
19710 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
19711 Likewise.
19712 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
19713 file.
19714 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
19715 Likewise.
19716
19717 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19718 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
19719 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
19720 file.
19721 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
19722 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
19723 Likewise.
19724 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
19725 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
19726 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
19727
19728 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19729 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
19730 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
19731 file.
19732 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
19733 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
19734 Likewise.
19735 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
19736 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
19737 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
19738
19739 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19740 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
19741 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
19742 file.
19743 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
19744 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
19745 Likewise.
19746 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
19747 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
19748 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
19749
19750 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19751 (sysdep_calls): New rule.
19752 (sysdep_routines): Use sysdep_calls as base.
19753 (libm-sysdep_routines): Add generic rule for symbols shared with
19754 libc. Add s_copysign-generic and s_copysign-generic objects.
19755 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
19756 New file.
19757 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
19758 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
19759 Likewise.
19760 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
19761 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
19762 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
19763
19764 2017-12-01 Mike FABIAN <mfabian@redhat.com>
19765
19766 [BZ #22519]
19767 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
19768 the list of locales to be built for testing.
19769 * localedata/is_IS.UTF-8.in: New file.
19770 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
19771 on iso14651_t1.
19772
19773 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19774
19775 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
19776 <libm-alias-float.h>.
19777 (fabsf): Define using libm_alias_float.
19778
19779 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
19780
19781 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
19782
19783 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19784
19785 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
19786 <libm-alias-float.h>.
19787 (fabsf): Define using libm_alias_float.
19788 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
19789 <libm-alias-float.h>.
19790 (lrintf): Define using libm_alias_float.
19791 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
19792 <libm-alias-float.h>.
19793 (rintf): Define using libm_alias_float.
19794
19795 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
19796 <libm-alias-double.h>.
19797 (fabs): Define using libm_alias_double.
19798 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
19799 <libm-alias-double.h>.
19800 (lrint): Define using libm_alias_double.
19801 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
19802 <libm-alias-double.h>.
19803 (rint): Define using libm_alias_double.
19804
19805 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
19806 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
19807 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
19808 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
19809 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
19810 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
19811 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
19812 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
19813 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
19814 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
19815 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
19816 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
19817 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
19818 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
19819 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
19820 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
19821 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
19822 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
19823 s_atan_template.c.
19824 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
19825 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
19826 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
19827 s_ceil_template.c.
19828 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
19829 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
19830 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
19831 s_cos_template.c.
19832 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
19833 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
19834 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
19835 s_expm1_template.c.
19836 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
19837 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
19838 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
19839 s_fabs_template.c.
19840 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
19841 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
19842 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
19843 s_floor_template.c.
19844 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
19845 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
19846 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
19847 s_frexp_template.c.
19848 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
19849 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
19850 s_lrint_template.c.
19851 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
19852 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
19853 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
19854 s_modf_template.c.
19855 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
19856 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
19857 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
19858 s_nearbyint_template.c.
19859 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
19860 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
19861 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
19862 s_remquo_template.c.
19863 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
19864 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
19865 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
19866 s_rint_template.c.
19867 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
19868 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
19869 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
19870 s_sin_template.c.
19871 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
19872 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
19873 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
19874 s_sincos_template.c.
19875 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
19876 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
19877 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
19878 s_tan_template.c.
19879 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
19880 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
19881 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
19882 s_tanh_template.c.
19883 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
19884 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
19885 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
19886 s_trunc_template.c.
19887 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
19888 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
19889 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
19890 s_atan.c instead of including s_atan.c.
19891 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
19892 s_atanf.c instead of including s_atanf.c.
19893 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
19894 s_atanl.c instead of including s_atanl.c.
19895 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
19896 instead of s_atan.c.
19897 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
19898 instead of s_atanf.c.
19899 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
19900 instead of s_atanl.c.
19901
19902 * scripts/update-copyrights: Do not handle intl/plural.c
19903 specially.
19904
19905 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
19906
19907 [BZ #22432]
19908 * configure.ac (BISON): Require to be present.
19909 * configure: Regenerated.
19910 * intl/Makefile (generated): Add plural.c.
19911 [$(BISON) != no]: Make code unconditional.
19912 (plural.c): Change rule to $(objpfx)plural.c.
19913 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
19914 * intl/plural.c: Remove.
19915 * manual/install.texi (Tools for Compilation): Document bison as
19916 required.
19917 * INSTALL: Regenerated.
19918
19919 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19920
19921 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
19922 <libm-alias-double.h>.
19923 (llrint): Define using libm_alias_double.
19924 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
19925 <libm-alias-float.h>.
19926 (llrintf): Define using libm_alias_float.
19927 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
19928 <libm-alias-ldouble.h>.
19929 (llrintl): Define using libm_alias_ldouble.
19930
19931 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
19932 declare_mgen_alias instead of weak_alias.
19933 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
19934 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
19935 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
19936
19937 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19938
19939 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19940 Add add_n-generic.
19941 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
19942 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
19943 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
19944
19945 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19946 Add submul_1-generic.
19947 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
19948 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
19949 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
19950
19951 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19952 Add addmul_1-generic.
19953 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
19954 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
19955 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
19956
19957 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19958 Add sub_n-generic.
19959 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
19960 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
19961 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
19962
19963 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19964 Add mul_1-generic.
19965 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
19966 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
19967 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
19968
19969 2017-11-30 Mike FABIAN <mfabian@redhat.com>
19970
19971 According to CLDR, collation rules for Serbian and Bosnian
19972 should be the same as for Croatian.
19973
19974 [BZ #22534]
19975 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
19976 and to the list of locales to be built for testing.
19977 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
19978 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
19979 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
19980 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
19981
19982 2017-11-30 Mike FABIAN <mfabian@redhat.com>
19983
19984 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
19985 to make test case pass.
19986 * localedata/hr_HR.UTF-8.in: Add more test strings.
19987
19988 2017-11-30 Mike FABIAN <mfabian@redhat.com>
19989
19990 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
19991
19992 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
19993
19994 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
19995 the list of locales to built for testing.
19996 * localedata/hr_HR.UTF-8.in: New file.
19997
19998 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
19999
20000 [BZ #10580]
20001 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20002 iso14651_t1.
20003 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20004 CLDR (except use ligatures for the digraphs, CLDR does not use
20005 the ligatures), add first_workday, some fixes in the date and time
20006 formats.
20007 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20008 for Đ and đ.
20009 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20010 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20011 Add int_p_cs_precedes and int_n_cs_precedes.
20012 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20013 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20014 LC_MONETARY now).
20015 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20016 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20017 name_miss.
20018 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20019 and lang_lib. Change postal_fmt.
20020
20021 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20022
20023 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20024 <setjmp.h>.
20025 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20026 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20027 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20028 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20029 * sysdeps/generic/setjmpP.h: New file.
20030 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20031 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20032 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20033 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20034 Add jmp_buf-ssp.sym.
20035 (tests): Add tst-saved_mask-1.
20036
20037 2017-11-30 Arjun Shankar <arjun@redhat.com>
20038
20039 [BZ #22375]
20040 CVE-2017-17426
20041 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20042 instead of request2size.
20043
20044 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20045
20046 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20047 (__lllrint): Remove alias.
20048 (lllrint): Likewise.
20049 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20050 (__lllrintf): Likewise.
20051 (lllrintf): Likewise.
20052
20053 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20054 <libm-alias-float.h>.
20055 (copysignf): Define using libm_alias_float.
20056 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20057 <libm-alias-float.h>.
20058 (fabsf): Define using libm_alias_float.
20059 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20060 Include <libm-alias-float.h>.
20061 (copysignf): Define using libm_alias_float.
20062 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20063 <libm-alias-float.h>.
20064 (fabsf): Define using libm_alias_float.
20065 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20066 <libm-alias-float.h>.
20067 (fdimf): Define using libm_alias_float.
20068 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20069 <libm-alias-float.h>.
20070 (fmaf): Define using libm_alias_float.
20071 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20072 <libm-alias-float.h>.
20073 (llrintf): Define using libm_alias_float.
20074 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20075 Include <libm-alias-float.h>.
20076 (nearbyintf): Define using libm_alias_float.
20077 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20078 <libm-alias-float.h>.
20079 (rintf): Define using libm_alias_float.
20080 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20081 <libm-alias-float.h>.
20082 (llrintf): Define using libm_alias_float.
20083 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20084 <libm-alias-float.h>.
20085 (lrintf): Define using libm_alias_float.
20086 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20087 <libm-alias-float.h>.
20088 (nearbyintf): Define using libm_alias_float.
20089 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20090 <libm-alias-float.h>.
20091 (rintf): Define using libm_alias_float.
20092 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20093 <libm-alias-float.h>.
20094 (ceilf): Define using libm_alias_float.
20095 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20096 <libm-alias-float.h>.
20097 (floorf): Define using libm_alias_float.
20098 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20099 <libm-alias-float.h>.
20100 (fmaf): Define using libm_alias_float.
20101 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20102 <libm-alias-float.h>.
20103 (lrintf): Define using libm_alias_float.
20104 (llrintf): Likewise.
20105 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20106 <libm-alias-float.h>.
20107 (nearbyintf): Define using libm_alias_float.
20108 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20109 <libm-alias-float.h>.
20110 (rintf): Define using libm_alias_float.
20111 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20112 <libm-alias-float.h>.
20113 (truncf): Define using libm_alias_float.
20114 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20115 <libm-alias-float.h>.
20116 (copysignf): Define using libm_alias_float.
20117 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20118 <libm-alias-float.h>.
20119 (fabsf): Define using libm_alias_float.
20120 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20121 <libm-alias-float.h>.
20122 (lrintf): Define using libm_alias_float.
20123 (llrintf): Likewise.
20124 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20125 <libm-alias-float.h>.
20126 (nearbyintf): Define using libm_alias_float.
20127 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20128 <libm-alias-float.h>.
20129 (rintf): Define using libm_alias_float.
20130
20131 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20132
20133 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20134 <libm-alias-double.h>.
20135 (copysign): Define using libm_alias_double.
20136 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20137 <libm-alias-double.h>.
20138 (fabs): Define using libm_alias_double.
20139 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20140 Include <libm-alias-double.h>.
20141 (copysign): Define using libm_alias_double.
20142 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20143 <libm-alias-double.h>.
20144 (fabs): Define using libm_alias_double.
20145 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20146 <libm-alias-double.h>.
20147 (fdim): Define using libm_alias_double.
20148 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20149 <libm-alias-double.h>.
20150 (fma): Define using libm_alias_double.
20151 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20152 <libm-alias-double.h>.
20153 (llrint): Define using libm_alias_double.
20154 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20155 Include <libm-alias-double.h>.
20156 (nearbyint): Define using libm_alias_double.
20157 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20158 <libm-alias-double.h>.
20159 (rint): Define using libm_alias_double.
20160 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20161 <libm-alias-double.h>.
20162 (fabs): Define using libm_alias_double.
20163 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20164 <libm-alias-double.h>.
20165 (llrint): Define using libm_alias_double.
20166 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20167 <libm-alias-double.h>.
20168 (nearbyint): Define using libm_alias_double.
20169 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20170 <libm-alias-double.h>.
20171 (rint): Define using libm_alias_double.
20172 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20173 <libm-alias-double.h>.
20174 (ceil): Define using libm_alias_double.
20175 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20176 <libm-alias-double.h>.
20177 (floor): Define using libm_alias_double.
20178 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20179 <libm-alias-double.h>.
20180 (fma): Define using libm_alias_double.
20181 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20182 <libm-alias-double.h>.
20183 (lrint): Define using libm_alias_double.
20184 (llrint): Likewise.
20185 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20186 <libm-alias-double.h>.
20187 (nearbyint): Define using libm_alias_double.
20188 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20189 <libm-alias-double.h>.
20190 (rint): Define using libm_alias_double.
20191 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20192 <libm-alias-double.h>.
20193 (trunc): Define using libm_alias_double.
20194 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20195 <libm-alias-double.h>.
20196 (copysign): Define using libm_alias_double.
20197 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20198 <libm-alias-double.h>.
20199 (fabs): Define using libm_alias_double.
20200 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20201 <libm-alias-double.h>.
20202 (lrint): Define using libm_alias_double.
20203 (llrint): Likewise.
20204 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20205 <libm-alias-double.h>.
20206 (nearbyint): Define using libm_alias_double.
20207 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20208 <libm-alias-double.h>.
20209 (rint): Define using libm_alias_double.
20210
20211 [BZ #22229]
20212 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20213 <math_ldbl_opt.h>.
20214 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20215
20216 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20217 SPARC --disable-multi-arch glibc variants.
20218
20219 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20220 <libm-alias-float.h>.
20221 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20222 if [SHARED].
20223 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20224 <libm-alias-float.h>.
20225 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20226 if [SHARED].
20227 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20228 <libm-alias-float.h>.
20229 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20230 if [SHARED].
20231 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20232 <libm-alias-float.h>.
20233 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20234 if [SHARED].
20235 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20236 <libm-alias-float.h>.
20237 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20238 if [SHARED].
20239 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20240 <libm-alias-float.h>.
20241 (ceilf): Define using libm_alias_float.
20242 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20243 <libm-alias-float.h>.
20244 (floorf): Define using libm_alias_float.
20245 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20246 <libm-alias-float.h>.
20247 (fmaf): Define using libm_alias_float.
20248 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20249 <libm-alias-float.h>.
20250 (nearbyintf): Define using libm_alias_float.
20251 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20252 <libm-alias-float.h>.
20253 (rintf): Define using libm_alias_float.
20254 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20255 <libm-alias-float.h>.
20256 (truncf): Define using libm_alias_float.
20257 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20258 (copysignf): Define using libm_alias_float.
20259 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20260 (cosf): Define using libm_alias_float.
20261 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20262 (fabsf): Define using libm_alias_float.
20263 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20264 (fmaxf): Define using libm_alias_float.
20265 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20266 (fminf): Define using libm_alias_float.
20267 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20268 (llrintf): Define using libm_alias_float.
20269 [!__ILP32__] (lrintf): Likewise.
20270 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20271 (sincosf): Define using libm_alias_float.
20272 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20273 (sinf): Define using libm_alias_float.
20274 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20275 (lrintf): Define using libm_alias_float.
20276
20277 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20278 <libm-alias-double.h>.
20279 (atan): Define using libm_alias_double.
20280 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20281 <libm-alias-double.h>.
20282 (ceil): Define using libm_alias_double.
20283 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
20284 <libm-alias-double.h>.
20285 (floor): Define using libm_alias_double.
20286 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
20287 <libm-alias-double.h>.
20288 (fma): Define using libm_alias_double.
20289 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
20290 <libm-alias-double.h>.
20291 (nearbyint): Define using libm_alias_double.
20292 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20293 <libm-alias-double.h>.
20294 (rint): Define using libm_alias_double.
20295 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20296 <libm-alias-double.h>.
20297 (sin): Define using libm_alias_double.
20298 (cos): Likewise.
20299 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20300 <libm-alias-double.h>.
20301 (tan): Define using libm_alias_double.
20302 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20303 <libm-alias-double.h>.
20304 (trunc): Define using libm_alias_double.
20305 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20306 (copysign): Define using libm_alias_double.
20307 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
20308 (fabs): Define using libm_alias_double.
20309 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
20310 (fmax): Define using libm_alias_double.
20311 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
20312 (fmin): Define using libm_alias_double.
20313 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
20314 (llrint): Define using libm_alias_double.
20315 [!__ILP32__] (lrint): Likewise.
20316 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
20317 (lrint): Define using libm_alias_double.
20318
20319 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20320
20321 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20322 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
20323 objects.
20324 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
20325 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
20326 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
20327 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
20328 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
20329 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20330
20331 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20332 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
20333 objects.
20334 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
20335 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
20336 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
20337 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
20338 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
20339 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20340
20341 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20342 (libm-sysdep_routines): Add s_nearbyint-generic and
20343 s_nearbyintf-generic objects.
20344 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
20345 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
20346 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
20347 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
20348 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
20349 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
20350
20351 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20352 Add s_finitef-generic and s_finite-generic objects.
20353 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
20354 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
20355 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
20356 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
20357 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
20358 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
20359
20360 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20361 Add s_isinff-generic and s_isinf-generic objects.
20362 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
20363 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
20364 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
20365 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
20366 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
20367 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
20368
20369 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20370 Add s_isnanf-generic and s_isnan-generic objects.
20371 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
20372 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
20373 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
20374 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
20375 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
20376 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
20377
20378 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
20379 macro.
20380 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
20381 rule.
20382 (sysdep_routines): Use sysdep_calls as base.
20383 (libm-sysdep_routines): Add generic rule for symbols shared with
20384 libc. Add s_signbit-generic and s_signbitf-generic objects.
20385 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
20386 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
20387 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
20388 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
20389 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
20390 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
20391
20392 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20393
20394 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
20395 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
20396 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
20397 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
20398 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
20399 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
20400 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
20401 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
20402 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
20403 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
20404 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
20405 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
20406 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
20407 libm_alias_float_r.
20408 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
20409 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
20410 (logf): Likewise.
20411 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
20412 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
20413 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
20414 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
20415 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
20416 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
20417 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
20418 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
20419 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
20420 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
20421 libm_alias_float.
20422 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
20423 (cosf): Likewise.
20424 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
20425 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
20426 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
20427 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
20428 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
20429 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
20430 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
20431 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
20432 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
20433 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
20434 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
20435 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
20436 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
20437 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
20438 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
20439 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
20440 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
20441 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
20442 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
20443 libm_alias_float.
20444 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
20445 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
20446 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
20447 * sysdeps/ia64/fpu/w_lgammaf_main.c
20448 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
20449 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
20450
20451 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20452 Alexandre Oliva <aoliva@redhat.com>
20453
20454 [BZ #17750]
20455 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
20456 * localedata/fr_CA.UTF-8.in: New file with test data for backward
20457 accents sorting.
20458 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
20459 sorting.
20460 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
20461 * localedata/locales/de_DE (LC_COLLATE): Likewise.
20462 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
20463 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
20464 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
20465 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
20466 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
20467 instead of “ifdef DIACRIT_BACKWARD”.
20468
20469 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20470
20471 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
20472 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
20473 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
20474 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
20475 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
20476 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
20477 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
20478 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
20479 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
20480 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
20481 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
20482 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
20483 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
20484 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
20485 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
20486 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20487 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
20488 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
20489 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20490 ($(have-as-vis3) == yes): Remove conditional.
20491 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
20492 Likewise.
20493 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
20494 file.
20495 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
20496 file.
20497 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
20498 file.
20499 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
20500 file.
20501 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
20502 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
20503 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
20504 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
20505 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
20506 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
20507 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
20508 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
20509
20510 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20511
20512 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
20513 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
20514 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
20515 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
20516 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
20517 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
20518 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
20519 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
20520 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
20521 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
20522 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
20523 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
20524 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
20525 libm_alias_double_r.
20526 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
20527 (log): Likewise.
20528 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
20529 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
20530 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
20531 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
20532 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
20533 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
20534 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
20535 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
20536 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
20537 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
20538 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
20539 libm_alias_double.
20540 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
20541 (cos): Likewise.
20542 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
20543 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
20544 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
20545 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
20546 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
20547 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
20548 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
20549 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
20550 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
20551 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
20552 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
20553 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
20554 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
20555 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
20556 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
20557 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
20558 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
20559 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
20560 libm_alias_double.
20561 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
20562 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
20563 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
20564 * sysdeps/ia64/fpu/w_lgamma_main.c
20565 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
20566 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
20567
20568 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
20569
20570 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
20571 address of $global$ into %dp register earlier. Use pc-relative
20572 instruction sequence for PIC case.
20573
20574 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20575
20576 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
20577 (asinhf): Define using libm_alias_float.
20578 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
20579 (atanf): Define using libm_alias_float.
20580 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
20581 (cbrtf): Define using libm_alias_float.
20582 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
20583 (ceilf): Define using libm_alias_float.
20584 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20585 (copysignf): Define using libm_alias_float.
20586 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
20587 (expm1f): Define using libm_alias_float.
20588 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
20589 (fabsf): Define using libm_alias_float.
20590 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
20591 (floorf): Define using libm_alias_float.
20592 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20593 (fmaxf): Define using libm_alias_float.
20594 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
20595 (fminf): Define using libm_alias_float.
20596 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
20597 (frexpf): Define using libm_alias_float.
20598 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20599 (llrintf): Define using libm_alias_float.
20600 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
20601 (logbf): Define using libm_alias_float.
20602 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20603 (lrintf): Define using libm_alias_float.
20604 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
20605 (nearbyintf): Define using libm_alias_float.
20606 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
20607 (remquof): Define using libm_alias_float.
20608 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
20609 (rintf): Define using libm_alias_float.
20610 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
20611 (truncf): Define using libm_alias_float.
20612 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
20613 <libm-alias-float.h>.
20614 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20615 if [SHARED].
20616 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
20617 <libm-alias-float.h>.
20618 (expf): Define using libm_alias_float, or libm_alias_float_other
20619 if [SHARED].
20620 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
20621 <libm-alias-float.h>.
20622 (log2f): Define using libm_alias_float, or libm_alias_float_other
20623 if [SHARED].
20624 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
20625 <libm-alias-float.h>.
20626 (logf): Define using libm_alias_float, or libm_alias_float_other
20627 if [SHARED].
20628 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
20629 <libm-alias-float.h>.
20630 (powf): Define using libm_alias_float, or libm_alias_float_other
20631 if [SHARED].
20632 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
20633 <libm-alias-float.h>.
20634 (cosf): Define using libm_alias_float.
20635 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
20636 <libm-alias-float.h>.
20637 (sincosf): Define using libm_alias_float.
20638 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
20639 <libm-alias-float.h>.
20640 (sinf): Define using libm_alias_float.
20641 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20642 (fmaxf): Define using libm_alias_float.
20643 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
20644 (fminf): Define using libm_alias_float.
20645 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20646 <libm-alias-float.h>.
20647 (fmaf): Define using libm_alias_float.
20648
20649 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
20650 (asinh): Define using libm_alias_double.
20651 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
20652 (atan): Define using libm_alias_double.
20653 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
20654 (cbrt): Define using libm_alias_double.
20655 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
20656 (ceil): Define using libm_alias_double.
20657 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
20658 (copysign): Define using libm_alias_double.
20659 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
20660 (expm1): Define using libm_alias_double.
20661 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
20662 (fabs): Define using libm_alias_double.
20663 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
20664 (fdim): Define using libm_alias_double.
20665 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
20666 (floor): Define using libm_alias_double.
20667 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
20668 (fmax): Define using libm_alias_double.
20669 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
20670 (fmin): Define using libm_alias_double.
20671 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
20672 (frexp): Define using libm_alias_double.
20673 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
20674 (llrint): Define using libm_alias_double.
20675 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
20676 (logb): Define using libm_alias_double.
20677 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
20678 (lrint): Define using libm_alias_double.
20679 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
20680 (nearbyint): Define using libm_alias_double.
20681 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
20682 (remquo): Define using libm_alias_double.
20683 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
20684 (rint): Define using libm_alias_double.
20685 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
20686 (trunc): Define using libm_alias_double.
20687 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
20688 (fmax): Define using libm_alias_double.
20689 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
20690 (fmin): Define using libm_alias_double.
20691 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
20692 (fma): Define using libm_alias_double.
20693
20694 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
20695
20696 [BZ #22370]
20697 * elf/dl-hwcaps.c (ROUND): Removed.
20698 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
20699 and ELF_NOTE_NEXT_OFFSET.
20700 * elf/dl-load.c (ROUND): Removed.
20701 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20702 * elf/readelflib.c (ROUND): Removed.
20703 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20704 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
20705 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
20706 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
20707
20708 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20709
20710 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20711 [!__fmaf] (fmaf): Define using libm_alias_float.
20712
20713 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
20714 [!__fma] (fma): Define using libm_alias_double.
20715 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
20716
20717 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20718
20719 [BZ #22336]
20720 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
20721 and implement the collation rules for cs from CLDR on top of that.
20722 * Makefile: Add cs_CZ.UTF-8 to test-input.
20723 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
20724
20725 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
20726
20727 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
20728
20729 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20730 Icarus Sparry <icarus.w.sparry@intel.com>
20731
20732 * benchtests/Makefile:Add BENCHSET to allow subsets of
20733 benchmarks to be run.
20734 * benchtests/README: Add documentation for: Running subsets of
20735 benchmarks.
20736
20737 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20738
20739 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
20740 range of tests names.
20741
20742 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
20743 result from property and remove "max", min" and "mean" from
20744 required properties based on benchtests/bench-skeleton.c.
20745
20746 2017-11-28 Florian Weimer <fweimer@redhat.com>
20747
20748 [BZ #20826]
20749 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
20750 due to Internet requirement.
20751 * posix/Makefile (tests): Remove tst-getaddrinfo4,
20752 tst-getaddrinfo5.
20753 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
20754
20755 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20756
20757 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20758 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
20759 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20760 (sysdep_routines): Add memset-ultra1.
20761 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
20762 file.
20763 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
20764 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
20765 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
20766 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
20767 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
20768 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
20769 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
20770 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20771
20772 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
20773 file.
20774 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
20775 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
20776 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
20777 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
20778 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
20779 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
20780 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
20781 macro.
20782 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20783 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
20784 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20785 (sysdep_routines): Add memcpy-ultra1.
20786 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
20787 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
20788
20789 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20790
20791 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
20792 (cfloat_versions): Take function argument without trailing 'f'.
20793 Call libm_alias_float_other.
20794 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
20795 * sysdeps/alpha/fpu/cargf.c: Likewise.
20796 * sysdeps/alpha/fpu/cimagf.c: Likewise.
20797 * sysdeps/alpha/fpu/conjf.c: Likewise.
20798 * sysdeps/alpha/fpu/crealf.c: Likewise.
20799 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
20800 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
20801 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
20802 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
20803 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
20804 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
20805 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
20806 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
20807 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
20808 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
20809 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
20810 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
20811 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
20812 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
20813 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
20814 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
20815 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
20816 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
20817 (clog10f): Use libm_alias_float_other.
20818 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20819 (ceilf): Define using libm_alias_float.
20820 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
20821 (copysignf): Define using libm_alias_float.
20822 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20823 (fabsf): Define using libm_alias_float.
20824 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
20825 (floorf): Define using libm_alias_float.
20826 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
20827 (fmaxf): Define using libm_alias_float.
20828 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
20829 (fminf): Define using libm_alias_float.
20830 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20831 (lrintf): Define using libm_alias_float.
20832 (llrintf): Likewise.
20833 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20834 (lroundf): Define using libm_alias_float.
20835 (llroundf): Likewise.
20836 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
20837 (rintf): Define using libm_alias_float.
20838 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
20839 (truncf): Define using libm_alias_float.
20840
20841 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20842 (ceilf): Define using libm_alias_float.
20843 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
20844 (floorf): Define using libm_alias_float.
20845 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20846 (fmaf): Define using libm_alias_float.
20847 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
20848 (fmaxf): Define using libm_alias_float.
20849 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
20850 (fminf): Define using libm_alias_float.
20851 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
20852 (llrintf): Define using libm_alias_float.
20853 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
20854 (llroundf): Define using libm_alias_float.
20855 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20856 (lrintf): Define using libm_alias_float.
20857 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20858 (lroundf): Define using libm_alias_float.
20859 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
20860 <libm-alias-float.h>.
20861 (nearbyintf): Define using libm_alias_float.
20862 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
20863 (rintf): Define using libm_alias_float.
20864 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
20865 (roundf): Define using libm_alias_float.
20866 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
20867 (truncf): Define using libm_alias_float.
20868
20869 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
20870 (ceil): Define using libm_alias_double.
20871 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
20872 (copysign): Define using libm_alias_double.
20873 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
20874 (fabs): Define using libm_alias_double.
20875 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
20876 (floor): Define using libm_alias_double.
20877 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
20878 (fmax): Define using libm_alias_double.
20879 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
20880 (fmin): Define using libm_alias_double.
20881 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
20882 (lrint): Define using libm_alias_double.
20883 (llrint): Likewise.
20884 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
20885 (lround): Define using libm_alias_double.
20886 (llround): Likewise.
20887 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
20888 (rint): Define using libm_alias_double.
20889 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
20890 (trunc): Define using libm_alias_double.
20891
20892 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
20893 (libm_alias_double_r): Add semicolon after weak_alias call.
20894
20895 2017-11-27 Joseph Myers <joseph@codesourcery.com>
20896
20897 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
20898 (ceil): Define using libm_alias_double.
20899 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
20900 (floor): Define using libm_alias_double.
20901 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
20902 (fma): Define using libm_alias_double.
20903 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
20904 (fmax): Define using libm_alias_double.
20905 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
20906 (fmin): Define using libm_alias_double.
20907 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
20908 (llrint): Define using libm_alias_double.
20909 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
20910 (llround): Define using libm_alias_double.
20911 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
20912 (lrint): Define using libm_alias_double.
20913 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
20914 (lround): Define using libm_alias_double.
20915 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
20916 (nearbyint): Define using libm_alias_double.
20917 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
20918 (rint): Define using libm_alias_double.
20919 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
20920 (round): Define using libm_alias_double.
20921 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
20922 (trunc): Define using libm_alias_double.
20923
20924 2017-11-27 Florian Weimer <fweimer@redhat.com>
20925
20926 * sysdeps/unix/sysv/linux/mlock2.c: New file.
20927 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
20928 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
20929 (tests): Add tst-mlock2.
20930 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
20931 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
20932 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
20933 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
20934 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
20935 for mlock. Document mlock2.
20936
20937 2017-11-27 Joseph Myers <joseph@codesourcery.com>
20938
20939 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
20940 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
20941 Likewise.
20942 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
20943 Likewise.
20944 * sysdeps/x86/Makeconfig: New file.
20945 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
20946 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20947 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
20948 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20949 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20950 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20951 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
20952 Likewise.
20953 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20954 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20955 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20956 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20957 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20958 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20959 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20960 * manual/math.texi (Mathematics): Document support for _Float64x.
20961 * math/Versions (GLIBC_2.27): Add _Float64x functions.
20962 * stdlib/Versions (GLIBC_2.27): Likewise.
20963 * wcsmbs/Versions (GLIBC_2.27): Likewise.
20964 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
20965 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20966 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20967 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20968 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
20969 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20970 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
20971 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20972 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20973 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20974 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20975 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
20976 Likewise.
20977 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20978 Likewise.
20979 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20980 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20981 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20982 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20983 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20984 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20985 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20986 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20987 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20988 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20989 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20990 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20991 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
20992 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20993
20994 2017-11-27 Andreas Schwab <schwab@suse.de>
20995
20996 * elf/Makefile (dl-routines): Add dl-sort-maps.
20997 * elf/dl-sort-maps.c: New file.
20998 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
20999 (_dl_sort_maps): Declare.
21000 * elf/dl-fini.c (_dl_sort_fini): Remove.
21001 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21002 * elf/dl-close.c (_dl_close_worker): Likewise.
21003 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21004 open-coding it.
21005 * elf/dl-open.c (dl_open_worker): Likewise.
21006
21007 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21008
21009 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21010 using libm_alias_float128.
21011 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21012 Likewise.
21013 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21014 Likewise.
21015 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21016 (setpayloadsigf128): Likewise.
21017 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21018 Likewise.
21019 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21020 Likewise.
21021
21022 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21023 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21024 -mfloat128 to CFLAGS.
21025 ($(foreach
21026 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21027 Likewise.
21028 (CFLAGS-libm-test-support-float64x.c): New variable.
21029 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21030 $(f128-loader-link) to gnulib-tests.
21031
21032 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21033 (libm_alias_float128_other_r): If
21034 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21035 alias.
21036 (libm_alias_float128_r): Add semicolon after weak_alias call.
21037 * sysdeps/generic/libm-alias-ldouble.h
21038 (libm_alias_ldouble_other_r_f128): New macro.
21039 (libm_alias_ldouble_other_r_f64x): Likewise.
21040 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21041 and libm_alias_ldouble_other_r_f64x.
21042 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21043 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21044 (libm_alias_ldouble_other_r_f128): New macro.
21045 (libm_alias_ldouble_other_r_f64x): Likewise.
21046 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21047 and libm_alias_ldouble_other_r_f64x.
21048
21049 * stdlib/strfroml.c: Always include <stdlib.h>.
21050 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21051 undefine as macro and define as weak alias.
21052 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21053 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21054 <stdlib.h>.
21055 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21056 Define and later undefine as macro and define as weak alias.
21057
21058 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21059 Define and later undefine as macro. Define as weak alias if
21060 [!USE_WIDE_CHAR].
21061 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21062 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21063 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21064 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21065 Define and later undefine as macro. Define as weak alias if
21066 [!USE_WIDE_CHAR].
21067 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21068 Define and later undefine as macro. Define as weak alias if
21069 [USE_WIDE_CHAR].
21070 * sysdeps/ieee754/float128/strtof128_l.c
21071 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21072 Define and later undefine as macro. Define as weak alias if
21073 [!USE_WIDE_CHAR].
21074 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21075 Define and later undefine as macro. Define as weak alias if
21076 [USE_WIDE_CHAR].
21077 * sysdeps/ieee754/ldbl-128/strtold_l.c
21078 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21079 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21080 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21081 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21082 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21083 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21084 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21085 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21086 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21087 * sysdeps/ieee754/ldbl-96/strtold_l.c
21088 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21089 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21090 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21091 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21092
21093 * math/test-float64x.h: New file.
21094 * math/Makefile (type-float64x-yes): New variable.
21095 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21096
21097 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21098 function-like macro.
21099 (min_of_type_): Likewise.
21100 (min_of_type_l): Likewise.
21101 (min_of_type_f128): Likewise.
21102 (min_of_type): Pass () as last argument of __MATH_TG.
21103
21104 * stdlib/tst-strtod-round-skeleton.c
21105 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21106 headers.
21107
21108 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21109 for combinations of long double with _Float64 and _Float64x.
21110
21111 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21112 (__DECL_SIMD_cosf32): Likewise.
21113 (__DECL_SIMD_cosf64): Likewise.
21114 (__DECL_SIMD_cosf32x): Likewise.
21115 (__DECL_SIMD_cosf64x): Likewise.
21116 (__DECL_SIMD_cosf128x): Likewise.
21117 (__DECL_SIMD_sinf16): Likewise.
21118 (__DECL_SIMD_sinf32): Likewise.
21119 (__DECL_SIMD_sinf64): Likewise.
21120 (__DECL_SIMD_sinf32x): Likewise.
21121 (__DECL_SIMD_sinf64x): Likewise.
21122 (__DECL_SIMD_sinf128x): Likewise.
21123 (__DECL_SIMD_sincosf16): Likewise.
21124 (__DECL_SIMD_sincosf32): Likewise.
21125 (__DECL_SIMD_sincosf64): Likewise.
21126 (__DECL_SIMD_sincosf32x): Likewise.
21127 (__DECL_SIMD_sincosf64x): Likewise.
21128 (__DECL_SIMD_sincosf128x): Likewise.
21129 (__DECL_SIMD_logf16): Likewise.
21130 (__DECL_SIMD_logf32): Likewise.
21131 (__DECL_SIMD_logf64): Likewise.
21132 (__DECL_SIMD_logf32x): Likewise.
21133 (__DECL_SIMD_logf64x): Likewise.
21134 (__DECL_SIMD_logf128x): Likewise.
21135 (__DECL_SIMD_expf16): Likewise.
21136 (__DECL_SIMD_expf32): Likewise.
21137 (__DECL_SIMD_expf64): Likewise.
21138 (__DECL_SIMD_expf32x): Likewise.
21139 (__DECL_SIMD_expf64x): Likewise.
21140 (__DECL_SIMD_expf128x): Likewise.
21141 (__DECL_SIMD_powf16): Likewise.
21142 (__DECL_SIMD_powf32): Likewise.
21143 (__DECL_SIMD_powf64): Likewise.
21144 (__DECL_SIMD_powf32x): Likewise.
21145 (__DECL_SIMD_powf64x): Likewise.
21146 (__DECL_SIMD_powf128x): Likewise.
21147
21148 * stdlib/Versions (libc): Move entries for wcstof128 and
21149 wcstof128_l to ....
21150 * wcsmbs/Versions (libc): ... here.
21151 Include <float128-abi.h>.
21152
21153 2017-11-24 Florian Weimer <fweimer@redhat.com>
21154
21155 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21156 bits/mman-shared.h.
21157 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21158 <bits/mman-shared.h>.
21159 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21160 to ...
21161 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21162 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21163 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21164 <bits/mman-shared.h>.
21165
21166 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21167
21168 [BZ #22457]
21169 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21170 posix_memalign/free.
21171 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21172
21173 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21174
21175 [BZ #22469]
21176 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21177 and implement the collation rules for pl from CLDR on top of that.
21178 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21179 of locales to be built for testing.
21180 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21181
21182 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21183
21184 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21185 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21186 libm_alias_ldouble_other.
21187 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21188 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21189 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21190 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21191 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21192 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21193 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21194 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21195 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21196 libm_alias_ldouble_r.
21197 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21198 libm_alias_ldouble_other.
21199 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21200 (log10l): Likewise.
21201 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21202 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21203 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21204 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21205 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21206 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21207 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21208 (atan2l): Likewise.
21209 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21210 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21211 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21212 libm_alias_ldouble.
21213 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21214 (cosl): Likewise.
21215 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21216 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21217 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21218 (expl): Likewise.
21219 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21220 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21221 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21222 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21223 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21224 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21225 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21226 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21227 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21228 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21229 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21230 libm_alias_ldouble.
21231 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21232 libm_alias_ldouble_other.
21233 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21234 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21235 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21236 libm_alias_ldouble.
21237 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21238 libm_alias_ldouble_other.
21239 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21240 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21241 * sysdeps/ia64/fpu/w_lgammal_main.c
21242 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21243 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21244
21245 2017-11-23 Florian Weimer <fweimer@redhat.com>
21246
21247 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21248 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21249 alike. Remove freeres marker.
21250 * malloc/arena.c (arena_thread_freeres): Call
21251 tcache_thread_shutdown.
21252
21253 2017-11-23 Florian Weimer <fweimer@redhat.com>
21254
21255 [BZ #22459]
21256 Export nscd hash function as __nss_hash.
21257 * include/nss.h (__nss_hash): Declare.
21258 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21259 symbol.
21260 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21261 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21262 of __nscd_hash.
21263 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21264 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21265 * nss/Makefiles (routines): Add nss_hash.
21266 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21267 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21268 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21269 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21270
21271 2017-11-23 Florian Weimer <fweimer@redhat.com>
21272
21273 [BZ #22478]
21274 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21275 Return error code, not -1.
21276 * signal/tst-sigwait-eintr.c: New file.
21277 * signal/Makefile (tests): Add tst-sigwait-eintr.
21278
21279 2017-11-23 Florian Weimer <fweimer@redhat.com>
21280
21281 Linux: Add memfd_create system call wrapper
21282 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21283 tst-memfd_create.
21284 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
21285 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
21286 [__USE_GNU] (memfd_create): Declare.
21287 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
21288 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
21289 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
21290 * sysdeps/unix/sysv/linux/**.abilist: Update.
21291 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21292
21293 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21294
21295 * localedata/gen-locale.sh: Fix typo in variable name.
21296
21297 * resolv/res_debug.c (p_secstodate): Condition definition on
21298 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21299 directly as __p_secstodate, and as a compat symbol. Do not use
21300 libresolv_hidden_def.
21301 * resolv/resolv.h (p_secstodate): Remove macro and function
21302 declaration.
21303 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21304 using p_secstodate.
21305 * include/resolv.h (__p_secstodate): Do not use
21306 libresolv_hidden_proto.
21307 * resolv/Makefile (tests): Move tst-p_secstodate to ....
21308 (tests-internal): ... here.
21309 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
21310 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
21311 and declare and use __p_secstodate and use compat_symbol_reference
21312 in that case.
21313 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
21314 implementation returning 77.
21315
21316 [BZ #22463]
21317 * resolv/res_debug.c: Include <libc-diag.h>.
21318 (p_secstodate): Assert time_t at least as wide as u_long. On
21319 overflow, use integer seconds since the epoch as output, or use
21320 "<overflow>" as output and set errno to EOVERFLOW if integer
21321 seconds since the epoch would be 14 or more characters.
21322 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
21323 for sprintf call.
21324 * resolv/tst-p_secstodate.c: New file.
21325 * resolv/Makefile (tests): Add tst-p_secstodate.
21326 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
21327
21328 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
21329 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
21330 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
21331
21332 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
21333
21334 * posix/regcomp.c (init_word_char): Add comments.
21335
21336 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21337
21338 [BZ #22447]
21339 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
21340 strlen to compute length of ut_user and set trailing NUL byte of
21341 result explicitly.
21342
21343 2017-11-21 Mike FABIAN <mfabian@redhat.com>
21344
21345 [BZ #15537]
21346 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
21347 using “copy "iso14651_t1"” and then implementing the
21348 collation rules for lv from CLDR on top of that.
21349 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
21350 of locales to be built for testing.
21351 * lv_LV.UTF-8.in: New file with test data to test the Latvian
21352 sorting.
21353
21354 2017-11-21 Joseph Myers <joseph@codesourcery.com>
21355
21356 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21357 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
21358 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
21359 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
21360 [__USE_MISC] (MADV_HWPOISON): New macro.
21361 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
21362
21363 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21364
21365 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
21366 -Wmissing-braces on GCC 4.9.
21367
21368 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21369
21370 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
21371 * sysdeps/s390/s390-32/start.S (_start): Likewise
21372 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
21373 (thread_start): Likewise.
21374 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
21375 (thread_start): Likewise.
21376 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
21377 (__makecontext_ret): Likewise.
21378 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
21379 (__makecontext_ret): Likewise.
21380
21381 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21382
21383 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
21384 __wcschrnul): Remove attribute_hidden.
21385
21386 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
21387
21388 regex: don't assume uint64_t or uint32_t
21389 This avoids -Werror=overflow errors for 32-bit systems in
21390 the 64-bit case. Problem reported by Joseph Myers in:
21391 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
21392 Also, when this code is used in Gnulib it ports to platforms
21393 that lack uint64_t and uint32_t. The C standard doesn't guarantee
21394 them, and on some 32-bit compilers there is no uint64_t.
21395 Problem reported by Gianluigi Tiesi in:
21396 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
21397 * posix/regcomp.c (init_word_char): Don't assume that the types
21398 uint64_t and uint32_t exist. Adapted from Gnulib patch
21399 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
21400 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
21401
21402 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
21403
21404 * sysdeps/aarch64/memset-reg.h: New file.
21405 * sysdeps/aarch64/memset.S: Use it.
21406 (__memset): Rename to MEMSET macro.
21407 [ZVA_MACRO]: Use zva_macro.
21408 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21409 Add memset_generic and memset_falkor.
21410 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21411 (__libc_ifunc_impl_list): Add memset ifuncs.
21412 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
21413 local variable zva_size.
21414 * sysdeps/aarch64/multiarch/memset.c: New file.
21415 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
21416 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
21417 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
21418 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
21419 (DCZID_DZP_MASK): New macro.
21420 (DCZID_BS_MASK): Likewise.
21421 (init_cpu_features): Read and set zva_size.
21422 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
21423 (struct cpu_features): New member zva_size.
21424
21425 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
21426 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
21427 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
21428
21429 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
21430 backwards. Fix timing computation.
21431 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
21432 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
21433 on memset by N at a time. Fix timing computation.
21434
21435 2017-11-20 Florian Weimer <fweimer@redhat.com>
21436
21437 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
21438 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
21439
21440 2017-11-19 Florian Weimer <fweimer@redhat.com>
21441
21442 manual: Document mprotect
21443 * manual/memory.texi (Memory Protection): New section.
21444 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
21445 documentation of PROT_* flags and reference the Memory Protection
21446 section instead.
21447
21448 2017-11-19 Florian Weimer <fweimer@redhat.com>
21449
21450 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
21451 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
21452 (Scatter-Gather): ... to here. Remove misleading comment.
21453
21454 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
21455
21456 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
21457 style.
21458
21459 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
21460 when /proc/<pid>/setgroups does not exist.
21461
21462 2017-11-18 Florian Weimer <fweimer@redhat.com>
21463
21464 * sysdeps/unix/sysv/linux/tst-ttyname.c
21465 (become_root_in_mount_ns): Remove.
21466 (do_in_chroot_1): Call support_enter_mount_namespace.
21467 (do_in_chroot_2): Likewise.
21468 (do_test): Call support_become_root early.
21469
21470 2017-11-18 Florian Weimer <fweimer@redhat.com>
21471
21472 * support/namespace.h (support_enter_mount_namespace): Declare.
21473 * support/support_enter_mount_namespace.c: New file.
21474 * support/Makefile (libsupport-routines): Add
21475 support_enter_mount_namespace.
21476
21477 2017-11-18 Florian Weimer <fweimer@redhat.com>
21478
21479 * support/temp_file.c (support_create_temp_directory): Use
21480 test_dir and do not rely on the presence of the XXXXXX suffix.
21481 * support/temp_file.h (support_create_temp_directory): Update
21482 comment.
21483 * support/tst-xreadlink.c (do_test): Adjust.
21484 * support/support_chroot.c (support_chroot_create): Likewise.
21485
21486 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21487
21488 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
21489 macro.
21490 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
21491 htm-no-suspend.
21492
21493 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21494
21495 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21496 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21497 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21498 (ceill): Define using libm_alias_ldouble.
21499 * sysdeps/x86_64/fpu/s_copysignl.S: Include
21500 <libm-alias-ldouble.h>.
21501 (copysignl): Define using libm_alias_ldouble.
21502 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21503 (fabsl): Define using libm_alias_ldouble.
21504 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21505 (floorl): Define using libm_alias_ldouble.
21506 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21507 (fmaxl): Define using libm_alias_ldouble.
21508 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21509 (fminl): Define using libm_alias_ldouble.
21510 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21511 (llrintl): Define using libm_alias_ldouble.
21512 (lrintl): Likewise.
21513 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
21514 <libm-alias-ldouble.h>.
21515 (nearbyintl): Define using libm_alias_ldouble.
21516 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21517 (truncl): Define using libm_alias_ldouble.
21518 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
21519 <libm-alias-ldouble.h>.
21520 (lrintl): Define using libm_alias_ldouble.
21521
21522 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21523 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21524 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
21525 (asinhl): Define using libm_alias_ldouble.
21526 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
21527 (atanl): Define using libm_alias_ldouble.
21528 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
21529 (cbrtl): Define using libm_alias_ldouble.
21530 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21531 (ceill): Define using libm_alias_ldouble.
21532 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
21533 (copysignl): Define using libm_alias_ldouble.
21534 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21535 (fabsl): Define using libm_alias_ldouble.
21536 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21537 (floorl): Define using libm_alias_ldouble.
21538 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21539 (fmaxl): Define using libm_alias_ldouble.
21540 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21541 (fminl): Define using libm_alias_ldouble.
21542 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
21543 (frexpl): Define using libm_alias_ldouble.
21544 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21545 (llrintl): Define using libm_alias_ldouble.
21546 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
21547 (logbl): Define using libm_alias_ldouble.
21548 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
21549 (lrintl): Define using libm_alias_ldouble.
21550 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
21551 (nearbyintl): Define using libm_alias_ldouble.
21552 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
21553 (nextafterl): Define using libm_alias_ldouble.
21554 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
21555 (remquol): Define using libm_alias_ldouble.
21556 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
21557 (rintl): Define using libm_alias_ldouble.
21558 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21559 (truncl): Define using libm_alias_ldouble.
21560 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21561 (fmaxl): Define using libm_alias_ldouble.
21562 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21563 (fminl): Define using libm_alias_ldouble.
21564
21565 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
21566 to C syntax instead of availability and properties of types.
21567 * bits/floatn.h [!__ASSEMBLER]: Likewise.
21568 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
21569 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
21570 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
21571 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
21572 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
21573
21574 2017-11-17 Florian Weimer <fweimer@redhat.com>
21575
21576 support_become_root: Enable file creation in namespaces.
21577 * support/support_become_root.c (setup_mapping): New function.
21578 (support_become_root): Call it.
21579
21580 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21581
21582 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
21583 macro.
21584
21585 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21586
21587 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
21588 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
21589
21590 2017-11-16 Joseph Myers <joseph@codesourcery.com>
21591
21592 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
21593
21594 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21595 version to 4.14.
21596
21597 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
21598
21599 * INSTALL: Fix botched up regeneration.
21600
21601 * NEWS: Update sourceare link to https.
21602 * configure.ac: Likewise.
21603 * crypt/md5test-giant.c: Likewise.
21604 * dlfcn/bug-atexit1.c: Likewise.
21605 * dlfcn/bug-atexit2.c: Likewise.
21606 * localedata/README: Likewise.
21607 * malloc/tst-mallocfork.c: Likewise.
21608 * manual/install.texi: Likewise.
21609 * nptl/tst-pthread-getattr.c: Likewise.
21610 * stdio-common/tst-fgets.c: Likewise.
21611 * stdio-common/tst-fwrite.c: Likewise.
21612 * sunrpc/Makefile: Likewise.
21613 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
21614 * wcsmbs/tst-mbrtowc2.c: Likewise.
21615 * configure: Regenerate.
21616 * INSTALL: Regenerate.
21617
21618 2017-11-15 Martin Sebor <msebor@redhat.com>
21619
21620 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
21621 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
21622 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
21623
21624 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21625
21626 [BZ #22145]
21627 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
21628 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
21629
21630 [BZ #22145]
21631 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
21632 Defer is_pty check until end of the function.
21633 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21634
21635 [BZ #22145]
21636 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
21637 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
21638 (ttyname): Likewise.
21639 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
21640 (__ttyname_r): Likewise.
21641
21642 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
21643 int to bool.
21644
21645 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
21646
21647 * manual/terminal.texi (Is It a Terminal):
21648 Mention ENODEV for ttyname and ttyname_r.
21649
21650 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21651
21652 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
21653 constant and macro.
21654
21655 * sysdeps/unix/sysv/linux/bits/mman-linux.h
21656 [__USE_MISC] (MADV_WIPEONFORK): New macro.
21657 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21658 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21659 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
21660 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21661
21662 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21663
21664 * signal/sigrelse.c (sigrelse): Optimize implementation.
21665
21666 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
21667 (__sigpause): Rely on __sigsuspend to implement single thread
21668 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
21669
21670 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21671
21672 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
21673 kernel version to 4.14.
21674
21675 2017-11-15 Steve Ellcey <sellcey@cavium.com>
21676
21677 [BZ #22442]
21678 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
21679 Check if ifname is too long.
21680
21681 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21682
21683 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
21684
21685 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21686
21687 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
21688 was accidentally lost.
21689
21690 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21691
21692 * localedata/locales/az_IR: Add standard copyright header.
21693
21694 2017-11-15 Florian Weimer <fweimer@redhat.com>
21695
21696 [BZ #22439]
21697 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
21698 not just the top one. Output a new "subheaps" statistic.
21699
21700 2017-11-15 Florian Weimer <fweimer@redhat.com>
21701
21702 [BZ #22408]
21703 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
21704 under the per-arena lock.
21705 * malloc/Makefile (tests): Add tst-malloc_info.
21706 (tst-malloc_info): Link with libpthread.
21707 * malloc/tst-malloc_info.c: New file.
21708
21709 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21710
21711 [BZ #21660]
21712 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
21713 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
21714 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
21715 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
21716 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
21717 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
21718 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
21719 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
21720 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
21721 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
21722 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
21723 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
21724 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
21725 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
21726 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
21727 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
21728 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
21729 (__floating_type): Likewise.
21730 (__real_integer_type): Likewise.
21731 (__complex_integer_type): Likewise.
21732 (__expr_is_real): Likewise.
21733 (__tgmath_real_type_sub): Likewise.
21734 (__tgmath_real_type): Likewise.
21735 (__tgmath_complex_type_sub): Likewise.
21736 (__tgmath_complex_type): Likewise.
21737 (__TGMATH_F128): Likewise.
21738 (__TGMATH_CF128): Likewise.
21739 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
21740 new macros.
21741 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
21742 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
21743 Likewise.
21744 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
21745 Likewise.
21746 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
21747 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
21748 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
21749 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
21750 Likewise.
21751 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
21752 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
21753 Likewise.
21754 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
21755 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
21756 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
21757 Likewise.
21758 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
21759 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
21760 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
21761 (cimag): Likewise.
21762 (creal): Likewise.
21763
21764 2017-11-14 Joseph Myers <joseph@codesourcery.com>
21765
21766 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
21767 for stpncpy calls for GCC 8.
21768 (test_strncat): Disable -Wstringop-truncation warning for strncat
21769 calls for GCC 8. Disable -Wstringop-overflow= warning for one
21770 strncat call for GCC 7.
21771 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
21772 calls for GCC 8.
21773 (test_memcmp): Use memcpy instead of strncpy for calls not copying
21774 trailing NUL.
21775
21776 * string/bug-strncat1.c: Include <libc-diag.h>.
21777 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
21778
21779 2017-11-13 Claude Paroz <claude@2xlibre.net>
21780
21781 [BZ #22387]
21782 * localedata/locales/aa_DJ: Improved readibility by replacing
21783 <Uxxxx> sequences in the ASCII printable range by their ASCII
21784 character equivalents.
21785 * localedata/locales/aa_ER: Likewise.
21786 * localedata/locales/aa_ER@saaho: Likewise.
21787 * localedata/locales/aa_ET: Likewise.
21788 * localedata/locales/af_ZA: Likewise.
21789 * localedata/locales/agr_PE: Likewise.
21790 * localedata/locales/ak_GH: Likewise.
21791 * localedata/locales/am_ET: Likewise.
21792 * localedata/locales/anp_IN: Likewise.
21793 * localedata/locales/ar_AE: Likewise.
21794 * localedata/locales/ar_BH: Likewise.
21795 * localedata/locales/ar_DZ: Likewise.
21796 * localedata/locales/ar_EG: Likewise.
21797 * localedata/locales/ar_IN: Likewise.
21798 * localedata/locales/ar_IQ: Likewise.
21799 * localedata/locales/ar_JO: Likewise.
21800 * localedata/locales/ar_KW: Likewise.
21801 * localedata/locales/ar_LB: Likewise.
21802 * localedata/locales/ar_LY: Likewise.
21803 * localedata/locales/ar_MA: Likewise.
21804 * localedata/locales/ar_OM: Likewise.
21805 * localedata/locales/ar_QA: Likewise.
21806 * localedata/locales/ar_SA: Likewise.
21807 * localedata/locales/ar_SD: Likewise.
21808 * localedata/locales/ar_SS: Likewise.
21809 * localedata/locales/ar_SY: Likewise.
21810 * localedata/locales/ar_TN: Likewise.
21811 * localedata/locales/ar_YE: Likewise.
21812 * localedata/locales/as_IN: Likewise.
21813 * localedata/locales/ast_ES: Likewise.
21814 * localedata/locales/ayc_PE: Likewise.
21815 * localedata/locales/az_AZ: Likewise.
21816 * localedata/locales/az_IR: Likewise.
21817 * localedata/locales/be_BY: Likewise.
21818 * localedata/locales/be_BY@latin: Likewise.
21819 * localedata/locales/bem_ZM: Likewise.
21820 * localedata/locales/ber_DZ: Likewise.
21821 * localedata/locales/ber_MA: Likewise.
21822 * localedata/locales/bg_BG: Likewise.
21823 * localedata/locales/bhb_IN: Likewise.
21824 * localedata/locales/bho_IN: Likewise.
21825 * localedata/locales/bi_VU: Likewise.
21826 * localedata/locales/bn_BD: Likewise.
21827 * localedata/locales/bn_IN: Likewise.
21828 * localedata/locales/bo_CN: Likewise.
21829 * localedata/locales/bo_IN: Likewise.
21830 * localedata/locales/br_FR: Likewise.
21831 * localedata/locales/brx_IN: Likewise.
21832 * localedata/locales/bs_BA: Likewise.
21833 * localedata/locales/byn_ER: Likewise.
21834 * localedata/locales/ca_AD: Likewise.
21835 * localedata/locales/ca_ES: Likewise.
21836 * localedata/locales/ca_FR: Likewise.
21837 * localedata/locales/ca_IT: Likewise.
21838 * localedata/locales/ce_RU: Likewise.
21839 * localedata/locales/chr_US: Likewise.
21840 * localedata/locales/cmn_TW: Likewise.
21841 * localedata/locales/crh_UA: Likewise.
21842 * localedata/locales/cs_CZ: Likewise.
21843 * localedata/locales/csb_PL: Likewise.
21844 * localedata/locales/cv_RU: Likewise.
21845 * localedata/locales/cy_GB: Likewise.
21846 * localedata/locales/da_DK: Likewise.
21847 * localedata/locales/de_AT: Likewise.
21848 * localedata/locales/de_BE: Likewise.
21849 * localedata/locales/de_CH: Likewise.
21850 * localedata/locales/de_DE: Likewise.
21851 * localedata/locales/de_IT: Likewise.
21852 * localedata/locales/de_LI: Likewise.
21853 * localedata/locales/de_LU: Likewise.
21854 * localedata/locales/doi_IN: Likewise.
21855 * localedata/locales/dv_MV: Likewise.
21856 * localedata/locales/dz_BT: Likewise.
21857 * localedata/locales/el_CY: Likewise.
21858 * localedata/locales/el_GR: Likewise.
21859 * localedata/locales/en_AG: Likewise.
21860 * localedata/locales/en_AU: Likewise.
21861 * localedata/locales/en_BW: Likewise.
21862 * localedata/locales/en_CA: Likewise.
21863 * localedata/locales/en_DK: Likewise.
21864 * localedata/locales/en_GB: Likewise.
21865 * localedata/locales/en_HK: Likewise.
21866 * localedata/locales/en_IE: Likewise.
21867 * localedata/locales/en_IL: Likewise.
21868 * localedata/locales/en_IN: Likewise.
21869 * localedata/locales/en_NG: Likewise.
21870 * localedata/locales/en_NZ: Likewise.
21871 * localedata/locales/en_PH: Likewise.
21872 * localedata/locales/en_SG: Likewise.
21873 * localedata/locales/en_US: Likewise.
21874 * localedata/locales/en_ZA: Likewise.
21875 * localedata/locales/en_ZM: Likewise.
21876 * localedata/locales/en_ZW: Likewise.
21877 * localedata/locales/eo: Likewise.
21878 * localedata/locales/es_AR: Likewise.
21879 * localedata/locales/es_BO: Likewise.
21880 * localedata/locales/es_CL: Likewise.
21881 * localedata/locales/es_CO: Likewise.
21882 * localedata/locales/es_CR: Likewise.
21883 * localedata/locales/es_CU: Likewise.
21884 * localedata/locales/es_DO: Likewise.
21885 * localedata/locales/es_EC: Likewise.
21886 * localedata/locales/es_ES: Likewise.
21887 * localedata/locales/es_GT: Likewise.
21888 * localedata/locales/es_HN: Likewise.
21889 * localedata/locales/es_MX: Likewise.
21890 * localedata/locales/es_NI: Likewise.
21891 * localedata/locales/es_PA: Likewise.
21892 * localedata/locales/es_PE: Likewise.
21893 * localedata/locales/es_PR: Likewise.
21894 * localedata/locales/es_PY: Likewise.
21895 * localedata/locales/es_SV: Likewise.
21896 * localedata/locales/es_US: Likewise.
21897 * localedata/locales/es_UY: Likewise.
21898 * localedata/locales/es_VE: Likewise.
21899 * localedata/locales/et_EE: Likewise.
21900 * localedata/locales/eu_ES: Likewise.
21901 * localedata/locales/eu_ES@euro: Likewise.
21902 * localedata/locales/fa_IR: Likewise.
21903 * localedata/locales/ff_SN: Likewise.
21904 * localedata/locales/fi_FI: Likewise.
21905 * localedata/locales/fil_PH: Likewise.
21906 * localedata/locales/fo_FO: Likewise.
21907 * localedata/locales/fr_BE: Likewise.
21908 * localedata/locales/fr_CA: Likewise.
21909 * localedata/locales/fr_CH: Likewise.
21910 * localedata/locales/fr_FR: Likewise.
21911 * localedata/locales/fr_LU: Likewise.
21912 * localedata/locales/fur_IT: Likewise.
21913 * localedata/locales/fy_DE: Likewise.
21914 * localedata/locales/fy_NL: Likewise.
21915 * localedata/locales/ga_IE: Likewise.
21916 * localedata/locales/gd_GB: Likewise.
21917 * localedata/locales/gez_ER: Likewise.
21918 * localedata/locales/gez_ET: Likewise.
21919 * localedata/locales/gl_ES: Likewise.
21920 * localedata/locales/gu_IN: Likewise.
21921 * localedata/locales/gv_GB: Likewise.
21922 * localedata/locales/ha_NG: Likewise.
21923 * localedata/locales/hak_TW: Likewise.
21924 * localedata/locales/he_IL: Likewise.
21925 * localedata/locales/hi_IN: Likewise.
21926 * localedata/locales/hif_FJ: Likewise.
21927 * localedata/locales/hne_IN: Likewise.
21928 * localedata/locales/hr_HR: Likewise.
21929 * localedata/locales/hsb_DE: Likewise.
21930 * localedata/locales/ht_HT: Likewise.
21931 * localedata/locales/hu_HU: Likewise.
21932 * localedata/locales/hy_AM: Likewise.
21933 * localedata/locales/i18n: Likewise.
21934 * localedata/locales/ia_FR: Likewise.
21935 * localedata/locales/id_ID: Likewise.
21936 * localedata/locales/ig_NG: Likewise.
21937 * localedata/locales/ik_CA: Likewise.
21938 * localedata/locales/is_IS: Likewise.
21939 * localedata/locales/it_CH: Likewise.
21940 * localedata/locales/it_IT: Likewise.
21941 * localedata/locales/iu_CA: Likewise.
21942 * localedata/locales/ja_JP: Likewise.
21943 * localedata/locales/ka_GE: Likewise.
21944 * localedata/locales/kk_KZ: Likewise.
21945 * localedata/locales/kl_GL: Likewise.
21946 * localedata/locales/kn_IN: Likewise.
21947 * localedata/locales/ko_KR: Likewise.
21948 * localedata/locales/kok_IN: Likewise.
21949 * localedata/locales/ks_IN: Likewise.
21950 * localedata/locales/ks_IN@devanagari: Likewise.
21951 * localedata/locales/ku_TR: Likewise.
21952 * localedata/locales/kw_GB: Likewise.
21953 * localedata/locales/ky_KG: Likewise.
21954 * localedata/locales/lb_LU: Likewise.
21955 * localedata/locales/lg_UG: Likewise.
21956 * localedata/locales/li_BE: Likewise.
21957 * localedata/locales/li_NL: Likewise.
21958 * localedata/locales/lij_IT: Likewise.
21959 * localedata/locales/ln_CD: Likewise.
21960 * localedata/locales/lo_LA: Likewise.
21961 * localedata/locales/lt_LT: Likewise.
21962 * localedata/locales/lv_LV: Likewise.
21963 * localedata/locales/lzh_TW: Likewise.
21964 * localedata/locales/mag_IN: Likewise.
21965 * localedata/locales/mai_IN: Likewise.
21966 * localedata/locales/mg_MG: Likewise.
21967 * localedata/locales/mhr_RU: Likewise.
21968 * localedata/locales/mi_NZ: Likewise.
21969 * localedata/locales/mk_MK: Likewise.
21970 * localedata/locales/ml_IN: Likewise.
21971 * localedata/locales/mn_MN: Likewise.
21972 * localedata/locales/mni_IN: Likewise.
21973 * localedata/locales/mr_IN: Likewise.
21974 * localedata/locales/ms_MY: Likewise.
21975 * localedata/locales/mt_MT: Likewise.
21976 * localedata/locales/my_MM: Likewise.
21977 * localedata/locales/nan_TW: Likewise.
21978 * localedata/locales/nan_TW@latin: Likewise.
21979 * localedata/locales/nb_NO: Likewise.
21980 * localedata/locales/nds_DE: Likewise.
21981 * localedata/locales/nds_NL: Likewise.
21982 * localedata/locales/ne_NP: Likewise.
21983 * localedata/locales/nhn_MX: Likewise.
21984 * localedata/locales/niu_NU: Likewise.
21985 * localedata/locales/niu_NZ: Likewise.
21986 * localedata/locales/nl_AW: Likewise.
21987 * localedata/locales/nl_BE: Likewise.
21988 * localedata/locales/nl_NL: Likewise.
21989 * localedata/locales/nn_NO: Likewise.
21990 * localedata/locales/nr_ZA: Likewise.
21991 * localedata/locales/nso_ZA: Likewise.
21992 * localedata/locales/oc_FR: Likewise.
21993 * localedata/locales/om_ET: Likewise.
21994 * localedata/locales/om_KE: Likewise.
21995 * localedata/locales/or_IN: Likewise.
21996 * localedata/locales/os_RU: Likewise.
21997 * localedata/locales/pa_IN: Likewise.
21998 * localedata/locales/pa_PK: Likewise.
21999 * localedata/locales/pap_AW: Likewise.
22000 * localedata/locales/pap_CW: Likewise.
22001 * localedata/locales/pl_PL: Likewise.
22002 * localedata/locales/ps_AF: Likewise.
22003 * localedata/locales/pt_BR: Likewise.
22004 * localedata/locales/pt_PT: Likewise.
22005 * localedata/locales/quz_PE: Likewise.
22006 * localedata/locales/raj_IN: Likewise.
22007 * localedata/locales/ro_RO: Likewise.
22008 * localedata/locales/ru_RU: Likewise.
22009 * localedata/locales/ru_UA: Likewise.
22010 * localedata/locales/rw_RW: Likewise.
22011 * localedata/locales/sa_IN: Likewise.
22012 * localedata/locales/sat_IN: Likewise.
22013 * localedata/locales/sc_IT: Likewise.
22014 * localedata/locales/sd_IN: Likewise.
22015 * localedata/locales/sd_IN@devanagari: Likewise.
22016 * localedata/locales/se_NO: Likewise.
22017 * localedata/locales/sgs_LT: Likewise.
22018 * localedata/locales/shs_CA: Likewise.
22019 * localedata/locales/si_LK: Likewise.
22020 * localedata/locales/sid_ET: Likewise.
22021 * localedata/locales/sk_SK: Likewise.
22022 * localedata/locales/sl_SI: Likewise.
22023 * localedata/locales/sm_WS: Likewise.
22024 * localedata/locales/so_DJ: Likewise.
22025 * localedata/locales/so_ET: Likewise.
22026 * localedata/locales/so_KE: Likewise.
22027 * localedata/locales/so_SO: Likewise.
22028 * localedata/locales/sq_AL: Likewise.
22029 * localedata/locales/sq_MK: Likewise.
22030 * localedata/locales/sr_ME: Likewise.
22031 * localedata/locales/sr_RS: Likewise.
22032 * localedata/locales/sr_RS@latin: Likewise.
22033 * localedata/locales/ss_ZA: Likewise.
22034 * localedata/locales/st_ZA: Likewise.
22035 * localedata/locales/sv_FI: Likewise.
22036 * localedata/locales/sv_SE: Likewise.
22037 * localedata/locales/sw_KE: Likewise.
22038 * localedata/locales/sw_TZ: Likewise.
22039 * localedata/locales/szl_PL: Likewise.
22040 * localedata/locales/ta_IN: Likewise.
22041 * localedata/locales/ta_LK: Likewise.
22042 * localedata/locales/tcy_IN: Likewise.
22043 * localedata/locales/te_IN: Likewise.
22044 * localedata/locales/tg_TJ: Likewise.
22045 * localedata/locales/th_TH: Likewise.
22046 * localedata/locales/the_NP: Likewise.
22047 * localedata/locales/ti_ER: Likewise.
22048 * localedata/locales/ti_ET: Likewise.
22049 * localedata/locales/tig_ER: Likewise.
22050 * localedata/locales/tk_TM: Likewise.
22051 * localedata/locales/tl_PH: Likewise.
22052 * localedata/locales/tn_ZA: Likewise.
22053 * localedata/locales/to_TO: Likewise.
22054 * localedata/locales/tpi_PG: Likewise.
22055 * localedata/locales/tr_CY: Likewise.
22056 * localedata/locales/tr_TR: Likewise.
22057 * localedata/locales/ts_ZA: Likewise.
22058 * localedata/locales/tt_RU: Likewise.
22059 * localedata/locales/tt_RU@iqtelif: Likewise.
22060 * localedata/locales/ug_CN: Likewise.
22061 * localedata/locales/uk_UA: Likewise.
22062 * localedata/locales/unm_US: Likewise.
22063 * localedata/locales/ur_IN: Likewise.
22064 * localedata/locales/ur_PK: Likewise.
22065 * localedata/locales/uz_UZ: Likewise.
22066 * localedata/locales/uz_UZ@cyrillic: Likewise.
22067 * localedata/locales/ve_ZA: Likewise.
22068 * localedata/locales/vi_VN: Likewise.
22069 * localedata/locales/wa_BE: Likewise.
22070 * localedata/locales/wae_CH: Likewise.
22071 * localedata/locales/wal_ET: Likewise.
22072 * localedata/locales/wo_SN: Likewise.
22073 * localedata/locales/xh_ZA: Likewise.
22074 * localedata/locales/yi_US: Likewise.
22075 * localedata/locales/yo_NG: Likewise.
22076 * localedata/locales/yue_HK: Likewise.
22077 * localedata/locales/yuw_PG: Likewise.
22078 * localedata/locales/zh_CN: Likewise.
22079 * localedata/locales/zh_HK: Likewise.
22080 * localedata/locales/zh_SG: Likewise.
22081 * localedata/locales/zh_TW: Likewise.
22082 * localedata/locales/zu_ZA: Likewise.
22083
22084 2017-11-13 Florian Weimer <fweimer@redhat.com>
22085
22086 * support/next_to_fault.h, support/next_to_fault.c: New files.
22087 * support/Makefile (libsupport-routines): Add next_to_fault.
22088 * resolv/tst-inet_pton.c (struct next_to_fault)
22089 (next_to_fault_allocate, next_to_fault_free): Remove.
22090 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22091
22092 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22093
22094 * elf/dl-support.c: Include <dl-procruntime.c>.
22095 * include/link.h: Include <link_map.h>.
22096 * sysdeps/generic/dl-procruntime.c: New file.
22097 * sysdeps/generic/link_map.h: Likewise.
22098 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22099 the writable ld.so namespace.
22100
22101 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22102
22103 timezone: pacify GCC -Wstringop-truncation
22104 Problem reported by Martin Sebor in:
22105 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22106 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22107
22108 2017-11-12 Florian Weimer <fweimer@redhat.com>
22109
22110 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22111 tst-xreadlink.
22112 (tests): Add tst-xreadlink.
22113 * support/support.h (xstrndup): Declare.
22114 * support/xunistd.h (xunlink, xreadlink): Declare.
22115 * support/temp_file.h (support_create_temp_directory): Declare.
22116 * support/temp_file.c (support_create_temp_directory): New function.
22117 * support/support_chroot.c (support_chroot_create): Use it.
22118 * support/xreadlink.c: New file.
22119 * support/xstrndup.c: Likewise.
22120 * support/xunlink.c: Likewise.
22121 * support/tst-xreadlink.c: Likewise.
22122
22123 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22124
22125 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22126
22127 2017-11-11 Florian Weimer <fweimer@redhat.com>
22128
22129 [BZ #22409]
22130 [BZ #22412]
22131 * resolv/res_comp.c (printable_string, binary_hnok)
22132 (binary_leading_dash): New functions.
22133 (res_hnok): Reimplement using these functions and ns_name_pton.
22134 (res_ownok): Likewise.
22135 (res_mailok): Reimplement using printable_string, ns_name_pton and
22136 binary_hnok.
22137 (res_dnok): Reimplement using printable_string and ns_name_pton.
22138 * resolv/tst-res_hnok.c (tests): Add additional tests.
22139 (LETTERDIGITS, PRINTABLE): Define.
22140 (do_test): Adjust one_char results.
22141
22142 2017-11-11 Florian Weimer <fweimer@redhat.com>
22143
22144 [BZ #22413]
22145 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22146 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22147
22148 2017-11-11 Florian Weimer <fweimer@redhat.com>
22149
22150 * resolv/tst-ns_name_pton.c: New file.
22151 * resolv/Makefile (tests): Add tst-ns_name_pton.
22152 (tst-ns_name_pton): Link against libresolv.
22153
22154 2017-11-11 Florian Weimer <fweimer@redhat.com>
22155
22156 * resolv/tst-res_hnok.c: New file.
22157 * resolv/Makefile (tests): Add tst-res_hnok.
22158 (tst-res_hnok): Link against libresolv.
22159
22160 2017-11-11 Florian Weimer <fweimer@redhat.com>
22161
22162 * resolv/tst-resolv-network.c: Use test framework instead explicit
22163 main function.
22164
22165 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22166
22167 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22168 <jmp_buf-macros.h>.
22169 [!_ISOMAC] (STR_HELPER): New.
22170 [!_ISOMAC] (STR): Likewise.
22171 [!_ISOMAC] (TEST_SIZE): Likewise.
22172 [!_ISOMAC] (TEST_ALIGN): Likewise.
22173 [!_ISOMAC] (TEST_OFFSET): Likewise.
22174 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22175 field offsets of jmp_buf as well as sigjmp_buf.
22176 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22177 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22178 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22179 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22180 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22181 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22182 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22183 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22184 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22185 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22186 Likewise.
22187 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22188 Likewise.
22189 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22190 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22191 Likewise.
22192 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22193 Likewise.
22194 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22195 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22196 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22197 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22198 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22199 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22200 Likewise.
22201 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22202 Likewise.
22203 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22204 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22205 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22206
22207 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22208
22209 * include/float.h
22210 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22211 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22212 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22213 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22214 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22215 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22216 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22217 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22218 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22219 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22220 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22221 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22222 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22223 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22224 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22225 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22226 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22227 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22228 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22229 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22230 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22231 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22232 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22233 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22234 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22235 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22236 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22237 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22238 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22239 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22240 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22241 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22242 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22243 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22244 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22245 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22246 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22247 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22248 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22249 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22250 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22251 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22252 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22253 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22254 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22255 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22256 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22257 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22258 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22259 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22260 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22261 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22262 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22263 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22264 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22265 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22266 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22267 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22268 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22269 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22270 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22271 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22272 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22273 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22274 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22275 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22276 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22277 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22278 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22279 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22280 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22281 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22282 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22283 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
22284 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22285 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
22286 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22287 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
22288 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22289 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
22290 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22291 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22292 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22293 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22294 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22295 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22296 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22297 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22298
22299 * stdlib/tst-strtod.h (F16): New macro.
22300 (F32): Likewise.
22301 (F64): Likewise.
22302 (F32X): Likewise.
22303 (F64X): Likewise.
22304 (F128X): Likewise.
22305 (IF_FLOAT16): Likewise.
22306 (IF_FLOAT32): Likewise.
22307 (IF_FLOAT64): Likewise.
22308 (IF_FLOAT32X): Likewise.
22309 (IF_FLOAT64X): Likewise.
22310 (IF_FLOAT128X): Likewise.
22311 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
22312 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
22313 (STRTOD_TEST_FOREACH): Likewise.
22314 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
22315 (CHOOSE_f64): Likewise.
22316 (CHOOSE_f32x): Likewise.
22317 (CHOOSE_f64x): Likewise.
22318
22319 2017-11-07 Andreas Schwab <schwab@suse.de>
22320
22321 * nptl/Makefile (tests-internal): Remove tst-typesizes.
22322
22323 2017-11-07 Mike FABIAN <mfabian@redhat.com>
22324
22325 [BZ #22403]
22326 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
22327 to be escaped.
22328 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
22329 to be escaped.
22330
22331 2017-11-07 Claude Paroz <claude@2xlibre.net>
22332
22333 [BZ #22403]
22334 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
22335 to be escaped.
22336 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
22337 to be escaped.
22338 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
22339 to be escaped.
22340
22341 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22342
22343 [BZ #22298]
22344 * nptl/allocatestack.c (allocate_stack): Check if
22345 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
22346 __PTHREAD_MUTEX_HAVE_PREV is defined.
22347 * nptl/descr.h (pthread): Likewise.
22348 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
22349 Likewise.
22350 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22351 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22352 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
22353 * sysdeps/nptl/bits/thread-shared-types.h
22354 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22355 defines.
22356 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
22357 of __WORDSIZE for internal layout.
22358 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
22359 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
22360 instead of __WORDSIZE whether to use an union for __spins and __list
22361 fields.
22362 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
22363 case.
22364 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
22365 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22366 defines.
22367 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
22368 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22369 Likewise.
22370 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
22371 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22372 Likewise.
22373 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
22374 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22375 Likewise.
22376 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
22377 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22378 Likewise.
22379 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
22380 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22381 Likewise.
22382 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
22383 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22384 Likewise.
22385 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
22386 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22387 Likewise.
22388 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
22389 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22390 Likewise.
22391 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
22392 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22393 Likewise.
22394 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
22395 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22396 Likewise.
22397 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
22398 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22399 Likewise.
22400 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
22401 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22402 Likewise.
22403 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
22404 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22405 Likewise.
22406 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
22407 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22408 Likewise.
22409
22410 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
22411 New macros.
22412 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
22413 checks for expected input type size.
22414 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22415 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22416 Likewise.
22417 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22418 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
22419 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
22420 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
22421 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22422 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
22423 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
22424 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
22425 superflous runtime assert check.
22426 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
22427 Likewise.
22428 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
22429 Likewise.
22430 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22431 Likewise.
22432 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
22433 Likewise.
22434 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
22435 Likewise.
22436 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
22437 Likewise.
22438 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
22439 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
22440 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
22441 Likewise.
22442 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
22443 Likewise.
22444 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
22445 Likewise.
22446 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
22447 Likewise.
22448 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
22449 Likewise.
22450 * nptl/pthread_attr_setinheritsched.c
22451 (__pthread_attr_setinheritsched): Likewise.
22452 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
22453 Likewise.
22454 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
22455 Likewise.
22456 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
22457 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
22458 __old_pthread_attr_setstack): Likewise.
22459 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
22460 Likewise.
22461 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
22462 Likewise.
22463 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
22464 Likewise.
22465 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
22466 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
22467 Likewise.
22468 * nptl/tst-typesizes.c: Remove file.
22469
22470 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
22471 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
22472 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
22473 checks for internal pthread_mutex_t offsets.
22474 * sysdeps/aarch64/nptl/pthread-offsets.h
22475 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
22476 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
22477 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
22478 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
22479 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
22480 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
22481 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
22482 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
22483 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
22484 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
22485 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
22486 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
22487 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
22488 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
22489 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
22490 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
22491 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
22492 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
22493
22494 2017-11-07 Florian Weimer <fweimer@redhat.com>
22495
22496 * bits/mman-linux.h: Move ...
22497 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
22498 comment.
22499 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
22500 outdated comment.
22501
22502 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22503
22504 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
22505 Redefine STRNLEN as __strnlen_power8.
22506
22507 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22508
22509 * signal/sighold.c (sighold): Optimize implementation.
22510
22511 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
22512 __NR_rt_sigqueueinfo.
22513
22514 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
22515 __sigtimedwait.
22516 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
22517 assume __NR_rt_sigtimedwait.
22518 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
22519 and add LIBC_CANCEL_HANDLED for cancellation marking.
22520 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22521
22522 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22523 (sysdeps_routines): Add memchr_noneon.
22524 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
22525 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
22526 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
22527 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
22528 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
22529 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
22530 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
22531
22532 * sysdeps/arm/arm-ifunc.h: New file.
22533 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
22534 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
22535 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
22536 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
22537 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
22538 (__memcpy_neon): Avoid create hidden alias.
22539 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
22540 (__memcpy_vfp): Likewise.
22541 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22542 (sysdep_routines): Add memcpy_arm.
22543 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
22544
22545 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
22546
22547 [BZ #22362]
22548 * Makerules (make-link-multidir): New.
22549 * config.make.in (multidir): New.
22550 * configure.ac (libc_cv_multidir): New. AC_SUBST.
22551 * configure: Regenerated.
22552 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
22553 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
22554 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
22555 New target.
22556
22557 2017-11-06 Joseph Myers <joseph@codesourcery.com>
22558
22559 [BZ #22402]
22560 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
22561 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
22562
22563 2017-11-04 Mike FABIAN <mfabian@redhat.com>
22564
22565 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
22566 to be escaped.
22567
22568 2017-11-04 Florian Weimer <fweimer@redhat.com>
22569
22570 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
22571
22572 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22573
22574 * math/math.h [__HAVE_DISTINCT_FLOAT16
22575 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22576 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22577 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22578 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
22579 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
22580 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
22581 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22582 (__MATH_TG_F32): New macro.
22583 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22584 (__MATH_TG_F64X): Likewise.
22585 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22586 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
22587
22588 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
22589
22590 * po/de.po: Update translations.
22591 * po/ru.po: Likewise.
22592
22593 2017-11-03 Florian Weimer <fweimer@redhat.com>
22594
22595 * manual/filesys.texi (Hard Links): Document linkat.
22596
22597 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22598
22599 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
22600 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22601 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22602 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22603 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22604 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22605 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
22606 the same as _Float128.
22607 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22608 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22609 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
22610
22611 * stdlib/stdlib.h
22612 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
22613 Declare.
22614 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
22615 Likewise.
22616 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
22617 Likewise.
22618 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22619 (strtof32x): Likewise.
22620 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22621 (strtof64x): Likewise.
22622 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22623 (strtof128x): Likewise.
22624 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22625 (strfromf16): Likewise.
22626 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22627 (strfromf32): Likewise.
22628 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22629 (strfromf64): Likewise.
22630 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22631 (strfromf32x): Likewise.
22632 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22633 (strfromf64x): Likewise.
22634 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22635 (strfromf128x): Likewise.
22636 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
22637 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
22638 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
22639 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
22640 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
22641 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
22642
22643 2017-11-03 Richard Henderson <rth@twiddle.net>
22644
22645 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
22646
22647 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22648
22649 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
22650
22651 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22652
22653 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
22654 DT_TLSDESC_GOT initialization.
22655 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
22656 (_dl_tlsdesc_resolve_hold): Likewise.
22657 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
22658 (_dl_tlsdesc_resolve_hold): Likewise.
22659 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
22660 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22661
22662 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22663
22664 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
22665
22666 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22667
22668 [BZ #18572]
22669 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
22670 non-lazily for R_ARM_TLS_DESC.
22671
22672 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22673
22674 [BZ #17078]
22675 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
22676 R_ARM_TLS_DESC case.
22677 (elf_machine_lazy_rel): Remove the prelink check.
22678
22679 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22680
22681 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
22682 DT_TLSDESC_GOT initialization.
22683 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
22684 (_dl_tlsdesc_resolve_rela): Likewise.
22685 (_dl_tlsdesc_resolve_hold): Likewise.
22686 (_dl_tlsdesc_undefweak): Remove ldar.
22687 (_dl_tlsdesc_dynamic): Likewise.
22688 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
22689 (_dl_tlsdesc_resolve_rela): Likewise.
22690 (_dl_tlsdesc_resolve_hold): Likewise.
22691 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
22692 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22693 (_dl_tlsdesc_resolve_rela): Likewise.
22694 (_dl_tlsdesc_resolve_hold): Likewise.
22695
22696 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22697
22698 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
22699 binding and initialization non-lazily for R_AARCH64_TLSDESC.
22700
22701 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22702
22703 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
22704 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
22705
22706 2017-11-02 Joseph Myers <joseph@codesourcery.com>
22707
22708 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
22709 Declare.
22710 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
22711 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
22712 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
22713 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
22714 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
22715 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
22716 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
22717 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
22718 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
22719 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
22720 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
22721
22722 2017-11-02 Mike FABIAN <mfabian@redhat.com>
22723
22724 [BZ #22382]
22725 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
22726 * localedata/locales/tpi_PG: Add standard header.
22727
22728 2017-11-02 Florian Weimer <fweimer@redhat.com>
22729
22730 test-errno-linux: quotactl can fail with EPERM in containers.
22731 * sysdeps/unix/sysv/linux/test-errno-linux.c
22732 (LIST, LIST_FORWARD): New macros.
22733 (check_error_in_list): New function.
22734 (test_wrp_rv): Accept list of permitted error codes.
22735 (test_wrp_rv2): Remove.
22736 (test_wrp): Call test_wrp_rv with list of error codes.
22737 (test_wrp2): Accept list of error codes.
22738 (do_test): Adjust. Allow EPERM for quotactl.
22739
22740 2017-11-02 Florian Weimer <fweimer@redhat.com>
22741
22742 * stdio-common/bug16.c (do_test): Use array_length.
22743 * stdio-common/errlist.c (_sys_nerr): Likewise.
22744 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
22745 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
22746 * stdio-common/psiginfo.c (psiginfo): Use array_length.
22747 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
22748 (do_test): Use array_length.
22749 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
22750 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
22751 * stdio-common/tst-printf-round.c (do_test): Likewise.
22752 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
22753 (CHECK): Use array_length.
22754 * stdio-common/tstdiomisc.c (t3, F): Likewise.
22755 * stdio-common/tstscanf.c (main): Likewise.
22756 * stdio-common/vfprintf.c (process_string_arg): Likewise.
22757
22758 2017-11-02 Florian Weimer <fweimer@redhat.com>
22759
22760 Add array_length and array_end macros.
22761 * include/array_length.h: New file.
22762
22763 2017-11-02 Florian Weimer <fweimer@redhat.com>
22764
22765 [BZ #22332]
22766 * posix/tst-glob-tilde.c (do_noescape): New variable.
22767 (one_test): Process it.
22768 (do_test): Set do_noescape. Add unescaping test case.
22769
22770 2017-11-01 Joseph Myers <joseph@codesourcery.com>
22771
22772 * math/complex.h
22773 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
22774 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
22775 with appropriate macros defined and undefined.
22776 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
22777 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22778 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
22779 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22780 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
22781 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22782 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
22783 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22784 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
22785 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22786
22787 * math/complex.h
22788 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
22789 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
22790 that for long double. Do not condition define and undefine of
22791 _Mdouble_complex_ on [__CFLOAT128].
22792
22793 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
22794
22795 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22796 of <sysdeps/generic/sysdep.h>.
22797 (ALIGNARG): Removed.
22798 (ASM_SIZE_DIRECTIVE): Likewise.
22799 (ENTRY): Likewise.
22800 (END): Likewise.
22801 (ENTRY_CHK): Likewise.
22802 (END_CHK): Likewise.
22803 (syscall_error): Likewise.
22804 (mcount): Likewise.
22805 (PSEUDO_END): Likewise.
22806 (L): Likewise.
22807 (atom_text_section): Likewise.
22808 * sysdeps/x86/sysdep.h: New file.
22809 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22810 of <sysdeps/generic/sysdep.h>.
22811 (ALIGNARG): Removed.
22812 (ASM_SIZE_DIRECTIVE): Likewise.
22813 (ENTRY): Likewise.
22814 (END): Likewise.
22815 (ENTRY_CHK): Likewise.
22816 (END_CHK): Likewise.
22817 (syscall_error): Likewise.
22818 (mcount): Likewise.
22819 (PSEUDO_END): Likewise.
22820 (L): Likewise.
22821 (atom_text_section): Likewise.
22822
22823 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
22824
22825 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
22826 category of LC_CTYPE set to "i18n:2012".
22827 * localedata/locales/i18n_ctype: Regenerate.
22828
22829 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
22830
22831 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
22832 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
22833 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
22834 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
22835
22836 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
22837 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
22838 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
22839 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
22840
22841 2017-10-31 Joseph Myers <joseph@codesourcery.com>
22842
22843 * math/complex.h
22844 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
22845 New macro.
22846 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
22847 Likewise.
22848 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
22849 Likewise.
22850 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22851 (CMPLXF32X): Likewise.
22852 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22853 (CMPLXF64X): Likewise.
22854 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22855 (CMPLXF128X): Likewise.
22856
22857 * math/math.h
22858 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
22859 (__MATH_EVAL_FMT2): Define to add 0.0f.
22860
22861 2017-10-31 Alan Modra <amodra@gmail.com>
22862
22863 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
22864 include sysdep.h.
22865 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
22866 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
22867 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
22868 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
22869 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
22870 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
22871 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
22872 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
22873 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
22874 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
22875 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
22876 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
22877 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
22878 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
22879 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
22880 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
22881 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
22882 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
22883 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
22884 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
22885 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
22886 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
22887 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
22888 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
22889 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
22890 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
22891 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
22892 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
22893 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
22894 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
22895 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
22896 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
22897 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
22898 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
22899 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
22900 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
22901 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
22902 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
22903 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
22904 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
22905 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
22906 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
22907 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
22908 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
22909 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
22910 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
22911 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
22912 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
22913 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
22914 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
22915 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
22916 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
22917 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
22918 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
22919 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
22920 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
22921 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
22922 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
22923 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
22924 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
22925 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
22926 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
22927 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
22928 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
22929 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
22930 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
22931 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
22932 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
22933 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
22934
22935 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
22936 include sysdep.h and math_ldbl_opt.h.
22937
22938 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
22939 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
22940 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
22941 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
22942 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
22943 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
22944 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
22945 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
22946 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
22947 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
22948 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
22949 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
22950 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
22951 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
22952 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
22953 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
22954 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
22955 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
22956 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
22957 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
22958 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
22959 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
22960 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
22961 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
22962 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
22963 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
22964
22965 2017-10-31 Alan Modra <amodra@gmail.com>
22966
22967 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
22968 string/strncase_l.c, not string/strncase.c.
22969 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
22970 (libc_hidden_def): Redefine.
22971
22972 2017-10-31 Alan Modra <amodra@gmail.com>
22973
22974 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
22975 (__STRCMP, STRCMP, __strcasecmp_l): Define.
22976 (__strcasecmp): Don't define.
22977
22978 2017-10-31 Alan Modra <amodra@gmail.com>
22979
22980 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
22981 IS_IN (libc).
22982 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
22983 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
22984 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
22985
22986 2017-10-31 Alan Modra <amodra@gmail.com>
22987
22988 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
22989 USE_AS_STPNCPY.
22990
22991 2017-10-31 Alan Modra <amodra@gmail.com>
22992
22993 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
22994 Redefine only when SHARED.
22995
22996 2017-10-30 Joseph Myers <joseph@codesourcery.com>
22997
22998 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
22999 Include <bits/math-finite.h> with appropriate macros defined and
23000 undefined.
23001 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23002 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23003 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23004 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23005 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23006
23007 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23008 [!_Mlong_double_] (_Mlong_double_): Likewise.
23009 [!_Mfloat16_] (_Mfloat16_): Likewise.
23010 [!_Mfloat32_] (_Mfloat32_): Likewise.
23011 [!_Mfloat64_] (_Mfloat64_): Likewise.
23012 [!_Mfloat128_] (_Mfloat128_): Likewise.
23013 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23014 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23015 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23016 (_Mdouble_): Define without indirection through those macros.
23017 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23018 [!_Mfloat128_] (_Mfloat128_): Likewise.
23019 [_Mlong_double_] (_Mlong_double_): Likewise.
23020 (_Mdouble_): Define without indirection through those macros.
23021 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23022 not add -D_Mlong_double_=double.
23023 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23024 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23025
23026 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23027
23028 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23029
23030 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23031
23032 * sysdeps/x86/libc-start.c: Reformat.
23033
23034 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23035
23036 [BZ #22353]
23037 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23038 (1): Renamed to ...
23039 (L(Src0)): This.
23040 (L(Src1)): New.
23041 (L(Src2)): Likewise.
23042 (L(1)): Renamed to ...
23043 (L(Src3)): This.
23044
23045 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23046
23047 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23048 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23049 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23050 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23051 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23052 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23053 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23054 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23055 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23056 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23057 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23058 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23059 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23060 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23061 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23062 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23063 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23064 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23065 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23066 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23067 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23068 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23069 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23070 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23071 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23072 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23073 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23074 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23075 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23076 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23077 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23078 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23079 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23080 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23081 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23082 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23083 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23084 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23085 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23086 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23087 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23088 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23089 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23090 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23091 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23092 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23093 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23094 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23095 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23096 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23097 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23098 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23099 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23100 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23101 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23102 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23103 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23104 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23105 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23106 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23107 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23108 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23109 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23110 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23111 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23112 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23113
23114 2017-10-30 Florian Weimer <fweimer@redhat.com>
23115
23116 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23117 always defined.
23118 * io/tst-mkdirat.c (do_test): Likewise.
23119 * io/tst-mkfifoat.c (do_test): Likewise.
23120 * io/tst-mknodat.c (do_test): Likewise.
23121 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23122 * locale/programs/locale.c (select_dirs): Likewise.
23123 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23124 * posix/bug-glob2.c (my_readdir): Likewise.
23125 * posix/tst-dir.c (main): Likewise.
23126 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23127 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23128
23129 2017-10-30 Florian Weimer <fweimer@redhat.com>
23130
23131 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23132 just __USE_GNU.
23133
23134 2017-10-30 Florian Weimer <fweimer@redhat.com>
23135
23136 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23137 Convert to support/test-driver.c.
23138 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23139 New macro parameters.
23140 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23141 * posix/tst-gnuglob.c: New file.
23142 * posix/tst-gnuglob64.c: Likewise.
23143 * posix/Makefile (tests): Add tst-gnuglob64.
23144
23145 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23146
23147 [BZ #19485]
23148 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23149 and use a better translation for March in “mon”.
23150 * localedata/locales/csb_PL: Use more ASCII to improve the
23151 readability of the source.
23152
23153 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23154
23155 [BZ #13953]
23156 * localedata/locales/km_KH: Use ASCII as much
23157 as possible for better readability of the source and
23158 remove useless comments.
23159 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23160 was commented out and apparently wrong anyway because it was
23161 using Lao characters. If Buddhist era should be used
23162 for km_KH, a native speaker should write the correct formaat
23163 for Khmer.
23164 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23165 (According to CLDR, the first weekday for Cambodia is Sunday).
23166 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23167 (These were using Lao characters which must be wrong. If we get
23168 the correct data from a native speaker, we could add it back, until
23169 then it is better not to have name_mr and name_mrs at all than
23170 having it wrong).
23171
23172 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23173
23174 * locale/loadlocale.c: Correct size of
23175 _nl_value_type_LC_<category> arrays.
23176
23177 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23178
23179 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23180 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23181 with appropriate macros defined and undefined.
23182 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23183 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23184 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23185 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23186 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23187
23188 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23189
23190 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23191 "-O2 -march=i586".
23192
23193 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23194
23195 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23196 with lowercase letters to make it agree with CLDR.
23197
23198 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23199
23200 [BZ #15260]
23201 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23202 first letters of yesstr and nostr in yesexpr and noexpr,
23203 not for the full words.
23204 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23205 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23206 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23207 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23208 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23209 first letters of yesstr and nostr in yesexpr and noexpr,
23210 until now only English was matched in yesexpr and noexpr.
23211 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23212 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23213 fil but not for tl. As tl and fil are very similar, using fil
23214 is probably better than using English.
23215
23216 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23217
23218 [BZ #21706]
23219 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23220 in yesstr and nostr.
23221
23222 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23223
23224 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23225 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23226 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23227 Likewise.
23228 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23229 Likewise.
23230 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23231 Likewise.
23232 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23233 Likewise.
23234 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23235 (SNANF128X): Likewise.
23236
23237 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23238 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23239 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23240 (HUGE_VAL_F32): Likewise.
23241 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23242 (HUGE_VAL_F64): Likewise.
23243 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23244 (HUGE_VAL_F32X): Likewise.
23245 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23246 (HUGE_VAL_F64X): Likewise.
23247 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23248 (HUGE_VAL_F128X): Likewise.
23249
23250 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23251
23252 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23253 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23254 for the br_FR locale.
23255
23256 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23257
23258 [BZ #21706]
23259 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23260
23261 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23262
23263 * locale/programs/record-status.h: Define globals, and function
23264 prototypes. Move function bodies...
23265 * locale/programs/record-status.c: ... to here. New file.
23266 * iconv/Makefile (iconv_prog-modules): Add record-status.
23267 * locale/Makefile (lib-modules): Likewise.
23268 * iconv/iconv_prog.c: Remove verbose.
23269 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23270 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23271 record a warning about ASCII compatibility.
23272 * locale/programs/ld-monetary.c (monetary_finish): If
23273 warn_int_curr_symbol is true then record a warning about the symbol
23274 not being in our ISO 4217 list.
23275 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23276 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23277 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23278 (OPT_NO_WARN): Define.
23279 (OPT_WARN): Define.
23280 (options): Add entry for --no-warnings, and --warnings.
23281 (set_warnings): New function to enable/disable warnings.
23282 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23283 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
23284 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
23285 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
23286 Pass flags to generate_locale.
23287 (generate_locale): Accept new flag argument and pass it to localedef
23288 invocation.
23289 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
23290 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
23291
23292 * localedata/Makefile (test-input-data): Use full file name.
23293 * localedata/da_DK.in: Rename to...
23294 * localedata/da_DK.ISO-8859-1.in: ...this.
23295 * localedata/de_DE.in: Rename to...
23296 * localedata/de_DE.ISO-8859-1.in: ...this.
23297 * localedata/en_US.in: Rename to...
23298 * localedata/en_US.ISO-8859-1.in: ...this.
23299 * localedata/fr_FR.in: Rename to...
23300 * localedata/fr_FR.UTF-8.in: ... this.
23301 * localedata/hr_HR.in: Rename to...
23302 * localedata/hr_HR.ISO-8859-2.in: ...this.
23303 * localedata/hu_HU.in: Rename to...
23304 * localedata/hu_HU.UTF-8.in: ...this.
23305 * localedata/si_LK.in: Rename to...
23306 * localedata/si_LK.UTF-8.in: ...this.
23307 * localedata/sv_SE.in: Rename to...
23308 * localedata/sv_SE.ISO-8859-1.in: ...this.
23309 * localedata/tr_TR.in: Rename to...
23310 * localedata/tr_TR.UTF-8.in: ...this.
23311 * localedata/uk_UA.in: Rename to...
23312 * localedata/uk_UA.UTF-8.in: ...this.
23313 * localedata/sort-test.sh: Test file is locale name with the
23314 suffix.
23315
23316 * localedata/unicode-gen/Makefile (check_i18n): Rename to
23317 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
23318 file.
23319 * localedata/locales/i18n_ctype: Regenerate.
23320 * localedata/locales/tr_TR: Likewise.
23321 * localedata/locales/translit_circle: Likewise.
23322 * localedata/locales/translit_cjk_compat: Likewise.
23323 * localedata/locales/translit_combining: Likewise.
23324 * localedata/locales/translit_compat: Likewise.
23325 * localedata/locales/translit_font: Likewise.
23326 * localedata/locales/translit_fraction: Likewise.
23327
23328 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23329
23330 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
23331 lxvd2x/stxvd2x with lvx/stvx.
23332 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
23333
23334 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
23335
23336 * include/alloc_buffer.h: Replace "if if " with "if " in
23337 comments.
23338 * sysdeps/mips/memcpy.S: Likkewise.
23339 * sysdeps/mips/memset.S: Likewise.
23340 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23341 Likewise.
23342 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
23343 Likewise.
23344 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
23345 Likewise.
23346
23347 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23348
23349 [BZ #15261]
23350 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
23351 yesexpr and noexpr.
23352 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23353 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23354 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23355 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23356 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23357 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23358 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23359
23360 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23361
23362 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
23363 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23364 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23365 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23366 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23367 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
23368 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23369 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23370 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23371 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23372 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23373 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23374
23375 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23376
23377 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
23378 as possible for better readability of the source.
23379 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
23380 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
23381 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
23382 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
23383 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
23384 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
23385 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
23386 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
23387 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23388 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
23389 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
23390 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
23391 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
23392 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
23393 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
23394 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
23395 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
23396 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
23397 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
23398 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
23399 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
23400 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
23401 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
23402 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
23403 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
23404 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
23405 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
23406 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
23407 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
23408 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
23409 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
23410 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23411 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
23412 * localedata/locales/en_US (LC_MESSAGES): Likewise.
23413 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
23414 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
23415 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
23416 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
23417 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
23418 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
23419 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
23420 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
23421 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
23422 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
23423 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
23424 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
23425 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
23426 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
23427 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
23428 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
23429 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
23430 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
23431 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
23432 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23433 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23434 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
23435 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
23436 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23437 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
23438 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
23439 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
23440 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
23441 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
23442 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
23443 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
23444 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
23445 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
23446 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
23447 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
23448 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
23449 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
23450 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
23451 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
23452 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
23453 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23454 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
23455 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
23456 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
23457 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
23458 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
23459 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
23460 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
23461 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
23462 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23463 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
23464 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
23465 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
23466 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23467 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
23468 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
23469 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
23470 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
23471 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23472 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
23473 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
23474 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23475 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
23476 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23477 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
23478 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
23479 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
23480 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
23481 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
23482 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
23483 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
23484 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
23485 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
23486 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
23487 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
23488 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
23489 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
23490 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
23491 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23492 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
23493 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
23494 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
23495 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
23496 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
23497 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
23498 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
23499 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
23500 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
23501 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
23502 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
23503 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
23504 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
23505 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
23506 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
23507 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
23508 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
23509 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
23510 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
23511 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
23512 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
23513 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
23514 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
23515 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
23516 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
23517 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
23518 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
23519 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
23520 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
23521 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
23522 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
23523 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
23524 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23525 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
23526 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
23527 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
23528 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
23529 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
23530 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
23531 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
23532 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
23533 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23534 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
23535 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
23536 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
23537 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
23538 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
23539 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
23540 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
23541 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
23542 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
23543 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
23544 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23545 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
23546 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
23547 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
23548 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
23549 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23550 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23551 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23552 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
23553
23554 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23555
23556 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
23557 (Use first letters of yesstr and nostr correctly instead of using
23558 full words).
23559
23560 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23561
23562 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
23563 (Use first letters of yesstr and nostr correctly).
23564
23565 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23566
23567 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
23568 also check for the first characters of yesstr and nostr.
23569 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
23570 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
23571
23572 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23573
23574 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
23575 also check for Chinese characters.
23576
23577 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23578
23579 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
23580 match also for the contents of yesstr and nostr. As the first letter
23581 of yesstr and nostr is equal, checking only for the first letter
23582 is not enough.
23583
23584 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23585
23586 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
23587 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
23588
23589 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23590
23591 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
23592 of main contributor.
23593
23594 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23595
23596 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
23597 instead of using English.
23598
23599 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23600
23601 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
23602 by including the first letters of nostr and yesexpr in the regexp.
23603 Also make it more readable by using ASCII where possible.
23604
23605 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23606
23607 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
23608 the first letter of nostr in the regexp. It agrees with CLDR now.
23609 Also make it more readable by using ASCII where possible.
23610
23611 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23612
23613 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
23614 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
23615 these strings contain a U+17D6 (which somewhat looks like a colon)
23616 instead of a real colon to separate the full words for “yes”
23617 and “no” from the single letter responses.
23618
23619 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23620
23621 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
23622 it agree with CLDR (include the first letter of yesstr).
23623 Also make it more readable by using ASCII where possible.
23624
23625 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23626
23627 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
23628 and improve yesexpr and noexpr. The yesstr and nostr apparently
23629 came from CLDR. And CLDR has a bug there: these strings contain
23630 a U+0903 (which looks like a colon) instead of a real colon
23631 to separate the full words for “yes” and “no” from the single
23632 letter responses.
23633
23634 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23635
23636 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
23637 letters of the full yesstr and nostr in yesexpr and noexpr.
23638
23639 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23640
23641 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
23642 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
23643 * localedata/locales/an_ES: Make source more readable by using ASCII
23644 where possible.
23645
23646 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23647
23648 [BZ #20952]
23649 * localedata/locales/yuw_PG: New file.
23650 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
23651 * locale/iso-639.def: Add Yau (Uruwa).
23652
23653 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23654
23655 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
23656
23657 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23658
23659 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
23660 (__libc_realloc): Likewise.
23661 (_mid_memalign): Likewise.
23662 (__libc_calloc): Likewise.
23663
23664 2017-10-23 Mike FABIAN <mfabian@redhat.com>
23665
23666 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
23667 by adding the generic +1 and -0 as in all other locales.
23668 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
23669 day names and make it more readable by using ASCII where possible.
23670
23671 2017-10-24 Joseph Myers <joseph@codesourcery.com>
23672
23673 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
23674 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
23675
23676 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23677
23678 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
23679 WNOHANG in waitpid call.
23680
23681 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
23682
23683 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
23684 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
23685
23686 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
23687 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
23688 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
23689 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
23690 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
23691 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
23692 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
23693 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
23694 variables.
23695
23696 2017-10-23 Michael Collison <michael.collison@arm.com>
23697
23698 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
23699 with __builtin_sqrt.
23700 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
23701 with __builtin_sqrtf.
23702 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
23703 with __builtin_ceil.
23704 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
23705 with __builtin_ceilf.
23706 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
23707 with __builtin_floor.
23708 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
23709 with __builtin_floorf.
23710 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
23711 with __builtin_fma.
23712 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
23713 with __builtin_fmaf.
23714 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
23715 with __builtin_fmax.
23716 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
23717 with __builtin_fmaxf.
23718 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
23719 with __builtin_fmin.
23720 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
23721 with __builtin_fminf.
23722 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
23723 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
23724 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
23725 with builtin_rint and conversion to int.
23726 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
23727 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
23728 with builtin_llround.
23729 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
23730 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
23731 with builtin_rint and conversion to long int.
23732 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
23733 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
23734 with builtin_lround.
23735 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
23736 with builtin_lroundf.
23737 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
23738 statements with __builtin_nearbyint.
23739 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
23740 statements with __builtin_nearbyintf.
23741 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
23742 with __builtin_rint.
23743 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
23744 with __builtin_rintf.
23745 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
23746 with __builtin_round.
23747 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
23748 with __builtin_roundf.
23749 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
23750 with __builtin_trunc.
23751 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
23752 with __builtin_truncf.
23753 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
23754 and s_l[l]round[f].c too.
23755
23756 2017-10-23 Alan Modra <amodra@gmail.com>
23757
23758 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
23759 Adjust stack after restoring regs. Add missing LR cfi_restore.
23760
23761 2017-10-23 Alan Modra <amodra@gmail.com>
23762
23763 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
23764 Move LR save and frame setup/teardown and LR restore to
23765 immediately around memset call. Provide cfi.
23766
23767 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23768
23769 * sysdeps/i386/fpu/e_powf.S: Removed.
23770 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
23771 * sysdeps/i386/fpu/w_powf.c: Likewise.
23772 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
23773 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23774 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23775 Add e_powf-sse2.
23776 (CFLAGS-e_powf-sse2.c): New.
23777 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
23778 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
23779
23780 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23781
23782 * sysdeps/i386/fpu/e_log2f.S: Removed.
23783 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
23784 * sysdeps/i386/fpu/w_log2f.c: Likewise.
23785 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
23786 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23787 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23788 Add e_log2f-sse2.
23789 (CFLAGS-e_log2f-sse2.c): New.
23790 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
23791 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
23792
23793 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23794
23795 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23796 Add e_powf-fma.
23797 (CFLAGS-e_powf-fma.c): New.
23798 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
23799 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
23800
23801 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23802
23803 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23804 Add e_log2f-fma.
23805 (CFLAGS-e_log2f-fma.c): New.
23806 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
23807 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
23808
23809 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23810
23811 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23812 Add e_logf-fma.
23813 (CFLAGS-e_logf-fma.c): New.
23814 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
23815 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
23816
23817 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23818
23819 * sysdeps/i386/fpu/e_logf.S: Removed.
23820 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
23821 * sysdeps/i386/fpu/w_logf.c: Likewise.
23822 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
23823 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
23824 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23825 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23826 Add e_logf-sse2.
23827 (CFLAGS-e_logf-sse2.c): New.
23828 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
23829 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
23830
23831 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23832
23833 * sysdeps/i386/fpu/e_exp2f.S: Removed.
23834 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
23835 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
23836 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23837 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23838 Add e_exp2f-sse2.
23839 (CFLAGS-e_exp2f-sse2.c): New.
23840 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
23841 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
23842
23843 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23844
23845 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23846 Add e_exp2f-fma.
23847 (CFLAGS-e_exp2f-fma.c): New.
23848 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
23849 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
23850
23851 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23852
23853 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
23854 * sysdeps/i386/fpu/e_expf.S: Likewise.
23855 * sysdeps/i386/fpu/math_errf.c: Likewise.
23856 * sysdeps/i386/fpu/w_expf.c: Likewise.
23857 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
23858 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
23859 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
23860 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
23861 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23862 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23863 Remove e_expf-ia32.
23864 (CFLAGS-e_expf-sse2.c): New.
23865 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
23866 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
23867
23868 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23869
23870 * sysdeps/x86_64/fpu/e_expf.S: Removed.
23871 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
23872 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
23873 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
23874 e_expf.c.
23875 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
23876 New.
23877 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
23878 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
23879 Renamed to ...
23880 (__redirect_expf): This.
23881 (SYMBOL_NAME): Changed to expf.
23882 (__ieee754_expf): Renamed to ...
23883 (__expf): This.
23884 (__GI___expf): This.
23885 (__ieee754_expf): Add strong_alias.
23886 (__expf_finite): Likewise.
23887 (__expf): New.
23888 Include <sysdeps/ieee754/flt-32/e_expf.c>.
23889
23890 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
23891
23892 [BZ #22332]
23893 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
23894 unescaping.
23895
23896 2017-10-21 Florian Weimer <fweimer@redhat.com>
23897
23898 * posix/Makefile (tests): Add tst-glob-tilde.
23899 (tests-special): Add tst-glob-tilde-mem.out
23900 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
23901 (tst-glob-tilde-mem.out): Add mtrace check.
23902 * posix/tst-glob-tilde.c: New file.
23903
23904 2017-10-20 Joseph Myers <joseph@codesourcery.com>
23905
23906 * bits/floatn-common.h: New file.
23907 * math/Makefile (headers): Add bits/floatn-common.h.
23908 * bits/floatn.h: Include <bits/floatn-common.h>.
23909 * sysdeps/ia64/bits/floatn.h: Likewise.
23910 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
23911 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
23912 * sysdeps/powerpc/bits/floatn.h: Likewise.
23913 * sysdeps/x86/bits/floatn.h: Likewise.
23914
23915 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23916
23917 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
23918 indicates whether compiler emits an warning for alias for
23919 functions with incompatible types.
23920
23921 [BZ #22273]
23922 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
23923 the auxiliary process is terminated by a signal before calling _exit
23924 or execve.
23925
23926 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
23927
23928 [BZ #21265]
23929 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
23930 New.
23931 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
23932 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
23933 and bit_arch_XSAVEC_Usable if needed.
23934 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
23935 and bit_arch_Use_dl_runtime_resolve_opt.
23936 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
23937 Removed.
23938 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
23939 (bit_arch_Prefer_No_AVX512): Updated.
23940 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
23941 (bit_arch_XSAVEC_Usable): New.
23942 (STATE_SAVE_OFFSET): Likewise.
23943 (STATE_SAVE_MASK): Likewise.
23944 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
23945 (cpu_features): Add xsave_state_size and xsave_state_full_size.
23946 (index_arch_Use_dl_runtime_resolve_opt): Removed.
23947 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
23948 (index_arch_XSAVEC_Usable): New.
23949 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
23950 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
23951 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
23952 is enabled.
23953 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
23954 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
23955 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
23956 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
23957 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
23958 _dl_runtime_resolve_xsavec.
23959 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
23960 Removed.
23961 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
23962 instead of VEC_SIZE.
23963 (REGISTER_SAVE_BND0): Removed.
23964 (REGISTER_SAVE_BND1): Likewise.
23965 (REGISTER_SAVE_BND3): Likewise.
23966 (REGISTER_SAVE_RAX): Always defined to 0.
23967 (VMOV): Removed.
23968 (_dl_runtime_resolve_avx): Likewise.
23969 (_dl_runtime_resolve_avx_slow): Likewise.
23970 (_dl_runtime_resolve_avx_opt): Likewise.
23971 (_dl_runtime_resolve_avx512): Likewise.
23972 (_dl_runtime_resolve_avx512_opt): Likewise.
23973 (_dl_runtime_resolve_sse): Likewise.
23974 (_dl_runtime_resolve_sse_vex): Likewise.
23975 (USE_FXSAVE): New.
23976 (_dl_runtime_resolve_fxsave): Likewise.
23977 (USE_XSAVE): Likewise.
23978 (_dl_runtime_resolve_xsave): Likewise.
23979 (USE_XSAVEC): Likewise.
23980 (_dl_runtime_resolve_xsavec): Likewise.
23981 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
23982 Removed.
23983 (_dl_runtime_resolve_avx512_opt): Likewise.
23984 (_dl_runtime_resolve_avx): Likewise.
23985 (_dl_runtime_resolve_avx_opt): Likewise.
23986 (_dl_runtime_resolve_sse): Likewise.
23987 (_dl_runtime_resolve_sse_vex): Likewise.
23988 (_dl_runtime_resolve_fxsave): New.
23989 (_dl_runtime_resolve_xsave): Likewise.
23990 (_dl_runtime_resolve_xsavec): Likewise.
23991
23992 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
23993
23994 [BZ #22320]
23995 CVE-2017-15670
23996 * posix/glob.c (__glob): Fix one-byte overflow.
23997
23998 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
23999
24000 * malloc/malloc.c (sysdep-cancel.h): Add include.
24001
24002 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24003
24004 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24005
24006 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24007
24008 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24009 (tests): Remove $(objpfx)ga_test depdendency.
24010 * resolv/ga_test.c: Remove file.
24011
24012 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24013
24014 [BZ #18812]
24015 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24016 * localedata/locales/kab_DZ: New file.
24017
24018 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24019
24020 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24021 _dl_relocate_static_pie instead of _dl_start to compute load
24022 address in static PIE.
24023
24024 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24025
24026 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24027
24028 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24029
24030 [BZ #13605]
24031 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24032 * localedata/locales/shn_MM: New file.
24033
24034 2017-10-20 Florian Weimer <fweimer@redhat.com>
24035
24036 [BZ #22321]
24037 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24038 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24039 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24040 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24041 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24042 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24043
24044 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24045
24046 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24047
24048 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24049
24050 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24051
24052 [BZ #22322]
24053 * sysdeps/mips/bits/long-double.h: Move to ....
24054 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24055
24056 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24057
24058 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24059
24060 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24061 H.J. Lu <hongjiu.lu@intel.com>
24062
24063 [BZ #22299]
24064 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24065 GLRO(dl_platform) to NULL.
24066 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24067 (modules-names): Add tst-platformmod-1 and
24068 x86_64/tst-platformmod-2.
24069 (CFLAGS-tst-platform-1.c): New.
24070 (CFLAGS-tst-platformmod-1.c): Likewise.
24071 (CFLAGS-tst-platformmod-2.c): Likewise.
24072 (LDFLAGS-tst-platformmod-2.so): Likewise.
24073 ($(objpfx)tst-platform-1): Likewise.
24074 ($(objpfx)tst-platform-1.out): Likewise.
24075 (tst-platform-1-ENV): Likewise.
24076 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24077 * sysdeps/x86_64/tst-platform-1.c: New file.
24078 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24079 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24080
24081 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24082
24083 [BZ #13994]
24084 * locale/iso-639.def: Add Karbi.
24085 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24086 * localedata/locales/mjw_IN: New file.
24087
24088 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24089
24090 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24091 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24092 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24093 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24094 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24095 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24096 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24097 <bits/floatn.h>.
24098 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24099 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24100 * manual/math.texi (Mathematics): Document additional architecture
24101 support for _Float128.
24102 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24103 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24104 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24105 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24106 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24107 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24108 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24109 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24110 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24111 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24112 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24113 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24114 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24115 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24116 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24117
24118 2017-10-18 Renlin Li <renlin.li@arm.com>
24119
24120 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24121 _DYNAMIC symbol to calculate load address.
24122
24123 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24124
24125 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24126 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24127 summary bits.
24128 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24129 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24130
24131 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24132
24133 [BZ #16777]
24134 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24135 and improve readability by using more ASCII.
24136 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24137 and improve readability by using more ASCII.
24138
24139 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24140
24141 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24142 not all targets support atomics on bool.
24143
24144 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24145
24146 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24147 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24148 __f128.
24149 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24150 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24151 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24152 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24153 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24154 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24155
24156 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24157
24158 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24159 defines.
24160
24161 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24162
24163 [BZ #22159]
24164 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24165 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24166 (do_check_remalloced_chunk): Fix build bug.
24167 (do_check_malloc_state): Add assert that checks arena->top.
24168 (malloc_consolidate): Remove initialization.
24169 (int_mallinfo): Remove call to malloc_consolidate.
24170 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24171
24172 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24173
24174 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24175 (have_fastchunks): Remove.
24176 (clear_fastchunks): Remove.
24177 (set_fastchunks): Remove.
24178 (malloc_state): Add have_fastchunks.
24179 (malloc_init_state): Use have_fastchunks.
24180 (do_check_malloc_state): Remove incorrect invariant checks.
24181 (_int_malloc): Use have_fastchunks.
24182 (_int_free): Likewise.
24183 (malloc_consolidate): Likewise.
24184
24185 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24186
24187 * malloc/malloc.c (tcache_put): Inline.
24188 (tcache_get): Inline.
24189
24190 2017-10-17 Jordi Mallach <jordi@gnu.org>
24191
24192 Aurelien Jarno <aurelien@aurel32.net>
24193 [BZ #2522]
24194 * localedata/locales/ca_ES@valencia: New file.
24195 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24196
24197 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24198
24199 [BZ #22296]
24200 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24201 < 6.x
24202
24203 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24204
24205 * scripts/build-many-glibcs.py (Context.add_all_configs):
24206 Add arm-linux-gnueabihf multiarch extra_glibcs.
24207
24208 * sysdeps/generic/ifunc-init.h: New file.
24209 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24210
24211 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24212
24213 [BZ #22019]
24214 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24215 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24216 * stdlib/tst-strfmon_l.c: adapt test case.
24217
24218 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24219
24220 * sysdeps/generic/float128-abi.h: New file.
24221 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24222 non-__prefixed symbols to ....
24223 * math/Versions: ... here. Include <float128-abi.h>.
24224 * stdlib/Versions ... and here. Include <float128-abi.h>
24225
24226 2017-10-16 Florian Weimer <fweimer@redhat.com>
24227
24228 * version.h (VERSION): Switch to ".9000" as the development
24229 version suffix.
24230
24231 2017-10-16 Florian Weimer <fweimer@redhat.com>
24232
24233 [BZ #22050]
24234 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24235 compat_symbol_reference to access non-default version.
24236
24237 2017-10-16 Florian Weimer <fweimer@redhat.com>
24238
24239 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24240
24241 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24242
24243 * include/shlib-compat.h (compat_symbol_reference): Update
24244 comment.
24245
24246 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24247
24248 * math/Makefile (test-types): Add
24249 $(type-float128-$(float128-alias-fcts)).
24250 * math/test-float128.h (TYPE_STR): Define conditional on
24251 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24252 (ULP_IDX): Likewise.
24253 (ULP_I_IDX): Likewise.
24254
24255 * stdlib/strtold.c: Include <bits/floatn.h>
24256 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24257 and later undefine as macro. Define as weak alias if
24258 [!USE_WIDE_CHAR].
24259 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24260 and later undefine as macro. Define as weak alias if
24261 [USE_WIDE_CHAR].
24262 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24263 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24264 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24265 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24266 Define and later undefine as macro. Define as weak alias if
24267 [USE_WIDE_CHAR].
24268 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24269 <bits/floatn.h>.
24270 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24271 Define and later undefine as macro. Define as weak alias if
24272 [!USE_WIDE_CHAR].
24273 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24274 Define and later undefine as macro. Define as weak alias if
24275 [USE_WIDE_CHAR].
24276
24277 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24278
24279 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24280 record_verbose messages.
24281
24282 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24283
24284 [BZ #22052]
24285 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
24286 to silence -O3 -Wall warning with GCC 7.
24287
24288 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
24289
24290 * Makeconfig (+link-static-before-libc): Use the first of
24291 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24292 * gmon/Makefile (tests): Add tst-gmon-static.
24293 (tests-static): Likewise.
24294 (CFLAGS-tst-gmon-static.c): New.
24295 (CRT-tst-gmon-static): Likewise.
24296 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24297 (tst-gmon-static-ENV): Likewise.
24298 (tests-special): Likewise.
24299 ($(objpfx)tst-gmon-static.out): Likewise.
24300 (clean-tst-gmon-static-data): Likewise.
24301 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24302 * gmon/tst-gmon-static-gprof.sh: New file.
24303 * gmon/tst-gmon-static.c: Likewise.
24304
24305 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24306
24307 [BZ #22295]
24308 * locale/programs/linereader.c (get_string): Don't warn on
24309 non-symbolic character.
24310
24311 [BZ #22294]
24312 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
24313 int_curr_symbol.
24314
24315 [BZ #22292]
24316 * locale/programs/record-status.h: New file
24317 * locale/programs/locale.c: Add comment.
24318 * locale/programs/charmap-dir.c: Don't include error.h.
24319 (charmap_opendir): Use record_error.
24320 * locale/programs/charmap.c: Don't include error.h.
24321 (charmap_read): Use record_error, and record_warning.
24322 (parse_charmap): Likewise.
24323 * locale/programs/ld-address.c: Don't include error.h.
24324 (address_finish): Use record_error, and record_warning.
24325 * locale/programs/ld-collate.c: Don't include error.h.
24326 (collate_finish): Use record_error, and record_error_at_line.
24327 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
24328 (ctype_class_new): Likewise.
24329 (ctype_map_new): Likewise.
24330 (set_one_default): Likewise.
24331 (set_class_defaults): Likewise.
24332 (translit_flatten): Likewise.
24333 (allocate_arrays): Use record_error, and record_verbose.
24334 * locale/programs/ld-identification.c: Don't include error.h.
24335 (indentation_finish): Use record_error and record_warning.
24336 * locale/programs/ld-measurement.c: Don't include error.h.
24337 (measurement_finish): Use record_error.
24338 * locale/programs/ld-messages.c
24339 (message_finish): Likewise.
24340 * locale/programs/ld-monetary.c
24341 (monetary_finish): Likewise.
24342 * locale/programs/ld-name.c (name_finish): Use record_error
24343 and record_warning.
24344 * locale/programs/ld-numeric.c
24345 (numeric_finish): Use record_error.
24346 * locale/programs/ld-paper.c: Don't include error.h.
24347 (paper_finish): Use record_error.
24348 * locale/programs/ld-telephone.c: Don't include error.h.
24349 (telephone_finish): Use record_error.
24350 * locale/programs/ld-time.c (time_finish): Likewise.
24351 * locale/programs/linereader.h (lr_error): Make inline func.
24352 * locale/programs/localedef.c: Define recorded_warning_count,
24353 and recorded_error_count.
24354 (main): Use record_error. Use recorded_error_count and
24355 recorded_warning_count to issue correct error returns.
24356 (add_to_readlist): Use record_error.
24357 (find_locale): Likewise.
24358 (load_locale): Likewise.
24359 * locale/programs/localedef.h: Remove be_quiet
24360 and WITH_CUR_LOCALE.
24361 * locale/programs/locarchive.c (compare_from_file): Use
24362 record_error.
24363 * locale/programs/locfile.c (write_locale_data): Use
24364 record_error.
24365 * locale/programs/repertoire.c: Dont include error.h.
24366 (repertoire_complain): Use record_error.
24367 * localedata/tst-fmon.sh: Expect failures from localedef.
24368 * localedata/tst-locale.sh: Likewise.
24369 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
24370
24371 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
24372 (REPORTS): Likewise.
24373 (check): Likewise.
24374 (i18n): Rename to...
24375 (i18n_ctype): ...this.
24376 (i18n-report): Rename to...
24377 (i18n_ctype-report): ...this.
24378 * localedata/locales/i18n_ctype: Regenerate.
24379 * localedata/locales/i18n: copy i18n_ctype.
24380
24381 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24382
24383 * stdlib/strfroml.c: Include <bits/floatn.h>.
24384 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
24385 Define before include of <stdlib.h> and undefine afterwards, then
24386 define as weak alias.
24387
24388 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
24389 Undefine and restore default definition. Use
24390 libm_alias_ldouble_other.
24391
24392 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
24393
24394 [BZ #22153]
24395 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
24396 in coredumps.
24397
24398 2017-10-13 James Clarke <jrtc27@jrtc27.com>
24399
24400 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24401 Assign sym_map to be map for local symbols, as TLS relocations
24402 use sym_map to determine whether the symbol is defined and to
24403 extract the TLS information.
24404 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24405 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24406
24407 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24408
24409 [BZ #22189]
24410 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
24411 (math_force_eval): Add powerpc version.
24412
24413 [BZ #22142]
24414 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
24415 -DBL_MAX.
24416 (do_test): Likewise.
24417 * stdio-common/tst-printf.sh: Likewise.
24418 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
24419 ifdef clause in order to set the carry bit right. Replace r0 by
24420 0 without changing the behavior.
24421
24422 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24423
24424 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
24425 <libm-alias-ldouble.h>.
24426 (fabsl): Define using libm_alias_ldouble.
24427 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
24428 <libm-alias-ldouble.h>.
24429 (fabsl): Define using libm_alias_ldouble.
24430
24431 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
24432 Remove conditional code.
24433
24434 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
24435 Rename to __clog10_internal_l.
24436 (__clog10_internal_l): Define aliases using
24437 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
24438 with __clog10.
24439
24440 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24441
24442 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
24443 * benchtests/sincosf-inputs: New file.
24444 * benchtests/cosf-inputs: New file.
24445 * benchtests/sinf-inputs: New file.
24446
24447 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24448
24449 * posix/tst-spawn.c (do_test): Wait for both children.
24450
24451 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
24452
24453 [BZ #22284]
24454 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
24455 tests-pie): Add tst-gmon-pie.
24456 (CFLAGS-tst-gmon-pie.c): New.
24457 (CRT-tst-gmon-pie): Likewise.
24458 (tst-gmon-pie-ENV): Likewise.
24459 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
24460 ($(objpfx)tst-gmon-pie.out): Likewise.
24461 (clean-tst-gmon-pie-data): Likewise.
24462 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
24463 * gmon/gmon.c [PIC]: Include <link.h>.
24464 [PIC] (callback): New function.
24465 (write_hist): Add an argument for load address. Subtract load
24466 address from PCs.
24467 (write_call_graph): Likewise.
24468 (write_gmon): Call __dl_iterate_phdr to get load address, pass
24469 it to write_hist and write_call_graph.
24470 * gmon/tst-gmon-pie.c: New file.
24471
24472 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24473
24474 * math/Makefile (test-types-basic): New variable.
24475 (test-types): Likewise.
24476 (libm-test-support): Use $(test-types) instead of $(types).
24477 (libm-tests-base-normal): Likewise.
24478 (libm-tests-base-finite): Likewise.
24479 (libm-tests-base-inline): Likewise.
24480 (generated): Likewise.
24481 ($(objpfx)libm-test-support-$(t).c): Likewise.
24482 (libm-tests-for-type iterator): Likewise.
24483 (libm-test-support iterator): Likewise.
24484 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
24485 (ulp_idx): Use ULP_IDX.
24486 * math/test-ldouble.h: Include <float.h>.
24487 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
24488 (ULP_IDX): New macro.
24489 (ULP_I_IDX): Likewise.
24490 * math/test-double.h (ULP_IDX): Likewise.
24491 (ULP_I_IDX): Likewise.
24492 * math/test-float.h (ULP_IDX): Likewise.
24493 (ULP_I_IDX): Likewise.
24494 * math/test-float128.h (ULP_IDX): Likewise.
24495 (ULP_I_IDX): Likewise.
24496
24497 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24498
24499 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
24500 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24501 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24502 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
24503 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24504 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
24505 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
24506 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24507 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24508 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24509 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
24510 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24511 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24512 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24513 (SINGLE_THREAD_BY_GLOBAL): Define.
24514 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24515 Likewise.
24516 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24517 Likewise.
24518 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24519 Likewise.
24520 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24521 Likewise.
24522 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
24523 (SINGLE_THREAD_BY_GLOBAL): Likewise.
24524 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24525 Likewise.
24526
24527 2017-10-11 Andreas Schwab <schwab@suse.de>
24528
24529 * nis/Makefile (aux): Remove.
24530 * nscd/Makefile (aux): Add nscd_hash.
24531 (nscd-modules): Likewise.
24532 ($(objpfx)nscd): Don't depend on libnsl.
24533 * nscd/nscd_hash.c: New file.
24534 * nscd/nscd_hash.h: Likewise.
24535 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
24536 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
24537 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
24538 instead of <nis/rpcsvc/nis.h>.
24539 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
24540
24541 2017-10-11 Florian Weimer <fweimer@redhat.com>
24542
24543 [BZ #22078]
24544 Avoid large NSS buffers with many addresses, aliases.
24545 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
24546 using dynarrays and struct alloc_buffer.
24547 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
24548 (tst-nss-files-hosts-multi): Link with -ldl.
24549 * nss/tst-nss-files-hosts-multi.c: New file.
24550
24551 2017-10-11 Florian Weimer <fweimer@redhat.com>
24552
24553 [BZ #18023]
24554 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
24555 scratch_buffer. Eliminate gotos.
24556
24557 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24558
24559 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
24560 libm_alias_ldouble_other.
24561 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
24562 undefine and redefine.
24563 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
24564 (exp10l): Do not define here.
24565 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
24566 (weak_alias): Undefine and redefine.
24567 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
24568 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
24569 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
24570 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
24571
24572 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
24573 [!__fma] (fma): Define using libm_alias_double.
24574 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
24575 [!__fmaf] (fmaf): Define using libm_alias_float.
24576 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
24577 (fmal): Define using libm_alias_ldouble.
24578
24579 2017-10-10 Joseph Myers <joseph@codesourcery.com>
24580
24581 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
24582 New macro.
24583 (libm_alias_double_other): Likewise.
24584 (libm_alias_double_r): Use libm_alias_double_other_r.
24585 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
24586 New macro.
24587 (libm_alias_float_other): Likewise.
24588 (libm_alias_float_r): Use libm_alias_float_other_r.
24589 * sysdeps/generic/libm-alias-float128.h
24590 (libm_alias_float128_other_r): New macro.
24591 (libm_alias_float128_other): Likewise.
24592 (libm_alias_float128_r): Use libm_alias_float128_other_r.
24593 * sysdeps/generic/libm-alias-ldouble.h
24594 (libm_alias_ldouble_other_r): New macro.
24595 (libm_alias_ldouble_other): Likewise.
24596 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24597 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24598 (libm_alias_double_other_r): New macro.
24599 (libm_alias_double_other): Likewise.
24600 (libm_alias_double_r): Use libm_alias_double_other_r.
24601 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24602 (libm_alias_ldouble_other_r): New macro.
24603 (libm_alias_ldouble_other): Likewise.
24604 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24605 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
24606 [!USE_AS_COMPAT]: Use libm_alias_double_other.
24607 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
24608 [!USE_AS_COMPAT]: Use libm_alias_float_other.
24609 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
24610 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
24611 * math/w_exp2f.c: Use libm_alias_float_other.
24612 * math/w_expf.c: Likewise.
24613 * math/w_log2f.c: Likewise.
24614 * math/w_logf.c: Likewise.
24615 * math/w_powf.c: Likewise.
24616 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
24617 [!__exp2f]: Use libm_alias_float_other.
24618 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
24619 [!__expf]: Use libm_alias_float_other.
24620 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
24621 [!__log2f]: Use libm_alias_float_other.
24622 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
24623 [!__logf]: Use libm_alias_float_other.
24624 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
24625 [!__powf]: Use libm_alias_float_other.
24626
24627 2017-10-10 Florian Weimer <fweimer@redhat.com>
24628
24629 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
24630 function.
24631 (_nss_files_gethostbyname3_r): Call it.
24632
24633 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24634
24635 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
24636 error. Remove default definition of declare_mgen_alias.
24637 [!declare_mgen_alias_r]: Likewise.
24638 * sysdeps/generic/math-type-macros-double.h
24639 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
24640 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
24641 (declare_mgen_alias_r): Likewise.
24642 * sysdeps/generic/math-type-macros-float128.h
24643 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24644 * sysdeps/generic/math-type-macros-ldouble.h
24645 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24646 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
24647 macro.
24648 (declare_mgen_alias_r_s): Likewise.
24649 (declare_mgen_alias_r): Likewise.
24650 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
24651 (lgamma_r): Define using libm_alias_double_r.
24652 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
24653 (lgammaf_r): Define using libm_alias_float_r.
24654 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
24655 (lgammal_r): Define using libm_alias_ldouble_r.
24656 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
24657 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
24658
24659 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24660
24661 * lib/glob.c (__glob_pattern_type): Remove now-spurious
24662 extern declaration.
24663
24664 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24665
24666 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
24667
24668 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
24669
24670 [BZ #21326]
24671 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
24672 [__cplusplus >= 201103] (__USE_ISOC99): Define.
24673 * math/Makefile (test-math-cxx11): New test.
24674 * math/test-math-cxx11.cc: New file.
24675
24676 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
24677
24678 * login/openpty.c (openpty): Close slave pty file descriptor on error.
24679
24680 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
24681 call to allocate the slave pty file descriptor.
24682
24683 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24684
24685 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
24686 [!__fma] (fma): Define using libm_alias_double.
24687 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
24688 [!__fma] (fma): Define using libm_alias_double.
24689
24690 * sysdeps/ieee754/float128/float128_private.h: Include
24691 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
24692 (libm_alias_ldouble_r): Undefine and redefine.
24693 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
24694 <libm-alias-ldouble.h>.
24695 (asinhl): Define using libm_alias_ldouble.
24696 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
24697 <libm-alias-ldouble.h>.
24698 (atanl): Define using libm_alias_ldouble.
24699 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
24700 <libm-alias-ldouble.h>.
24701 (cbrtl): Define using libm_alias_ldouble.
24702 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
24703 <libm-alias-ldouble.h>.
24704 (ceill): Define using libm_alias_ldouble.
24705 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
24706 <libm-alias-ldouble.h>.
24707 (copysignl): Define using libm_alias_ldouble.
24708 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
24709 <libm-alias-ldouble.h>.
24710 (cosl): Define using libm_alias_ldouble.
24711 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
24712 <libm-alias-ldouble.h>.
24713 (erfl): Define using libm_alias_ldouble.
24714 (erfcl): Likewise.
24715 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
24716 <libm-alias-ldouble.h>.
24717 (expm1l): Define using libm_alias_ldouble.
24718 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
24719 <libm-alias-ldouble.h>.
24720 (fabsl): Define using libm_alias_ldouble.
24721 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
24722 <libm-alias-ldouble.h>.
24723 (floorl): Define using libm_alias_ldouble.
24724 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
24725 <libm-alias-ldouble.h>.
24726 (fmal): Define using libm_alias_ldouble.
24727 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
24728 <libm-alias-ldouble.h>.
24729 (frexpl): Define using libm_alias_ldouble.
24730 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
24731 libm_alias_ldouble.
24732 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
24733 <libm-alias-ldouble.h>.
24734 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
24735 libm_alias_ldouble.
24736 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
24737 <libm-alias-ldouble.h>.
24738 (getpayloadl): Define using libm_alias_ldouble.
24739 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
24740 <libm-alias-ldouble.h>.
24741 (llrintl): Define using libm_alias_ldouble.
24742 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
24743 <libm-alias-ldouble.h>.
24744 (llroundl): Define using libm_alias_ldouble.
24745 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
24746 <libm-alias-ldouble.h>.
24747 (logbl): Define using libm_alias_ldouble.
24748 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
24749 <libm-alias-ldouble.h>.
24750 (lrintl): Define using libm_alias_ldouble.
24751 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
24752 <libm-alias-ldouble.h>.
24753 (lroundl): Define using libm_alias_ldouble.
24754 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
24755 <libm-alias-ldouble.h>.
24756 (modfl): Define using libm_alias_ldouble.
24757 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
24758 <libm-alias-ldouble.h>.
24759 (nearbyintl): Define using libm_alias_ldouble.
24760 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
24761 <libm-alias-ldouble.h>.
24762 (nextafterl): Define using libm_alias_ldouble.
24763 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
24764 <libm-alias-ldouble.h>.
24765 (nextupl): Define using libm_alias_ldouble.
24766 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
24767 <libm-alias-ldouble.h>.
24768 (remquol): Define using libm_alias_ldouble.
24769 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
24770 <libm-alias-ldouble.h>.
24771 (rintl): Define using libm_alias_ldouble.
24772 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
24773 <libm-alias-ldouble.h>.
24774 (roundevenl): Define using libm_alias_ldouble.
24775 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
24776 <libm-alias-ldouble.h>.
24777 (roundl): Define using libm_alias_ldouble.
24778 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
24779 using libm_alias_ldouble.
24780 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
24781 <libm-alias-ldouble.h>.
24782 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
24783 Define using libm_alias_ldouble.
24784 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
24785 <libm-alias-ldouble.h>.
24786 (sincosl): Define using libm_alias_ldouble.
24787 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
24788 <libm-alias-ldouble.h>.
24789 (sinl): Define using libm_alias_ldouble.
24790 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
24791 <libm-alias-ldouble.h>.
24792 (tanhl): Define using libm_alias_ldouble.
24793 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
24794 <libm-alias-ldouble.h>.
24795 (tanl): Define using libm_alias_ldouble.
24796 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
24797 <libm-alias-ldouble.h>.
24798 (totalorderl): Define using libm_alias_ldouble.
24799 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
24800 <libm-alias-ldouble.h>.
24801 (totalordermagl): Define using libm_alias_ldouble.
24802 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
24803 <libm-alias-ldouble.h>.
24804 (truncl): Define using libm_alias_ldouble.
24805 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
24806 libm_alias_ldouble.
24807 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
24808 libm_alias_ldouble.
24809 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
24810 <libm-alias-ldouble.h>.
24811 (weak_alias): Do not undefine and redefine.
24812 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24813 (copysignl): Define with long_double_symbol only if [IS_IN
24814 (libc)].
24815 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
24816 <libm-alias-ldouble.h>.
24817 (weak_alias): Do not undefine and redefine.
24818 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24819 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
24820 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
24821 <libm-alias-ldouble.h>.
24822 (weak_alias): Do not undefine and redefine.
24823 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24824 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
24825 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
24826 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
24827 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
24828 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
24829 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
24830 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
24831 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
24832 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
24833 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
24834 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
24835 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
24836 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
24837 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
24838 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
24839 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
24840 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
24841 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
24842 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
24843 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
24844 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
24845 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
24846 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
24847 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
24848 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
24849
24850 2017-10-06 Carlos O'Donell <carlos@redhat.com>
24851
24852 [BZ #22111]
24853 * malloc/malloc.c (tcache_shutting_down): Use bool type.
24854 (tcache_thread_freeres): Set tcache_shutting_down before
24855 freeing the tcache.
24856 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
24857 * malloc/tst-malloc-tcache-leak.c: New file.
24858
24859 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24860
24861 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
24862 back to powerpc32 file.
24863 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
24864 (memrchr): Add __memrchr_power8 to ifunc list.
24865 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
24866 extra bytes for unaligned inputs.
24867
24868 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24869
24870 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
24871 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
24872 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
24873 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24874 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24875
24876 2017-10-05 Joseph Myers <joseph@codesourcery.com>
24877
24878 * sysdeps/arm/libm-test-ulps: Update.
24879
24880 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
24881 <libm-alias-ldouble.h>.
24882 (asinhl): Define using libm_alias_ldouble.
24883 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
24884 <libm-alias-ldouble.h>.
24885 (cbrtl): Define using libm_alias_ldouble.
24886 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
24887 <libm-alias-ldouble.h>.
24888 (copysignl): Define using libm_alias_ldouble.
24889 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
24890 <libm-alias-ldouble.h>.
24891 (cosl): Define using libm_alias_ldouble.
24892 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
24893 <libm-alias-ldouble.h>.
24894 (erfl): Define using libm_alias_ldouble.
24895 (erfcl): Likewise.
24896 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
24897 <libm-alias-ldouble.h>.
24898 (fmal): Define using libm_alias_ldouble.
24899 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
24900 <libm-alias-ldouble.h>.
24901 (frexpl): Define using libm_alias_ldouble.
24902 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
24903 libm_alias_ldouble.
24904 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
24905 <libm-alias-ldouble.h>.
24906 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
24907 libm_alias_ldouble.
24908 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
24909 <libm-alias-ldouble.h>.
24910 (getpayloadl): Define using libm_alias_ldouble.
24911 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
24912 <libm-alias-ldouble.h>.
24913 (llrintl): Define using libm_alias_ldouble.
24914 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
24915 <libm-alias-ldouble.h>.
24916 (llroundl): Define using libm_alias_ldouble.
24917 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
24918 <libm-alias-ldouble.h>.
24919 (lrintl): Define using libm_alias_ldouble.
24920 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
24921 <libm-alias-ldouble.h>.
24922 (lroundl): Define using libm_alias_ldouble.
24923 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
24924 <libm-alias-ldouble.h>.
24925 (modfl): Define using libm_alias_ldouble.
24926 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
24927 <libm-alias-ldouble.h>.
24928 (nextupl): Define using libm_alias_ldouble.
24929 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
24930 <libm-alias-ldouble.h>.
24931 (remquol): Define using libm_alias_ldouble.
24932 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
24933 <libm-alias-ldouble.h>.
24934 (roundevenl): Define using libm_alias_ldouble.
24935 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
24936 <libm-alias-ldouble.h>.
24937 (roundl): Define using libm_alias_ldouble.
24938 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
24939 using libm_alias_ldouble.
24940 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
24941 <libm-alias-ldouble.h>.
24942 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
24943 <libm-alias-ldouble.h>.
24944 (setpayloadsigl): Define using libm_alias_ldouble.
24945 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
24946 <libm-alias-ldouble.h>.
24947 (sincosl): Define using libm_alias_ldouble.
24948 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
24949 <libm-alias-ldouble.h>.
24950 (sinl): Define using libm_alias_ldouble.
24951 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
24952 <libm-alias-ldouble.h>.
24953 (tanhl): Define using libm_alias_ldouble.
24954 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
24955 <libm-alias-ldouble.h>.
24956 (tanl): Define using libm_alias_ldouble.
24957 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
24958 <libm-alias-ldouble.h>.
24959 (totalorderl): Define using libm_alias_ldouble.
24960 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
24961 <libm-alias-ldouble.h>.
24962 (totalordermagl): Define using libm_alias_ldouble.
24963 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
24964 libm_alias_ldouble.
24965 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
24966 libm_alias_ldouble.
24967
24968 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
24969
24970 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
24971 memmove_falkor.
24972 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
24973 (__libc_ifunc_impl_list): Likewise.
24974 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
24975 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
24976
24977 * benchtests/bench-memmove-walk.c: New file.
24978 * benchtests/Makefile (string-benchset): Add it.
24979
24980 * benchtests/bench-memset-walk.c: New file.
24981 * benchtests/Makefile (string-benchset): Add it.
24982
24983 * benchtests/bench-memcpy-walk.c: New file.
24984 * benchtests/Makefile (string-benchset): Add it.
24985
24986 2017-10-05 Florian Weimer <fweimer@redhat.com>
24987
24988 nscd: Eliminate compilation time dependency in the build output.
24989 * nscd/nscd_stat.c (STATDATA_VERSION)
24990 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
24991 (STATDATA_VERSION_FULL): New macro definitions.
24992 (compilation): Remove.
24993 (struct statdata): Adjust version member.
24994 (send_stats): Set version from STATDATA_VERSION_FULL.
24995 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
24996
24997 2017-10-05 Joseph Myers <joseph@codesourcery.com>
24998
24999 * configure.ac (--enable-add-ons): Remove option.
25000 (machine): Do not mention add-ons in comment.
25001 (LIBC_PRECONFIGURE): Likewise.
25002 (add_ons): Remove variable and sanity checks and logic to locate
25003 add-ons.
25004 (add_ons_automatic): Remove variable.
25005 (configured_add_ons): Likewise.
25006 (add_ons_sfx): Likewise.
25007 (add_ons_pfx): Likewise.
25008 (add_on_subdirs): Likewise.
25009 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25010 consideration of add-ons in Implies handling.
25011 (sysdeps_add_ons): Likewise.
25012 * configure: Regenerated.
25013 * libidn/configure.ac: Remove.
25014 * libidn/configure: Likewise.
25015 * sysdeps/unix/inet/configure.ac: New file.
25016 * sysdeps/unix/inet/configure: New generated file.
25017 * sysdeps/unix/inet/Subdirs: Add libidn.
25018 * Makeconfig (sysdeps-srcdirs): Remove variable.
25019 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25020 ($(common-objpfx)config.status): Do not depend on add-on files.
25021 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25022 comment.
25023 (all-subdirs): Do not include $(add-on-subdirs).
25024 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25025 * config.make.in (add-ons): Remove variable.
25026 (add-on-subdirs): Likewise.
25027 (sysdeps-add-ons): Likewise.
25028 * manual/Makefile (add-chapters): Remove.
25029 ($(objpfx)texis): Do not depend on $(add-chapters).
25030 (nonexamples): Do not handle $(add-chapters).
25031 (examples): Do not handle $(add-ons).
25032 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25033 libc-texinfo.sh.
25034 * manual/install.texi (Installation): Do not mention add-ons.
25035 (--enable-add-ons): Do not document configure option.
25036 * INSTALL: Regenerated.
25037 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25038 * manual/maint.texi (Hierarchy Conventions): Do not mention
25039 add-ons.
25040 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25041 --enable-add-ons.
25042 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25043 add-ons.
25044 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25045 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25046
25047 2017-10-05 Andreas Schwab <schwab@suse.de>
25048
25049 [BZ #15142]
25050 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25051 (_IO_flush_all_lockp): Always lock list_all_lock.
25052 (_IO_flush_all_linebuffered): Likewise.
25053 (_IO_unbuffer_all): Likewise.
25054
25055 2017-10-05 Florian Weimer <fweimer@redhat.com>
25056
25057 [BZ #15436]
25058 Do not flush stdio streams on abort.
25059 * stdlib/abort.c (fflush): Remove macro definition.
25060 (abort): Remove stages related to stdio flushing.
25061
25062 2017-10-05 Florian Weimer <fweimer@redhat.com>
25063
25064 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25065
25066 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25067
25068 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25069
25070 2017-10-05 Florian Weimer <fweimer@redhat.com>
25071
25072 * support/support_format_hostent.c (support_format_hostent): Add
25073 more error information for NETDB_INTERNAL.
25074
25075 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25076
25077 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25078 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25079 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25080 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25081 AC_DEFINE if multi-arch is enabled.
25082 * sysdeps/i386/configure: Regenerated.
25083
25084 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25085
25086 * Makeconfig (+link-static-before-libc): Use
25087 $(DEFAULT-LDFLAGS-$(@F)).
25088 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25089 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25090 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25091
25092 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25093
25094 * elf/Makefile (tests): Add tst-main1.
25095 (modules-names): Add tst-main1mod.
25096 ($(objpfx)tst-main1): New.
25097 (CRT-tst-main1): Likewise.
25098 (LDFLAGS-tst-main1): Likewise.
25099 (LDLIBS-tst-main1): Likewise.
25100 (tst-main1mod.so-no-z-defs): Likewise.
25101 * elf/tst-main1.c: New file.
25102 * elf/tst-main1mod.c: Likewise.
25103
25104 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25105
25106 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25107
25108 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25109
25110 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25111 (fma): Define using libm_alias_double.
25112 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25113 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25114 <math_ldbl_opt.h>.
25115 (fmal): Do not define as compat symbol here.
25116 * sysdeps/alpha/fpu/s_fma.c: New file.
25117
25118 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25119
25120 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25121
25122 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25123
25124 [BZ #22229]
25125 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25126 <math_ldbl_opt.h>
25127 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25128 and libc.
25129 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25130 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25131 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25132 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25133 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25134 Include <math_ldbl_opt.h>
25135 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25136 and libc.
25137 (compat_symbol): Undefine and redefine.
25138 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25139 <math_ldbl_opt.h>
25140 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25141 (compat_symbol): Undefine and redefine.
25142 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25143 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25144 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25145 GLIBC_2_1 for libm.
25146 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25147 GLIBC_2.0 copysignl symbol.
25148 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25149 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25150
25151 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25152
25153 2017-10-04 Florian Weimer <fweimer@redhat.com>
25154
25155 * scripts/check-local-headers.sh: Ignore nspr4 header file
25156 directory in addition to nspr.
25157
25158 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25159
25160 [BZ #17956]
25161 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25162 * configure: Regenerate.
25163 * crypt/Makefile (nss-cpp-flags): New variable.
25164 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25165 (CPPFLAGS-md5-crypt.c): Use it.
25166 * scripts/check-local-headers.sh: Ignore nspr header file
25167 directory.
25168
25169 2017-10-04 Andreas Schwab <schwab@suse.de>
25170
25171 * nis/Makefile (services): Remove compat.
25172 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25173 ($(objpfx)libnss_compat.so): Remove rule.
25174 * nis/Versions (libnss_compat): Remove.
25175 * nss/Makefile (services): Add compat.
25176 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25177 * nss/Versions (libnss_compat): Define.
25178 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25179 Don't include <rpc/types.h>. Replace bool_t by bool.
25180 * nss/nss_compat/compat-initgroups.c: Likewise.
25181 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25182 instead of <rpcsrv/ypclnt.h>.
25183 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25184 yp_get_default_domain.
25185 * nss/nss_compat/compat-pwd.c: Likewise.
25186 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25187 yp_get_default_domain.
25188 * nss/nss_compat/nisdomain.c: New file.
25189 * nss/nss_compat/nisdomain.h: Likewise.
25190
25191 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25192
25193 [BZ #22244]
25194 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25195 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25196
25197 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25198
25199 [BZ #22243]
25200 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25201 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25202
25203 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25204
25205 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25206 "movl main@GOTOFF(%ebx), %eax".
25207
25208 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25209
25210 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25211 allow undefined _DYNAMIC in PIE libc.a.
25212 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25213 Likewse.
25214
25215 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25216
25217 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25218 check _DYNAMIC.
25219
25220 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25221
25222 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25223 check _DYNAMIC.
25224
25225 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25226
25227 * math/test-math-iscanonical.cc (error): Replace bool with int.
25228
25229 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25230
25231 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25232 (modf): Define using libm_alias_double, only if [!__modf].
25233 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25234 <libm-alias-double.h>.
25235 (modf): Define using libm_alias_double, only if [!__modf].
25236 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25237 compat symbol here.
25238 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25239 (weak_alias): Do not undefine and redefine.
25240 (strong_alias): Likewise.
25241 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25242 (weak_alias): Likewise.
25243 (strong_alias): Likewise.
25244
25245 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25246 (logb): Define using libm_alias_double, only if [!__logb].
25247 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25248 <libm-alias-double.h>.
25249 (logb): Define using libm_alias_double, only if [!__logb].
25250 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25251 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25252 (weak_alias): Do not undefine and redefine.
25253 (strong_alias): Likewise.
25254 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25255 (weak_alias): Likewise.
25256 (strong_alias): Likewise.
25257
25258 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25259
25260 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25261 Check SHARED instead PIC.
25262
25263 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25264
25265 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25266 [!__fmaf] (fmaf): Define using libm_alias_float.
25267
25268 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25269 (frexp): Define using libm_alias_double.
25270 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25271 <libm-alias-double.h>.
25272 (frexp): Define using libm_alias_double.
25273 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25274 compat symbol here.
25275
25276 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25277
25278 [BZ #22235]
25279 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25280 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25281 (CFLAGS-test-math-iscanonical.cc): New variable.
25282 * math/test-math-iscanonical.cc: New file.
25283 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
25284 Provide a C++ implementation based on function overloading,
25285 rather than using __MATH_TG, which uses C-only builtins.
25286 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
25287 Likewise.
25288 * sysdeps/powerpc/powerpc64le/Makefile
25289 (CFLAGS-test-math-iscanonical.cc): New variable.
25290
25291 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25292
25293 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25294 (ceil): Define using libm_alias_double.
25295 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25296 (floor): Define using libm_alias_double.
25297 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25298 <libm-alias-double.h>.
25299 (llround): Define using libm_alias_double.
25300 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25301 <libm-alias-double.h>.
25302 (lround): Define using libm_alias_double.
25303 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25304 <libm-alias-double.h>.
25305 (nearbyint): Define using libm_alias_double.
25306 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25307 <libm-alias-double.h>.
25308 (remquo): Define using libm_alias_double.
25309 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
25310 (rint): Define using libm_alias_double.
25311 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
25312 (round): Define using libm_alias_double.
25313 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
25314 (trunc): Define using libm_alias_double.
25315 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
25316 <libm-alias-double.h>.
25317 (ceil): Define using libm_alias_double.
25318 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
25319 <libm-alias-double.h>.
25320 (floor): Define using libm_alias_double.
25321 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
25322 <libm-alias-double.h>.
25323 (llround): Define using libm_alias_double.
25324 [_LP64] (lround): Likewise.
25325 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
25326 <libm-alias-double.h>.
25327 [!_LP64] (lround): Define using libm_alias_double.
25328 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
25329 <libm-alias-double.h>.
25330 (nearbyint): Define using libm_alias_double.
25331 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
25332 <libm-alias-double.h>.
25333 (remquo): Define using libm_alias_double.
25334 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
25335 <libm-alias-double.h>.
25336 (rint): Define using libm_alias_double.
25337 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
25338 <libm-alias-double.h>.
25339 (round): Define using libm_alias_double.
25340 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
25341 <libm-alias-double.h>.
25342 (trunc): Define using libm_alias_double.
25343 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
25344 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
25345 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
25346 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
25347 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
25348 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
25349 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
25350 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
25351 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
25352
25353 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25354
25355 * math/w_remainder.c: New file.
25356 * math/w_remainderf.c: New file.
25357 * math/w_remainderl.c: New file.
25358
25359 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25360
25361 * elf/rtld.c (BOOTSTRAP_MAP): New.
25362 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
25363 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25364 Likewise.
25365 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25366 Likewise.
25367 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25368 Likewise.
25369
25370 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25371
25372 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
25373 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
25374 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
25375 rtld_hidden_data_ver): Define to empty.
25376 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
25377 __assert_perror_fail): Likewise.
25378 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25379 (__rewinddir): Likewise.
25380 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25381 (__profile_frequency): Likewise.
25382 * include/setjmp.h (__sigsetjmp): Likewise.
25383 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
25384 __libc_sigaction): Likewise.
25385 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
25386 not set hidden attribute.
25387 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
25388 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
25389 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
25390 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
25391 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
25392 __fxstatat64): Likewise.
25393 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25394 (__uname): Likewise.
25395 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25396 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
25397 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
25398 (NO_RTLD_HIDDEN): Set.
25399 * sysdeps/mach/hurd/configure: Refresh.
25400 * config.h.in: Refresh.
25401
25402 2017-10-02 Joseph Myers <joseph@codesourcery.com>
25403
25404 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
25405 (atan): Define using libm_alias_double.
25406 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
25407 (tan): Define using libm_alias_double.
25408 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
25409 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
25410
25411 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
25412 define as weak alias of __atan. Do not define any aliases if
25413 [__atan].
25414 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
25415 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
25416 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
25417 as weak alias of __tan. Do not define any aliases if [__tan].
25418 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
25419 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
25420 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
25421 __atan.
25422 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
25423 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
25424 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
25425 and define as weak alias of __atan.
25426 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
25427 __atan.
25428 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
25429 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
25430 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
25431 define as weak alias of __tan.
25432
25433 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25434
25435 * math/w_lgamma.c: New file.
25436 * math/w_lgammaf.c: New file.
25437 * math/w_lgammal.c: New file.
25438
25439 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25440
25441 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
25442 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
25443 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
25444 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
25445 * sysdeps/ieee754/flt-32/w_logf.c: New file.
25446 * sysdeps/ieee754/flt-32/w_powf.c: New file.
25447 * sysdeps/i386/fpu/w_log2f.c: New file.
25448 * sysdeps/i386/fpu/w_logf.c: New file.
25449 * sysdeps/i386/fpu/w_powf.c: New file.
25450 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
25451 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
25452 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
25453
25454 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25455 H.J. Lu <hongjiu.lu@intel.com>
25456
25457 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
25458 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
25459 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
25460 * sysdeps/ieee754/flt-32/w_expf.c: New file.
25461 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
25462 the new expf code.
25463 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
25464 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
25465 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
25466 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
25467 * sysdeps/i386/fpu/w_exp2f.c: New file.
25468 * sysdeps/i386/fpu/w_expf.c: New file.
25469 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
25470 * sysdeps/x86_64/fpu/w_expf.c: New file.
25471
25472 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25473
25474 * math/Versions (logf): New libm symbol at GLIBC_2.27.
25475 (log2f): Likewise.
25476 (powf): Likewise.
25477 * math/w_log2f.c: New file.
25478 * math/w_logf.c: New file.
25479 * math/w_powf.c: New file.
25480 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
25481 * math/w_logf_compat.c (__logf_compat): Likewise.
25482 * math/w_powf_compat.c (__powf_compat): Likewise.
25483 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
25484 * sysdeps/ia64/fpu/e_logf.S: Likewise.
25485 * sysdeps/ia64/fpu/e_powf.S: Likewise.
25486 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
25487 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25488 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25489 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25490 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25491 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25492 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25493 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25494 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25495 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25496 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25497 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25498 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25499 Likewise.
25500 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25501 Likewise.
25502 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25503 Likewise.
25504 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25505 Likewise.
25506 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25507 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25508 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25509 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25510 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25511 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25512 Likewise.
25513 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25514 Likewise.
25515 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25516 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25517 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25518
25519 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25520
25521 * sysdeps/powerpc/powerpc64/multiarch/Makefile
25522 (sysdep_routines): Add memrchr_power8.
25523 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
25524 (memrchr): Add __memrchr_power8 to list of memrchr functions.
25525 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
25526 New file.
25527 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25528 (memrchr): Add __memrchr_power8 to ifunc list.
25529 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
25530
25531 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25532
25533 [BZ #18822]
25534 * sysdeps/unix/sysv/linux/posix_fadvise64.c
25535 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
25536 libc_hidden_def.
25537 * sysdeps/unix/sysv/linux/posix_fallocate64.c
25538 (__posix_fallocate64_l64): Likewise.
25539
25540 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25541
25542 [BZ #18822]
25543 * sysdeps/unix/sysv/linux/sched_setaffinity.c
25544 (__sched_setaffinity_new): Add libc_hidden_proto and
25545 libc_hidden_def.
25546
25547 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25548
25549 [BZ #18822]
25550 * include/glob.h (__glob64): Add libc_hidden_proto.
25551 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
25552 libc_hidden_def.
25553
25554 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25555
25556 [BZ #18822]
25557 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
25558 attribute_hidden.
25559
25560 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25561
25562 [BZ #18822]
25563 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
25564
25565 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25566
25567 [BZ #18822]
25568 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
25569 libc_hidden_def.
25570
25571 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25572
25573 [BZ #18822]
25574 * csu/version.c (__libc_print_version): Add attribute_hidden.
25575
25576 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25577
25578 [BZ #18822]
25579 * include/libc-internal.h (__init_misc): Add attribute_hidden.
25580
25581 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25582
25583 [BZ #18822]
25584 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
25585
25586 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25587
25588 [BZ #18822]
25589 * nscd/nscd_helper.c (__nis_hash): New prototype.
25590
25591 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25592
25593 [BZ #18822]
25594 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
25595 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
25596 libc_hidden_def.
25597 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
25598 * termios/tcgetattr.c (__tcgetattr): Likewise.
25599
25600 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25601
25602 [BZ #18822]
25603 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
25604 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
25605 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
25606 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
25607 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
25608
25609 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25610
25611 [BZ #18822]
25612 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
25613
25614 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25615
25616 [BZ #18822]
25617 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
25618 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
25619
25620 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25621
25622 [BZ #18822]
25623 * intl/hash-string.h (__hash_string): Add attribute_hidden.
25624
25625 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25626
25627 [BZ #18822]
25628 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
25629 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
25630
25631 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25632
25633 [BZ #18822]
25634 * include/ifreq.h: New file.
25635 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
25636 (__ifreq): Likewise.
25637 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
25638 (__ifreq): Likewise.
25639
25640 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25641
25642 [BZ #18822]
25643 * include/idna.h: New file.
25644 * inet/getnameinfo.c: Include <idna.h> instead of
25645 <libidn/idna.h>.
25646 (__idna_to_unicode_lzlz): Removed.
25647 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
25648 <libidn/idna.h>.
25649 (__idna_to_ascii_lz): Removed.
25650 (__idna_to_unicode_lzlz): Likewise.
25651
25652 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25653
25654 [BZ #18822]
25655 * include/plural-exp.h: New file.
25656 * intl/plural-exp.c: Include <plural-exp.h> instead of
25657 "plural-exp.h".
25658
25659 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25660
25661 [BZ #18822]
25662 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
25663 "getsourcefilter.h".
25664 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
25665 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
25666 "getsourcefilter.h".
25667 (__get_sol): Removed.
25668
25669 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25670
25671 [BZ #18822]
25672 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
25673 to ...
25674 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
25675
25676 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25677
25678 [BZ #18822]
25679 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
25680 attribute_hidden.
25681
25682 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25683
25684 [BZ #18822]
25685 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
25686
25687 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25688
25689 [BZ #18822]
25690 * include/search.h (__tdestroy): Add libc_hidden_proto.
25691 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
25692
25693 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25694
25695 [BZ #18822]
25696 * include/assert.h (__assert_fail_base): Add attribute_hidden.
25697
25698 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25699
25700 [BZ #18822]
25701 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
25702 attribute_hidden.
25703
25704 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25705
25706 [BZ #18822]
25707 * include/signal.h (__kill): Add libc_hidden_proto.
25708 (__sigblock): Likewise.
25709 (__sigprocmask): Likewise.
25710 (__sigaltstack): Likewise.
25711 * signal/kill.c (__kill): Add libc_hidden_def.
25712 * signal/sigblock.c (__sigblock): Likewise.
25713 * signal/sigprocmask.c (__sigprocmask): Likewise.
25714 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
25715 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
25716 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
25717 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
25718 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
25719 Likewise.
25720 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
25721 Likewise.
25722 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
25723 (__sigprocmask): Likewise.
25724 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
25725 Likewise.
25726 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
25727 (__sigprocmask): Likewise.
25728 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
25729 Likewise.
25730
25731 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25732
25733 [BZ #18822]
25734 * include/string.h (__strsep): Add libc_hidden_proto.
25735 * string/strsep.c (__strsep): Add libc_hidden_def.
25736
25737 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25738
25739 [BZ #18822]
25740 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
25741 attribute_hidden.
25742 (__spawni): Likewise.
25743
25744 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25745
25746 [BZ #18822]
25747 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
25748 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
25749 libc_hidden_def.
25750
25751 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25752
25753 [BZ #18822]
25754 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
25755
25756 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25757
25758 [BZ #18822]
25759 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
25760 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
25761 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
25762 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
25763 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
25764 Likewise.
25765 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
25766 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
25767
25768 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25769
25770 [BZ #18822]
25771 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
25772 (__dcigettext): Likewise.
25773
25774 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25775
25776 [BZ #18822]
25777 * include/sys/sysinfo.h (__get_nprocs_conf): Add
25778 libc_hidden_proto.
25779 (__get_nprocs): Likewise.
25780 (__get_phys_pages): Likewise.
25781 (__get_avphys_pages): Likewise.
25782 (__get_child_max): Add attribute_hidden.
25783 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
25784 (__get_nprocs): Likewise.
25785 (__get_phys_pages): Likewise.
25786 (__get_avphys_pages): Likewise.
25787 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
25788 libc_hidden_def.
25789 (__get_nprocs): Likewise.
25790 (__get_phys_pages): Likewise.
25791 (__get_avphys_pages): Likewise.
25792 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
25793 libc_hidden_def.
25794 (__get_nprocs_conf): Likewise.
25795 (__get_phys_pages): Likewise.
25796 (__get_avphys_pages): Likewise.
25797
25798 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25799
25800 [BZ #18822]
25801 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
25802 attribute_hidden.
25803 (__netlink_close): Likewise.
25804 (__netlink_free_handle): Likewise.
25805 (__netlink_request): Likewise.
25806
25807 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25808
25809 [BZ #18822]
25810 * include/rpc/rpc.h (__rpc_thread_variables): Add
25811 attribute_hidden.
25812 (__rpc_thread_svc_cleanup): Likewise.
25813 (__rpc_thread_clnt_cleanup): Likewise.
25814 (__rpc_thread_key_cleanup): Likewise.
25815
25816 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25817
25818 [BZ #18822]
25819 * include/sys/uio.h (__readv): Add libc_hidden_proto.
25820 (__writev): Likewise.
25821 * misc/readv.c (__readv): Add libc_hidden_def.
25822 * misc/writev.c (__writev): Likewise.
25823 * sysdeps/posix/readv.c (__readv): Likewise.
25824 * sysdeps/posix/writev.c (__writev): Likewise.
25825 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
25826 (__readv): Likewise.
25827 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
25828 (__writev): Likewise.
25829
25830 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25831
25832 [BZ #18822]
25833 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
25834 (__regcomp): Add libc_hidden_proto.
25835 (__regexec): Likewise.
25836 (__regfree): Likewise.
25837 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
25838 (__regfree): Likewise.
25839 * posix/regexec.c (__regexec): Likewise.
25840
25841 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25842
25843 [BZ #18822]
25844 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
25845 (__getutent): Likewise.
25846 (__getutid): Likewise.
25847 (__getutline): Likewise.
25848 (__pututline): Likewise.
25849 (__getutent_r): Likewise.
25850 (__getutid_r): Likewise.
25851 (__getutline_r): Likewise.
25852 (__utmpname): Add attribute_hidden.
25853 (__setutent): Likewise.
25854 (__endutent): Likewise.
25855 * login/getutent.c (__getutent): Add libc_hidden_def.
25856 * login/getutent_r.c (__getutent_r): Likewise.
25857 (__pututline): Likewise.
25858 * login/getutid.c (__getutid): Likewise.
25859 * login/getutid_r.c (__getutid_r): Likewise.
25860 * login/getutline.c (__getutline): Likewise.
25861 * login/getutline_r.c (__getutline_r): Likewise.
25862 * login/updwtmp.c (__updwtmp): Likewise.
25863
25864 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25865
25866 [BZ #18822]
25867 * include/dirent.h (__opendir): Always add attribute_hidden.
25868 (__fdopendir): Likewise.
25869 (__closedir): Likewise.
25870 (__readdir): Likewise.
25871 (__readdir64): Add libc_hidden_proto.
25872 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
25873 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
25874 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
25875 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
25876 New alias.
25877
25878 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25879
25880 [BZ #18822]
25881 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
25882 * include/netdb.h (__gethostbyaddr_r): Likewise.
25883 (__gethostbyname_r): Likewise.
25884 (__gethostbyname2_r): Likewise.
25885 (__getnetbyaddr_r): Likewise.
25886 (__getnetbyname_r): Likewise.
25887 (__getservbyname_r): Likewise.
25888 (__getservbyport_r): Likewise.
25889 (__getprotobyname_r): Likewise.
25890 (__getprotobynumber_r): Likewise.
25891 (__getnetgrent_r): Likewise.
25892 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
25893 (__getrpcbynumber_r): Likewise.
25894 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
25895
25896 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25897
25898 [BZ #18822]
25899 * include/stdio.h (__fcloseall): Add attribute_hidden.
25900 (__getline): Likewise.
25901 (__path_search): Likewise.
25902 (__gen_tempname): Likewise.
25903 (__libc_message): Likewise.
25904 (__flockfile): Likewise.
25905 (__funlockfile): Likewise.
25906 (__fxprintf): Likewise.
25907 (__fxprintf_nocancel): Likewise.
25908
25909 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25910
25911 [BZ #18822]
25912 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
25913 (__sgetsgent_r): Likewise.
25914
25915 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25916
25917 [BZ #18822]
25918 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
25919 (__statfs64): Likewise.
25920 (__fstatfs64): Likewise.
25921 * include/sys/statvfs.h (__statvfs64): Likewise.
25922 (__fstatvfs64): Likewise.
25923 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
25924 (__statfs_filesize_max): Likewise.
25925 (__statfs_symlinks): Likewise.
25926 (__statfs_chown_restricted): Likewise.
25927
25928 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25929
25930 [BZ #18822]
25931 * include/time.h (__tzstring): Add attribute_hidden.
25932 (__tzfile_read): Likewise.
25933 (__tzfile_compute): Likewise.
25934 (__tzfile_default): Likewise.
25935 (__tzset_parse_tz): Likewise.
25936 (__offtime): Likewise.
25937 (__asctime_r): Likewise.
25938 (__tzset): Likewise.
25939 (__tz_convert): Likewise.
25940 (__getdate_r): Likewise.
25941 (__getclktck): Likewise.
25942
25943 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25944
25945 [BZ #18822]
25946 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
25947 (__nscd_unmap): Likewise.
25948 (__nscd_cache_search): Likewise.
25949 (__nscd_get_nl_timestamp): Likewise.
25950 (__nscd_getpwnam_r): Likewise.
25951 (__nscd_getpwuid_r): Likewise.
25952 (__nscd_getgrnam_r): Likewise.
25953 (__nscd_getgrgid_r): Likewise.
25954 (__nscd_gethostbyname_r): Likewise.
25955 (__nscd_gethostbyname2_r): Likewise.
25956 (__nscd_gethostbyaddr_r): Likewise.
25957 (__nscd_getai): Likewise.
25958 (__nscd_getgrouplist): Likewise.
25959 (__nscd_getservbyname_r): Likewise.
25960 (__nscd_getservbyport_r): Likewise.
25961 (__nscd_innetgr): Likewise.
25962 (__nscd_setnetgrent): Likewise.
25963
25964 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25965
25966 [BZ #18822]
25967 * include/gmp.h: Declare internal functions only if _ISOMAC is
25968 undefined.
25969 (__mpn_extract_double): Add attribute_hidden.
25970 (__mpn_extract_long_double): Likewise.
25971 (__mpn_extract_float128): Likewise.
25972 (__mpn_construct_float): Likewise.
25973 (__mpn_construct_double): Likewise.
25974 (__mpn_construct_long_double): Likewise.
25975 (__mpn_construct_float128): Likewise.
25976 (mpn_add_1): Likewise.
25977 (mpn_addmul_1): Likewise.
25978 (mpn_add_n): Likewise.
25979 (mpn_cmp): Likewise.
25980 (mpn_divrem): Likewise.
25981 (mpn_lshift): Likewise.
25982 (mpn_mul): Likewise.
25983 (mpn_mul_1): Likewise.
25984 (mpn_rshift): Likewise.
25985 (mpn_sub_1): Likewise.
25986 (mpn_submul_1): Likewise.
25987 (mpn_sub_n): Likewise.
25988
25989 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25990
25991 [BZ #18822]
25992 * include/wchar.h (__wcsnlen): Add attribute_hidden.
25993 (__wcscat): Likewise.
25994 (__btowc): Likewise.
25995 (__wcrtomb): Likewise.
25996 (__mbsrtowcs): Likewise.
25997 (__wcsrtombs): Likewise.
25998 (__mbsnrtowcs): Likewise.
25999 (__wcsnrtombs): Likewise.
26000 (__wcsncpy): Likewise.
26001 (__wcpncpy): Likewise.
26002 (__wmemcpy): Likewise.
26003 (__wmempcpy): Likewise.
26004 (__wmemmove): Likewise.
26005 (__wcschrnul): Likewise.
26006 (__vfwscanf): Likewise.
26007 (__vswprintf): Likewise.
26008 (__fwprintf): Likewise.
26009 (__vfwprintf): Likewise.
26010
26011 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26012
26013 [BZ #18822]
26014 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26015 (__getgrgid_r): Likewise.
26016 (__getgrnam_r): Likewise.
26017 * include/pwd.h (__getpwuid_r): Likewise.
26018 (__getpwnam_r): Likewise.
26019 (__fgetpwent_r): Likewise.
26020 * include/shadow.h (__getspnam_r): Likewise.
26021 (__sgetspent_r): Likewise.
26022 (__fgetspent_r): Likewise.
26023
26024 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26025
26026 [BZ #18822]
26027 * include/unistd.h (__access): Add attribute_hidden.
26028 (__lseek64): Likewise.
26029 (__libc_pread64): Likewise.
26030 (__pipe2): Likewise.
26031 (__sleep): Likewise.
26032 (__chdir): Likewise.
26033 (__fchdir): Likewise.
26034 (__getcwd): Likewise.
26035 (__rmdir): Likewise.
26036 (__execvpe): Likewise.
26037 (__execve): Likewise.
26038 (__setsid): Likewise.
26039 (__getuid): Likewise.
26040 (__geteuid): Likewise.
26041 (__getgid): Likewise.
26042 (__getegid): Likewise.
26043 (__getgroups): Likewise.
26044 (__group_member): Likewise.
26045 (__ttyname_r): Likewise.
26046 (__isatty): Likewise.
26047 (__readlink): Likewise.
26048 (__unlink): Likewise.
26049 (__gethostname): Likewise.
26050 (__profil): Likewise.
26051 (__getdtablesize): Likewise.
26052 (__brk): Likewise.
26053 (__ftruncate): Likewise.
26054 (__ftruncate64): Likewise.
26055
26056 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26057
26058 [BZ #18822]
26059 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26060 * argp/argp-fs-xinl.c: Likewise.
26061 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26062 * argp/argp-parse.c: Include <argp.h>.
26063 * argp/argp-xinl.c: Likewise.
26064 * include/argp-fmtstream.h: New file.
26065 * include/argp.h (__argp_error): Add attribute_hidden.
26066 (__argp_failure): Likewise.
26067 (__argp_input): Likewise.
26068 (__argp_state_help): Likewise.
26069
26070 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26071
26072 [BZ #18822]
26073 * include/wchar.h (____wcstof_l_internal): New prototype.
26074 (____wcstod_l_internal): Likewise.
26075 (____wcstold_l_internal): Likewise.
26076 (____wcstol_l_internal): Likewise.
26077 (____wcstoul_l_internal): Likewise.
26078 (____wcstoll_l_internal): Likewise.
26079 (____wcstoull_l_internal): Likewise.
26080 (____wcstof128_l_internal): Likewise.
26081 * sysdeps/ieee754/float128/wcstof128.c
26082 (____wcstof128_l_internal): Removed.
26083 * sysdeps/ieee754/float128/wcstof128_l.c
26084 (____wcstof128_l_internal): Likewise.
26085 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26086 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26087 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26088 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26089 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26090 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26091 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26092 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26093 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26094 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26095
26096 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26097
26098 [BZ #18822]
26099 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26100 instead of <sys/statvfs.h>.
26101 (__internal_statvfs): Removed.
26102 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26103 instead of <sys/statvfs.h>.
26104 (__internal_statvfs64): Removed.
26105 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26106 "internal_statvfs.h" instead of <sys/statvfs.h>.
26107 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26108 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26109 instead of <sys/statvfs.h>.
26110 (__internal_statvfs): Removed.
26111 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26112 instead of <sys/statvfs.h>.
26113 (__internal_statvfs64): Removed.
26114
26115 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26116
26117 [BZ #18822]
26118 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26119 (__gconv_close): Likewise.
26120 (__gconv): Likewise.
26121 (__gconv_find_transform): Likewise.
26122 (__gconv_lookup_cache): Likewise.
26123 (__gconv_compare_alias_cache): Likewise.
26124 (__gconv_load_cache): Likewise.
26125 (__gconv_get_path): Likewise.
26126 (__gconv_close_transform): Likewise.
26127 (__gconv_release_cache): Likewise.
26128 (__gconv_find_shlib): Likewise.
26129 (__gconv_release_shlib): Likewise.
26130 (__gconv_get_builtin_trans): Likewise.
26131 (__gconv_compare_alias): Likewise.
26132 * include/dlfcn.h (_dlerror_run): Likewise.
26133 * include/stdio.h (__fortify_fail_abort): Likewise.
26134 * include/time.h (__tz_compute): Likewise.
26135 (__strptime_internal): Likewise.
26136 * intl/gettextP.h (_nl_find_domain): Likewise.
26137 (_nl_load_domain): Likewise.
26138 (_nl_find_msg): Likewise.
26139 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26140 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26141 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26142 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26143 (__gai_find_request): Likewise.
26144 (__gai_remove_request): Likewise.
26145 (__gai_notify): Likewise.
26146 (__gai_notify_only): Likewise.
26147 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26148 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26149 (_dl_non_dynamic_init): Likewise.
26150 (_dl_aux_init): Likewise.
26151 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26152 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26153 Likewise.
26154 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26155 (__wcsmbs_clone_conv): Likewise.
26156 (__wcsmbs_named_conv): Likewise.
26157
26158 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26159
26160 [BZ #18822]
26161 * include/stdlib.h (__random): Add attribute_hidden.
26162 (__random_r): Likewise.
26163 (__srandom_r): Likewise.
26164 (__initstate_r): Likewise.
26165 (__setstate_r): Likewise.
26166 (__erand48_r): Likewise.
26167 (__nrand48_r): Likewise.
26168 (__jrand48_r): Likewise.
26169 (__srand48_r): Likewise.
26170 (__seed48_r): Likewise.
26171 (__lcong48_r): Likewise.
26172 (__drand48_iterate): Likewise.
26173 (__setenv): Likewise.
26174 (__unsetenv): Likewise.
26175 (__clearenv): Likewise.
26176 (__ptsname_r): Likewise.
26177 (__posix_openpt): Likewise.
26178 (__add_to_environ): Likewise.
26179 (__realpath): Add libc_hidden_proto.
26180 (__ecvt_r): Likewise.
26181 (__fcvt_r): Likewise.
26182 (__qecvt_r): Likewise.
26183 (__qfcvt_r): Likewise.
26184 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26185 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26186
26187 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26188
26189 [BZ #18822]
26190 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26191 * include/time.h (__mktime_internal): Likewise.
26192 * libio/iolibio.h (__fopen_internal): Likewise.
26193
26194 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26195
26196 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26197 pointer in frame.
26198 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26199 Correct offset used to restore PIC register.
26200
26201 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26202
26203 [BZ libc/22165]
26204 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26205 code to load address of __getcontext_ret when generating PIC code.
26206
26207 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26208
26209 * elf/Makefile (tests-static-internal): Add
26210 tst-tls1-static-non-pie.
26211 (LDFLAGS-tst-tls1-static-non-pie): New.
26212 * elf/tst-tls1-static-non-pie.c: New file.
26213
26214 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26215
26216 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26217 (asinh): Define using libm_alias_double.
26218 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26219 (cbrt): Define using libm_alias_double.
26220 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26221 <libm-alias-double.h>.
26222 (copysign): Define using libm_alias_double.
26223 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26224 (erf): Define using libm_alias_double.
26225 (erfc): Likewise.
26226 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26227 (expm1): Define using libm_alias_double.
26228 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26229 (fabs): Define using libm_alias_double.
26230 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26231 libm_alias_double.
26232 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26233 <libm-alias-double.h>.
26234 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26235 libm_alias_double.
26236 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26237 <libm-alias-double.h>.
26238 (getpayload): Define using libm_alias_double.
26239 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26240 <libm-alias-double.h>.
26241 (llrint): Define using libm_alias_double.
26242 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26243 (lrint): Define using libm_alias_double.
26244 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26245 <libm-alias-double.h>.
26246 (nextup): Define using libm_alias_double.
26247 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26248 <libm-alias-double.h>.
26249 (roundeven): Define using libm_alias_double.
26250 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26251 libm_alias_double.
26252 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26253 <libm-alias-double.h>.
26254 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26255 using libm_alias_double.
26256 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26257 (cos): Define using libm_alias_double.
26258 (sin): Likewise.
26259 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26260 <libm-alias-double.h>.
26261 (sincos): Define using libm_alias_double.
26262 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26263 (tanh): Define using libm_alias_double.
26264 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26265 <libm-alias-double.h>.
26266 (totalorder): Define using libm_alias_double.
26267 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26268 <libm-alias-double.h>.
26269 (totalordermag): Define using libm_alias_double.
26270 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26271 libm_alias_double.
26272 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26273 libm_alias_double.
26274 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26275 <libm-alias-double.h>.
26276 (getpayload): Define using libm_alias_double.
26277 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26278 <libm-alias-double.h>.
26279 (roundeven): Define using libm_alias_double.
26280 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26281 <libm-alias-double.h>.
26282 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26283 <libm-alias-double.h>.
26284 (totalorder): Define using libm_alias_double.
26285 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
26286 <libm-alias-double.h>.
26287 (totalordermag): Define using libm_alias_double.
26288 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
26289 libc compat symbol here.
26290 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
26291 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26292 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26293 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26294 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26295 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26296 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26297 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26298 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26299 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26300
26301 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26302
26303 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26304 _dl_relocate_static_pie instead of _dl_start to compute load
26305 address in static PIE. Return 0 if _DYNAMIC is undefined for
26306 static executable.
26307
26308 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26309
26310 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
26311 _DYNAMIC is undefined for static executable.
26312
26313 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26314
26315 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
26316
26317 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26318
26319 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26320
26321 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26322
26323 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
26324 (__ieee754_lgamma_r): Use fabs rather than __fabs.
26325 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
26326 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
26327 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
26328 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
26329 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
26330 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
26331 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
26332 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26333 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
26334 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
26335 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26336 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26337 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
26338 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
26339 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
26340
26341 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26342
26343 * math/bits/cmathcalls.h (cimag): Remove inline.
26344 (creal): Remove inline.
26345 (conj): Remove inline.
26346
26347 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26348
26349 * math/Makefile (type-float-routines): Add e_powf_log2_data.
26350 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
26351 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
26352 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
26353 (issignalingf_inline): Likewise.
26354 (POWF_LOG2_TABLE_BITS): Likewise.
26355 (POWF_LOG2_POLY_ORDER): Likewise.
26356 (POWF_SCALE_BITS): Likewise.
26357 (POWF_SCALE): Likewise.
26358 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
26359 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
26360 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
26361
26362 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26363
26364 * math/Makefile (type-float-routines): Add e_log2f_data.
26365 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
26366 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
26367 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
26368 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
26369 * sysdeps/i386/fpu/e_log2f_data.c: New file.
26370 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
26371 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
26372
26373 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26374
26375 * math/Makefile (type-float-routines): Add e_logf_data.
26376 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
26377 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
26378 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
26379 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
26380 * sysdeps/i386/fpu/e_logf_data.c: New file.
26381 * sysdeps/ia64/fpu/e_logf_data.c: New file.
26382 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
26383
26384 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
26385
26386 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
26387 undefined _DYNAMIC in PIE libc.a.
26388 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26389 Likewse.
26390
26391 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26392
26393 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
26394 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
26395 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
26396 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
26397 (__signbit): Remove.
26398 (__signbitl): Remove.
26399 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
26400 (__signbit): Remove.
26401 (__signbitl): Remove.
26402 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
26403 (__signbit): Remove.
26404 (__signbitl): Remove.
26405 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
26406 (__signbit): Remove.
26407 (__signbitl): Remove.
26408 * sysdeps/tile/bits/mathinline.h: Delete file.
26409 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
26410 (__signbit): Remove.
26411 (__signbitl): Remove.
26412
26413 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26414
26415 * math/math.h: Improve handling of C99 isgreater macros.
26416 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
26417 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
26418 * sysdeps/powerpc/bits/mathinline.h: Likewise.
26419 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
26420 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
26421
26422 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
26423
26424 * sysdeps/aarch64/libm-test-ulps: Update.
26425
26426 2017-09-28 Joseph Myers <joseph@codesourcery.com>
26427
26428 [BZ #22225]
26429 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
26430 math_opt_barrier on argument when doing arithmetic on it.
26431 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
26432 Likewise. Use math_force_eval not math_opt_barrier after
26433 arithmetic.
26434 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
26435 math_opt_barrier on argument when doing arithmetic on it.
26436 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
26437 Likewise.
26438
26439 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
26440
26441 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
26442 libc_hidden_def.
26443 (__freeifaddrs): Likewise.
26444
26445 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
26446
26447 * include/dirent.h (__dirfd): New declaration.
26448 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
26449 alias.
26450 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
26451 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
26452 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
26453 * include/unistd.h (__revoke): New declaration.
26454 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
26455 alias.
26456 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
26457 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
26458 revoke.
26459 * include/dirent.h (__seekdir): New declaration.
26460 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
26461 redefine as weak alias.
26462 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
26463 of seekdir.
26464 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
26465 and use libc_hidden_def on them.
26466 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
26467 them.
26468 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
26469 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
26470 instead of getifaddrs and freeifaddrs.
26471
26472 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26473
26474 [BZ #18822]
26475 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
26476 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
26477 (__dso_handle): Remove declaration.
26478 * dlfcn/tstatexit.c (__dso_handle): Removed.
26479 (main): Don't check __dso_handle.
26480 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
26481 (main): Don't check __dso_handle.
26482 * include/dso_handle.h: New file.
26483 * malloc/mtrace.c: Include <dso_handle.h>.
26484 (mtrace): Pass __dso_handle directly.
26485 * nptl/pthread_atfork.c: Include <dso_handle.h>.
26486 (__dso_handle): Remove declaration.
26487 (__pthread_atfork): Pass __dso_handle directly.
26488 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
26489 (__dso_handle): Removed.
26490 * posix/wordexp-test.c: Include <dso_handle.h>.
26491 (__dso_handle): Remove declaration.
26492 (__app_register_atfork): Pass __dso_handle directly.
26493 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
26494 (__dso_handle): Remove declaration.
26495 (at_quick_exit): Pass __dso_handle directly.
26496 * stdlib/atexit.c: Include <dso_handle.h>.
26497 (__dso_handle): Remove declaration.
26498 (atexit): Pass __dso_handle directly.
26499 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
26500 (__dso_handle): Removed.
26501
26502 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26503
26504 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
26505 using VDSO.
26506
26507 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
26508
26509 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
26510 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
26511 values to correct default value for given type.
26512
26513 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26514
26515 [BZ #22101]
26516 * elf/Makefile (tests): Add tst-debug1.
26517 ($(objpfx)tst-debug1): New.
26518 ($(objpfx)tst-debug1.out): Likewise.
26519 ($(objpfx)tst-debug1mod1.so): Likewise.
26520 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
26521 with p_filesz == 0.
26522 * elf/tst-debug1.c: New file.
26523
26524 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26525
26526 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
26527 Define using __ifunc.
26528
26529 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26530
26531 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
26532 exp2f() values.
26533
26534 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26535
26536 [BZ #22156]
26537 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
26538
26539 2017-09-26 Florian Weimer <fweimer@redhat.com>
26540
26541 * resolv/Makefile (tests-internal): Fix typo in comment.
26542
26543 2017-09-26 Florian Weimer <fweimer@redhat.com>
26544
26545 * resolv/nss_dns/dns-host.c: Fix typo in comment.
26546
26547 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26548
26549 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
26550 Use an union instead of a max_align_t array for __space,
26551 so that __space is the same size on all platforms.
26552 * malloc/scratch_buffer_grow_preserve.c
26553 (__libc_scratch_buffer_grow_preserve): Likewise.
26554
26555 [BZ #22183]
26556 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
26557 version to 2.
26558 * posix/Makefile (routines): Add glob-lstat-compat and
26559 glob64-lstat-compat.
26560 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
26561 * posix/glob-lstat-compat.c: New file.
26562 * posix/glob64-lstat-compat.c: Likewise.
26563 * posix/tst-glob_lstat_compat.c: Likewise.
26564 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
26565 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
26566 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
26567 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
26568 Likewise.
26569 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
26570 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
26571 * posix/glob.c (glob_lstat): New function.
26572 (glob): Rename to __glob and add versioned symbol to 2.27.
26573 (glob_in_dir): Use glob_lstat.
26574 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
26575 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
26576 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
26577 2.27.
26578 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
26579 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
26580 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
26581 gl_lstat on glob call.
26582 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
26583 and glob64 symbols.
26584 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26585 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
26586 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
26587 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
26588 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
26589 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
26590 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
26591 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
26592 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
26593 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26594 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26595 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
26596 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
26597 Likewise.
26598 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
26599 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
26600 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26601 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26602 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
26603 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26604 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26605 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
26606 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
26607 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
26608 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
26609 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
26610
26611 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
26612
26613 * configure.ac (AS): Require binutils 2.25 or later.
26614 * configure: Regenerated.
26615
26616 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
26617
26618 [BZ #22207]
26619 * stdlib/test-atexit-race-common.c (do_test): Minimize required
26620 VM size.
26621
26622 2017-09-25 DJ Delorie <dj@redhat.com>
26623
26624 [BZ #22161]
26625 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
26626 resetting timeout.
26627
26628 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
26629
26630 * sysdeps/ieee754/dbl-64/sincos32.h
26631 [SINCCOS32_H]: Remove define.
26632 [SINCOS32_H]: Define.
26633
26634 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26635
26636 * math/Versions (expf): New libm symbol at GLIBC_2.27.
26637 (exp2f): Likewise.
26638 * math/w_exp2f.c: New file.
26639 * math/w_expf.c: New file.
26640 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
26641 * math/w_expf_compat.c (__expf_compat): Likewise.
26642 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
26643 * sysdeps/ia64/fpu/e_expf.S: Likewise.
26644 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26645 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26646 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26647 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26648 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26649 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26650 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26651 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26652 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26653 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26654 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26655 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26656 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26657 Likewise.
26658 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26659 Likewise.
26660 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26661 Likewise.
26662 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26663 Likewise.
26664 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26665 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26666 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26667 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26668 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26669 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26670 Likewise.
26671 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26672 Likewise.
26673 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26674 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26675 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26676
26677 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26678
26679 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
26680 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
26681 (roundtoint, converttoint): Likewise.
26682 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
26683 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
26684 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
26685 * sysdeps/ieee754/flt-32/math_config.h: New file.
26686 * sysdeps/ieee754/flt-32/math_errf.c: New file.
26687 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
26688 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
26689 * sysdeps/i386/fpu/math_errf.c: New file.
26690 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
26691 * sysdeps/ia64/fpu/math_errf.c: New file.
26692 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
26693 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
26694
26695 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
26696
26697 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
26698 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
26699 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
26700 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
26701 to make sure that these symbols are defined.
26702 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
26703 of <limits.h>
26704 (__need_NULL): Do not define.
26705 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
26706 alignment.
26707 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
26708 CMGROUP_MAX, cmsgcred): Do not define.
26709 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
26710 NULL.
26711 * bits/socket.h: Likewise.
26712 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
26713 __gettimeofday instead of gettimeofday.
26714 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
26715 instead of settimeofday.
26716
26717 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26718
26719 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
26720 (asinhf): Define using libm_alias_float.
26721 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
26722 (atanf): Define using libm_alias_float.
26723 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
26724 (cbrtf): Define using libm_alias_float.
26725 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
26726 (ceilf): Define using libm_alias_float.
26727 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
26728 <libm-alias-float.h>.
26729 (copysignf): Define using libm_alias_float.
26730 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
26731 (cosf): Define using libm_alias_float.
26732 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
26733 (erff): Define using libm_alias_float.
26734 (erfcf): Likewise.
26735 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
26736 (expm1f): Define using libm_alias_float.
26737 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
26738 (fabsf): Define using libm_alias_float.
26739 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
26740 (floorf): Define using libm_alias_float.
26741 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
26742 (frexpf): Define using libm_alias_float.
26743 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
26744 libm_alias_float.
26745 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
26746 <libm-alias-float.h>.
26747 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
26748 libm_alias_float.
26749 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
26750 <libm-alias-float.h>.
26751 (getpayloadf): Define using libm_alias_float.
26752 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
26753 <libm-alias-float.h>.
26754 (llrintf): Define using libm_alias_float.
26755 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
26756 <libm-alias-float.h>.
26757 (llroundf): Define using libm_alias_float.
26758 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
26759 (logbf): Define using libm_alias_float.
26760 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
26761 (lrintf): Define using libm_alias_float.
26762 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
26763 (lroundf): Define using libm_alias_float.
26764 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
26765 (modff): Define using libm_alias_float.
26766 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
26767 <libm-alias-float.h>.
26768 (nearbyintf): Define using libm_alias_float.
26769 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
26770 <libm-alias-float.h>.
26771 (nextafterf): Define using libm_alias_float.
26772 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
26773 <libm-alias-float.h>.
26774 (nextupf): Define using libm_alias_float.
26775 * sysdeps/ieee754/flt-32/s_remquof.c: Include
26776 <libm-alias-float.h>.
26777 (remquof): Define using libm_alias_float.
26778 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
26779 (rintf): Define using libm_alias_float.
26780 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
26781 <libm-alias-float.h>.
26782 (roundevenf): Define using libm_alias_float.
26783 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
26784 (roundf): Define using libm_alias_float.
26785 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
26786 using libm_alias_float.
26787 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
26788 <libm-alias-float.h>.
26789 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
26790 Define using libm_alias_float.
26791 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
26792 <libm-alias-float.h>.
26793 (sincosf): Define using libm_alias_float.
26794 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
26795 (sinf): Define using libm_alias_float.
26796 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
26797 (tanf): Define using libm_alias_float.
26798 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
26799 (tanhf): Define using libm_alias_float.
26800 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
26801 <libm-alias-float.h>.
26802 (totalorderf): Define using libm_alias_float.
26803 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
26804 <libm-alias-float.h>.
26805 (totalordermagf): Define using libm_alias_float.
26806 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
26807 (truncf): Define using libm_alias_float.
26808 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
26809 libm_alias_float.
26810 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
26811 libm_alias_float.
26812
26813 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26814
26815 [BZ #22146]
26816 math/math.h: Let fpclassify use the builtin in C++ mode, even
26817 when optimazing for size.
26818
26819 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26820
26821 * csu/Makefile (generated): Do not add version-info.h.
26822 (before-compile): Likewise.
26823 (all-Banner-files): Remove variable.
26824 ($(objpfx)version-info.h): Remove rule.
26825 * csu/version.c (banner): Do not include "version-info.h".
26826 * libidn/Banner: Remove.
26827 * manual/contrib.texi (Simon Josefsson): New entry.
26828
26829 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26830
26831 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
26832 Remove conditionals on LDBL_MANT_DIG.
26833 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26834 (__ieee754_lgammal_r): Likewise.
26835
26836 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26837
26838 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
26839 _Float128 and L().
26840 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
26841 _Float128 and L(). Replace _Float128 with long double and L(x)
26842 with xL, throughout the file.
26843 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26844 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26845 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26846 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26847
26848 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26849
26850 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
26851 sysdeps/ieee754/ldbl-128ibm.
26852 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
26853 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
26854 of including it. Keep _Float128 and L() intact. These will be
26855 reviewed by a separate patch.
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/powerpc/powerpc64/fpu/multiarch/s_finite.c
26864 (__finitef128): Define to __redirect___finitef128.
26865 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
26866 (__isinff128): Define to __redirect___isinff128.
26867 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
26868 (__isnanf128): Define to __redirect___isnanf128.
26869
26870 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26871
26872 * sysdeps/powerpc/powerpc64le/Makefile
26873 (CFLAGS-tst-strtod-nan-locale.c): New variable.
26874 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
26875
26876 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
26877 Carlos O'Donell <carlos@redhat.com>
26878
26879 [BZ #22180]
26880 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
26881 * stdlib/test-dlclose-exit-race.c: New file.
26882 * stdlib/test-dlclose-exit-race-helper.c: New file.
26883 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
26884
26885 2017-09-21 Joseph Myers <joseph@codesourcery.com>
26886
26887 * crypt/Banner: Remove file.
26888 * nptl/Banner: Likewise.
26889 * resolv/Banner: Likewise.
26890 * soft-fp/Banner: Likewise.
26891 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
26892 ($(objpfx)version.d): Remove dependency on banner.h.
26893 ($(objpfx)version.os): Likewise.
26894 * nptl/version.c (banner): Do not include banner.h.
26895 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
26896 Jelinek and BIND code.
26897
26898 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
26899 Carlos O'Donell <carlos@redhat.com>
26900
26901 * support/xdlfcn.h: New file.
26902 * support/xdlfcn.c: New file.
26903 * support/Makefile (libsupport-routines): Add xdlfcn.
26904 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
26905
26906 2017-09-20 Joseph Myers <joseph@codesourcery.com>
26907
26908 [BZ #20142]
26909 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26910 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
26911 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
26912 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
26913 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
26914 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
26915 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
26916 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
26917
26918 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
26919 Ricky Zhou <rickyz@google.com>
26920 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
26921
26922 [BZ #14333]
26923 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
26924 Remove atomics.
26925 (__new_exitfn): Fail registration when we finished at_exit processing.
26926 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
26927 * stdlib/on_exit.c (__on_exit): Likewise.
26928 * stdlib/exit.c (__exit_funcs_done): New variable.
26929 (__run_exit_handlers): Use __exit_funcs_lock.
26930 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
26931 declarations.
26932 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
26933 (test-cxa_atexit-race, test-on_exit-race): New tests.
26934 * stdlib/test-atexit-race-common.c: New file.
26935 * stdlib/test-atexit-race.c: New file.
26936 * stdlib/test-at_quick_exit-race.c: New file.
26937 * stdlib/test-cxa_atexit-race.c: New file.
26938 * stdlib/test-on_exit-race.c: New file.
26939
26940 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
26941
26942 * benchtests/Makefile: Add exp2f and log2f benchmarks.
26943 * benchtests/exp2f-inputs: Copy of expf-inputs.
26944 * benchtests/log2f-inputs: Copy of logf-inputs.
26945
26946 2017-09-19 Joseph Myers <joseph@codesourcery.com>
26947
26948 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
26949 Explicitly take address of first element of array arguments in
26950 call to INLINE_SYSCALL.
26951
26952 2017-09-19 Andreas Schwab <schwab@suse.de>
26953
26954 [BZ #22134]
26955 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
26956 execveat first.
26957 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
26958 unimplemented.
26959 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
26960 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
26961 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
26962 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
26963 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
26964 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
26965 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
26966 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
26967 * posix/Makefile (tests): Add tst-fexecve.
26968 * posix/tst-fexecve.c: New file.
26969
26970 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
26971
26972 * benchtests/Makefile: Add logf benchmark.
26973 * benchtests/logf-inputs: Add reduced trace from wrf_r.
26974
26975 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
26976
26977 * benchtests/Makefile: Add expf benchmark.
26978 * benchtests/expf-inputs: Add reduced trace from wrf_r.
26979
26980 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
26981
26982 * csu/Makefile: Add -funwind-tables to libc-start.c.
26983 * debug/Makefile: Add -funwind-tables to backtrace.c.
26984 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
26985 * sysdeps/arm/Makefile: Likewise.
26986 * sysdeps/i386/Makefile: Likewise.
26987 * sysdeps/m68k/Makefile: Likewise.
26988 * sysdeps/mips/Makefile: Likewise.
26989 * sysdeps/nios2/Makefile: Likewise.
26990 * sysdeps/sh/Makefile: Likewise.
26991 * sysdeps/sparc/Makefile: Likewise.
26992
26993 2017-09-19 Joseph Myers <joseph@codesourcery.com>
26994
26995 * benchtests/Makefile (bench-math): Add trunc and truncf.
26996 (CFLAGS-bench-trunc.c): New variable.
26997 (CFLAGS-bench-truncf.c): Likewise.
26998 * benchtests/trunc-inputs: New file.
26999 * benchtests/truncf-inputs: Likewise.
27000
27001 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27002
27003 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27004
27005 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27006
27007 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27008 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27009 redefine.
27010 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27011 (exp10l): Define as weak alias.
27012 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27013 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27014 and redefine.
27015 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27016 (remainderl): Define as weak alias.
27017
27018 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27019 (fmal): Define using libm_alias_ldouble.
27020 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27021 (acoshl): Define using libm_alias_ldouble.
27022 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27023 (acosl): Define using libm_alias_ldouble.
27024 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27025 (asinl): Define using libm_alias_ldouble.
27026 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27027 (atan2l): Define using libm_alias_ldouble.
27028 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27029 (atanhl): Define using libm_alias_ldouble.
27030 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27031 (coshl): Define using libm_alias_ldouble.
27032 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27033 (exp10l): Define using libm_alias_ldouble.
27034 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27035 (exp2l): Define using libm_alias_ldouble.
27036 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27037 (expl): Define using libm_alias_ldouble.
27038 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27039 (fmodl): Define using libm_alias_ldouble.
27040 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27041 (hypotl): Define using libm_alias_ldouble.
27042 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27043 (j0l): Define using libm_alias_ldouble.
27044 (y0l): Likewise.
27045 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27046 (j1l): Define using libm_alias_ldouble.
27047 (y1l): Likewise.
27048 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27049 (jnl): Define using libm_alias_ldouble.
27050 (ynl): Likewise.
27051 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27052 (log10l): Define using libm_alias_ldouble.
27053 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27054 (log2l): Define using libm_alias_ldouble.
27055 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27056 (logl): Define using libm_alias_ldouble.
27057 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27058 (powl): Define using libm_alias_ldouble.
27059 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27060 (remainderl): Define using libm_alias_ldouble.
27061 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27062 (sinhl): Define using libm_alias_ldouble.
27063 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27064 (sqrtl): Define using libm_alias_ldouble.
27065 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27066 (tgammal): Define using libm_alias_ldouble.
27067 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27068 (exp10l): Do not use long_double_symbol here.
27069 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27070 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27071 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27072 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27073 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27074 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27075 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27076 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27077 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27078 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27079 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27080 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27081 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27082 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27083 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27084 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27085 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27086 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27087 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27088 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27089 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27090 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27091
27092 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27093
27094 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27095 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27096
27097 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27098
27099 * io/read.c (read): Add libc_hidden_weak.
27100 * sysdeps/mach/hurd/read.c (read): Likewise.
27101 * io/write.c (write): Likewise.
27102 * sysdeps/mach/hurd/write.c (write): Likewise.
27103 * io/pread64.c (__pread64): Likewise.
27104 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27105 * posix/pread64.c (__pread64): Add libc_hidden_def.
27106
27107 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27108
27109 * benchtests/scripts/compare_strings.py: New option -g.
27110 (draw_graph): Print a message that a graph is being generated.
27111 (process_results): Generate graph only if -g is passed.
27112 (main): Process option -g.
27113
27114 * benchtests/scripts/compare_strings.py (process_results):
27115 Better spacing for output.
27116
27117 * benchtests/scripts/compare_strings.py: Use argparse.
27118 * benchtests/README: Document existence of compare_strings.py.
27119
27120 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27121
27122 * math/s_fma.c: Include <libm-alias-double.h>.
27123 (fma): Define using libm_alias_double.
27124 * math/s_nextafter.c: Include <libm-alias-double.h>.
27125 (nextafter): Define using libm_alias_double.
27126 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27127 (acos): Define using libm_alias_double.
27128 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27129 (aocsh): Define using libm_alias_double.
27130 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27131 (asin): Define using libm_alias_double.
27132 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27133 (atan2): Define using libm_alias_double.
27134 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27135 (atanh): Define using libm_alias_double.
27136 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27137 (cosh): Define using libm_alias_double.
27138 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27139 (exp10): Define using libm_alias_double.
27140 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27141 (exp2): Define using libm_alias_double.
27142 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27143 (exp): Define using libm_alias_double.
27144 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27145 (fmod): Define using libm_alias_double.
27146 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27147 (hypot): Define using libm_alias_double.
27148 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27149 (j0): Define using libm_alias_double.
27150 (y0): Likewise.
27151 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27152 (j1): Define using libm_alias_double.
27153 (y1): Likewise.
27154 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27155 (jn): Define using libm_alias_double.
27156 (yn): Likewise.
27157 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27158 (log10): Define using libm_alias_double.
27159 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27160 (log2): Define using libm_alias_double.
27161 * math/w_log_compat.c: Include <libm-alias-double.h>.
27162 (log): Define using libm_alias_double.
27163 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27164 (pow): Define using libm_alias_double.
27165 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27166 (remainder): Define using libm_alias_double.
27167 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27168 (sinh): Define using libm_alias_double.
27169 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27170 (sqrt): Define using libm_alias_double.
27171 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27172 (tgamma): Define using libm_alias_double.
27173 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27174 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27175 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27176 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27177 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27178 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27179 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27180 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27181 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27182 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27183 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27184 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27185 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27186 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27187 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27188 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27189 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27190 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27191 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27192 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27193 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27194 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27195 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27196 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27197 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27198
27199 * math/e_acoshl.c: Remove.
27200 * math/e_acosl.c: Likewise.
27201 * math/e_asinl.c: Likewise.
27202 * math/e_atan2l.c: Likewise.
27203 * math/e_atanhl.c: Likewise.
27204 * math/e_coshl.c: Likewise.
27205 * math/e_expl.c: Likewise.
27206 * math/e_fmodl.c: Likewise.
27207 * math/e_gammal_r.c: Likewise.
27208 * math/e_hypotl.c: Likewise.
27209 * math/e_j0l.c: Likewise.
27210 * math/e_j1l.c: Likewise.
27211 * math/e_jnl.c: Likewise.
27212 * math/e_lgammal_r.c: Likewise.
27213 * math/e_log10l.c: Likewise.
27214 * math/e_log2l.c: Likewise.
27215 * math/e_logl.c: Likewise.
27216 * math/e_powl.c: Likewise.
27217 * math/e_rem_pio2l.c: Likewise.
27218 * math/e_sinhl.c: Likewise.
27219 * math/e_sqrtf128.c: Likewise.
27220 * math/e_sqrtl.c: Likewise.
27221 * math/k_cosl.c: Likewise.
27222 * math/k_sinl.c: Likewise.
27223 * math/k_tanl.c: Likewise.
27224 * math/s_asinhl.c: Likewise.
27225 * math/s_atanl.c: Likewise.
27226 * math/s_cbrtl.c: Likewise.
27227 * math/s_erfl.c: Likewise.
27228 * math/s_expm1l.c: Likewise.
27229 * math/s_log1pl.c: Likewise.
27230 * math/s_tanhl.c: Likewise.
27231
27232 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27233
27234 [BZ #21745]
27235 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27236 [$(subdir) = math] (sysdep_calls): New variable. Has the
27237 previous contents of sysdep_routines, but re-sorted..
27238 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27239 sysdep_calls.
27240 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27241 defined in sysdep_calls and replace by the respective m_* names.
27242 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27243 (compat_symbol): Undefine to avoid duplicated compat symbols in
27244 libc.
27245
27246 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27247
27248 * math/s_fmaf.c: Include <libm-alias-float.h>.
27249 (fmaf): Define using libm_alias_float.
27250 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27251 (acosf): Define using libm_alias_float.
27252 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27253 (acoshf): Define using libm_alias_float.
27254 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27255 (asinf): Define using libm_alias_float.
27256 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27257 (atan2f): Define using libm_alias_float.
27258 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27259 (atanhf): Define using libm_alias_float.
27260 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27261 (coshf): Define using libm_alias_float.
27262 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27263 (exp10f): Define using libm_alias_float.
27264 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27265 (fmodf): Define using libm_alias_float.
27266 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27267 (hypotf): Define using libm_alias_float.
27268 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27269 (j0f): Define using libm_alias_float.
27270 (y0f): Likewise.
27271 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27272 (j1f): Define using libm_alias_float.
27273 (y1f): Likewise.
27274 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27275 (jnf): Define using libm_alias_float.
27276 (ynf): Likewise.
27277 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27278 (log10f): Define using libm_alias_float.
27279 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27280 (log2f): Define using libm_alias_float.
27281 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27282 (logf): Define using libm_alias_float.
27283 * math/w_powf_compat.c: Include <libm-alias-float.h>.
27284 (powf): Define using libm_alias_float.
27285 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
27286 (remainderf): Define using libm_alias_float.
27287 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
27288 (sinhf): Define using libm_alias_float.
27289 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
27290 (sqrtf): Define using libm_alias_float.
27291 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27292 (tgammaf): Define using libm_alias_float.
27293
27294 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27295
27296 * include/math.h (roundeven): Change hidden_proto call to
27297 __roundeven.
27298 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27299 alias.
27300 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27301 (y0): Rename to __y0 and define as weak alias.
27302 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27303 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27304 alias.
27305 (y0f): Rename to __y0f and define as weak alias.
27306 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27307 alias.
27308 [NO_LONG_DOUBLE] (__j1l): New strong alias.
27309 (y1): Rename to __y1 and define as weak alias.
27310 [NO_LONG_DOUBLE] (__y1l): New strong alias.
27311 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
27312 alias.
27313 (y1f): Rename to __y1f and define as weak alias.
27314 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
27315 alias.
27316 [NO_LONG_DOUBLE] (__jnl): New strong alias.
27317 (yn): Rename to __yn and define as weak alias.
27318 [NO_LONG_DOUBLE] (__ynl): New strong alias.
27319 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
27320 alias.
27321 (ynf): Rename to __ynf and define as weak alias.
27322 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
27323 (fromfp): Define as weak alias.
27324 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
27325 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
27326 (fromfpx): Define as weak alias.
27327 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
27328 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
27329 __getpayload and define as weak alias.
27330 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27331 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
27332 __roundeven and define as weak alias.
27333 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27334 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
27335 __setpayload.
27336 (setpayload): Define as weak alias.
27337 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
27338 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
27339 __setpayloadsig.
27340 (setpayloadsig): Define as weak alias.
27341 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
27342 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
27343 __totalorder and define as weak alias.
27344 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27345 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
27346 to __totalordermag and define as weak alias.
27347 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27348 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
27349 (ufromfp): Define as weak alias.
27350 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
27351 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
27352 __ufromfpx.
27353 (ufromfpx): Define as weak alias.
27354 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
27355 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
27356 Rename to __getpayload and define as weak alias.
27357 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27358 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
27359 Rename to __roundeven and define as weak alias.
27360 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27361 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
27362 Rename to __totalorder and define as weak alias.
27363 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27364 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
27365 (totalordermag): Rename to __totalordermag and define as weak
27366 alias.
27367 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27368 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
27369 macro.
27370 (__roundevenl): Likewise.
27371 (__totalorderl): Likewise.
27372 (__totalordermagl): Likewise
27373 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
27374 __fromfpf128.
27375 (fromfpf128): Define as weak alias.
27376 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
27377 __fromfpxf128.
27378 (fromfpxf128): Define as weak alias.
27379 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
27380 __setpayloadf128.
27381 (setpayloadf128): Define as weak alias.
27382 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
27383 __setpayloadsigf128.
27384 (setpayloadsigf128): Define as weak alias.
27385 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
27386 __ufromfpf128.
27387 (ufromfpf128): Define as weak alias.
27388 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
27389 __ufromfpxf128.
27390 (ufromfpxf128): Define as weak alias.
27391 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
27392 (fromfpf): Define as weak alias.
27393 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
27394 __fromfpxf.
27395 (fromfpxf): Define as weak alias.
27396 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
27397 __getpayloadf and define as weak alias.
27398 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
27399 __roundevenf and define as weak alias.
27400 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
27401 __setpayloadf.
27402 (setpayloadf): Define as weak alias.
27403 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
27404 __setpayloadsigf.
27405 (setpayloadsigf): Define as weak alias.
27406 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
27407 __totalorderf and define as weak alias.
27408 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
27409 Rename to __totalordermagf and define as weak alias.
27410 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
27411 __ufromfpf.
27412 (ufromfpf): Define as weak alias.
27413 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
27414 __ufromfpxf.
27415 (ufromfpxf): Define as weak alias.
27416 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
27417 __fromfpl.
27418 (fromfpl): Define as weak alias.
27419 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
27420 __fromfpxl.
27421 (fromfpxl): Define as weak alias.
27422 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
27423 to __getpayloadl and define as weak alias.
27424 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
27425 __roundevenl and define as weak alias.
27426 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
27427 __setpayloadl.
27428 (setpayloadl): Define as weak alias.
27429 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
27430 __setpayloadsigl.
27431 (setpayloadsigl): Define as weak alias.
27432 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
27433 to __totalorderl and define as weak alias.
27434 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
27435 Rename to __totalordermagl and define as weak alias.
27436 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
27437 __ufromfpl.
27438 (ufromfpl): Define as weak alias.
27439 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
27440 __ufromfpxl.
27441 (ufromfpxl): Define as weak alias.
27442 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
27443 __fromfpl.
27444 (fromfpl): Define as weak alias.
27445 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
27446 __fromfpxl.
27447 (fromfpxl): Define as weak alias.
27448 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
27449 Rename to __getpayloadl and define as weak alias.
27450 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
27451 to __roundevenl and define as weak alias. Call __roundeven
27452 instead of roundeven.
27453 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
27454 __setpayloadl.
27455 (setpayloadl): Define as weak alias.
27456 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
27457 __setpayloadsigl.
27458 (setpayloadsigl): Define as weak alias.
27459 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
27460 Rename to __totalorderl and define as weak alias.
27461 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
27462 Rename to __totalordermagl and define as weak alias.
27463 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
27464 __ufromfpl.
27465 (ufromfpl): Define as weak alias.
27466 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
27467 __ufromfpxl.
27468 (ufromfpxl): Define as weak alias.
27469 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
27470 __fromfpl.
27471 (fromfpl): Define as weak alias.
27472 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
27473 __fromfpxl.
27474 (fromfpxl): Define as weak alias.
27475 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
27476 __getpayloadl and define as weak alias.
27477 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
27478 __roundevenl and define as weak alias.
27479 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
27480 __setpayloadl.
27481 (setpayloadl): Define as weak alias.
27482 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
27483 __setpayloadsigl.
27484 (setpayloadsigl): Define as weak alias.
27485 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
27486 __totalorderl and define as weak alias.
27487 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
27488 Rename to __totalordermagl and define as weak alias.
27489 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
27490 __ufromfpl.
27491 (ufromfpl): Define as weak alias.
27492 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
27493 __ufromfpxl.
27494 (ufromfpxl): Define as weak alias.
27495
27496 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
27497
27498 * benchtests/bench-string.h (realloc_bufs): New function.
27499 (test_init): Call it.
27500 * benchtests/bench-memset-large.c (do_test): Likewise.
27501 * benchtests/bench-memset.c (do_test): Likewise.
27502
27503 * benchtests/bench-memset-large.c: Print output in JSON
27504 format.
27505 * benchtests/bench-memset.c: Likewise.
27506
27507 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27508
27509 [BZ #21084]
27510 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
27511 * iconvdata/Makefile: Add IBM858.
27512 * iconvdata/gconv-modules: Likewise.
27513 * iconvdata/tst-tables.sh: Likewise.
27514 * iconvdata/ibm858.c: New file.
27515 * localedata/charmaps/IBM858: Likewise.
27516
27517 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
27518
27519 [BZ #22023]
27520 * locales/niu_NZ (LC_TIME): copy "niu_NU".
27521 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
27522
27523 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27524
27525 [BZ #22112]
27526 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
27527 and add tel_int_fmt.
27528
27529 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27530
27531 * sysdeps/generic/libm-alias-float128.h: New file.
27532 * sysdeps/generic/math-type-macros-float128.h: Include
27533 <libm-alias-float128.h>.
27534 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27535
27536 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27537
27538 * sysdeps/generic/libm-alias-ldouble.h: New file.
27539 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
27540 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
27541 * sysdeps/generic/math-type-macros-ldouble.h: Include
27542 <libm-alias-ldouble.h>.
27543 [!declare_mgen_alias] (declare_mgen_alias): Define to use
27544 libm_alias_ldouble.
27545
27546 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
27547
27548 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
27549 * math/w_exp_compat.c: ... here.
27550 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
27551 * math/w_expf_compat.c: ... here.
27552 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
27553 * math/w_expl_compat.c: ... here.
27554 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
27555 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
27556 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
27557 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27558
27559 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27560
27561 * math/w_scalbln_template.c (strong_alias): Do not undefine and
27562 redefine.
27563 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
27564 macro.
27565 (ldexpl): Only define as compat symbol for libc, not libm.
27566 (scalbnl): Define as compat symbol for libc here.
27567 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
27568 define for [IS_IN (libc)].
27569 (__ldexpl_2): Remove alias.
27570 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
27571 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
27572 name in long_double_symbol call.
27573 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
27574 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
27575 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
27576 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
27577 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
27578 Remove macro.
27579 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
27580 Define as compat symbol.
27581
27582 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27583
27584 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
27585 * sysdeps/unix/sysv/linux/alpha/Makefile
27586 [$(subdir) = csu] (sysdep_routines): Remove rule.
27587
27588 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27589
27590 * sysdeps/generic/libm-alias-double.h: New file.
27591 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
27592 * sysdeps/generic/math-type-macros-double.h: Include
27593 <libm-alias-double.h>.
27594 [declare_mgen_alias] (declare_mgen_alias): Define to use
27595 libm_alias_double.
27596 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
27597 (M_LIBM_NEED_COMPAT): Remove macro.
27598 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
27599 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
27600 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
27601 code.
27602 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27603 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27604 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27605 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27606 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27607 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27608 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27609 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27610 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27611 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27612 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27613 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27614 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27615 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27616 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27617 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27618 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27619 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27620 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27621 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27622 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27623 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27624 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27625 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27626 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27627 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27628 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27629 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
27630 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
27631 macro.
27632 (declare_mgen_alias): New macro.
27633 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
27634 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
27635 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
27636 (M_LIBM_NEED_COMPAT): Remove macro.
27637 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
27638 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
27639 <first-versions.h>.
27640 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
27641 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
27642
27643 2017-09-12 Joseph Myers <joseph@codesourcery.com>
27644
27645 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
27646 (declare_mgen_alias_2): Remove.
27647 * sysdeps/generic/math-type-macros-double.h
27648 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
27649 Likewise.
27650 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
27651 alias.
27652 (ldexp): Define with declare_mgen_alias.
27653 (scalbn): Likewise.
27654
27655 2017-09-12 Steve Ellcey <sellcey@cavium.com>
27656
27657 * grp/initgroups.c: Include config.h.
27658 (DEFAULT_CONFIG): New macro.
27659 (internal_getgrouplist): Use DEFAULT_CONFIG.
27660 * nscd/initgrcache.c (addinitgroupsX): Likewise.
27661 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
27662 (DEFAULT_DEFCONFIG): New macro.
27663 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
27664 * nss/grp-lookup.c: Include config.h
27665 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
27666 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
27667 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
27668 * manual/nss.texi: Update default values section.
27669
27670 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
27671
27672 [BZ #21967]
27673 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
27674 New.
27675 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
27676 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27677 Handle MathVec_Prefer_No_AVX512.
27678 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
27679 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
27680 is set.
27681
27682 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
27683
27684 * posix/sched_primax.c (__sched_get_priority_max): Add
27685 libc_hidden_def.
27686 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
27687 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
27688 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
27689 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
27690 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
27691 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
27692 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
27693 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
27694 Add aliases.
27695
27696 2017-09-11 Joseph Myers <joseph@codesourcery.com>
27697
27698 * sysdeps/generic/libm-alias-float.h: New file.
27699 * sysdeps/generic/math-type-macros-float.h: Include
27700 <libm-alias-float.h>.
27701 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27702
27703 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
27704
27705 [BZ #22093]
27706 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
27707 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
27708 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
27709 (HWCAP_IMPORTANT): Likewise.
27710 (HWCAP_X86_64): New enum.
27711 (HWCAP_X86_AVX512_1): Updated.
27712 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
27713 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
27714 (modules-names): Add x86_64/tst-x86_64mod-1.
27715 (LDFLAGS-tst-x86_64mod-1.so): New.
27716 ($(objpfx)tst-x86_64-1): Likewise.
27717 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
27718 (tst-x86_64-1-clean): Likewise.
27719 * sysdeps/x86_64/tst-x86_64-1.c: New file.
27720 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
27721
27722 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
27723
27724 * po/sv.po: Update translations.
27725 * po/fr.po: Likewise.
27726
27727 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
27728
27729 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
27730 seconds.
27731 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
27732 seconds.
27733 * elf/rtld-Rules: Fix $(error) use.
27734
27735 2017-09-09 Mike FABIAN <mfabian@redhat.com>
27736
27737 [BZ #14925]
27738 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
27739 * locale/iso-639.def: Change “Bengali” to “Bangla”.
27740 * localedata/locales/bn_BD: “Bengali” was still used in some
27741 comments. Change it to “Bangla”.
27742
27743 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
27744
27745 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
27746
27747 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27748
27749 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
27750 thunderx2t99p1 to list of cpu names.
27751 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
27752 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
27753
27754 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27755
27756 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
27757 Use strcmp instead of tunable_is_name.
27758
27759 2017-09-08 Joseph Myers <joseph@codesourcery.com>
27760
27761 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27762 (F_GET_RW_HINT): New macro.
27763 [__USE_GNU] (F_SET_RW_HINT): Likewise.
27764 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
27765 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
27766 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
27767 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
27768 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
27769 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
27770 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
27771 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
27772
27773 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27774 (F_ADD_SEALS): New macro.
27775 [__USE_GNU] (F_GET_SEALS): Likewise.
27776 [__USE_GNU] (F_SEAL_SEAL): Likewise.
27777 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
27778 [__USE_GNU] (F_SEAL_GROW): Likewise.
27779 [__USE_GNU] (F_SEAL_WRITE): Likewise.
27780
27781 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27782
27783 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
27784 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
27785 * posix/glob_internal.h (__glob_pattern_type):
27786 * posix/glob.c (glob):
27787 * posix/glob_pattern_p.c (__glob_pattern_p):
27788 Use them.
27789
27790 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
27791 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
27792 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
27793 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
27794 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27795 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
27796 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
27797 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
27798 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27799 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
27800 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27801 * sysdeps/wordsize-64/glob.c: Likewise.
27802 * sysdeps/wordsize-64/glob64.c: Likewise.
27803 * sysdeps/wordsize-64/globfree.c: Likewise.
27804 * sysdeps/wordsize-64/globfree64.c: Likewise.
27805 * sysdeps/unix/sysv/linux/glob.c: New file.
27806 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
27807 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
27808 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
27809 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27810 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
27811 adds !GLOB_NO_OLD_VERSION as an extra condition.
27812 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
27813 using relative path instead of absolute one.
27814 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
27815 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
27816 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
27817 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
27818 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
27819 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
27820
27821 [BZ #1062]
27822 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
27823 (glob): Use the same scratch buffer for both getlogin_r and
27824 getpwnam_r. Don’t require preallocation of the login name. This
27825 simplifies storage allocation, and corrects the handling of
27826 long login names.
27827
27828 [BZ #1062]
27829 * posix/glob.c (glob): Port recent patches to platforms
27830 lacking getpwnam_r.
27831 (glob): Fix longstanding misuse of errno after getpwnam_r, which
27832 returns an error number rather than setting errno.
27833
27834 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
27835 instead of GCC extension.
27836 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
27837 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
27838 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
27839
27840 [BZ #866]
27841 [BZ #1062]
27842 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
27843 * posix/bug-glob1.c: Remove file.
27844 * posix/tst-glob_symlinks.c: New file.
27845 * posix/glob.c (__lstat64): New macro.
27846 (is_dir): New function.
27847 (glob, glob_in_dir): Match symlinks even if they are dangling.
27848 (link_stat, link_exists_p): Remove. All uses removed.
27849
27850 [BZ #1062]
27851 [BZ #19971]
27852 * posix/glob.c (struct readdir_result): Remove skip_entry member.
27853 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
27854 All uses removed.
27855
27856 [BZ #1062]
27857 CVE-2017-15671
27858 * posix/Makefile (routines): Add globfree, globfree64, and
27859 glob_pattern_p.
27860 * posix/flexmember.h: New file.
27861 * posix/glob_internal.h: Likewise.
27862 * posix/glob_pattern_p.c: Likewise.
27863 * posix/globfree.c: Likewise.
27864 * posix/globfree64.c: Likewise.
27865 * sysdeps/gnu/globfree64.c: Likewise.
27866 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
27867 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27868 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
27869 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27870 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27871 * sysdeps/wordsize-64/globfree.c: Likewise.
27872 * sysdeps/wordsize-64/globfree64.c: Likewise.
27873 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
27874 [NDEBUG): Remove comments.
27875 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
27876 (dirent_type): New type. Use uint_fast8_t not
27877 uint8_t, as C99 does not require uint8_t.
27878 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
27879 (struct readdir_result): Use dirent_type. Do not define skip_entry
27880 unless it is needed; this saves a byte on platforms lacking d_ino.
27881 (readdir_result_type, readdir_result_skip_entry):
27882 New functions, replacing ...
27883 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
27884 these functions, which were removed. This makes the callers
27885 easier to read. All callers changed.
27886 (D_INO_TO_RESULT): Now empty if there is no d_ino.
27887 (size_add_wrapv, glob_use_alloca): New static functions.
27888 (glob, glob_in_dir): Check for size_t overflow in several places,
27889 and fix some size_t checks that were not quite right.
27890 Remove old code using SHELL since Bash no longer
27891 uses this.
27892 (glob, prefix_array): Separate MS code better.
27893 (glob_in_dir): Remove old Amiga and VMS code.
27894 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
27895 separate files.
27896 (glob_in_dir): Do not rely on undefined behavior in accessing
27897 struct members beyond their bounds. Use a flexible array member
27898 instead
27899 (link_stat): Rename from link_exists2_p and return -1/0 instead of
27900 0/1. Caller changed.
27901 (glob): Fix memory leaks.
27902 * posix/glob64 (globfree64): Move to separate file.
27903 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
27904 (globfree64): Remove hidden alias.
27905 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
27906 oldglob.
27907 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
27908 separate file.
27909 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
27910 define.
27911 Move compat code to separate file.
27912 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
27913 separate file.
27914
27915 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
27916
27917 * resolv/tst-resolv-qtypes.c (domain): Changed to
27918 "const char domain[] =".
27919
27920 2017-09-07 Joseph Myers <joseph@codesourcery.com>
27921
27922 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
27923 version to 3.1.6.
27924
27925 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
27926 (TCP_MD5SIG_EXT): Likewise.
27927 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
27928 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
27929 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
27930
27931 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
27932
27933 2017-09-07 Mike FABIAN <mfabian@redhat.com>
27934
27935 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
27936
27937 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
27938
27939 [BZ #22100]
27940 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
27941
27942 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
27943
27944 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
27945 before assuming that the file is empty. Avoid testing buffer content
27946 when nread == 0.
27947
27948 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27949
27950 [BZ #18858]
27951 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
27952 Remove define.
27953 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
27954 Likewise.
27955 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
27956 Likewise.
27957 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
27958 Likewise.
27959 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
27960 Likewise.
27961 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
27962 Likewise.
27963 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
27964 Likewise.
27965
27966 2017-09-06 Florian Weimer <fweimer@redhat.com>
27967
27968 * malloc/dynarray_emplace_enlarge.c
27969 (__libc_dynarray_emplace_enlarge): Add missing else.
27970
27971 2017-09-06 Florian Weimer <fweimer@redhat.com>
27972
27973 [BZ #22096]
27974 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
27975 case of failure to obtain the global conf object.
27976
27977 2017-09-06 Florian Weimer <fweimer@redhat.com>
27978
27979 [BZ #22095]
27980 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
27981 dynarray allocation failure.
27982
27983 2017-09-06 Florian Weimer <fweimer@redhat.com>
27984
27985 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
27986 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
27987 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
27988 New functions.
27989 (response): Call them. Add 'p', '6' flag processing.
27990 (test_reverse): New function.
27991 (test_get2_any): Call it.
27992 (test_no_inet6): Add 'p' test.
27993 (test_inet6): Likewise.
27994
27995 2017-09-06 Florian Weimer <fweimer@redhat.com>
27996
27997 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
27998 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
27999 the QNAME.
28000 (test_gai): Adjust query names. Add additional tests.
28001 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28002 test_get2. Adjust query names. Add additional tests.
28003 (test_no_inet6): New function, extracted from threadfunc.
28004 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28005 Add additional tests.
28006
28007 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28008
28009 [BZ #22070]
28010 * localedata/unicode-gen/utf8_gen.py: Set the width for
28011 characters with Prepended_Concatenation_Mark property to 1
28012 * localedata/charmaps/UTF-8: Updated using the improved script.
28013
28014 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28015
28016 [BZ #21750]
28017 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28018 use the range notation for all ranges of neighbouring characters
28019 with the same width.
28020
28021 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28022
28023 * sysdeps/generic/math-type-macros-double.h: Include
28024 <math-svid-compat.h>.
28025 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28026 * sysdeps/generic/math-type-macros-float.h: Include
28027 <math-svid-compat.h>.
28028 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28029 * sysdeps/generic/math-type-macros-ldouble.h: Include
28030 <math-svid-compat.h>.
28031 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28032 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28033 condition.
28034 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28035 * math/w_acosf_compat.c: Likewise.
28036 * math/w_acosh_compat.c: Likewise.
28037 * math/w_acoshf_compat.c: Likewise.
28038 * math/w_acoshl_compat.c: Likewise.
28039 * math/w_acosl_compat.c: Likewise.
28040 * math/w_asin_compat.c: Likewise.
28041 * math/w_asinf_compat.c: Likewise.
28042 * math/w_asinl_compat.c: Likewise.
28043 * math/w_atan2_compat.c: Likewise.
28044 * math/w_atan2f_compat.c: Likewise.
28045 * math/w_atan2l_compat.c: Likewise.
28046 * math/w_atanh_compat.c: Likewise.
28047 * math/w_atanhf_compat.c: Likewise.
28048 * math/w_atanhl_compat.c: Likewise.
28049 * math/w_cosh_compat.c: Likewise.
28050 * math/w_coshf_compat.c: Likewise.
28051 * math/w_coshl_compat.c: Likewise.
28052 * math/w_exp10_compat.c: Likewise.
28053 * math/w_exp10f_compat.c: Likewise.
28054 * math/w_exp10l_compat.c: Likewise.
28055 * math/w_exp2_compat.c: Likewise.
28056 * math/w_exp2f_compat.c: Likewise.
28057 * math/w_exp2l_compat.c: Likewise.
28058 * math/w_fmod_compat.c: Likewise.
28059 * math/w_fmodf_compat.c: Likewise.
28060 * math/w_fmodl_compat.c: Likewise.
28061 * math/w_hypot_compat.c: Likewise.
28062 * math/w_hypotf_compat.c: Likewise.
28063 * math/w_hypotl_compat.c: Likewise.
28064 * math/w_j0_compat.c: Likewise.
28065 * math/w_j0f_compat.c: Likewise.
28066 * math/w_j0l_compat.c: Likewise.
28067 * math/w_j1_compat.c: Likewise.
28068 * math/w_j1f_compat.c: Likewise.
28069 * math/w_j1l_compat.c: Likewise.
28070 * math/w_jn_compat.c: Likewise.
28071 * math/w_jnf_compat.c: Likewise.
28072 * math/w_jnl_compat.c: Likewise.
28073 * math/w_lgamma_r_compat.c: Likewise.
28074 * math/w_lgammaf_r_compat.c: Likewise.
28075 * math/w_lgammal_r_compat.c: Likewise.
28076 * math/w_log10_compat.c: Likewise.
28077 * math/w_log10f_compat.c: Likewise.
28078 * math/w_log10l_compat.c: Likewise.
28079 * math/w_log2_compat.c: Likewise.
28080 * math/w_log2f_compat.c: Likewise.
28081 * math/w_log2l_compat.c: Likewise.
28082 * math/w_log_compat.c: Likewise.
28083 * math/w_logf_compat.c: Likewise.
28084 * math/w_logl_compat.c: Likewise.
28085 * math/w_pow_compat.c: Likewise.
28086 * math/w_powf_compat.c: Likewise.
28087 * math/w_powl_compat.c: Likewise.
28088 * math/w_remainder_compat.c: Likewise.
28089 * math/w_remainderf_compat.c: Likewise.
28090 * math/w_remainderl_compat.c: Likewise.
28091 * math/w_sinh_compat.c: Likewise.
28092 * math/w_sinhf_compat.c: Likewise.
28093 * math/w_sinhl_compat.c: Likewise.
28094 * math/w_sqrt_compat.c: Likewise.
28095 * math/w_sqrtf_compat.c: Likewise.
28096 * math/w_sqrtl_compat.c: Likewise.
28097 * math/w_tgamma_compat.c: Likewise.
28098 * math/w_tgammaf_compat.c: Likewise.
28099 * math/w_tgammal_compat.c: Likewise.
28100 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28101 [LIBM_SVID_COMPAT].
28102 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28103 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28104 [LIBM_SVID_COMPAT].
28105 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28106 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28107 [LIBM_SVID_COMPAT].
28108 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28109 * sysdeps/i386/fpu/w_sqrt.c: New file.
28110 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28111 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28112 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28113 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28114 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28115 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28116 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28117 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28118 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28119 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28120 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28121 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28122 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28123 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28124 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28125 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28126 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28127 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28128 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28129 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28130 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28131 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28132 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28133 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28134 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28135 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28136 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28137 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28138 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28139 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28140 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28141 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28142 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28143 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28144 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28145 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28146 * sysdeps/ia64/fpu/w_log.c: Likewise.
28147 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28148 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28149 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28150 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28151 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28152 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28153 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28154 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28155 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28156 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28157 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28158 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28159 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28160 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28161 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28162 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28163 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28164 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28165 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28166 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28167 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28168 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28169 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28170 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28171 [LIBM_SVID_COMPAT].
28172 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28173 * sysdeps/ieee754/k_standard.c: Likewise.
28174 * sysdeps/ieee754/k_standardf.c: Likewise.
28175 * sysdeps/ieee754/k_standardl.c: Likewise.
28176 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28177 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28178 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28179 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28180 long_double_symbol call on [LIBM_SVID_COMPAT].
28181 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28182 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28183 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28184 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28185 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28186 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28187 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28188 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28189 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28190 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28191 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28192 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28193 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28194 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28195 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28196 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28197 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28198 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28199 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28200 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28201 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28202 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28203
28204 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28205
28206 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28207 * malloc/tst-mallocstate.c: Convert from test-skeleton
28208 to test-driver. Ifdef code using TEST_COMPAT macro.
28209 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28210 * math/test-matherr.c: Likewise.
28211
28212 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28213
28214 [BZ #22086]
28215 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28216 comparing word with byte-swapped constant.
28217
28218 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28219
28220 [BZ #20498]
28221 * locale/iso-639.def: add Miskito.
28222 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28223 * localedata/locales/miq_NI: New file.
28224
28225 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28226
28227 [BZ #18822]
28228 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28229 (__mkdir): Likewise.
28230 * io/chmod.c (__chmod): Add libc_hidden_def.
28231 * io/mkdir.c (__mkdir): Likewise.
28232 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28233 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28234 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28235 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28236
28237 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28238
28239 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28240 version to 4.13.
28241
28242 [BZ #22082]
28243 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28244 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28245
28246 2017-09-04 Florian Weimer <fweimer@redhat.com>
28247
28248 * math/math.h: Issue warning if log is defined.
28249
28250 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28251
28252 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28253 kernel version to 4.13.
28254
28255 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28256
28257 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28258 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28259 parameter.
28260 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28261 just <bits/types.h>.
28262 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28263 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28264 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28265 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28266 * misc/preadv2.c: Include <errno.h>.
28267 * misc/preadv64v2.c: Include <errno.h>.
28268 * misc/pwritev2.c: Include <errno.h>.
28269 * misc/pwritev64v2.c: Include <errno.h>.
28270 * sysdeps/posix/preadv2.c: Include <errno.h>.
28271 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28272 Fix <unistd.h> inclusion.
28273 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28274 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28275 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28276 __strtoul_internal): New functions.
28277 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28278 * sysdeps/posix/system.c: Include <sigsetops.h>.
28279 * sysdeps/mach/hurd/i386/Makefile
28280 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28281 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28282 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28283 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
28284 __feraiseexcept_renamed to feraiseexcept instead of
28285 __GI_feraiseexcept.
28286 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
28287 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
28288 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
28289 RWF_NOWAIT): Define to 0 if undefined already.
28290 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
28291 boils down to 0.
28292 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28293 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28294
28295 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28296
28297 * manual/math.texi (pow10): Do not document.
28298 (pow10f): Likewise.
28299 (pow10l): Likewise.
28300 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28301 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28302 * math/libm-test-exp10.inc (pow10_test): Remove.
28303 (do_test): Do not call pow10.
28304 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28305 [NO_LONG_DOUBLE] (pow10l): Likewise.
28306 * math/w_exp10f_compat.c (pow10f): Likewise.
28307 * math/w_exp10l_compat.c (pow10l): Likewise.
28308 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
28309 (pow10): Make into compat symbol.
28310 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
28311 (pow10f): Make into compat symbol.
28312 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
28313 (pow10l): Make into compat symbol.
28314 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
28315 pow10.
28316 (CFLAGS-nldbl-pow10.c): Remove variable..
28317 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
28318 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
28319 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
28320 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
28321 Undefine and redefine.
28322 (pow10l): Make into compat symbol.
28323 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
28324 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
28325 * sysdeps/arm/libm-test-ulps: Likewise.
28326 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
28327 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
28328 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28329 * sysdeps/microblaze/libm-test-ulps: Likewise.
28330 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
28331 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28332 * sysdeps/nios2/libm-test-ulps: Likewise.
28333 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28334 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
28335 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
28336 * sysdeps/sh/libm-test-ulps: Likewise.
28337 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
28338 * sysdeps/tile/libm-test-ulps: Likewise.
28339 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28340
28341 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28342
28343 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
28344
28345 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28346
28347 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
28348 "../ChangeLog.old/ChangeLog.8".
28349 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
28350 "../ChangeLog.old/ChangeLog.14".
28351
28352 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28353
28354 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
28355 Threads Library.
28356
28357 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28358
28359 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
28360
28361 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28362
28363 * csu/version.c (banner): Remove "by Roland McGrath et al.".
28364 * nptl/Banner: Remove "by Ulrich Drepper et al.".
28365
28366 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28367
28368 * stdlib/tst-atexit-common.c (do_test): Test support for at least
28369 32 atexit handlers.
28370
28371 2017-09-01 Zack Weinberg <zackw@panix.com>
28372
28373 * math/math.h (HUGE_VAL): Improve commentary.
28374
28375 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28376 Andreas Schwab <schwab@suse.de>
28377
28378 [BZ #21530]
28379 * include/stdio.h (__gen_tempfd): New function.
28380 * stdio-common/Makefile (routines): Add gentempfd.
28381 * stdio-common/gentempfd.c: New file.
28382 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
28383 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
28384 unnamed file first.
28385
28386 2017-09-01 Florian Weimer <fweimer@redhat.com>
28387
28388 [BZ #21915]
28389 [BZ #21922]
28390 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
28391 result to determine success or failure, not the errno value.
28392 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
28393 (tst-nss-files-hosts-erange): Link with -ldl.
28394 * nss/tst-nss-files-hosts-erange.c: New file.
28395 * nss/tst-resolv-basic.c (response): Handle nodata.example.
28396 (do_test): Add NO_DATA tests.
28397 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
28398 (do_test): Call it.
28399
28400 2017-09-01 Florian Weimer <fweimer@redhat.com>
28401
28402 [BZ #21922]
28403 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
28404 coming from gethostbyname2_r.
28405
28406 2017-09-01 Florian Weimer <fweimer@redhat.com>
28407
28408 * support/namespace.h (struct support_chroot_configuration): Add
28409 hosts, host_conf.
28410 (struct support_chroot): Add path_hosts, path_host_conf.
28411 * support/support_chroot.c (write_file): New function.
28412 (support_chroot_create): Call it to process /etc/resolv.conf,
28413 /etc/hosts, /etc/host.conf.
28414 (support_chroot_free): Update.
28415
28416 2017-09-01 Florian Weimer <fweimer@redhat.com>
28417
28418 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
28419 status indicates it is set.
28420
28421 2017-09-01 Florian Weimer <fweimer@redhat.com>
28422
28423 [BZ #20532]
28424 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
28425 function lookup failures more reliable.
28426
28427 2017-09-01 Florian Weimer <fweimer@redhat.com>
28428
28429 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
28430 (getcanonname): Likewise.
28431 (gaih_inet): Likewise.
28432
28433 2017-09-01 Florian Weimer <fweimer@redhat.com>
28434
28435 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
28436 (getcanonname): Likewise.
28437 (gaih_inet): Likewise.
28438
28439 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28440 Richard Henderson <rth@twiddle.net>
28441
28442 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
28443 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
28444 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
28445 (IREG_SIZE, OREG_SIZE): New macros.
28446 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
28447 (IREG_SIZE, OREG_SIZE): New macros.
28448 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
28449 (IREG_SIZE): New macro.
28450 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
28451 (IREG_SIZE): New macro.
28452 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
28453 New includes.
28454 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
28455 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28456 (__CONCATX): Handle exceptions correctly on large values that may
28457 set FE_INVALID.
28458 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
28459 Initialize if not already set.
28460 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28461
28462 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28463
28464 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
28465 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
28466 Likewise.
28467 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
28468 Likewise.
28469 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
28470 Likewise.
28471 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
28472 Likewise.
28473 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
28474 Likewise.
28475 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
28476 Likewise.
28477 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
28478 Likewise.
28479 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
28480 (NO_CANCELLATION): Likewise.
28481 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
28482 Likewise.
28483 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
28484 Likewise.
28485 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
28486 Likewise.
28487 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
28488 (NO_CANCELLATION): Likewise.
28489 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
28490 (NO_CANCELLATION): Likewise.
28491 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
28492 Likewise
28493 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
28494 Likewise.
28495 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
28496 Likewise.
28497 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
28498 Likewise.
28499 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
28500 hidden prototype.
28501 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
28502 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
28503
28504 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28505
28506 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
28507 in resolver call.
28508
28509 2017-08-31 Florian Weimer <fweimer@redhat.com>
28510
28511 * include/libc-symbols.h (internal_function): Remove.
28512
28513 2017-08-31 Florian Weimer <fweimer@redhat.com>
28514
28515 * stdlib/fmtmsg.c (internal_addseverity): Remove
28516 internal_function.
28517
28518 2017-08-31 Florian Weimer <fweimer@redhat.com>
28519
28520 * stdio-common/printf_fp.c (group_number): Remove
28521 internal_function.
28522 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
28523
28524 2017-08-31 Florian Weimer <fweimer@redhat.com>
28525
28526 * posix/fnmatch.c (internal_function): Remove definition.
28527 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
28528 * posix/regcomp.c (peek_token, init_word_char)
28529 (duplicate_node_closure, fetch_token, peek_token)
28530 (peek_token_bracket, build_range_exp, build_collating_symbol):
28531 Likewise.
28532 * posix/regex_internal.c (re_string_construct_common)
28533 (create_ci_newstate, create_cd_newstate, re_string_allocate)
28534 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
28535 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
28536 (re_string_translate_buffer, re_string_reconstruct)
28537 (re_string_peek_byte_case, re_string_fetch_byte_case)
28538 (re_string_destruct, re_string_context_at, re_node_set_alloc)
28539 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
28540 (re_node_set_add_intersect, re_node_set_init_union)
28541 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
28542 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
28543 (re_dfa_add_node, calc_state_hash, re_acquire_state)
28544 (re_acquire_state_context): Likewise.
28545 * posix/regex_internal.h (internal_function): Remove definition.
28546 (re_string_realloc_buffers, build_wcs_buffer)
28547 (build_wcs_upper_buffer, build_upper_buffer)
28548 (re_string_translate_buffer, re_string_context_at)
28549 (re_string_char_size_at, re_string_wchar_at)
28550 (re_string_elem_size_at): Likewise.
28551 * posix/regexec.c (match_ctx_init, match_ctx_clean)
28552 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
28553 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
28554 (re_search_internal, re_search_2_stub, re_search_stub)
28555 (re_copy_regs, prune_impossible_nodes, check_matching)
28556 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
28557 (free_fail_stack_return, sift_states_iter_mb)
28558 (sift_states_backward, build_sifted_states)
28559 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
28560 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
28561 (check_subexp_limits, sift_states_bkref, merge_state_array)
28562 (find_recover_state, transit_state, merge_state_with_log)
28563 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
28564 (transit_state_mb, transit_state_bkref, get_subexp)
28565 (get_subexp_sub, find_subexp_node, check_arrival)
28566 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
28567 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
28568 (check_node_accept_bytes, find_collation_sequence_value)
28569 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
28570 (acquire_init_state_context, check_halt_node_context)
28571 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
28572 (sub_epsilon_src_nodes): Likewise.
28573 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
28574 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
28575 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
28576 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
28577 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
28578 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
28579 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
28580 * sysdeps/posix/ttyname.c (getttyname): Likewise.
28581 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
28582 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
28583 (PREADV): Likewise.
28584 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
28585 (PREADV): Likewise.
28586 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
28587 (PWRITEV): Likewise.
28588 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
28589 (PWRITEV): Likewise.
28590 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
28591 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
28592
28593 2017-08-31 Florian Weimer <fweimer@redhat.com>
28594
28595 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
28596 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
28597 Remove internal_function.
28598 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
28599 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
28600 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
28601 (__deallocate_stack, __libc_pthread_init)
28602 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
28603 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
28604 (__libc_disable_asynccancel, __librt_disable_asynccancel):
28605 Likewise.
28606 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
28607 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
28608 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
28609 Likewise.
28610 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
28611 (__pthread_mutex_unlock_usercnt): Likewise.
28612
28613 2017-08-31 Florian Weimer <fweimer@redhat.com>
28614
28615 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
28616 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
28617 (fts_safe_changedir): Remove internal_function.
28618 * io/ftw.c (internal_function): Remove definition.
28619 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
28620
28621 2017-08-31 Florian Weimer <fweimer@redhat.com>
28622
28623 * inet/deadline.c (__deadline_current_time)
28624 (__deadline_from_timeval, __deadline_to_ms): Remove
28625 internal_function.
28626 * inet/getnameinfo.c (nrl_domainname): Likewise.
28627 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
28628 * inet/inet6_option.c (add_pad): Likewise.
28629 * inet/net-internal.h (__deadline_current_time)
28630 (__deadline_from_timeval, __deadline_to_ms): Likewise.
28631 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
28632 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
28633 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
28634
28635 2017-08-31 Joseph Myers <joseph@codesourcery.com>
28636
28637 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
28638 include <bits/nan.h>.
28639 * math/Makefile (headers): Remove bits/nan.h.
28640 * bits/nan.h: Remove.
28641 * sysdeps/ieee754/bits/nan.h: Likewise.
28642 * sysdeps/mips/bits/nan.h: Likewise.
28643
28644 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
28645 not include <bits/inf.h>.
28646 * math/Makefile (headers): Remove bits/inf.h.
28647 * bits/inf.h: Remove.
28648 * sysdeps/ieee754/bits/inf.h: Likewise.
28649
28650 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
28651 bits/huge_vall.h or bits/huge_val_flt128.h.
28652 (HUGE_VAL): Define directly here.
28653 [__USE_ISOC99] (HUGE_VALF): Likewise.
28654 [__USE_ISOC99] (HUGE_VALL): Likewise.
28655 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28656 (HUGE_VAL_F128): Likewise.
28657 * math/Makefile (headers): Remove bits/huge_val.h,
28658 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
28659 * bits/huge_val.h: Remove.
28660 * bits/huge_val_flt128.h: Likewise.
28661 * bits/huge_valf.h: Likewise.
28662 * bits/huge_vall.h: Likewise.
28663 * sysdeps/ia64/bits/huge_vall.h: Likewise.
28664 * sysdeps/ieee754/bits/huge_val.h: Likewise.
28665 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
28666 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
28667 * sysdeps/sh/bits/huge_val.h: Likewise.
28668 * sysdeps/sparc/bits/huge_vall.h: Likewise.
28669 * sysdeps/x86/bits/huge_vall.h: Likewise.
28670
28671 2017-08-31 Florian Weimer <fweimer@redhat.com>
28672
28673 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
28674 internal_function.
28675 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
28676 Likewise.
28677 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
28678 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
28679 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
28680 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
28681 * elf/dl-fini.c (_dl_sort_fini): Likewise.
28682 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
28683 * elf/dl-libc.c (dlerror_run): Likewise.
28684 * elf/dl-load.c (add_name_to_object, decompose_rpath)
28685 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
28686 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
28687 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
28688 Likewise.
28689 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
28690 (_dl_higher_prime_number, _dl_strtoul): Likewise.
28691 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
28692 * elf/dl-profile.c (_dl_start_profile): Likewise.
28693 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
28694 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
28695 Likewise.
28696 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
28697 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
28698 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
28699 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
28700 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
28701 (_dl_allocate_tls_storage): Likewise.
28702 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
28703 (_dl_check_all_versions): Likewise.
28704 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
28705 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
28706 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
28707 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28708 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
28709 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
28710 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
28711 internal_function from __dl_start.
28712 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
28713 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
28714 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
28715 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
28716 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
28717 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
28718 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
28719 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
28720 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
28721 (_dl_next_ld_env_entry, _dl_important_hwcaps)
28722 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
28723 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
28724 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
28725 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
28726 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
28727 Likewise.
28728 (struct rtld_global_ro): Remove internal_function from the
28729 _dl_lookup_symbol_x member.
28730 (_dl_symbol_value): Remove. No longer defined anywhere.
28731 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
28732 internal_function.
28733 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28734 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28735 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
28736 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
28737 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
28738 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
28739 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
28740 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
28741 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
28742 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
28743 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28744 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28745
28746 2017-08-31 Florian Weimer <fweimer@redhat.com>
28747
28748 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
28749 Remove internal_function.
28750 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28751 Likewise.
28752 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28753 Likewise.
28754
28755 2017-08-31 Florian Weimer <fweimer@redhat.com>
28756
28757 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
28758 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
28759 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
28760
28761 2017-08-31 Florian Weimer <fweimer@redhat.com>
28762
28763 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
28764 (__gai_enqueue_request): Remove internal_function.
28765 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
28766 (__gai_remove_request, __gai_notify, __gai_notify_only)
28767 (__gai_sigqueue): Likewise.
28768 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
28769 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
28770 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
28771 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
28772 Likewise.
28773
28774 2017-08-31 Florian Weimer <fweimer@redhat.com>
28775
28776 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
28777 * include/dirent.h (__opendirat, __getdents, __getdents64)
28778 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
28779 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
28780 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
28781 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28782 Likewise.
28783 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
28784
28785 2017-08-31 Florian Weimer <fweimer@redhat.com>
28786
28787 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
28788 internal_function.
28789 (GETCWD_RETURN_TYPE): Likewise.
28790
28791 2017-08-31 Florian Weimer <fweimer@redhat.com>
28792
28793 * include/time.h (__tz_compute, __strptime_internal): Remove
28794 internal_function.
28795 * time/strptime_l.c (__strptime_internal): Likewise.
28796 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
28797
28798 2017-08-31 Florian Weimer <fweimer@redhat.com>
28799
28800 * iconv/gconv.c (__gconv): Remove internal_function.
28801 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
28802 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
28803 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
28804 (__gconv_release_cache): Likewise.
28805 * iconv/gconv_close.c (__gconv_close): Likewise.
28806 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
28807 (read_conf_file, __gconv_get_path): Likewise.
28808 * iconv/gconv_db.c (derivation_lookup, add_derivation)
28809 (__gconv_release_step, gen_steps, increment_counter)
28810 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
28811 (__gconv_close_transform, free_modules_db): Likewise.
28812 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
28813 Likewise.
28814 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
28815 (__gconv_find_transform, __gconv_lookup_cache)
28816 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
28817 (__gconv_close_transform, __gconv_release_cache)
28818 (__gconv_loaded_object, __gconv_release_shlib)
28819 (__gconv_compare_alias): Likewise.
28820 * iconv/gconv_open.c (__gconv_open): Likewise.
28821 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
28822 * iconv/iconvconfig.c (add_module): Likewise.
28823 * intl/dcigettext.c (plural_lookup, guess_category_value)
28824 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
28825 * intl/eval-plural.h (plural_eval): Likewise.
28826 * intl/finddomain.c (_nl_find_domain): Likewise.
28827 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
28828 (_nl_load_domain, _nl_find_msg): Likewise.
28829 (internal_function): Remove definition.
28830 * intl/loadinfo.h (internal_function): Likewise.
28831 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
28832 internal_function.
28833 * intl/localealias.c (internal_function): Remove definition.
28834 (read_alias_file): Remove internal_function.
28835 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
28836 * intl/plural-exp.h (internal_function): Remove definition.
28837 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
28838 internal_function.
28839 * intl/plural.c: Regenerate.
28840 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
28841 * locale/coll-lookup.c (__collidx_table_lookup)
28842 (__collseq_table_lookup): Likewise.
28843 * locale/coll-lookup.h (__collidx_table_lookup)
28844 (__collseq_table_lookup): Likewise.
28845 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
28846 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
28847 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
28848 (_nl_unload_locale): Likewise.
28849 * locale/localeinfo.h (struct __locale_data): Remove
28850 internal_function from cleanup member.
28851 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
28852 (_nl_remove_locale, _nl_load_locale_from_archive)
28853 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
28854 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
28855 (_nl_cleanup_time): Remove internal_function.
28856 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
28857 (_nl_parse_alt_digit): Likewise.
28858 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
28859 (_nl_select_era_entry): Likewise.
28860 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
28861 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28862 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28863 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28864 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28865
28866 2017-08-31 Florian Weimer <fweimer@redhat.com>
28867
28868 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
28869 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28870 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
28871 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
28872 Likewise.
28873 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
28874 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
28875 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
28876 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
28877 Likewise.
28878 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
28879
28880 2017-08-31 Florian Weimer <fweimer@redhat.com>
28881
28882 * misc/getttyent.c (skip, value): Remove internal_function.
28883 * misc/syslog.c (openlog_internal): Likewise.
28884 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
28885
28886 2017-08-31 Florian Weimer <fweimer@redhat.com>
28887
28888 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
28889 (__nss_rewrite_field): Remove internal_function.
28890 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
28891 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
28892 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
28893 * nss/nsswitch.c (nss_parse_file, nss_getline)
28894 (nss_parse_service_list, nss_new_service): Likewise.
28895 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
28896 * nss/valid_field.c (__nss_valid_field): Likewise.
28897 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
28898
28899 2017-08-31 Florian Weimer <fweimer@redhat.com>
28900
28901 * malloc/arena.c (__malloc_fork_lock_parent)
28902 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
28903 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
28904 internal_function from defintions.
28905 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
28906 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
28907 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
28908 internal_function from declarations.
28909 * malloc/malloc.c (internal_function): Do not define.
28910 (mem2mem_check): Remove internal_function from declaration.
28911 (munmap_chunk, mremap_chunk): Remove internal_function.
28912 * malloc/mtrace.c (tr_where): Likewise.
28913
28914 2017-08-31 Florian Weimer <fweimer@redhat.com>
28915
28916 * include/rpc/pmap_clnt.h (__get_socket): Remove
28917 internal_function.
28918 * sunrpc/auth_des.c (synchronize): Likewise.
28919 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
28920 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
28921 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
28922 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
28923 (key_call): Likewise.
28924 * sunrpc/pm_getport.c (__get_socket): Likewise.
28925 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
28926 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
28927 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
28928 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
28929 (invalidate): Likewise.
28930 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
28931 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
28932 (set_input_fragment, get_input_bytes): Likewise.
28933
28934 2017-08-31 Florian Weimer <fweimer@redhat.com>
28935
28936 * malloc/malloc.c (_int_free): Remove locked variable and related
28937 asserts.
28938
28939 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
28940
28941 [BZ #22051]
28942 * Makerules (build-module-helper-objlist): Filter out
28943 $(elf-objpfx)sofini.os.
28944 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
28945 needed.
28946
28947 2017-08-31 Florian Weimer <fweimer@redhat.com>
28948
28949 * libio/fcloseall.c: Assume weak_alias is defined.
28950 * libio/feof.c: Likewise.
28951 * libio/fileno.c: Likewise.
28952 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
28953 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
28954 definitions.
28955 (_IO_file_open): Call __open directly.
28956 (_IO_new_file_sync): Assume ESPIPE is defined.
28957 (_IO_file_seekoff_maybe_mmap): Call __read directly.
28958 (_IO_new_file_write): Call __write directly.
28959 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
28960 * libio/ftello64.c (__ftello64): Assume EIO is defined.
28961 * libio/genops.c: Assume _LIBC is defined.
28962 (save_for_backup): Remove internal_function.
28963 * libio/getc.c: Assume weak_alias is defined.
28964 * libio/getwc.c: Likewise.
28965 * libio/iofclose.c: Assume _LIBC is defined.
28966 * libio/iofdopen.c: Likewise.
28967 (_IO_fcntl): Remove macro definition.
28968 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
28969 Call __fcntl directly.
28970 * libio/iofflush.c: Assume weak_alias is defined.
28971 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
28972 defined.
28973 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
28974 * libio/iofgets.c: Likewise.
28975 * libio/iofopen.c: Assume _LIBC is defined.
28976 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
28977 * libio/iofputs.c: Assume weak_alias is defined.
28978 * libio/iofread.c: Likewise.
28979 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
28980 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
28981 * libio/ioftell.c: Assume weak_alias is defined.
28982 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
28983 * libio/iofwide.c: Assume _LIBC is defined.
28984 (_IO_fwide): Drop SHARED conditional because it is implied by
28985 SHLIB_COMPAT.
28986 * libio/iofwrite.c: Assume weak_alias is defined.
28987 * libio/iogetdelim.c: Likewise.
28988 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
28989 * libio/iogetwline.c (wmemcpy): Remove macro definition.
28990 (_IO_getwline): Call __wmemcpy directly.
28991 * libio/iopopen.c: Assume _LIBC is defined.
28992 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
28993 (_IO_close): Remove macro definitions.
28994 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
28995 _exit directly.
28996 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
28997 directly.
28998 * libio/ioputs.c: Assume weak_alias is defined.
28999 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29000 * libio/iosetbuffer.c: Assume weak_alias is defined.
29001 * libio/iosetvbuf.c: Likewise.
29002 * libio/ioungetc.c: Likewise.
29003 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29004 libc_hidden_def, libc_hidden_weak, NULL are defined.
29005 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29006 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29007 defined.
29008 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29009 definitions.
29010 (_IO_old_file_init_internal): Drop SHARED conditional because it
29011 is implied by SHLIB_COMPAT.
29012 (_IO_old_file_fopen): Call __open directly.
29013 (_IO_old_file_sync): Assume ESPIPE is defined.
29014 (_IO_old_file_write): Call __write directly.
29015 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29016 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29017 Call __fcntl directly.
29018 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29019 (_IO_old_fgetpos): Assume EIO is defined.
29020 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29021 (_IO_old_fgetpos64): Assume EIO is defined.
29022 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29023 (_IO_old_fsetpos): Assume EIO is defined.
29024 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29025 (_IO_old_fsetpos64): Assume EIO is defined.
29026 * libio/oldiopopen.c: Assume _LIBC is defined.
29027 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29028 (_IO_close): Remove macro definitions.
29029 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29030 directly.
29031 (_IO_old_proc_close): Call __close, __waitpid directly.
29032 * libio/put.c: Assume weak_alias is defined.
29033 * libio/stdfiles.c: Assume _LIBC is defined.
29034 * libio/stdio.c: Likewise.
29035 * libio/wfileops.c: Likewise.
29036 (_IO_wfile_sync): Assume ESPIPE is defined.
29037 * libio/wgenops.c: Assume _LIBC is defined.
29038 (save_for_wbackup): Remove internal_function.
29039
29040 2017-08-31 Florian Weimer <fweimer@redhat.com>
29041
29042 * malloc/malloc.c (top_check): Change return type to void. Remove
29043 internal_function.
29044 * malloc/hooks.c (top_check): Likewise.
29045 (malloc_check, realloc_check, memalign_check): Adjust.
29046
29047 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29048
29049 [BZ #21457]
29050 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29051 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29052 sigcontext and namespace requirements.
29053 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29054 * sysdeps/m68k/sys/ucontext.h: Likewise.
29055 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29056 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29057 <bits/sigcontext.h>.
29058 (__ctx): Define earlier.
29059 (mcontext_t): Define structure contents rather than using struct
29060 sigcontext.
29061 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29062 __glibc_reserved1 instead of __reserved.
29063 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29064 <bits/sigcontext.h>.
29065 (__ctx): Define earlier.
29066 (mcontext_t): Define structure contents rather than using struct
29067 sigcontext.
29068 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29069 mcontext_t instead of struct sigcontext.
29070 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29071 <bits/sigcontext.h>.
29072 (__ctx): Define earlier.
29073 (mcontext_t): Define structure contents rather than using struct
29074 sigcontext.
29075 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29076 <bits/sigcontext.h>.
29077 (__ctx): Define earlier.
29078 (mcontext_t): Define structure contents rather than using struct
29079 sigcontext.
29080 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29081 mcontext_t instead of struct sigcontext.
29082 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29083 mcontext_t instead of struct sigcontext.
29084 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29085 <bits/sigcontext.h>.
29086 (__ctx): New macro.
29087 (struct __ia64_fpreg_mcontext): New type.
29088 (mcontext_t): Define structure contents rather than using struct
29089 sigcontext.
29090 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29091 (uc_sigmask): Define using __ctx.
29092 (uc_stack): Likewise.
29093 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29094 <bits/sigcontext.h>.
29095 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29096 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29097 <bits/sigcontext.h>.
29098 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29099 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29100 <bits/sigcontext.h>.
29101 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29102 <bits/sigcontext.h>.
29103 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29104 <bits/sigcontext.h>.
29105 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29106 <bits/sigcontext.h>.
29107 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29108 <bits/sigcontext.h>.
29109 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29110 <bits/sigcontext.h>.
29111 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29112 <bits/sigcontext.h>.
29113 (__ctx): Define earlier.
29114 (mcontext_t): Define structure contents rather than using struct
29115 sigcontext.
29116 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29117 <bits/sigcontext.h>. Include <bits/types.h>.
29118 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29119 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29120 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29121 (test-xfail-UNIX98/signal.h/conform): Likewise.
29122 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29123 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29124 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29125 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29126 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29127 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29128 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29129 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29130 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29131
29132 2017-08-30 Florian Weimer <fweimer@redhat.com>
29133
29134 * malloc/dynarray_emplace_enlarge.c
29135 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29136 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29137 * malloc/tst-dynarray.c (test_long_overflow): New function.
29138 (do_test): Call it.
29139
29140 2017-08-30 Florian Weimer <fweimer@redhat.com>
29141
29142 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29143 (set_arena_corrupt): Remove definitions.
29144 (mtrim): Do not check for corrupt arena.
29145 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29146 Likewise.
29147
29148 2017-08-30 Florian Weimer <fweimer@redhat.com>
29149
29150 [BZ #21754]
29151 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29152 check_action.
29153 (ptmalloc_init): Do not set or use check_action.
29154 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29155 call to malloc_printerr. Remove return statement.
29156 (free_check): Likewise. Remove arena unlock.
29157 (top_check): Update comment. Adjust call to malloc_printerr.
29158 Remove heap repair code.
29159 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29160 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29161 (sysmalloc): Adjust call to malloc_printerr.
29162 (munmap_chunk, __libc_realloc): Likewise. Remove return
29163 statement.
29164 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29165 Remove errout label and corresponding gotos.
29166 (_int_free): Likewise. Remove arena unlock.
29167 (do_set_mallopt_check): Do not set check_action.
29168 (malloc_printerr): Adjust parameter list. Do not mark arena as
29169 corrupt.
29170 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29171 comment.
29172 * manual/probes.texi (Memory Allocation Probes): Remove
29173 memory_mallopt_check_action.
29174
29175 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29176
29177 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29178 Use pointer to uint64_t instead of long int for sp.
29179
29180 2017-08-30 Florian Weimer <fweimer@redhat.com>
29181
29182 [BZ #21754]
29183 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29184 without printing a backtrace. Do not leak any information in the
29185 error message.
29186 * manual/memory.texi (Heap Consistency Checking): Update.
29187 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29188
29189 2017-08-30 Florian Weimer <fweimer@redhat.com>
29190
29191 Do not scale NPTL tests with available number of CPUs.
29192 * nptl/tst-cond16.c (count): Set to constant value of 8.
29193 * nptl/tst-cond18.c (count): Likewise.
29194
29195 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29196
29197 [BZ #22035]
29198 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29199 Define to take a second argument that is a macro that
29200 concatentates a suffix, not the suffix itself.
29201 (__CONCAT_d): New macro.
29202 (__CONCAT_f): Likewise.
29203 (__CONCAT_l): Likewise.
29204
29205 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29206
29207 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29208 by child.
29209
29210 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29211 Aurelien Jarno <aurelien@aurel32.net>
29212 Maciej W. Rozycki <macro@imgtec.com>
29213
29214 [BZ #21956]
29215 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29216 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29217 `mips16-syscall6' and `mips16-syscall7'.
29218 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29219 (CFLAGS-mips16-syscall7.c): Remove.
29220 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29221 Remove `__mips16_syscall5', `__mips16_syscall6' and
29222 `__mips16_syscall7'.
29223 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29224 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29225 `__mips_syscall_return'.
29226 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29227 (__mips16_syscall1): Likewise.
29228 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29229 (__mips16_syscall2): Likewise.
29230 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29231 (__mips16_syscall3): Likewise.
29232 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29233 (__mips16_syscall4): Likewise.
29234 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29235 Remove.
29236 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29237 Remove.
29238 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29239 Remove.
29240 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29241 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29242 `__mips16_syscall5'. Remove prototype.
29243 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29244 `__mips16_syscall6'. Remove prototype.
29245 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29246 `__mips16_syscall7'. Remove prototype.
29247 (__nomips16, __mips16_syscall_return): Move to...
29248 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29249 (__nomips16, __mips_syscall_return): ... here.
29250 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29251 `__mips16_syscall_return' to `__mips_syscall_return'.
29252 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29253 `internal_syscall##nr'.
29254 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29255 `internal_syscall##nr'.
29256 (FORCE_FRAME_POINTER): Remove.
29257 (__mips_syscall5): New prototype.
29258 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29259 (__mips_syscall6): New prototype.
29260 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29261 (__mips_syscall7): New prototype.
29262 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29263 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29264 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29265 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29266 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29267 (sysdep_routines): Add libc-do-syscall.
29268 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29269 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29270
29271 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29272
29273 [BZ #21672]
29274 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29275 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29276 (advise_stack_range): New function.
29277 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29278 stack non required to advise_stack_range at allocatestack.c
29279
29280 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29281
29282 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29283
29284 2017-08-29 Florian Weimer <fweimer@redhat.com>
29285
29286 [BZ #22026]
29287 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
29288 __end_fct. Mangle __end_fct after setting it to NULL.
29289 * iconv/Makefile (tests): Add tst-gconv-init-failure.
29290 (modules-names, modules-names-tests): Add
29291 tst-gconv-init-failure-mod.
29292 (gconv-modules): New target.
29293 (tst-gconv-init-failure-mod.so): Link against libsupport.
29294 (tst-gconv-init-failure): Depend on gconv-modules,
29295 tst-gconv-init-failure-mod.so.
29296 * iconv/tst-gconv-init-failure-mod.c: New file.
29297 * iconv/tst-gconv-init-failure.c: Likewise.
29298 * iconv/test-gconv-modules: Likewise.
29299
29300 2017-08-29 Florian Weimer <fweimer@redhat.com>
29301
29302 [BZ #22025]
29303 * iconv/gconv_db.c (free_derivation): Remove redundant
29304 parentheses.
29305 (gen_steps): Unconditionally mangle __btowc_fct after
29306 initialization.
29307 (increment_counter): Likewise. Do not call init_fct for internal
29308 modules.
29309
29310 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29311
29312 [BZ #22028]
29313 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29314 (_MSUF_): Remove macro.
29315 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
29316 Likewise.
29317 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29318 (__REDIRFROM_X): New macro.
29319 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
29320 Likewise.
29321 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
29322 (__REDIRTO_X): Likewise.
29323 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
29324 arguments.
29325 (__MATH_REDIRCALL_2): Likewise.
29326 (__MATH_REDIRCALL_INTERNAL): Likewise.
29327 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29328 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
29329 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
29330 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29331 * math/test-finite-macros.c: New file.
29332 * math/Makefile (tests): Add test-finite-macros.
29333 (CFLAGS-test-finite-macros.c): New variable.
29334
29335 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
29336 Jeff Law <law@redhat.com>
29337
29338 [BZ #22025]
29339 Mangle NULL pointers in iconv/gconv.
29340 * iconv/gconv_cache.c (find_module): Demangle init_fct before
29341 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
29342 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
29343 is non-NULL before demangling the end_fct. Check for NULL
29344 end_fct after demangling.
29345 (__gconv_release_step): Demangle the end_fct before checking
29346 it for NULL. Remove assert on __shlibc_handle != NULL.
29347 (gen_steps): Don't check btowc_fct for NULL before mangling.
29348 Demangle init_fct before checking for NULL.
29349 (increment_counter): Likewise.
29350 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
29351 end_fct for NULL before mangling.
29352 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
29353 for NULL.
29354
29355 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
29356
29357 [BZ #21971]
29358 * locale/iso-639.def: add Morisyen.
29359
29360 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29361
29362 [BZ #21930]
29363 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
29364 (iszero): New C++ implementation that does not use
29365 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
29366 signaling nans are enabled, since __builtin_types_compatible_p
29367 is a C-only feature.
29368 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
29369 defined, include ieee754_float128.h for access to the union and
29370 member ieee854_float128.ieee.
29371 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
29372 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
29373 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29374 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
29375 options of test-math-zero on powerpc64le.
29376
29377 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
29378
29379 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29380 Change double to float.
29381
29382 2017-08-28 Joseph Myers <joseph@codesourcery.com>
29383
29384 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
29385 unconditional.
29386 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
29387 conditional code; define contents only for [LIBM_SVID_COMPAT].
29388
29389 2017-08-28 Florian Weimer <fweimer@redhat.com>
29390
29391 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
29392 (abi-lp64_be-options): Remove.
29393 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
29394 (abi-hard-options): Likewise.
29395 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
29396 (abi-o32_hard-options, abi-o32_soft_2008-options)
29397 (abi-o32_hard_2008-options, abi-n32_soft-options)
29398 (abi-n32_hard-options, abi-n32_soft_2008-options)
29399 (abi-n32_hard_2008-options, abi-n64_soft-options)
29400 (abi-n64_hard-options, abi-n64_soft_2008-options)
29401 (abi-n64_hard_2008-options): Likewise.
29402 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
29403 (abi-64-v1-options, abi-64-v2-options): Likewise.
29404 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
29405 (abi-64-options): Likewise.
29406 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
29407 (abi-64-options): Likewise.
29408 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
29409 (abi-64-options): Likewise.
29410 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
29411 (abi-64-options, abi-x32-options): Likewise.
29412
29413 2017-08-28 Florian Weimer <fweimer@redhat.com>
29414
29415 Store supported list of SYS_* system calls in the source tree.
29416 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
29417 (bits/syscall.h): Generate from list file.
29418 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
29419 [$(subdir) = misc] (tests): Add tst-syscall-list.
29420 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
29421 [$(subdir) = misc] (tst-syscall-list-macros.list)
29422 [$(subdir) = misc] (tst-syscall-list-nr.list)
29423 (tst-syscall-list-sys.list): Helper targets for new
29424 tst-syscall-list test.
29425 [$(subdir) = misc] (tst-syscall-list.out): Run test script
29426 tst-syscall-list.sh.
29427 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
29428 target. Do not include bits/syscall.d.
29429 [$(subdir) = misc] (generated): Do not update.
29430 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
29431 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
29432 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
29433 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
29434
29435 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
29436
29437 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
29438 (tst-cxa_atexit, tst-on_exit): Likewise.
29439 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
29440 tst-cxa_atexit, and tst-on_exit.
29441 * stdlib/tst-atexit-common.c: New file.
29442 * stdlib/tst-atexit.c: New file.
29443 * stdlib/tst-at_quick_exit.c: New file.
29444 * stdlib/tst-cxa_atexit.c: New file.
29445 * stdlib/tst-on_exit.c: New file.
29446
29447 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29448
29449 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
29450 * mach/stack_chk_fail_local.c: New file.
29451 * hurd/stack_chk_fail_local.c: New file.
29452 * mach/Machrules ($(interface-library)-routines): Add
29453 stack_chk_fail_local.
29454 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
29455 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
29456 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
29457 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
29458 * hurd/Makefile (CFLAGS-hurdstartup.o,
29459 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
29460
29461 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
29462
29463 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
29464 (index_cpu_*, index_arch_*): Removed.
29465
29466 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29467
29468 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
29469 Use uint64_t instead of unsigned long.
29470
29471 2017-08-25 Joseph Myers <joseph@codesourcery.com>
29472
29473 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
29474 [__HAVE_DISTINCT_FLOAT128].
29475
29476 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
29477 of <bits/math-finite.h>.
29478 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
29479 inclusion of <bits/math-finite.h>.
29480 * math/bits/math-finite.h (__REDIRTO_X): Do not define
29481 conditionally on [__MATH_DECLARING_LDOUBLE && defined
29482 __NO_LONG_DOUBLE_MATH].
29483 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
29484 (__MATH_REDIRCALL_2): Likewise.
29485 (__MATH_REDIRCALL_INTERNAL): Likewise.
29486 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29487 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
29488 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29489
29490 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
29491 Remove file.
29492 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
29493 Likewise.
29494 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
29495 Likewise.
29496 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
29497 Likewise.
29498 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
29499 Likewise.
29500 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
29501 Likewise.
29502 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
29503 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
29504 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
29505 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
29506 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
29507 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
29508 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
29509 w_sqrtf_compat-ppc32.
29510
29511 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29512
29513 * math/math.h [defined __cplusplus] (issignaling): In the long
29514 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
29515 is not defined. Call __issignaling, otherwise.
29516
29517 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29518
29519 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
29520 syscall definitions and replace __builtin_expect with __glibc_likely.
29521 * sysdeps/unix/syscall-template.S: Update comment about cancellable
29522 syscall.
29523 (SYSCALL_CANCELLABLE): Removedefinition
29524 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
29525 definition.
29526 (PSEUDO_END): Likewise.
29527 [IS_IN (libpthread)] (CENABLE): Likewise.
29528 [IS_IN (libpthread)] (CDISABLE): Likewise.
29529 [IS_IN (libc)] (CENABLE): Likewise.
29530 [IS_IN (libc)] (CENABLE): Likewise.
29531 [IS_IN (librt)] (CDISABLE): Likewise.
29532 [IS_IN (librt)] (CDISABLE): Likewise.
29533 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29534 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
29535 definition.
29536 (PSEUDO_END): Likewise.
29537 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
29538 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
29539 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29540 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29541 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29542 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29543 (CENABLE): Likewise.
29544 (CDISABLE): Likewise.
29545 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29546 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
29547 defintion.
29548 (PSEUDO_END): Likewise.
29549 [IS_IN (libpthread)] (CENABLE): Likewise.
29550 [IS_IN (libpthread)] (CDISABLE): Likewise.
29551 [IS_IN (libc)] (CENABLE): Likewise.
29552 [IS_IN (libc)] (CENABLE): Likewise.
29553 [IS_IN (librt)] (CDISABLE): Likewise.
29554 [IS_IN (librt)] (CDISABLE): Likewise.
29555 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29556 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
29557 definition.
29558 (PSEUDO_END): Likewise.
29559 [IS_IN (libpthread)] (CENABLE): Likewise.
29560 [IS_IN (libpthread)] (CDISABLE): Likewise.
29561 [IS_IN (libc)] (CENABLE): Likewise.
29562 [IS_IN (libc)] (CENABLE): Likewise.
29563 [IS_IN (librt)] (CDISABLE): Likewise.
29564 [IS_IN (librt)] (CDISABLE): Likewise.
29565 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29566 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
29567 definition.
29568 (PSEUDO_END): Likewise.
29569 [IS_IN (libpthread)] (CENABLE): Likewise.
29570 [IS_IN (libpthread)] (CDISABLE): Likewise.
29571 [IS_IN (libc)] (CENABLE): Likewise.
29572 [IS_IN (libc)] (CENABLE): Likewise.
29573 [IS_IN (librt)] (CDISABLE): Likewise.
29574 [IS_IN (librt)] (CDISABLE): Likewise.
29575 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29576 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
29577 definition.
29578 (PSEUDO_END): Likewise.
29579 [IS_IN (libpthread)] (CENABLE): Likewise.
29580 [IS_IN (libpthread)] (CDISABLE): Likewise.
29581 [IS_IN (libc)] (CENABLE): Likewise.
29582 [IS_IN (libc)] (CENABLE): Likewise.
29583 [IS_IN (librt)] (CDISABLE): Likewise.
29584 [IS_IN (librt)] (CDISABLE): Likewise.
29585 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29586 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
29587 definition.
29588 (PSEUDO_END): Likewise.
29589 [IS_IN (libpthread)] (CENABLE): Likewise.
29590 [IS_IN (libpthread)] (CDISABLE): Likewise.
29591 [IS_IN (libc)] (CENABLE): Likewise.
29592 [IS_IN (libc)] (CENABLE): Likewise.
29593 [IS_IN (librt)] (CDISABLE): Likewise.
29594 [IS_IN (librt)] (CDISABLE): Likewise.
29595 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29596 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
29597 definition.
29598 (PSEUDO_END): Likewise.
29599 [IS_IN (libpthread)] (CENABLE): Likewise.
29600 [IS_IN (libpthread)] (CDISABLE): Likewise.
29601 [IS_IN (libc)] (CENABLE): Likewise.
29602 [IS_IN (libc)] (CENABLE): Likewise.
29603 [IS_IN (librt)] (CDISABLE): Likewise.
29604 [IS_IN (librt)] (CDISABLE): Likewise.
29605 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29606 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
29607 Remove definition.
29608 (PSEUDO_END): Likewise.
29609 [IS_IN (libpthread)] (CENABLE): Likewise.
29610 [IS_IN (libpthread)] (CDISABLE): Likewise.
29611 [IS_IN (libc)] (CENABLE): Likewise.
29612 [IS_IN (libc)] (CENABLE): Likewise.
29613 [IS_IN (librt)] (CDISABLE): Likewise.
29614 [IS_IN (librt)] (CDISABLE): Likewise.
29615 (SINGLE_THREAD_P): Likewise.
29616 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
29617 definition.
29618 (PSEUDO_END): Likewise.
29619 [IS_IN (libpthread)] (CENABLE): Likewise.
29620 [IS_IN (libpthread)] (CDISABLE): Likewise.
29621 [IS_IN (libc)] (CENABLE): Likewise.
29622 [IS_IN (libc)] (CENABLE): Likewise.
29623 [IS_IN (librt)] (CDISABLE): Likewise.
29624 [IS_IN (librt)] (CDISABLE): Likewise.
29625 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29626 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
29627 definition.
29628 (PSEUDO_END): Likewise.
29629 [IS_IN (libpthread)] (CENABLE): Likewise.
29630 [IS_IN (libpthread)] (CDISABLE): Likewise.
29631 [IS_IN (libc)] (CENABLE): Likewise.
29632 [IS_IN (libc)] (CENABLE): Likewise.
29633 [IS_IN (librt)] (CDISABLE): Likewise.
29634 [IS_IN (librt)] (CDISABLE): Likewise.
29635 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29636 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
29637 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
29638 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
29639 * sysdeps/unix/sysv/linux/s390/s390-32/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/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
29650 definition.
29651 (PSEUDO_END): Likewise.
29652 [IS_IN (libpthread)] (CENABLE): Likewise.
29653 [IS_IN (libpthread)] (CDISABLE): Likewise.
29654 [IS_IN (libc)] (CENABLE): Likewise.
29655 [IS_IN (libc)] (CENABLE): Likewise.
29656 [IS_IN (librt)] (CDISABLE): Likewise.
29657 [IS_IN (librt)] (CDISABLE): Likewise.
29658 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29659 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
29660 definition.
29661 (PSEUDO_END): Likewise.
29662 [IS_IN (libpthread)] (CENABLE): Likewise.
29663 [IS_IN (libpthread)] (CDISABLE): Likewise.
29664 [IS_IN (libc)] (CENABLE): Likewise.
29665 [IS_IN (libc)] (CENABLE): Likewise.
29666 [IS_IN (librt)] (CDISABLE): Likewise.
29667 [IS_IN (librt)] (CDISABLE): Likewise.
29668 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29669 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
29670 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
29671 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
29672 * sysdeps/unix/sysv/linux/tile/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/x86_64/sysdep-cancel.h (PSEUDO): Remove
29683 definition.
29684 (PSEUDO_END): Likewise.
29685 [IS_IN (libpthread)] (CENABLE): Likewise.
29686 [IS_IN (libpthread)] (CDISABLE): Likewise.
29687 [IS_IN (libc)] (CENABLE): Likewise.
29688 [IS_IN (libc)] (CENABLE): Likewise.
29689 [IS_IN (librt)] (CDISABLE): Likewise.
29690 [IS_IN (librt)] (CDISABLE): Likewise.
29691 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29692
29693 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
29694
29695 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
29696
29697 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29698
29699 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29700
29701 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29702
29703 [BZ #21982]
29704 * string/stratcliff.c (do_test): Declare size, nchars, inner,
29705 middle and outer with size_t instead of int. Repleace %d and
29706 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
29707 "MAX (outer, nchars - 64)" to support unsigned outer and
29708 nchars. Also exit loop when outer == 0.
29709
29710 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29711
29712 * include/fcntl.h (__fcntl_nocancel): Remove definition.
29713 * include/signal.h (__sigsuspend_nocancel): Likewise.
29714 * include/time.h (__nanosleep_nocancel): Likewise.
29715 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
29716 * login/utmp_file.c: Include non cancellable syscall header.
29717 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
29718 prototype.
29719
29720 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29721
29722 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
29723 .byte sequences with AVX512F instructions.
29724 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
29725 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
29726 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
29727 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
29728 Likewise.
29729 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29730 Likewise.
29731
29732 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
29733 Steve Ellcey <sellcey@cavium.com>
29734
29735 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
29736 Use PTR_REG macro in cmp instruction.
29737
29738 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29739
29740 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
29741 Change the return type of the ifunc resolver to match the return
29742 type of the target function.
29743
29744 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29745
29746 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
29747 (preadv64): Likewise.
29748 (pwrite64(: Likewise.
29749 (pwritev64): Likewise.
29750
29751 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
29752 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
29753 (LOAD_ARGS_0): Likewise.
29754 (LOAD_ARGS_1): Likewise.
29755 (LOAD_ARGS_2): Likewise.
29756 (LOAD_ARGS_3): Likewise.
29757 (LOAD_ARGS_4): Likewise.
29758 (LOAD_ARGS_5): Likewise.
29759 (LOAD_ARGS_6): Likewise.
29760 (LOAD_REGS_0): Likewise.
29761 (LOAD_REGS_1): Likewise.
29762 (LOAD_REGS_2): Likewise.
29763 (LOAD_REGS_3): Likewise.
29764 (LOAD_REGS_4): Likewise.
29765 (LOAD_REGS_5): Likewise.
29766 (LOAD_REGS_6): Likewise.
29767 (ASM_ARGS_0): Likewise.
29768 (ASM_ARGS_1): Likewise.
29769 (ASM_ARGS_2): Likewise.
29770 (ASM_ARGS_3): Likewise.
29771 (ASM_ARGS_4): Likewise.
29772 (ASM_ARGS_5): Likewise.
29773 (ASM_ARGS_6): Likewise.
29774 (LOAD_ARGS_TYPES_1): Likewise.
29775 (LOAD_ARGS_TYPES_2): Likewise.
29776 (LOAD_ARGS_TYPES_3): Likewise.
29777 (LOAD_ARGS_TYPES_4): Likewise.
29778 (LOAD_ARGS_TYPES_5): Likewise.
29779 (LOAD_ARGS_TYPES_6): Likewise.
29780 (LOAD_REGS_TYPES_1): Likewise.
29781 (LOAD_REGS_TYPES_2): Likewise.
29782 (LOAD_REGS_TYPES_3): Likewise.
29783 (LOAD_REGS_TYPES_4): Likewise.
29784 (LOAD_REGS_TYPES_5): Likewise.
29785 (LOAD_REGS_TYPES_6): Likewise.
29786 (TYPEFY): New define.
29787 (ARGIFY): Likewise.
29788 (internal_syscall0): Likewise.
29789 (internal_syscall1): Likewise.
29790 (internal_syscall2): Likewise.
29791 (internal_syscall3): Likewise.
29792 (internal_syscall4): Likewise.
29793 (internal_syscall5): Likewise.
29794 (internal_syscall6): Likewise.
29795 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
29796 (INTERNAL_SYSCALL_NCS): Remove define.
29797 (internal_syscall1): Add define.
29798
29799 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29800
29801 * math/w_remainder_compat.c: Remove duplicate inclusion of
29802 math-svid-compat.h.
29803 * math/w_remainderf_compat.c: Likewise.
29804 * math/w_remainderl_compat.c: Likewise.
29805
29806 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29807
29808 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29809
29810 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29811
29812 [BZ #21684]
29813 * math/tgmath.h (__floating_type): Simplify definitions.
29814 (__real_integer_type): New macro.
29815 (__complex_integer_type): Likewise.
29816 (__expr_is_real): Likewise.
29817 (__tgmath_real_type_sub): Update comment to describe handling of
29818 complex types.
29819 (__tgmath_complex_type_sub): New macro.
29820 (__tgmath_complex_type): Likewise.
29821 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29822 (__TGMATH_CF128): Use __expr_is_real.
29823 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
29824 __expr_is_real.
29825 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29826 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
29827 * math/gen-tgmath-tests.py (Type.create_type): Create complex
29828 integer types.
29829
29830 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29831
29832 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
29833 macro.
29834 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
29835 alias.
29836 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
29837 Likewise.
29838
29839 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
29840 nanosleep_not_cancel with __nanosleep_nocancel.
29841 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
29842 (__nanosleep_nocancel): New macro.
29843 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
29844 function.
29845 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
29846 macro.
29847 (__nanosleep_nocancel): New prototype.
29848
29849 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
29850 pause_not_cancel with __pause_nocancel.
29851 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
29852 (__pause_nocancel): New macro.
29853 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
29854 macro.
29855 (__pause_nocancel): New prototype.
29856 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
29857
29858 2017-08-22 Martin Sebor <msebor@redhat.com>
29859
29860 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
29861 to return a pointer to the same type as the target function.
29862
29863 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29864
29865 [BZ #18822]
29866 [BZ #21986]
29867 * include/printf.h (__printf_fphex): Add attribute_hidden.
29868 (__guess_grouping): New prototype.
29869 * stdio-common/printf_fp.c (__guess_grouping): Removed.
29870 * stdio-common/reg-printf.c (__register_printf_specifier): Add
29871 libc_hidden_proto and libc_hidden_def.
29872 * stdlib/strfmon_l.c (__guess_grouping): Removed.
29873 (__vstrfmon_l): Remove the third argument passed to
29874 __guess_grouping.
29875
29876 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29877
29878 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
29879 definition for issignaling that does not rely on __MATH_TG,
29880 since __MATH_TG uses __builtin_types_compatible_p, which is only
29881 available in C mode.
29882 (CFLAGS-test-math-issignaling.cc): New variable.
29883 * math/Makefile [CXX] (tests): Add test-math-issignaling.
29884 * math/test-math-issignaling.cc: New test for C++ implementation
29885 of type-generic issignaling.
29886 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29887 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
29888 options of test-math-issignaling on powerpc64le.
29889
29890 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29891
29892 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
29893 building libc.a.
29894 (hidden_proto): Likewise.
29895 (hidden_tls_proto): Likewise.
29896 (__hidden_proto): Likewise.
29897
29898 2017-08-22 Florian Weimer <fweimer@redhat.com>
29899
29900 math: Statically link tests of internal functionality.
29901 * math/Makefile (tests): Remove atest-exp, atest-sincos,
29902 atest-exp2.
29903 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
29904 (gmp-objs): Remove assignment.
29905 (atest-exp, atest-sincos, atest-exp2): Remove targets.
29906
29907 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29908
29909 [BZ #21987]
29910 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
29911 and copy to ...
29912 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
29913 ... here.
29914 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
29915 ... and here.
29916
29917 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
29918 variable definitions above inclusion of ../Rules.
29919
29920 2017-08-21 Joseph Myers <joseph@codesourcery.com>
29921
29922 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
29923 case calling __builtin_unreachable.
29924
29925 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29926
29927 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
29928 __waitpid_nocancel.
29929 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
29930 (__waitpid_nocancel): New macro.
29931 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
29932 macro.
29933 (__waitpid_nocancel): Replace macro with a function.
29934 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
29935 function.
29936
29937 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
29938 __fcntl_nocancel.
29939 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
29940 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
29941
29942 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
29943 __writev_nocancel_nostatus.
29944 (write_call_graph): Likewise.
29945 (write_bb_counts): Likewise.
29946 * resolv/herror.c (herror): Likewise.
29947 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
29948 macro.
29949 (__writev_nocancel_nostatus): New macro.
29950 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
29951 Remove macro.
29952 (__writev_nocancel_nostatus): New function.
29953
29954 2017-08-21 Joseph Myers <joseph@codesourcery.com>
29955
29956 Revert:
29957 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
29958
29959 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
29960 building libc.a.
29961 (hidden_proto): Likewise.
29962 (hidden_tls_proto): Likewise.
29963 (__hidden_proto): Likewise.
29964
29965 [BZ #21973]
29966 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
29967 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
29968 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
29969 Likewise.
29970 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
29971 Likewise.
29972 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
29973 Likewise.
29974 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
29975 Likewise.
29976 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
29977 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
29978 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
29979 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
29980 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
29981 GLIBC_2.0 sqrtl symbol.
29982
29983 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
29984 [__USE_MISC] (_LIB_VERSION): Likewise.
29985 [__USE_MISC] (struct exception): Likewise.
29986 [__USE_MISC] (matherr): Likewise.
29987 [__USE_MISC] (DOMAIN): Likewise.
29988 [__USE_MISC] (SING): Likewise.
29989 [__USE_MISC] (OVERFLOW): Likewise.
29990 [__USE_MISC] (UNDERFLOW): Likewise.
29991 [__USE_MISC] (TLOSS): Likewise.
29992 [__USE_MISC] (PLOSS): Likewise.
29993 [__USE_MISC] (HUGE): Likewise.
29994 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
29995 * math/math-svid-compat.h: New file.
29996 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
29997 and matherrl.
29998 * include/math.h [!_ISOMAC] (__matherr): Remove.
29999 * manual/arith.texi (FP Exceptions): Do not document matherr.
30000 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30001 (tests-internal): New variable.
30002 (install-lib): Do not add libieee.a.
30003 (non-lib.a): Likewise.
30004 (extra-objs): Do not add libieee.a and ieee-math.o.
30005 (CPPFLAGS-s_lib_version.c): Remove variable.
30006 ($(objpfx)libieee.a): Remove rule.
30007 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30008 * math/ieee-math.c: Remove.
30009 * math/libm-test-support.c (matherr): Remove.
30010 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30011 and license notices. Include <math-svid-compat.h> and
30012 <shlib-compat.h>.
30013 (matherr): Undefine as macro. Use compat_symbol_reference.
30014 (_LIB_VERSION): Likewise.
30015 * math/test-matherr-2.c: New file.
30016 * math/test-matherr-3.c: Likewise.
30017 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30018 declaration.
30019 (__kernel_standard_f): Likewise.
30020 (__kernel_standard_l): Likewise.
30021 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30022 <math_private.h>. Include <math-svid-compat.h>.
30023 (_LIB_VERSION): Undefine as macro.
30024 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30025 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30026 [LIBM_SVID_COMPAT], use compat_symbol.
30027 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30028 <math_private.h>. Include <math-svid-compat.h>.
30029 (matherr): Undefine as macro.
30030 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30031 compat_symbol.
30032 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30033 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30034 compat_symbol_reference.
30035 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30036 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30037 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30038 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30039 (MATHERR_D): Remove declaration.
30040 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30041 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30042 [LIBM_BUILD] (pmatherrf): Likewise.
30043 [LIBM_BUILD] (pmatherr): Likewise.
30044 [LIBM_BUILD] (pmatherrl): Likewise.
30045 (DOMAIN): Likewise.
30046 (SING): Likewise.
30047 (OVERFLOW): Likewise.
30048 (UNDERFLOW): Likewise.
30049 (TLOSS): Likewise.
30050 (PLOSS): Likewise.
30051 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30052 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30053 compat_symbol.
30054 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30055 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30056 compat_symbol.
30057 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30058 * math/w_acos_compat.c: Likewise.
30059 * math/w_acosf_compat.c: Likewise.
30060 * math/w_acosh_compat.c: Likewise.
30061 * math/w_acoshf_compat.c: Likewise.
30062 * math/w_acoshl_compat.c: Likewise.
30063 * math/w_acosl_compat.c: Likewise.
30064 * math/w_asin_compat.c: Likewise.
30065 * math/w_asinf_compat.c: Likewise.
30066 * math/w_asinl_compat.c: Likewise.
30067 * math/w_atan2_compat.c: Likewise.
30068 * math/w_atan2f_compat.c: Likewise.
30069 * math/w_atan2l_compat.c: Likewise.
30070 * math/w_atanh_compat.c: Likewise.
30071 * math/w_atanhf_compat.c: Likewise.
30072 * math/w_atanhl_compat.c: Likewise.
30073 * math/w_cosh_compat.c: Likewise.
30074 * math/w_coshf_compat.c: Likewise.
30075 * math/w_coshl_compat.c: Likewise.
30076 * math/w_exp10_compat.c: Likewise.
30077 * math/w_exp10f_compat.c: Likewise.
30078 * math/w_exp10l_compat.c: Likewise.
30079 * math/w_exp2_compat.c: Likewise.
30080 * math/w_exp2f_compat.c: Likewise.
30081 * math/w_exp2l_compat.c: Likewise.
30082 * math/w_fmod_compat.c: Likewise.
30083 * math/w_fmodf_compat.c: Likewise.
30084 * math/w_fmodl_compat.c: Likewise.
30085 * math/w_hypot_compat.c: Likewise.
30086 * math/w_hypotf_compat.c: Likewise.
30087 * math/w_hypotl_compat.c: Likewise.
30088 * math/w_j0_compat.c: Likewise.
30089 * math/w_j0f_compat.c: Likewise.
30090 * math/w_j0l_compat.c: Likewise.
30091 * math/w_j1_compat.c: Likewise.
30092 * math/w_j1f_compat.c: Likewise.
30093 * math/w_j1l_compat.c: Likewise.
30094 * math/w_jn_compat.c: Likewise.
30095 * math/w_jnf_compat.c: Likewise.
30096 * math/w_jnl_compat.c: Likewise.
30097 * math/w_lgamma_main.c: Likewise.
30098 * math/w_lgamma_r_compat.c: Likewise.
30099 * math/w_lgammaf_main.c: Likewise.
30100 * math/w_lgammaf_r_compat.c: Likewise.
30101 * math/w_lgammal_main.c: Likewise.
30102 * math/w_lgammal_r_compat.c: Likewise.
30103 * math/w_log10_compat.c: Likewise.
30104 * math/w_log10f_compat.c: Likewise.
30105 * math/w_log10l_compat.c: Likewise.
30106 * math/w_log2_compat.c: Likewise.
30107 * math/w_log2f_compat.c: Likewise.
30108 * math/w_log2l_compat.c: Likewise.
30109 * math/w_log_compat.c: Likewise.
30110 * math/w_logf_compat.c: Likewise.
30111 * math/w_logl_compat.c: Likewise.
30112 * math/w_pow_compat.c: Likewise.
30113 * math/w_powf_compat.c: Likewise.
30114 * math/w_powl_compat.c: Likewise.
30115 * math/w_remainder_compat.c: Likewise.
30116 * math/w_remainderf_compat.c: Likewise.
30117 * math/w_remainderl_compat.c: Likewise.
30118 * math/w_scalb_compat.c: Likewise.
30119 * math/w_scalbf_compat.c: Likewise.
30120 * math/w_scalbl_compat.c: Likewise.
30121 * math/w_sinh_compat.c: Likewise.
30122 * math/w_sinhf_compat.c: Likewise.
30123 * math/w_sinhl_compat.c: Likewise.
30124 * math/w_sqrt_compat.c: Likewise.
30125 * math/w_sqrtf_compat.c: Likewise.
30126 * math/w_sqrtl_compat.c: Likewise.
30127 * math/w_tgamma_compat.c: Likewise.
30128 * math/w_tgammaf_compat.c: Likewise.
30129 * math/w_tgammal_compat.c: Likewise.
30130 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30131 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30132 * sysdeps/ieee754/k_standard.c: Likewise.
30133 * sysdeps/ieee754/k_standardf.c: Likewise.
30134 * sysdeps/ieee754/k_standardl.c: Likewise.
30135 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30136 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30137 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30138 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30139 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30140 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30141 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30142 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30143 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30144 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30145 Likewise.
30146 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30147 Likewise.
30148 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30149 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30150 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30151 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30152
30153 2017-08-21 Florian Weimer <fweimer@redhat.com>
30154
30155 [BZ #21864]
30156 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30157 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30158 Move before inclusion of ../Rules.
30159
30160 2017-08-21 Florian Weimer <fweimer@redhat.com>
30161
30162 [BZ #21972]
30163 * assert/assert.h (assert): Use static_cast (bool) for C++.
30164 Use the ternary operator in the warning branch for GNU C.
30165 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30166 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30167 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30168 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30169 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30170
30171 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30172
30173 [BZ #18822]
30174 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30175 (__syscall_clock_gettime): Add attribute_hidden.
30176 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30177 (__start_context): Likewise.
30178
30179 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30180
30181 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30182 building libc.a.
30183 (hidden_proto): Likewise.
30184 (hidden_tls_proto): Likewise.
30185 (__hidden_proto): Likewise.
30186
30187 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30188
30189 * include/libc-symbols.h (attribute_hidden): Enable hidden
30190 visibility in libc.a compiled with PIE.
30191
30192 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30193
30194 [BZ #18822]
30195 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30196 Add attribute_hidden.
30197
30198 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30199
30200 [BZ #21864]
30201 * Makerules (all-nonlib): Add $(others-extras).
30202 * catgets/Makefile (others-extras): New.
30203 * elf/Makefile (others-extras): Likewise.
30204 * nss/Makefile (others-extras): Likewise.
30205
30206 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30207
30208 [BZ #18822]
30209 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30210 * elf/dl-open.c: Include <libc-internal.h>.
30211 (__libc_multiple_libcs): Removed.
30212 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30213 <hp-timing.h>.
30214 * include/libc-internal.h (__libc_multiple_libcs): New.
30215 * misc/sbrk.c: Include <libc-internal.h>.
30216 (__libc_multiple_libcs): Removed.
30217
30218 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30219
30220 [BZ #18822]
30221 * grp/initgroups.c (__nss_group_database): Removed.
30222 (__nss_initgroups_database): Likewise.
30223 * nscd/gai.c (__nss_hosts_database): Likewise.
30224 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30225 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30226 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30227 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30228 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30229 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30230 attribute_hidden.
30231 * nss/nsswitch.c (__nss_database_custom): Define only if
30232 USE_NSCD is defined.
30233 (__nss_configure_lookup): Use __nss_database_custom only if
30234 USE_NSCD is defined.
30235 * nss/nsswitch.h (__nss_database_custom): Declare only if
30236 USE_NSCD is defined. Add attribute_hidden.
30237 (__nss_setent): Add attribute_hidden.
30238 (__nss_endent): Likewise.
30239 (__nss_getent_r): Likewise.
30240 (__nss_getent): Likewise.
30241 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30242
30243 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30244
30245 [BZ #18822]
30246 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30247 libc_hidden_proto and libc_hidden_def.
30248
30249 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30250
30251 [BZ #18822]
30252 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30253 Add libc_hidden_proto.
30254 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30255 Add libc_hidden_def.
30256
30257 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30258
30259 [BZ #21974]
30260 * gmon/Makefile (routines): Remove bb_init_func and
30261 bb_exit_func.
30262 (elide-routines.os): Removed.
30263 * gmon/bb_exit_func.c: Likewise.
30264 * gmon/bb_init_func.c: Likewise.
30265 * include/sys/gmon.h (__bb): Likewise.
30266 (__bb_init_func): Likewise.
30267 (__bb_exit_func): Likewise.
30268 * sysdeps/alpha/bb_init_func.S: Likewise.
30269
30270 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30271
30272 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30273 * include/setjmp.h (____longjmp_chk): Here. Add
30274 attribute_hidden.
30275
30276 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30277
30278 [BZ #18822]
30279 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30280 attribute_hidden.
30281 (__strspn_sse2): Likewise.
30282
30283 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30284
30285 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
30286 (close_not_cancel_no_status): Likewise.
30287 (__close_nocancel): New macro.
30288 (__close_nocancel_nostatus): Likewise.
30289 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
30290 macro.
30291 (close_not_cancel): Likewise.
30292 (close_not_cancel_no_status): Likewise.
30293 (__close_nocancel): New prototype.
30294 (__close_nocancel_nostatus): New function.
30295 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30296 * catgets/open_catalog.c (__open_catalog): Replace
30297 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30298 * gmon/gmon.c (write_gmon): Likewise.
30299 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30300 * intl/loadmsgcat.c (close): Likewise.
30301 * io/ftw.c (open_dir_stream): Likewise.
30302 (ftw_startup): Likewise.
30303 * libio/fileops.c (_IO_file_open): Likewise.
30304 (_IO_file_close_mmap): Likewise.
30305 (_IO_file_close): Likewise.
30306 * libio/iopopen.c (_IO_dup2): Likewise.
30307 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30308 * locale/loadlocale.c (_nl_load_locale): Likewise.
30309 * login/utmp_file.c (pututline_file): Likewise.
30310 (endutent_file): Likewise.
30311 * misc/daemon.c (daemon): Likewise.
30312 * nscd/nscd_getai.c (__nscd_getai): Likewise.
30313 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30314 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30315 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30316 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30317 * nscd/nscd_helper.c (open_socket): Likewise.
30318 (__nscd_open_socket): Likewise.
30319 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
30320 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
30321 (__nscd_innetgr): Likewise.
30322 * nss/nss_db/db-open.c (internal_setent): Likewise.
30323 * resolv/res-close.c (__res_iclose): Likewise.
30324 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
30325 * sysdeps/posix/closedir.c (__closedir): Likewise.
30326 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
30327 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30328 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30329 (opendir_tail): Likewise.
30330 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30331 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
30332 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
30333 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
30334 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30335 (gethostid): Likewise.
30336 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30337 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30338 Likewise.
30339 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30340 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
30341 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30342 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30343 Likewise.
30344 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
30345 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
30346 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30347 Likewise.
30348 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
30349 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30350 Likewise.
30351 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30352 Likewise.
30353 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30354 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30355 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30356 __close_nocancel.
30357
30358 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
30359 (openat_not_cancel_3): Likewise.
30360 (openat64_not_cancel_3): Likewise).
30361 (openat_not_cancel_3): Likewise).
30362 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
30363 macro.
30364 (openat_not_cancel_3): Likewise.
30365 (openat64_not_cancel): Likewise.
30366 (openat64_not_cancel_3): Likewise.
30367 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
30368 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
30369 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
30370 __open{64}_nocancel.
30371 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30372 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30373 * sysdeps/posix/opendir.c (__opendirat): Likewise.
30374
30375 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30376
30377 [BZ #18822]
30378 * include/argz.h (__argz_create_sep): New function prototype.
30379 (__argz_append): Likewise.
30380 (__argz_add): Likewise.
30381 (__argz_add_sep): Likewise.
30382 (__argz_delete): Likewise.
30383 (__argz_insert): Likewise.
30384 (__argz_replace): Likewise.
30385 * string/argz.h (__argz_create_sep): Removed.
30386 (__argz_append): Likewise.
30387 (__argz_add): Likewise.
30388 (__argz_add_sep): Likewise.
30389 (__argz_delete): Likewise.
30390 (__argz_insert): Likewise.
30391 (__argz_replace): Likewise.
30392
30393 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30394
30395 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
30396 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
30397 (GNU_PROPERTY_STACK_SIZE): Likewie.
30398 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
30399 (GNU_PROPERTY_LOPROC): Likewise.
30400 (GNU_PROPERTY_HIPROC): Likewise.
30401 (GNU_PROPERTY_LOUSER): Likewise.
30402 (GNU_PROPERTY_HIUSER): Likewise.
30403 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
30404 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
30405 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
30406 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
30407 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
30408 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
30409 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
30410 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
30411 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
30412 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
30413 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
30414 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
30415 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
30416 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
30417 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
30418 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
30419 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
30420 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
30421 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
30422 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
30423 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
30424 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
30425 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
30426
30427 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30428
30429 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
30430 in C++ mode.
30431
30432 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30433
30434 [BZ #21930]
30435 * math/math.h (isinf): Check if in C or C++ mode before using
30436 __builtin_types_compatible_p, since this is a C mode feature.
30437
30438 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30439
30440 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
30441 (__write_nocancel): New macro.
30442 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
30443 Rewrite as a function prototype.
30444 (write_not_cancel): Remove macro.
30445 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
30446 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
30447 (write_gmon): Likewise.
30448 * libio/fileops.c (_IO_new_file_write): Likewise.
30449 * login/utmp_file.c (pututline_file): Likewise.
30450 (updwtmp_file): Likewise.
30451 * stdio-common/psiginfo.c (psiginfo): Likewise.
30452 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30453 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30454 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30455 Likewise.
30456 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30457 Likewise.
30458
30459 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
30460 (__read_nocancel): New macro.
30461 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30462 __read_nocancel.
30463 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
30464 macro.
30465 (__read_nocancel): New prototype.
30466 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
30467 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
30468 with __read_nocancel.
30469 * intl/loadmsgcat.c (read): Likewise.
30470 * libio/fileops.c (_IO_file_read): Likewise.
30471 * locale/loadlocale.c (_nl_load_locale): Likewise.
30472 * login/utmp_file.c (getutent_r_file): Likewise.
30473 (internal_getut_r): Likewise.
30474 (getutline_r_file): Likewise.
30475 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30476 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
30477 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30478 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30479 Likewise.
30480 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
30481 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30482 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30483 Likewise.
30484 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30485 Likewise.
30486 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30487 Likewise.
30488 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30489 Likewise.
30490 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30491
30492 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30493
30494 [BZ #21966]
30495 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
30496 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
30497 usable.
30498
30499 2017-08-17 DJ Delorie <dj@redhat.com>
30500
30501 * bug17079.c: Update to new test harness.
30502 * test-digits-dots.c: Likewise.
30503 * test-netdb.c: Likewise.
30504 * tst-field.c: Likewise.
30505 * tst-nss-getpwent.c: Likewise.
30506 * tst-nss-static.c: Likewise.
30507 * tst-nss-test1.c: Likewise.
30508 * tst-nss-test2.c: Likewise.
30509 * tst-nss-test3.c: Likewise.
30510 * tst-nss-test4.c: Likewise.
30511 * tst-nss-test5.c: Likewise.
30512
30513 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30514
30515 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
30516 (open_not_cancel_2): Likewise.
30517 (open_nocancel): New macro.
30518 (open64_nocancel): Likewise.
30519 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
30520 (open_not_cancel_2): Likewise.
30521 (__open_nocancel): New prototype.
30522 (__open64_nocancel): Likewise.
30523 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30524 __open_nocancel.
30525 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
30526 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
30527 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
30528 with __open_nocancel.
30529 * csu/check_fds.c (check_one_fd): Likewise.
30530 * gmon/gmon.c (write_gmon): Likewise.
30531 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
30532 * intl/loadmsgcat.c (open): Likewise.
30533 * libio/fileops.c (_IO_file_open): Likewise.
30534 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30535 * locale/loadlocale.c (_nl_load_locale): Likewise.
30536 * login/utmp_file.c (setutent_file): Likewise.
30537 * misc/daemon.c (daemon): Likewise.
30538 * nss/nss_db/db-open.c (internal_setent): Likewise.
30539 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30540 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
30541 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30542 (__opendir): Likewise.
30543 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30544 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30545 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30546 (gethostid): Likewise.
30547 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30548 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30549 Likewise.
30550 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30551 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
30552 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30553 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30554 Likewise.
30555 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30556 Likewise.
30557 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30558 Likewise.
30559 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
30560 Likewise.
30561 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30562 Likewise.
30563 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30564 Likewise.
30565 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30566 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30567
30568 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
30569
30570 * benchtests/bench-skeleton.c (main): Add support for
30571 latency benchmarking.
30572 * benchtests/scripts/bench.py: Add support for latency benchmarking.
30573
30574 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
30575
30576 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
30577 the startup object.
30578
30579 2017-08-17 Florian Weimer <fweimer@redhat.com>
30580
30581 * include/sys/socket.h (__opensock): Remove internal_function.
30582 * socket/opensock.c (__opensock): Likewise.
30583 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
30584
30585 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30586
30587 [BZ #21944]
30588 * signal/bits/types/__sigval_t.h: New file.
30589 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
30590 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
30591 and define sigval_t using __sigval_t.
30592 * include/bits/types/__sigval_t.h: New file.
30593 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
30594 instead of <bits/types/__sigval_t.h>.
30595 (struct sigevent): Use __sigval_t instead of sigval_t.
30596 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
30597 instead of <bits/types/__sigval_t.h>.
30598 (siginfo_t): Use __sigval_t instead of sigval_t.
30599 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
30600 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30601 (struct sigevent): Use __sigval_t instead of sigval_t.
30602 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
30603 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30604 (siginfo_t): Use __sigval_t instead of sigval_t.
30605 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
30606
30607 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30608
30609 * NEWS: Remove "[Add new features here]" for 2.27.
30610
30611 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30612
30613 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
30614 libc.so.
30615
30616 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30617
30618 * NEWS: Mention x86-64 FMA optimization.
30619
30620 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30621
30622 [BZ #21912]
30623 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30624 Add e_expf-fma.
30625 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
30626 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
30627 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
30628
30629 2017-08-16 Andreas Schwab <schwab@suse.de>
30630
30631 [BZ #16750]
30632 CVE-2009-5064
30633 * elf/ldd.bash.in: Never run file directly.
30634
30635 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
30636
30637 [BZ #21955]
30638 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
30639 (L(SP_INF_0)): Likewise.
30640
30641 2017-08-15 Florian Weimer <fweimer@redhat.com>
30642
30643 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
30644 run-built-tests.
30645
30646 2017-08-15 Florian Weimer <fweimer@redhat.com>
30647
30648 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
30649 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
30650 BROKEN_THREAD_SIGNALS code.
30651 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
30652 request_list): Remove caller_pid member used for
30653 BROKEN_THREAD_SIGNALS.
30654 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
30655 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30656 Remove BROKEN_THREAD_SIGNALS support.
30657 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
30658 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
30659
30660 2017-08-15 Florian Weimer <fweimer@redhat.com>
30661
30662 * gmon/Makefile (tests): Add tst-gmon.
30663 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
30664 Set.
30665 (tests-special): Add tst-gmon-prof.out.
30666 (tst-gmon.out): Depend on clean-tst-gmon-data.
30667 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
30668 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
30669 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
30670 startup object.
30671 * aclocal.m4 (GPROF): Set and substitute.
30672 * config.amke.in (GPROF): Set.
30673 * configure: Regenerate.
30674
30675 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
30676
30677 * elf/elf.h A (NT_PPC_TAR): New macro.
30678 (NT_PPC_PPR): Likewise.
30679 (NT_PPC_DSCR): Likewise.
30680 (NT_PPC_EBB): Likewise.
30681 (NT_PPC_PMU): Likewise.
30682 (NT_PPC_TM_CGPR): Likewise.
30683 (NT_PPC_TM_CFPR): Likewise.
30684 (NT_PPC_TM_CVMX): Likewise.
30685 (NT_PPC_TM_CVSX): Likewise.
30686 (NT_PPC_TM_SPR): Likewise.
30687 (NT_PPC_TM_CTAR): Likewise.
30688 (NT_PPC_TM_CPPR): Likewise.
30689 (NT_PPC_TM_CDSCR): Likewise.
30690
30691 2017-08-15 Florian Weimer <fweimer@redhat.com>
30692
30693 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
30694 regparm (2) instead of internal_function.
30695 (_MCOUNT_DECL): Adjust.
30696
30697 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
30698
30699 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
30700 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
30701
30702 2017-08-14 Joseph Myers <joseph@codesourcery.com>
30703
30704 * conform/data/sys/wait.h-data (si_value): Do not expect for
30705 XPG42.
30706
30707 2017-08-14 Florian Weimer <fweimer@redhat.com>
30708
30709 [BZ #21962]
30710 NSS: Create stubs for accidentally exported lookup functions.
30711 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
30712 Remove declaration.
30713 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
30714 (ether_hostton): Call __nss_ethers_lookup2 instead.
30715 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
30716 (ether_ntohost): Call __nss_ethers_lookup2 instead.
30717 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
30718 (setup): Call __nss_netgroup_lookup2 instead.
30719 * nss/Makefile (routines): Add compat-lookup.
30720 * nss/Versions (GLIBC_2.27): Add symbol version.
30721 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
30722 (DB_COMPAT_FCT): Remove.
30723 * nss/compat-lookup.c: New file.
30724 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
30725 from databases.def.
30726 * nss/service-lookup.c (NO_COMPAT): Remove definition.
30727 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
30728 (netname2user): Call __nss_publickey_lookup2 instead.
30729 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
30730 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
30731 instead.
30732
30733 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30734 Sergei Trofimovich <slyfox@inbox.ru>
30735
30736 [BZ #21908]
30737 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
30738 Rename to MMAP2_PAGE_UNIT.
30739 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
30740 __OFF_T_MATCHES_OFF64_T is not defined.
30741 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
30742 uint64_t.
30743 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
30744 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
30745
30746 2017-08-14 Florian Weimer <fweimer@redhat.com>
30747
30748 i386: Do not set internal_function.
30749 * config.h.in (USE_REGPARMS, internal_function): Remove.
30750 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
30751 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
30752
30753 2017-08-14 Florian Weimer <fweimer@redhat.com>
30754
30755 * elf/dl-init.c (_dl_init): Remove internal_function.
30756 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
30757 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
30758
30759 2017-08-14 Florian Weimer <fweimer@redhat.com>
30760
30761 * elf/rtld.c (_dl_start): Remove internal_function.
30762 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
30763 _dl_start.
30764
30765 2017-08-14 Florian Weimer <fweimer@redhat.com>
30766
30767 * elf/dl-fini.c (_dl_fini): Remove internal_function
30768 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
30769
30770 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
30771
30772 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
30773 (bit_cpu_SHSTK): Likewise.
30774 (index_cpu_IBT): Likewise.
30775 (index_cpu_SHSTK): Likewise.
30776 (reg_IBT): Likewise.
30777 (reg_SHSTK): Likewise.
30778 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30779 Handle index_cpu_IBT and index_cpu_SHSTK.
30780
30781 2017-08-14 Mike FABIAN <mfabian@redhat.com>
30782
30783 [BZ #19982]
30784 * po/fr.po: Fix spelling mistake.
30785
30786 2017-08-13 Florian Weimer <fweimer@redhat.com>
30787
30788 * elf/dl-addr.c (_dl_addr): Remove internal_function.
30789 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
30790 (_dl_catch_error, _dl_receive_error): Likewise.
30791 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
30792 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
30793 (_dl_deallocate_tls): Likewise.
30794 * include/dlfcn.h (_dl_addr): Likewise.
30795 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
30796 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
30797 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
30798 Likewise.
30799
30800 2017-08-13 Florian Weimer <fweimer@redhat.com>
30801
30802 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
30803 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
30804 internal_function.
30805 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
30806
30807 2017-08-13 Florian Weimer <fweimer@redhat.com>
30808
30809 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
30810 internal_function.
30811 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
30812 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
30813 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
30814 internal_function from _dl_make_stack_executable_hook member.
30815 (_dl_make_stack_executable): Remove internal_function.
30816 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
30817 Likewise.
30818 * sysdeps/unix/sysv/linux/dl-execstack.c
30819 (_dl_make_stack_executable): Likewise.
30820
30821 2017-08-13 Florian Weimer <fweimer@redhat.com>
30822
30823 * sysdeps/unix/sysv/linux/netlinkaccess.h
30824 (__netlink_assert_response): Remove internal_function.
30825 * sysdeps/unix/sysv/linux/netlink_assert_response.c
30826 (__netlink_assert_response): Likewise.
30827
30828 2017-08-13 Florian Weimer <fweimer@redhat.com>
30829
30830 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
30831 internal_function.
30832 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
30833
30834 2017-08-13 Florian Weimer <fweimer@redhat.com>
30835
30836 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
30837 internal_function.
30838 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
30839 * inet/netgroup.h (__internal_setnetgrent)
30840 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30841 * inet/getnetgrent_r.c (__internal_setnetgrent)
30842 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30843 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
30844 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
30845 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
30846 * nss/nsswitch.h (db_lookup_function): Likewise.
30847
30848 2017-08-13 Florian Weimer <fweimer@redhat.com>
30849
30850 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
30851 Remove internal_function.
30852 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
30853 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
30854 message argument on the stack.
30855 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
30856 Likeweise.
30857
30858 2017-08-12 Mike FABIAN <mfabian@redhat.com>
30859
30860 Adapt test case data to the changes in the thousands
30861 separators.
30862
30863 [BZ #20756]
30864 * localedata/tst-langinfo.sh: Adapt test case data.
30865 * stdlib/tst-strfmon_l.c: Likewise.
30866 * stdlib/tst-strtod4.c: Likewise.
30867 * stdlib/tst-strtod5i.c: Likewise.
30868
30869 2017-08-11 Florian Weimer <fweimer@redhat.com>
30870
30871 [BZ #21242]
30872 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
30873 Suppress pedantic warning resulting from statement expression.
30874 (__ASSERT_FUNCTION): Add missing __extension__.
30875
30876 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30877
30878 * benchtests/bench-memmove-large.c: Print output in JSON
30879 format.
30880 * benchtests/bench-memmove.c: Likewise.
30881
30882 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
30883 * benchtests/bench-memchr.c (do_one_test): Likewise.
30884 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
30885 * benchtests/bench-memcpy.c (do_one_test): Likewise.
30886 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
30887 * benchtests/bench-memmove.c (do_one_test): Likewise.
30888 * benchtests/bench-memset-large.c (do_one_test): Likewise.
30889 * benchtests/bench-memset.c (do_one_test): Likewise.
30890 * benchtests/bench-string.h (test_init): Remove memsets.
30891
30892 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
30893
30894 * manual/lang.texi
30895 (Computing the Width of an Integer Data Type): Rename section to
30896 "Width of an Integer Type". Remove inaccurate statement regarding
30897 lack of C language facilities for determining width of integer
30898 types, and reorder content to improve flow and context of
30899 discussion.
30900
30901 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
30902
30903 * lang.texi (va_copy): Change standard from ISO to C99.
30904 (__va_copy): Add standard and header annotation.
30905 Update description for clarity of origins and current use.
30906
30907 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30908
30909 [BZ #21941]
30910 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
30911 xssqrtqp requires operands to be in Vector Registers
30912 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
30913 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
30914 (__ieee754_sqrtf128): Likewise.
30915
30916 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
30917
30918 * sysdeps/aarch64/memcmp.S (memcmp):
30919 Rewrite of optimized memcmp.
30920
30921 2017-08-10 Florian Weimer <fweimer@redhat.com>
30922
30923 Introduce ld.so exceptions.
30924 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
30925 (_dl_exception_create, _dl_exception_create_format)
30926 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
30927 (_dl_catch_exception): Declare.
30928 (_dl_catch_error): Update comment.
30929 * elf/dl-error-skeleton.c (struct catch): Replace objname,
30930 errstring, malloced members with exception member.
30931 (_dl_out_of_memory): Remove.
30932 (fatal_error): New function, extracted from _dl_signal_error.
30933 (_dl_signal_exception, _dl_signal_cexception): New functions.
30934 (_dl_signal_error): Call _dl_exception_create to allocate an
30935 exception object.
30936 (_dl_catch_exception): New function, based on _dl_catch_error.
30937 (_dl_catch_error): Implement using _dl_catch_exception.
30938 * elf/dl-exception.c: New file.
30939 * elf/Makefile (dl-routines): Add dl-exception.
30940 (elide-routines.os): Likewise.
30941 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
30942 _dl_exception_create_format, _dl_exception_free.
30943 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
30944 _dl_signal_exception.
30945 * elf/dl-lookup.c (make_string): Remove.
30946 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
30947 _dl_signal_cexception, _dl_exception_free.
30948 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
30949 _dl_signal_exception.
30950 * elf/dl-sym.c (do_sym): Likewise.
30951 * elf/dl-version.c (make_string): Remove.
30952 (match_symbol): Use _dl_exception_create_format,
30953 _dl_signal_cexception, _dl_exception_free.
30954 (_dl_check_map_versions): Likewise.
30955 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
30956 _dl_catch_exception.
30957 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
30958 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
30959 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
30960 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
30961 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
30962 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
30963 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
30964 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
30965 Likewise.
30966 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
30967 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
30968 (ld.so): Likewise.
30969 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
30970 (ld.so): Likewise.
30971 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
30972 Likewise.
30973 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
30974 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
30975 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
30976 Likewise.
30977 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
30978 Likewise.
30979 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
30980
30981 2017-08-10 Florian Weimer <fweimer@redhat.com>
30982
30983 * inet/net-internal.h (__inet6_scopeid_pton): Remove
30984 attribute_hidden, internal_function.
30985 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
30986 internal_function.
30987
30988 2017-08-10 Florian Weimer <fweimer@redhat.com>
30989
30990 * malloc/malloc.c (get_max_fast): Reimplement as an inline
30991 function which calls __builtin_unreachable.
30992
30993 2017-08-10 Mike FABIAN <mfabian@redhat.com>
30994
30995 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
30996 Indian monetary formatting
30997 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
30998 test cases.
30999
31000 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31001
31002 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31003 Fix typo in comment.
31004
31005 [BZ #21928]
31006 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31007 PTRACE_SEIZE_DEVEL): Remove.
31008 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31009 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31010 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31011 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31012 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31013
31014 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31015
31016 * posix/bits/types.h (__qaddr_t): Remove.
31017
31018 [BZ #21457]
31019 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31020 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31021 __glibc_reserved1.
31022 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31023 (ucontext_t): Use __ctx with uc_flags.
31024 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31025 (__ctxt): Likewise.
31026 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31027 __glibc_reserved1.
31028 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31029 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31030 __glibc_reserved1.
31031 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31032 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31033 __glibc_reserved1.
31034 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31035 macro.
31036 (ucontext_t): Use __ctx with uc_flags.
31037 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31038 (ucontext_t): Use __ctx with uc_flags.
31039 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31040 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31041 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31042 (ucontext_t): Use __ctx with uc_flags.
31043 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31044 undefine further down.
31045 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31046 __glibc_reserved1.
31047 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31048 undefine further down.
31049 (ucontext_t): Use __ctx with uc_flags.
31050 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31051 undefine further down.
31052 (ucontext_t): Use __ctx with uc_flags.
31053 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31054 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31055 Rename uc_pad to __glibc_reserved1.
31056 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31057 undefine further down.
31058 (ucontext_t): Use __ctx with uc_flags.
31059 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31060 further down.
31061 (ucontext_t): Use __ctx with uc_flags.
31062 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31063 __ctx with uc_flags.
31064 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31065 (ucontext_t): Use __ctx with uc_flags.
31066 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31067 __ctx with uc_flags.
31068
31069 2017-08-09 Florian Weimer <fweimer@redhat.com>
31070
31071 [BZ #21932]
31072 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31073 before early return.
31074
31075 2017-08-09 Andreas Schwab <schwab@suse.de>
31076
31077 [BZ #21041]
31078 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31079 renamed alias.
31080
31081 [BZ #21041]
31082 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31083 tst-compat-forwarder.
31084 (modules-names): Add tst-compat-forwarder-mod.
31085 ($(objpfx)tst-compat-forwarder): Depend on
31086 $(objpfx)tst-compat-forwarder-mod.so.
31087 * nptl/tst-compat-forwarder.c: New file.
31088 * nptl/tst-compat-forwarder-mod.c: New file.
31089
31090 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31091
31092 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31093 comments.
31094
31095 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31096 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31097 memcpy_falkor.
31098 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31099 Bump.
31100 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31101 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31102 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31103 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31104 Add falkor.
31105 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31106 New macro.
31107
31108 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31109
31110 [BZ #759]
31111 * manual/setjmp.texi (getcontex): Document uc_stack value
31112 compatibility differences.
31113
31114 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31115
31116 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31117 (old_malloc_hook): Likewise.
31118 (old_memalign_hook): Likewise.
31119 (old_realloc_hook): Likewise.
31120 (struct hdr): Likewise.
31121 (flood): Likewise.
31122 (freehook): Likewise.
31123 (mallochook): Likewise.
31124 (memalignhook): Likewise.
31125 (reallochook): Likewise.
31126 (mprobe): Likewise.
31127 * malloc/mtrace.c (mallwatch): Likewise.
31128 (tr_old_free_hook): Likewise.
31129 (tr_old_malloc_hook): Likewise.
31130 (tr_old_realloc_hook): Likewise.
31131 (tr_old_memalign_hook): Likewise.
31132 (tr_where): Likewise.
31133 (lock_and_info): Likewise.
31134 (tr_freehook): Likewise.
31135 (tr_mallochook): Likewise.
31136 (tr_reallochook): Likewise.
31137 (tr_memalignhook): Likewise.
31138 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31139 * misc/mmap.c (__mmap): Likewise.
31140 * misc/mmap64.c (__mmap64): Likewise.
31141 * misc/mprotect.c (__mprotect): Likewise.
31142 * misc/msync.c (msync): Likewise.
31143 * misc/munmap.c (__munmap): Likewise.
31144 * posix/posix_madvise.c (posix_madvise): Likewise.
31145 * socket/send.c (__send): Likewise.
31146 * socket/sendto.c (__sendto): Likewise.
31147 * socket/setsockopt.c (__setsockopt): Likewise.
31148 * string/memcmp.c (__ptr_t): Remove macro.
31149 (MEMCMP): Use void * instead of ptr_t.
31150 * string/memrchr.c (__ptr_t): Remove macro.
31151 (__memrchr): Use void * instead of ptr_t.
31152 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31153 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31154 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31155 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31156 * sysdeps/mach/msync.c (msync): Likewise.
31157 * sysdeps/mach/munmap.c (__munmap): Likewise.
31158 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31159 Likewise.
31160 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31161 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31162 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31163 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31164 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31165 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31166 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31167 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31168 Likewise.
31169 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31170 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31171 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31172 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31173 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31174 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31175 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31176 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31177 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31178 Likewise.
31179 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31180 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31181 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31182 (MEMCMP): Use void * instead of ptr_t.
31183 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31184 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31185
31186 2017-08-08 Florian Weimer <fweimer@redhat.com>
31187
31188 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31189 return statement.
31190
31191 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31192
31193 [BZ #21913]
31194 * csu/libc-tls.c: Include <startup.h> first.
31195 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31196 * elf/dl-tunables.c: Include <startup.h> first.
31197 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31198 * sysdeps/generic/startup.h: New file.
31199 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31200 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31201 (I386_USE_SYSENTER): New. Defined to 0.
31202
31203 2017-08-08 Andreas Schwab <schwab@suse.de>
31204
31205 [BZ #21041]
31206 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31207 * nptl/pt-system.c (system): Likewise.
31208
31209 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31210
31211 [BZ #21780]
31212 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31213 EOPNOTSUPP.
31214 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31215 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31216 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31217 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31218 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31219 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31220 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31221
31222 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31223
31224 [BZ #21899]
31225 * bits/sigaction.h (struct sigaction): Define sa_handler and
31226 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31227 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31228 [__USE_XOPEN_EXTENDED].
31229 (SA_RESTART): Likewise.
31230 (SA_NODEFER): Likewise.
31231 (SA_RESETHAND): Likewise.
31232 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31233 (struct sigaction): Define sa_handler and sa_sigaction using union
31234 also for [__USE_XOPEN_EXTENDED].
31235 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31236 [__USE_XOPEN_EXTENDED].
31237 (SA_RESTART): Likewise.
31238 (SA_NODEFER): Likewise.
31239 (SA_RESETHAND): Likewise.
31240 * sysdeps/unix/sysv/linux/bits/sigaction.h
31241 (struct sigaction): Define sa_handler and sa_sigaction using union
31242 also for [__USE_XOPEN_EXTENDED].
31243 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31244 [__USE_XOPEN_EXTENDED].
31245 (SA_RESTART): Likewise.
31246 (SA_NODEFER): Likewise.
31247 (SA_RESETHAND): Likewise.
31248 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31249 (struct sigaction): Define sa_handler and sa_sigaction using union
31250 also for [__USE_XOPEN_EXTENDED].
31251 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31252 [__USE_XOPEN_EXTENDED].
31253 (SA_RESTART): Likewise.
31254 (SA_NODEFER): Likewise.
31255 (SA_RESETHAND): Likewise.
31256 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31257 (struct sigaction): Define sa_handler and sa_sigaction using union
31258 also for [__USE_XOPEN_EXTENDED].
31259 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31260 [__USE_XOPEN_EXTENDED].
31261 (SA_RESTART): Likewise.
31262 (SA_NODEFER): Likewise.
31263 (SA_RESETHAND): Likewise.
31264 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31265 (struct sigaction): Define sa_handler and sa_sigaction using union
31266 also for [__USE_XOPEN_EXTENDED].
31267 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31268 [__USE_XOPEN_EXTENDED].
31269 (SA_RESTART): Likewise.
31270 (SA_NODEFER): Likewise.
31271 (SA_RESETHAND): Likewise.
31272 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
31273 (struct sigaction): Define sa_handler and sa_sigaction using union
31274 also for [__USE_XOPEN_EXTENDED].
31275 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31276 [__USE_XOPEN_EXTENDED].
31277 (SA_RESTART): Likewise.
31278 (SA_NODEFER): Likewise.
31279 (SA_RESETHAND): Likewise.
31280 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
31281 (struct sigaction): Define sa_handler and sa_sigaction using union
31282 also for [__USE_XOPEN_EXTENDED].
31283 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31284 [__USE_XOPEN_EXTENDED].
31285 (SA_RESTART): Likewise.
31286 (SA_NODEFER): Likewise. Define directly rather than as alias.
31287 (SA_RESETHAND): Likewise.
31288 (SA_INTERRUPT): Define only for [__USE_MISC].
31289 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
31290 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
31291 [__USE_MISC].
31292 (SA_STACK): Define only for [__USE_MISC].
31293 * sysdeps/unix/sysv/linux/tile/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.
31300 (SA_RESETHAND): Likewise.
31301 (SA_NOPTRACE): Define only for [__USE_MISC].
31302
31303 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31304 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31305 (struct catalog_info): Likewise.
31306 * inet/htontest.c (lo): Likewise.
31307 (foo): Likewise.
31308 * inet/inet_lnaof.c (inet_lnaof): Likewise.
31309 * inet/inet_net.c (inet_network): Likewise.
31310 * inet/inet_netof.c (inet_netof): Likewise.
31311 * inet/rcmd.c (__ivaliduser): Likewise.
31312 (iruserok): Likewise.
31313 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
31314 * locale/programs/locale-spec.c (locale_special): Likewise.
31315 * nis/nis_findserv.c (struct findserv_req): Likewise.
31316 (__nis_findfastest_with_timeout): Likewise.
31317 * nss/test-netdb.c (test_network): Likewise.
31318 * resolv/inet_neta.c (inet_neta): Likewise.
31319 * resolv/ns_date.c (ns_datetosecs): Likewise.
31320 (SECS_PER_DAY): Likewise.
31321 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
31322 Likewise.
31323 * resolv/res_comp.c (__putlong): Likewise.
31324 (__putshort): Likewise.
31325 (_getlong): Likewise.
31326 (_getshort): Likewise.
31327 * resolv/res_debug.c (p_time): Likewise.
31328 (precsize_ntoa): Likewise.
31329 (precsize_aton): Likewise.
31330 (latlon2ul): Likewise.
31331 (loc_aton): Likewise.
31332 (loc_ntoa): Likewise.
31333 * resolv/res_hconf.c (struct netaddr): Likewise.
31334 (_res_hconf_reorder_addrs): Likewise.
31335 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
31336 (clnttcp_control): Likewise.
31337 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31338 (clntudp_control): Likewise.
31339 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
31340 (clntunix_control): Likewise.
31341 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
31342 * sunrpc/rpc/auth.h (union des_block): Likewise.
31343 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
31344 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
31345 (xdrrec_create): Likewise.
31346 (xdrrec_endofrecord): Likewise.
31347 (flush_out): Likewise.
31348 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
31349 (xdrstdio_putlong): Likewise.
31350 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
31351 Likewise.
31352
31353 * misc/sys/cdefs.h (__long_double_t): Remove.
31354 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
31355 instead of __long_double_t,
31356 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
31357
31358 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
31359
31360 * benchtests/scripts/compare_strings.py: Avoid display error when
31361 running on a text terminal.
31362
31363 * benchtests/scripts/compare_strings.py (main): Add an
31364 optional -base option.
31365 (process_results): New argument base_func.
31366
31367 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
31368 hardcoding memcpy.
31369 * benchtests/bench-memcpy-large.c (test_name): Likewise.
31370 * benchtests/bench-memcpy-random.c (test_name): Likewise.
31371
31372 2017-08-07 Andreas Schwab <schwab@suse.de>
31373
31374 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
31375 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
31376 * intl/Makefile ($(objpfx)tst-gettext.out)
31377 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
31378 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
31379 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
31380 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
31381 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
31382 * posix/Makefile ($(objpfx)globtest.out)
31383 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
31384 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
31385 ($(objpfx)tst-printf.out): Likewise.
31386 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
31387 ($(objpfx)tst-setcontext3.out): Likewise.
31388
31389 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
31390
31391 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31392 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
31393 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
31394 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
31395 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
31396 and mptan-fma.
31397 (CFLAGS-doasin-fma.c): New.
31398 (CFLAGS-dosincos-fma.c): Likewise.
31399 (CFLAGS-e_asin-fma.c): Likewise.
31400 (CFLAGS-e_atan2-fma.c): Likewise.
31401 (CFLAGS-e_exp-fma.c): Likewise.
31402 (CFLAGS-e_log-fma.c): Likewise.
31403 (CFLAGS-e_pow-fma.c): Likewise.
31404 (CFLAGS-halfulp-fma.c): Likewise.
31405 (CFLAGS-mpa-fma.c): Likewise.
31406 (CFLAGS-mpatan-fma.c): Likewise.
31407 (CFLAGS-mpatan2-fma.c): Likewise.
31408 (CFLAGS-mpexp-fma.c): Likewise.
31409 (CFLAGS-mplog-fma.c): Likewise.
31410 (CFLAGS-mpsqrt-fma.c): Likewise.
31411 (CFLAGS-mptan-fma.c): Likewise.
31412 (CFLAGS-s_atan-fma.c): Likewise.
31413 (CFLAGS-sincos32-fma.c): Likewise.
31414 (CFLAGS-slowexp-fma.c): Likewise.
31415 (CFLAGS-slowpow-fma.c): Likewise.
31416 (CFLAGS-s_sin-fma.c): Likewise.
31417 (CFLAGS-s_tan-fma.c): Likewise.
31418 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
31419 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
31420 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
31421 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
31422 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
31423 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
31424 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
31425 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
31426 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
31427 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
31428 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
31429 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
31430 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
31431 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
31432 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
31433 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
31434 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
31435 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
31436 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
31437 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
31438 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
31439 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
31440 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
31441 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
31442 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
31443 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31444 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31445 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
31446 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31447 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31448 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31449
31450 2017-08-04 Joseph Myers <joseph@codesourcery.com>
31451
31452 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
31453 (min_of_type_f): New macro.
31454 (min_of_type_): Likewise.
31455 (min_of_type_l): Likewise.
31456 (min_of_type_f128): Likewise.
31457 (min_of_type): Define using __MATH_TG and taking an expression
31458 argument.
31459 (math_check_force_underflow): Pass expression instead of type to
31460 min_of_type.
31461 (math_check_force_underflow_nonneg): Likewise.
31462
31463 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31464
31465 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31466 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
31467 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
31468
31469 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31470
31471 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31472 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
31473 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
31474 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
31475 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
31476 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
31477 memcpy_chk-nonshared, mempcpy_chk-nonshared,
31478 memmove_chk-nonshared and memset_chk-nonshared
31479 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
31480 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
31481 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
31482 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
31483 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
31484 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
31485 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
31486 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
31487 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
31488 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
31489 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
31490 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
31491 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
31492 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
31493 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
31494 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
31495 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
31496 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
31497 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
31498 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
31499 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
31500 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
31501 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
31502 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
31503 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
31504 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
31505 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
31506 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
31507 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
31508 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
31509 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
31510 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
31511 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
31512 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31513 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31514 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
31515 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
31516 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
31517 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
31518 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
31519 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
31520 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
31521 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
31522 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
31523 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
31524 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
31525 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
31526 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
31527 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
31528 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
31529 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
31530 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
31531 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
31532 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
31533 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
31534 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
31535 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
31536 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
31537 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
31538 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
31539 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
31540 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
31541 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
31542 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
31543 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
31544 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
31545 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
31546 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
31547 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
31548 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
31549 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
31550 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
31551 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
31552 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
31553 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
31554 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
31555 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31556 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31557 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31558 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31559 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31560 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31561 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31562 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31563 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
31564 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
31565 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
31566 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
31567 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31568 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31569 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31570 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31571 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31572 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31573 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
31574 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
31575 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
31576 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
31577 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
31578 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
31579 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
31580 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
31581 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
31582 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
31583 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
31584 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
31585 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
31586 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
31587
31588 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31589
31590 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
31591 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
31592 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
31593 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
31594 svml_d_log2_core-sse2, svml_d_log4_core-sse,
31595 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
31596 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
31597 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
31598 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
31599 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
31600 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
31601 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
31602 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
31603 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
31604 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
31605 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
31606 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
31607 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
31608 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
31609 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
31610 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
31611 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
31612 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
31613 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
31614 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
31615 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
31616 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
31617 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
31618 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
31619 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
31620 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
31621 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
31622 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
31623 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
31624 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
31625 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
31626 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
31627 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
31628 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
31629 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
31630 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
31631 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
31632 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
31633 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
31634 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
31635 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
31636 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
31637 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
31638 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
31639 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
31640 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
31641 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
31642 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
31643 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
31644 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
31645 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
31646 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
31647 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
31648 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
31649 ...
31650 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
31651 Don't include <sysdep.h> nor <init-arch.h>.
31652 (_ZGVbN2v_cos): Removed.
31653 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
31654 ...
31655 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
31656 Don't include <sysdep.h> nor <init-arch.h>.
31657 (_ZGVdN4v_cos): Removed.
31658 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
31659 ...
31660 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
31661 Don't include <sysdep.h> nor <init-arch.h>.
31662 (_ZGVeN8v_cos): Removed.
31663 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
31664 ...
31665 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
31666 Don't include <sysdep.h> nor <init-arch.h>.
31667 (_ZGVbN2v_exp): Removed.
31668 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
31669 ...
31670 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
31671 Don't include <sysdep.h> nor <init-arch.h>.
31672 (_ZGVdN4v_exp): Removed.
31673 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
31674 ...
31675 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
31676 Don't include <sysdep.h> nor <init-arch.h>.
31677 (_ZGVeN8v_exp): Removed.
31678 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
31679 ...
31680 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
31681 Don't include <sysdep.h> nor <init-arch.h>.
31682 (_ZGVbN2v_log): Removed.
31683 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
31684 ...
31685 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
31686 Don't include <sysdep.h> nor <init-arch.h>.
31687 (_ZGVdN4v_log): Removed.
31688 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
31689 ...
31690 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
31691 Don't include <sysdep.h> nor <init-arch.h>.
31692 (_ZGVeN8v_log): Removed.
31693 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
31694 ...
31695 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
31696 Don't include <sysdep.h> nor <init-arch.h>.
31697 (_ZGVbN2vv_pow): Removed.
31698 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
31699 ...
31700 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
31701 Don't include <sysdep.h> nor <init-arch.h>.
31702 (_ZGVdN4vv_pow): Removed.
31703 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
31704 ...
31705 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
31706 Don't include <sysdep.h> nor <init-arch.h>.
31707 (_ZGVeN8vv_pow): Removed.
31708 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
31709 ...
31710 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
31711 Don't include <sysdep.h> nor <init-arch.h>.
31712 (_ZGVbN2v_sin): Removed.
31713 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
31714 ...
31715 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
31716 Don't include <sysdep.h> nor <init-arch.h>.
31717 (_ZGVbN4v_sin): Removed.
31718 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
31719 ...
31720 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
31721 Don't include <sysdep.h> nor <init-arch.h>.
31722 (_ZGVbN8v_sin): Removed.
31723 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
31724 ...
31725 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
31726 Don't include <sysdep.h> nor <init-arch.h>.
31727 (_ZGVbN2vvv_sincos): Removed.
31728 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
31729 ...
31730 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
31731 Don't include <sysdep.h> nor <init-arch.h>.
31732 (_ZGVdN4vvv_sincos): Removed.
31733 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
31734 ...
31735 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
31736 Don't include <sysdep.h> nor <init-arch.h>.
31737 (_ZGVeN8vvv_sincos): Removed.
31738 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
31739 ...
31740 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
31741 Don't include <sysdep.h> nor <init-arch.h>.
31742 (_ZGVeN16v_cosf): Removed.
31743 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
31744 ...
31745 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
31746 Don't include <sysdep.h> nor <init-arch.h>.
31747 (_ZGVbN4v_cosf): Removed.
31748 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
31749 ...
31750 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
31751 Don't include <sysdep.h> nor <init-arch.h>.
31752 (_ZGVdN8v_cosf): Removed.
31753 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
31754 ...
31755 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
31756 Don't include <sysdep.h> nor <init-arch.h>.
31757 (_ZGVeN16v_expf): Removed.
31758 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
31759 ...
31760 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
31761 Don't include <sysdep.h> nor <init-arch.h>.
31762 (_ZGVbN4v_expf): Removed.
31763 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
31764 ...
31765 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
31766 Don't include <sysdep.h> nor <init-arch.h>.
31767 (_ZGVdN8v_expf): Removed.
31768 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
31769 ...
31770 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
31771 Don't include <sysdep.h> nor <init-arch.h>.
31772 (_ZGVeN16v_logf): Removed.
31773 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
31774 ...
31775 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
31776 Don't include <sysdep.h> nor <init-arch.h>.
31777 (_ZGVbN4v_logf): Removed.
31778 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
31779 ...
31780 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
31781 Don't include <sysdep.h> nor <init-arch.h>.
31782 (_ZGVdN8v_logf): Removed.
31783 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
31784 ...
31785 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
31786 Don't include <sysdep.h> nor <init-arch.h>.
31787 (_ZGVeN16vv_powf): Removed.
31788 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
31789 ...
31790 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
31791 Don't include <sysdep.h> nor <init-arch.h>.
31792 (_ZGVbN4vv_powf): Removed.
31793 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
31794 ...
31795 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
31796 Don't include <sysdep.h> nor <init-arch.h>.
31797 (_ZGVdN8vv_powf): Removed.
31798 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
31799 ...
31800 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
31801 Don't include <sysdep.h> nor <init-arch.h>.
31802 (_ZGVeN16vvv_sincosf): Removed.
31803 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
31804 ...
31805 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
31806 Don't include <sysdep.h> nor <init-arch.h>.
31807 (_ZGVbN4vvv_sincosf): Removed.
31808 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
31809 ...
31810 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
31811 Don't include <sysdep.h> nor <init-arch.h>.
31812 (_ZGVdN8vvv_sincosf): Removed.
31813 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
31814 ...
31815 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
31816 Don't include <sysdep.h> nor <init-arch.h>.
31817 (_ZGVeN16v_sinf): Removed.
31818 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
31819 ...
31820 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
31821 Don't include <sysdep.h> nor <init-arch.h>.
31822 (_ZGVbN4v_sinf): Removed.
31823 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
31824 ...
31825 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
31826 Don't include <sysdep.h> nor <init-arch.h>.
31827 (_ZGVdN8v_sinf): Removed.
31828
31829 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31830
31831 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31832 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
31833 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
31834 s_rint-sse4_1 and s_rintf-sse4_1.
31835 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
31836 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
31837 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
31838 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
31839 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
31840 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
31841 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
31842 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
31843 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
31844 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
31845 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
31846 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31847 (__ceil): Removed.
31848 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
31849 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
31850 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31851 (__ceilf): Removed.
31852 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
31853 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
31854 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31855 (__floor): Removed.
31856 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
31857 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
31858 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31859 (__floorf): Removed.
31860 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
31861 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
31862 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31863 (__nearbyint): Removed.
31864 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
31865 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
31866 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31867 (__nearbyintf): Removed.
31868 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
31869 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
31870 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31871 (__rint): Removed.
31872 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
31873 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
31874 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31875 (__rintf): Removed.
31876
31877 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31878
31879 * sysdeps/i386/start.S (_start): Check Check PIC instead of
31880 SHARED. Avoid dynamic relocation against main in static PIE.
31881
31882 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31883
31884 [BZ #21815]
31885 * elf/Makefile (CFLAGS-tst-prelink.c): New.
31886 (LDFLAGS-tst-prelink): Likewise.
31887
31888 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31889
31890 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
31891 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
31892 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
31893 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
31894 (INTERNAL_SYSCALL_NCS): Likewise.
31895 (LOADARGS_1): Likewise.
31896 (LOADARGS_5): Likewise.
31897 (RESTOREARGS_1): Likewise.
31898 (RESTOREARGS_5): Likewise.
31899
31900 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31901
31902 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
31903 (MEMPCPY_SYMBOL): Likewise.
31904 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
31905 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
31906 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
31907 in libc.a.
31908 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
31909 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
31910 Likewise.
31911 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
31912 (__hidden_ver1): Don't use in libc.a.
31913 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
31914 (__mempcpy): Don't create a weak alias in libc.a.
31915 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
31916 libc.a.
31917 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
31918 (__hidden_ver1): Don't use in libc.a.
31919
31920 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31921
31922 * config.make.in (have-insert): New.
31923 * configure.ac (libc_cv_insert): New. Set to yes if linker
31924 supports INSERT in linker script.
31925 (AC_SUBST(libc_cv_insert): New.
31926 * configure: Regenerated.
31927 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
31928 if $(have-insert) == yes.
31929
31930 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31931
31932 * elf/Makefile (tests): Add vismain only if
31933 $(have-protected-data) == yes.
31934 (tests-pie): Likewise.
31935
31936 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31937
31938 [BZ #21871]
31939 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
31940 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
31941
31942 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31943
31944 [BZ #21790]
31945 * sysdeps/i386/i586/memset.S
31946 (__memset_zero_constant_len_parameter): Removed.
31947 * sysdeps/i386/i686/memset.S
31948 (__memset_zero_constant_len_parameter): Likewise.
31949 * sysdeps/i386/i686/multiarch/memset_chk.S
31950 (__memset_zero_constant_len_parameter): Likewise.
31951 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
31952 Likewise.
31953
31954 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
31955
31956 * stdlib/getentropy.c (getentropy): Change return type to int.
31957
31958 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
31959
31960 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
31961
31962 2017-08-03 Joseph Myers <joseph@codesourcery.com>
31963
31964 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
31965 u_intN_t.
31966 * math/s_nexttowardf.c (__nexttowardf): Likewise.
31967 * sysdeps/generic/math_private.h (ieee_double_shape_type):
31968 Likewise.
31969 (ieee_float_shape_type): Likewise.
31970 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
31971 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
31972 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
31973 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
31974 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
31975 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
31976 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
31977 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
31978 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
31979 Likewise.
31980 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
31981 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
31982 (__ieee754_yn): Likewise.
31983 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
31984 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
31985 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
31986 Likewise.
31987 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
31988 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
31989 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
31990 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
31991 (__erfc): Likewise.
31992 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
31993 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
31994 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
31995 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
31996 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
31997 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
31998 Likewise.
31999 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32000 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32001 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32002 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32003 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32004 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32005 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32006 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32007 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32008 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32009 (__issignaling): Likewise.
32010 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32011 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32012 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32013 Likewise.
32014 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32015 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32016 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32017 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32018 Likewise.
32019 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32020 Likewise.
32021 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32022 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32023 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32024 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32025 (__erfcf): Likewise.
32026 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32027 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32028 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32029 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32030 Likewise.
32031 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32032 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32033 Likewise.
32034 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32035 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32036 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32037 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32038 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32039 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32040 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32041 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32042 Likewise.
32043 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32044 Likewise.
32045 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32046 Likewise.
32047 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32048 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32049 Likewise.
32050 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32051 Likewise.
32052 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32053 (__ieee754_ynl): Likewise.
32054 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32055 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32056 Likewise.
32057 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32058 Likewise.
32059 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32060 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32061 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32062 Likewise.
32063 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32064 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32065 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32066 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32067 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32068 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32069 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32070 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32071 Likewise.
32072 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32073 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32074 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32075 Likewise.
32076 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32077 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32078 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32079 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32080 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32081 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32082 Likewise.
32083 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32084 Likewise.
32085 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32086 Likewise.
32087 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32088 Likewise.
32089 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32090 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32091 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32092 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32093 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32094 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32095 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32096 Likewise.
32097 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32098 Likewise.
32099 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32100 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32101 Likewise.
32102 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32103 (__ieee754_remainderl): Likewise.
32104 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32105 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32106 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32107 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32108 Likewise.
32109 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32110 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32111 Likewise.
32112 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32113 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32114 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32115 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32116 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32117 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32118 Likewise.
32119 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32120 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32121 (__ieee754_y0l): Likewise.
32122 (pzero): Likewise.
32123 (qzero): Likewise.
32124 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32125 (__ieee754_y1l): Likewise.
32126 (pone): Likewise.
32127 (qone): Likewise.
32128 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32129 (__ieee754_ynl): Likewise.
32130 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32131 (__ieee754_lgammal_r): Likewise.
32132 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32133 Likewise.
32134 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32135 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32136 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32137 (__erfcl): Likewise.
32138 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32139 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32140 Likewise.
32141 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32142 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32143 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32144 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32145 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32146 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32147 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32148 Likewise.
32149 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32150 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32151 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32152 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32153 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32154 Likewise.
32155 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32156 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32157 Likewise.
32158 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32159 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32160 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32161 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32162 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32163
32164 2017-08-03 Florian Weimer <fweimer@redhat.com>
32165
32166 [BZ #21885]
32167 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32168 on memory allocation failure.
32169
32170 2017-08-03 Alan Modra <amodra@gmail.com>
32171
32172 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32173 tst-tlsopt-powerpc.c with function name change and no test harness.
32174 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32175 Call tls_get_addr_opt_test.
32176 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32177 (modules-names): Add mod-tlsopt-powerpc.
32178 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32179 (tst-tlsopt-powerpc): Depend on .so.
32180 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32181 define. Expand use in TLS_GD and TLS_LD.
32182
32183 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32184
32185 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32186 function.
32187 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32188
32189 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32190
32191 [BZ #21686]
32192 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32193 comparing size with that of double.
32194 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32195 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32196 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32197 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32198 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32199 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32200 unsigned __int128 types.
32201
32202 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32203
32204 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32205 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32206 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32207 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32208 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32209
32210 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32211
32212 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32213
32214 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32215
32216 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32217 of SHARED.
32218 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32219 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32220 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32221 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32222 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32223 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32224 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32225
32226 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32227
32228 [BZ #21685]
32229 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32230 bit-field expressions passed to sizeof or typeof.
32231 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32232 (__TGMATH_F128): Likewise.
32233 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32234 (__TGMATH_CF128): Likewise.
32235 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32236 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32237 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32238 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32239 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32240 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32241 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32242 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32243 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32244 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32245 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32246 (__TGMATH_UNARY_IMAG): Likewise.
32247 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32248 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32249 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32250 type.
32251 (define_vars_for_type): Handle bit_field type specially.
32252 (Tests.__init__): Declare structure with bit-field element.
32253
32254 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32255
32256 [BZ #21791]
32257 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32258 (MEMCPY_CHK): Define only if SHARED is defined.
32259 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32260 Likewise.
32261 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32262 Likewise.
32263
32264 See ChangeLog.18 for earlier changes.